Hardware Reference
In-Depth Information
fclose ( fp );
return atoi ( output );
}
Connecting an LCD Character Display
What good is this information if it can only be seen in the serial monitor? Let's
hook up an LCD display to print out this information.
In addition to the parts you've been using, you'll also need:
• A standard 16x2 LCD character display (such as Makershed.com part
number MKAD30, Adafruit.com part number 181, Sparkfun.com part
number 00255)
• Breadboard (Makershed.com part number MKEL3, Adafruit.com part
number 64, Sparkfun.com part number 12002)
• Jumper wires (Makershed.com part number MKSEEED3, Adafruit.com
part number 758, Sparkfun.com part number 08431)
• 10k ohm potentiometer (Adafruit.com part number 562, Sparkfun.com
part number 09288)
To connect the LCD to Galileo:
1. Disconnect your Galileo board from your computer's USB port and from
power.
2. Insert the LCD into the breadboard (solder header pins onto it if neces-
sary).
3. Insert the potentiometer into the breadboard as well.
4. Using jumper wires, connect the potentiometer and LCD to Galileo's
power and ground as shown in Figure 6-5 .
5. Using jumper wires, connect the LCD data lines to Galileo's digital pins
as shown in Figure 6-6 . Your project might look something like
Figure 6-4 .
6. Connect power to Galileo.
7. Connect Galileo to your computer via USB.
8. Upload the code from Example 6-9 .
 
Search WWH ::




Custom Search