Hardware Reference
In-Depth Information
for the i rst time: a protective cover must be placed under the device to protect
it, drivers must be installed, and the optional TFT screen must be placed in the
correct position, to name but a few. Arduino keeps an up-to-date webpage on
the Arduino website at http://arduino.cc/en/Guide/Robot .
The Arduino Robot has two boards, and both are independent. They can be
programmed separately, and both have a USB connector used for program-
ming. Note that when programming the Arduino Robot, the electric motors are
automatically disabled to prevent accidents. In order to fully use your sketch,
you will need to power your device with batteries.
Generally, the control board is the only one that is programmed. The Arduino
Robot has a number of functions that facilitate communication between the
two. It is recommended to i rst use the control board and to program the motor
board only when you are comfortable with the control board. If you make a
mistake, don't worry; the stock motor program is available in the Arduino IDE
as an example. The control board can tell the motor board to perform actions
but also to read sensors on the motor board (like the infrared line following
sensors on the bottom of the motor board).
Robot Library
The Arduino Robot library is a complicated library and depends on a number
of external libraries, mainly for the infrared sensors and audio synthesis. These
libraries have been merged into the Arduino Robot library to save space and
do not need to be added manually. It also depends on some Arduino standard
libraries for use. (Wire and SPI need to be included separately if using the func-
tionality of those libraries.) To import the library, you must i rst decide which
board you will be using because they do not require the same components. To
create a sketch for the control board, add the Robot_Control library in Sketch
Import Library
Robot_Control. This adds the following include declarations:
#include <Fat16mainpage.h>
#include <SdCard.h>
#include <ArduinoRobot.h>
#include <SdInfo.h>
#include <EEPROM_I2C.h>
#include <FatStructs.h>
#include <Fat16util.h>
#include <Fat16Config.h>
#include <Multiplexer.h>
#include <Fat16.h>
#include <Arduino_LCD.h>
#include <Squawk.h>
 
Search WWH ::




Custom Search