Expansion information, A. serial slave program – Pololu 3pi Robot User Manual
Page 47
10. Expansion Information
10.a. Serial slave program
The Pololu AVR library (see
) comes with an example serial slave program for the 3pi in
libpololu-
avr\examples\atmegaxx8\3pi-serial-slave
, and a corresponding serial master program in
libpololu-
avr\examples\atmegaxx8\3pi-serial-master
. This example shows how to use a ring buffer in SERIAL_CHECK
mode to continuously receive and interpret a simple set of commands. The commands control various features of
the 3pi, making it possible to use the 3pi as a “smart base” controlled by another processor. It is easy to add more
commands yourself or adapt the library to work on a different board.
Note that we offer several basic expansion kits on which you can mount such a secondary microcontroller and
additional electronics:
that let you view the LCD underneath,
that replaces the LCD and maximizes prototyping space,
, and
The following two pictures show the black version with cutouts mounted on a 3pi robot:
We also offer a
that lets you turn your 3pi robot
into an m3pi robot. The m3pi expansion kit has sockets for additional electronics, making it simple to significantly
increase the capabilities of your 3pi. One socket let’s you use a powerful
as a high-level robot controller (by issuing serial commands to the 3pi base while it
is running its serial slave program), and another socket can be used for a the easy addition of a wireless serial module
Pololu 3pi Robot User's Guide
© 2001–2014 Pololu Corporation
10. Expansion Information
Page 47 of 63