Download Print this page

Sparkfun Electronics RedBot Getting Started page 11

Advertisement

What's the fun of a robot that doesn't make beep-beep noises? We've made the RedBot Buzzer
board to fit nicely on any header on the board, so you can integrate noise with your robot either just
for fun or as a nice remote feedback function.
There's no special library support needed; just use the
Arduino. One note: you can't use the Buzzer board on pins A6 and A7, as they are analog input-
only pins.
Arduino Library
To help you make getting your robot moving as easy as possible, we've written an Arduino Library,
which can be downloaded
We'll see them in action later, with an example sketch. If you need a refresher on how to install an
Arduino library, please see our
RedBot SoftwareSerial
The RedBot library includes a re-implementation of the SoftwareSerial library that comes with
Arduino. This was necessary to integrate the other sensor functions with the interrupts that drive the
SoftwareSerial library.
If possible, it's best to use the hardware serial port for interfacing with the XBee. There may be
times where that is undesirable, however, so software serial support is provided.
For the most part, RedBotSoftwareSerial behaves just like normal SoftwareSerial, with a couple of
exceptions:
You no longer have a choice of which pins to use--the library always uses A0 and A1, which
are the pins connected to the XBee module footprint.
here. Here's a walk-through of the commands that the library provides.
library
tutorial.
Page 11 of 19
family of commands already built into
tone()

Advertisement

loading
Need help?

Need help?

Do you have a question about the RedBot and is the answer not in the manual?