Shuffle Robot – Coding

Shuffle robot is a very simple (if not to say primitive) construction of a walking robot. Its whole movement relies on one servo motor so it will not be very effective nor fast. We should rather treat him as an experiment: how to build the simplest walking robot possible.

Connecting electronic modules

  1. Connect distance sensor with its cable to the dedicated port on LOFI Brain labeled as DISTANCE. This port is polarised so the plug has to be set in the right direction – put the blue wire on the side of M1 socket and the red wire on the side of INPUT4 socket.
  2. Connect the servo motor to OUTPUT1.

The Code