Documentation

Arduino API

The Arduino that came as part of your kit was shipped with a firmware that provides the functionality outlined in the Arduino API page. You may wish to use the Arduino as is, extend the functionality of this firmware, or completely replace it. You can also add your own Arduinos, or other boards, to the kit, running either our firmware or your own.

The sr.robot3 library provides support for using the Arduino in three possible configurations:

  1. Default SR firmware: The firmware that is shipped on the Arduino by default. This firmware provides basic functionality to read the digital and analog values of pins and output digital on/off signals.
  2. Extended SR firmware: Firmware that adds extra commands to the default SR firmware. These extra commands can perform actions such as reading a sensor or measuring pulses on a pin.
  3. Completely custom: Either any firmware that is not derived from the SR firmware or any other serial device can be connected to via this method.

By default, the sr.robot3 library assumes that all connected Arduinos are running the SR firmware or firmware which is compatible with the SR Arduino firmware. If you’re using completely custom firmware, you’ll need to tell the kit to ignore the device so that you’re able to define your own setup logic.

If you have installed custom firmware onto the Arduino and want to reset it back to its original state, you can download the source code for the stock firmware and then load that back onto the Arduino.