In this tutorial, we show how to send short command messages to REOBoard from an Android application.

About the default firmware messaging

This application communicates with REOBoard's default firmware. If you have tried other programs, the default firmware has been erased. In this case, you have to restore the default firmware as explained in REOBoard's user manual.

REOBoard's default messaging is rather simple.Reoboard accepts short messages as follows

Byte Meaning Observations
Byte 1 Message length Usually 5 except for reset message (2)
Byte 2 Command type 0 = reset, 1 = motor, 2 = servo
Byte 3 Target ID Binary exclusive (0x01, 0x02, 0x04, 0x08, 0x10, 0x20
Byte 4 Parameter MSB  
Byte 5 Parameter LSB  


The program

This program has been cut to its very minimal possible configuration. Most of the program is Bluetooth related. We show how to establish a Bluetooth connection with REOBoard. Then we also show how to catch a value from a slider and to send it to REOBoard which will control motor 1 accordingly.

The sample code

This code has been made from a more complex application which controls all motors and servos, which was formerly developed by Marc-Antoine Taupenot during his internship. It can be downled from here.

NB: I'm trying to find a way to link the Android project to this page. Stay tuned or come back within a day or 2.