With this application you will have a remote control (RC) command via a Bluetooh connection between a mobile device and the Crystalino robot from Complubot, using an HC-05 communication module or similar.
This is a simple application that is framed within the Crystalino robot's activity book, although it can also be used with any other mobile platform based on Arduino, Compluino UNO or similar.
On the main screen you can find five buttons to control the movement of the robot. When pressed they send an ASCII character according to the following list:
- Advance (A)
- Turn left (I)
- Stop (P)
- Turn right (D)
- Rewind (R)
You can also control the lighting of the robot, in the case of Crystalino this is achieved by a Neopixel type LED, although it can be implemented in any other way. This is the color list and the ASCII code that is sent:
- Red (r)
- Green (v)
- Blue
- Magenta (m)
- White (b)
- Black, LED off (n)
Finally, the status of the reflective sensors of the Crystalino robot is shown. These are used for follow-up activities, sumo, take out parts ...
The application updates the reading of these sensors once per second, for this it sends the ASCII characters "d", for the right sensor and "i" for the left sensor. The robot will return the ASCII "0" when a sensor detects white and the ASCII "1" when the sensor detects black.