SMILEY’S WORKSHOP ☺
■ FIGURE 7. ATmega328
port pin label.
■ FIGURE 5. LCDNAV wired to Arduino.
• CTR Pin 8
• DWN Pin 10
• RGT Pin 9
Navigator Buttons:
Hardware
You can use this with the
Arduino as shown in Figures 3, 4,
and 5 or you can use the
BreadboArduino that we used in
Workshop 41 (December ‘ 11).
[You can purchase the
BreadboArdino chaser lights
project kit from the Nuts & Volts
webstore.] Please keep in mind
that even though we demonstrate
the LCDNAV board using Arduino
compatible hardware, we will use
code that is regular C using the
regular free AVR C tools:
AVRStudio, WinAVR, and
avrdude. (Please note that this
was tested with AVRStudio 4, not the latest version 5 that
according to the buzz on AVRFreaks is not ready for
prime time.) To help wire this thing up, I’ve generated a
label for the ATmega328p shown in both Figures 6 and 7
that you can print out and put on the chip using double-sided sticky tape. You can get this in avrtoolbox at
\testers\nav_buttons\ atmega328_label.doc.
■ FIGURE 6. LCDNAV with the BreadboArduino.
those parts that were specific to the chaser lights. (Ouch! I
know, but see the end of this Workshop for a PCB
solution to your loss.) Figure 8 shows the BreadboArduino
schematic and Figure 9 shows how you’ll wire up the
LCDNAV connections to the ATmega328p on the
breadboard. You saw how this should look in Figure 6.
Good luck! LCDNAV wiring to the ATmega328 on the
BreadboArduino is as follows:
Wiring LCDNAV to the
BreadboArduino
Now, get out the BreadboArduino chaser lights
project that you did a few weeks back and pull off all
• DB7 Pin 4 (PD2)
February 2012 61