Elf – 2WD Pi Robot
Connecting the Motor Controller
(click on image for larger version)
L9110S Board | RoboPi |
GND | GND |
VCC | VBAT |
B-IB | Servo15 |
B-IA | Servo14 |
A-IB | Servo13 |
A-IA | Servo12 |
NOTE: the above motor controller connections are different from that shown on the previous pages.
(click on image for larger version)
Connecting the HC-SR04 range sensor
(click on image for larger version)
You can see the colour of the jumper wires used to connect to the pins on the HC-SR04 ultrasonic range sensor in the photo above.
HC-SR04 | RoboPi |
GND | Sensor1 GND pin |
Trig | Sensor1 EXP pin |
Echo | Sensor1 SIG pin |
VCC | Sensor1 Vcc pin |
(click on image for larger version)
On the right of the photo above, you can see where the colour jumpers from the HC-SR04 sensor connect to the SENSOR1 pins and the Exp pin.
Sample Code
The “RoboPi Elf Test” zip file above contains some helper functions and shows how to use the Python interface to RoboPi to program Elf.
I plan to add more examples in the near future!