Robocat – Coding

How to write a program for controlling the movement of the Robocat.

Connecting electronic modules

1. Connect the motors to the M1 and M2 ports of the LOFI Brain. Make sure the small metal walls inside the pins of the motor cables are facing the plastic walls of the pins on the controller.

2. Connect the powerbank to the micro USB slot on the Adapter.


3. Connect the distance sensor to the corresponding slot on the Adapter. Make sure you have connected the pins VCC, TRIG, ECHO and GND as shown in the picture below.


4. If you are using a Bluetooth module, connect it to the corresponding slot on the adapter. Make sure you put the module in the right direction, see the picture below.


The Code

  1. You can steer your Robocat the same way as the Rover. See instructions.
  2. You can also program your Robocat to avoid obstacles: