Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Arduino Robotic Projects
  • Table Of Contents Toc
  • Feedback & Rating feedback
Arduino Robotic Projects

Arduino Robotic Projects

By : Richard Grimmett
4.3 (10)
close
close
Arduino Robotic Projects

Arduino Robotic Projects

4.3 (10)
By: Richard Grimmett

Overview of this book

Table of Contents (21 chapters)
close
close
Arduino Robotic Projects
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1
Index

The Arduino IDE and LED code


To create the LED code, start the Arduino IDE. Then, recall the code you wrote in Chapter 1, Powering on Arduino. The IDE should look like the following screenshot:

In this code, setting led 13 lit the orange LED on the board. It turns out that the led output pin 13 is also the connection to pin 13 on the connector of the Arduino Uno. If you upload and run this program, the LED connected to pin 13 should flash at the same rate as the LED on the Arduino Uno, as shown in the following image:

You'll need to add a similar bit of code to get the LEDs connected to pins 12 and 11. Add the code snippet that can be seen in the following screenshot to the sketch on the Arduino IDE:

Here, you are replicating the code for the led connected to pin 13 to the second led1 connected to pin 12 and the third led2 connected to pin 13. You then program them all to be output pins, and then in the main loop, toggle between high and low. Note that I have two toggling together (pins 13...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Arduino Robotic Projects
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon