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:
[https://www.pololu.com/product/979]
that let
you view the LCD underneath,
[https://www.pololu.com/product/978]
that replaces
the LCD and maximizes prototyping space,
[https://www.pololu.com/product/977]
, and
[https://www.pololu.com/product/976]
The following two pictures show the black version with cutouts mounted on a 3pi robot:
Pololu 3pi Robot User’s Guide
© 2001–2019 Pololu Corporation
10. Expansion Information
Page 61 of 85