User Manual

Programming Orangutans and
the 3pi Robot from the Arduino
Environment
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2. ATmega168/328-Arduino Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.a. Orangutan SV-xx8 and LV-168 Pin Mappings . . . . . . . . . . . . . . . . . . . . . . . . 6
2.b. Baby Orangutan B Pin Mappings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.c. 3pi Robot Pin Mappings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3. Configuring the Arduino Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4. Using the Arduino IDE: Blinking an LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5. Arduino Libraries for the Orangutan and 3pi Robot . . . . . . . . . . . . . . . . . . . . . . . 28
5.a. OrangutanAnalog - Analog Input Library . . . . . . . . . . . . . . . . . . . . . . . . . 30
5.b. OrangutanBuzzer - High-Level Buzzer Control Library . . . . . . . . . . . . . . . . . . 35
5.c. OrangutanLCD - LCD Control Library . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
5.d. OrangutanLEDs - LED Control Library . . . . . . . . . . . . . . . . . . . . . . . . . . 52
5.e. OrangutanMotors - Motor Control Library . . . . . . . . . . . . . . . . . . . . . . . . . 55
5.f. OrangutanPushbuttons - Pushbutton Interface Library . . . . . . . . . . . . . . . . . . 60
5.g. Pololu3pi - Sensor Library for the 3pi Robot . . . . . . . . . . . . . . . . . . . . . . . . 63
Programming Orangutans and the 3pi Robot from the Arduino
Environment
© 2001–2019 Pololu
Corporation
https://www.pololu.com/docs/0J17/all Page 1 of 66

Summary of content (66 pages)