6.j. Orangutan Serial Port Communication Functions

Overview

This section of the library provides routines for accessing the serial port (USART) on the 3pi Robot, the Orangutan LV-168, and the Baby Orangutan B. The functions were designed for use in master/slave control of the 3pi, but they can be used in many other applications.

The serial port routines normally use the USART_UDRE_vect and USART_RX_vect interrupts, so they will conflict with any code that also uses these interrupts.

Complete documentation of this library’s methods can be found in Section 9 of the Pololu AVR Library Command Reference.

Usage Examples

Example code for making the 3pi Robot into a serial slave, controlled by another microcontroller, is given in Section 10.a of the Pololu 3pi Robot User’s Guide.