Building Arduino Projects for the Internet of Things

(Steven Felgate) #1
CHAPTER 1 ■ ARDUINO BASICS

Arduino Code Execution


Start your Arduino IDE and either type the code provided in Listing 1-1 or download it
from book’s site and open it. Click on the Verify button to compile and check the code.
Next, using the USB cable that came with your Arduino, connect your Arduino to the
computer that is running Arduino IDE.
Once Arduino is connected to your computer, as shown in Figure  1-7 , click on
Tools ➤ Board and select Arduino Uno (or whichever board you are using). This informs
Arduino IDE about the board where the code will be uploaded.


Figure 1-7. Select the Arduino board

Free download pdf