Reference Language | Libraries | Comparison | Changes
The Robot library is included with Arduino IDE 1.0.5 and later. The Robot has a number of built in sensors and actuators. The library is designed to easily access the 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 various sensors and peripherals on the control board :
The library also enables you to do a number of things with the motor board :
For more information about the Robot, visit the getting started guide and the hardware page. Library structureThis 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:
ExamplesThese illustrate the possibilities of the robot to help you get up and running quickly with the basic functionality.
|
RobotControl classThis class commands the Control Board as well as all the I/Os and motors on the Motor Board when it has the stock firmware installed.
RobotMotor classUse this to make your own firmware for the Motor Board.
Read this document to learn about making your own firmware for the motor board using the RobotMotor class. |
Corrections, suggestions, and new documentation should be posted to the Forum.
The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.