Elf – 2WD Pi Robot

Connecting the Motor Controller

Elf L9110S connections

(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.

Elf L9110S

(click on image for larger version)

Connecting the HC-SR04 range sensor

Elf HC-SR04

(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

Elf HC-SR04

(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!

Article Index

  1. Meet Elf
  2. Power supply & Development
  3. Building Elf: RoboPi, Servos, Sensors, Analog In
  4. Connecting the Motor Controller & Range Sensor, Sample Code & more
  5. Adding a Raspberry Pi Camera to Elf
  6. Installing & Using MJPG-Streamer
  7. Raspberry Pi Camera h.264 Streaming from Elf

Pages: 1 2 3 4 5 6 7

If you liked this article, please help us grow! "Like" us and let your friends know with the Twitter and Facebook buttons at the top left - We appreciate your support!