2 | Page
Contents .......................................................................................................................... 2
1 Introduction ........................................................................................................................................ 3
1.1 Identify ......................................................................................................................................... 3
1.2 Comparison ................................................................................................................................. 4
1.3 Vext ............................................................................................................................................... 4
2 RS232/UART .................................................................................................................................... 4
2.1 Atmega-328 & Pi UART ........................................................................................................... 5
2.2 Atmega-48 UART ....................................................................................................................... 5
3 Atmega-328 ..................................................................................................................................... 6
3.1 Features ....................................................................................................................................... 6
3.2 Program the Atmega-328 ....................................................................................................... 6
3.3 Usin g /running th e Atmega-328 ............................................................................................ 7
4 Atmega-48 ........................................................................................................................................ 7
4.1 Features ....................................................................................................................................... 7
4.2 Program the Atmega-48 ......................................................................................................... 7
4.3 Usin g /running th e Atmega-48 ............................................................................................... 8
4.4 Real Time Cloc ........................................................................................................................... 8
4.5 Infra-red recei ver/remote control recei ver ....................................................................... 8
4.6 Battery Drain .............................................................................................................................. 9
4.7 Atmega-48 L ED tr i ck .............................................................................................................. 10
5 Connectors ...................................................................................................................................... 10
5.1 Alternate functions. ................................................................................................................ 10
5.2 Atmega-328 .............................................................................................................................. 12
5.3 Atmega-48 ................................................................................................................................ 14
5.4 Raspberry-Pi ............................................................................................................................. 15
6 F req uently Asked Questions (FAQs) .................................................................................. 16
7 How to start ................................................................................................................................... 17
7.1 On the Raspberry-Pi: ............................................................................................................. 17
7.2 On a PC ...................................................................................................................................... 17
8 Example programs ...................................................................................................................... 19
8.1 Atmega-328 .............................................................................................................................. 19
8.2 Atmega-48 ................................................................................................................................ 22
9 C ont rol Arduino Reset ............................................................................................................. 265
10 Appendix A : GertDuino Schematic ..................................................................................... 26