Arduino Robot Library


The Robot library is available from Arduino IDE version 1.0.5. The Robot has a plenty number of built in sensors and actuators. The library features easy access to these robot's functionality. The robot has two boards: a motor board and control board. Each board has a separate programmable processor. The library allows you to interface with the sensors and peripherals available in the control board. The following list shows what's available: *potentiometer *5 momentary switches *160x120 pixel color screen *512Kbit EEPROM *speaker *compass *3 I2C connectors *8 TinkerKit input connectors The following list shows what the motor board contains: *control motor speed and direction *sense the current used by each motor *read the state of the 5 floor sensors (also known as line detection sensors) *access I/O pins on the board *control an I2C port *read the state of 4 TinkerKit inputs For more information about the Robot, visit the getting started guide and the hardware page.

Library structure

This library enables easy access to the functionality of the Arduino Robot. It relies on a number of 3rd party libraries including Fat16, EasyTransfer, Squawk, and IRRemote. It also relies on a number of Arduino libraries like TFT, SPI, and Wire. Their functionality has been replicated inside the robot's library to optimize the code's size. It is possible to program both the Control and the Motor boards. However, it is recommended that novice programmers begin with programming the control board, leaving the motor board for later. The library exposes the sensors on both boards through a single object. There are two main classes that command the robot: ''RobotControl'': commands the Control Board as well as the I/Os and motors on the Motor Board, when running the default firmware. ''RobotMotor'': commands the Motor Board. Use it to make your own custom version of the Motor Board firmware.

Related Functions



Based on the reference originally written by Arduino Community, and