Each AVR programmer price her weight in ATmegas is aware of in regards to the AVR Butterfly–a ridiculously low price ATmega169 demonstration and analysis equipment. Lamenting the shortage of such a equipment for the ATmega168 drove me to design my very own demo/eval equipment for the Arduino microcontroller household. This undertaking turned a compulsion that price three full redesigns, 5 destroyed ATmega168s, and a whole bunch of hours of point-to-point wiring. The consequence was Polyphemus–an ATmega168 demo equipment you can construct from your personal spare-parts field.
Named after the attractive large silk moth with massive, colourful “eyespots” on its hind wings (Antheraea polyphemus), in addition to the gigantic Cyclops who tormented Odysseus, this Polyphemus sports activities a number of thrilling options:
- ATmega 168 microcontroller (housed on a Freeduino board)
- shade Nokia 6100 LCD
- two multi-state pushbuttons
- white LED
- piezoelectric buzzer
- 3.7V rechargeable lithium battery
- analog enter connector
- FTDI USB programming connector
- compact 3×3-inch handheld type issue
Through the use of a 3.7V battery to energy Polyphemus, no further energy regulators are wanted. Additionally, no DC-DC increase converter is required for powering the Freeduino and white LED.
The consumer interface for Polyphemus is displayed on the colour Nokia 6100 LCD. Utilizing one pushbutton to maneuver the menu and the opposite to “choose” a range, you may select from three built-in features:
- Flashlight – flip ON/OFF the white LED
- Mild sensor – pattern ambient gentle readings in milliamp items
- Voltmeter – check energy connections ( 5VDC)
TIME: 13 hours
COST: Varies; all new elements $78.60
You possibly can construct this “equipment” from off-the-shelf elements–no printed circuit boards are wanted. Additionally, you may add, substitute, or substitute your personal elements for the elements really helpful in Polyphemus (e.g., in the event you don’t have a white LED, strive one other shade of LED).
- (1) provider board (SparkFun Electronics #LCD-00600; $39.95)
- (1) RBBB Freeduino Equipment Plus (Wulfden at Hawk’s Mountain; $14)
- (1) White LED 10,000 mcd 3.3V ([Mouser #859-LTW-2S3D7; $0.41)
- (1) Ambient gentle sensor ([Mouser #513-NJL#7502L; $0.36)
- (1) 3V rechargeable batteries (SparkFun Electronics #PRT-08818; $4.95)
- (1) 24mm coin cell holders (DigiKey #BH2430T-C-ND; $0.95)
- (1) Yellow SPST swap (DigiKey #401-1984-ND; $0.99)
- (1) Purple SPST swap (DigiKey #401-1985-ND; $0.99)
- I used an out of date DBX-01PN buzzer; do that buzzer, as a substitute: (1) CEM-1201 1.5V buzzer (DigiKey #102-1152-ND; $0.63)
- (2) 10K resistors (Mouser #660-CFP1-4CT52R103J; $0.10)
- (1) 1K resistor (Mouser #660-CFS1-4C102J; $0.05)
- (1) 22-ohm resistor (Mouser #660-CFS1-4CT52R22OJ; $0.05)
- (1) SPDT swap (SparkFun Electronics #COM-00102; $1.50)
- (1) JST proper angle connector (SparkFun Electronics #PRT-08612; $0.95)
- (1) 2-position JST plug housing + pins (DigiKey #455-1165-ND; $0.46)
- (1) Mini hook check connector, pink (DigiKey #461-1014-ND; $1.74)
- (1) Mini hook check connector, black (DigiKey #461-1013-ND; $1.74)
- (1) 2 ¾- x 6 1/16-inch perfboard (RadioShack #2761395; $2.79)
- hookup wire (RadioShack #278-1224; $5.99)
1. Obtain our Polyphemus undertaking archive. Inside this ZIP file you’ll discover supply code, board format info, datasheets, and picture recordsdata.
2. Reduce the perfboard into two items. One piece will maintain the Freeduino, LED, battery holder, and phototransistor, whereas the second piece will help the Nokia shade LCD, pushbuttons, buzzer, analog connector, and energy on/off swap.
3. Mount the Freeduino and help parts on the decrease piece of perfboard.
4. Mount the Nokia LCD and help parts on the higher piece of perfboard.
5. Use small lengths of wire to route connections between the Freeduino, the help componets, and the Nokia LCD.
6. Join the detrimental terminal of the battery holder to at least one terminal of the on/off energy swap. Join one other size of wire from the swap to the Freeduino.
7. Use the free Arduino programming atmosphere for loading the Polyphemus code on the Freeduino.
8. Insert the battery into the battery holder (watch the holder’s polarity!) and activate the facility swap. In a few seconds, the buzzer will beep twice and the principle menu display screen shall be displayed. The whole sketch weighs in at barely lower than 6kb. Be at liberty to guage your personal parts on Polyphemus. Bear in mind to keep away from Port B when including new parts (it’s used for speaking with the LCD). Now don’t let some “geeks” poke your eye out.