Chapter 1. Hello Arduino
Figure 1.1. Board layout and pins of the Arduino Uno
Figure 1.2. The Arduino Mega pins and layout; note the additional input-output pins and the extra serial ports compared to the Arduino Uno.
Figure 1.3. The LilyPad Arduino is suitable for sewing onto fabric, and there’s a range of sewable accessories available.
Figure 1.4. LED inserted between pin 13 and GND. Note that the shorter leg is connected to GND.
Figure 1.5. In this example, the Duemilanove has been selected, but you can see there’s quite a list to choose from.
Figure 1.6. Select the correct serial board from the list.
Figure 1.7. Click the upload button to upload the sketch to the Arduino.
Figure 1.8. A typical sketch with the buttons and areas of the screen labeled
Figure 1.9. The serial monitor showing the output from an Arduino printing out an ASCII table
Figure 1.10. The code editor reports an error we’ve introduced into the code. The code checker indicates which line it thinks the error is on, as well as what it expected.
Chapter 2. Digital input and output
Figure 2.1. The components required to complete this tutorial
Figure 2.2. Breadboard layout: the sockets in the top and bottom two rows are connected horizontally; the other sockets are connected vertically with a break in the center of the breadboard.
Figure 2.3. Schematic diagram showing Arduino connected to five LEDs
Figure 2.4. Making connections to the first LED with a currentlimiting resistor and pin 12 of the Arduino