beautypg.com

Expansion information, A. serial slave program – Pololu 3pi Robot User Manual

Page 47

background image

10. Expansion Information

10.a. Serial slave program

The Pololu AVR library (see

Section 6

) 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:

black with cutouts

[http://www.pololu.com/product/979]

that let you view the LCD underneath,

black without cutouts

[http://www.pololu.com/product/978]

that replaces the LCD and maximizes prototyping space,

red

with cutouts

[http://www.pololu.com/product/977]

, and

red without cutouts

[http://www.pololu.com/product/976]

.

The following two pictures show the black version with cutouts mounted on a 3pi robot:

We also offer a

more advanced expansion kit

[http://www.pololu.com/product/2152]

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

mbed development board

[http://www.pololu.com/product/2150]

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