Hobbit
Connecting the HC-SR04 sensor
(click on image for larger version)
I used four jumpers to connect the HC-SR04 ultrasonic range sensor to Pi Droid Alpha.
- Vcc goes to 5V from the Raspberry Pi
- GND goes to GND on Pi Droid Alpha
- TRIG should be connected directly to a Raspberry Pi GPIO pin on the 26 pin header
- ECHO must be connected to one of the “SERVO” three pin headers on Pi Droid Alpha
If you would like to read more about the HC-SR04 sensor, and how to connect it to a Raspberry Pi, see my HC-SR04 distance sensor interfacing with C and Python article.
I plan to update this article next week with some sample code, and the new simple motor control API I am testing for Pi Droid Alpha’s PDALib.
Until then, you can connect an hdmi monitor, keyboard and mouse, and get WiFi running with Hobbit in client mode – I will show you how to get Hobbit to be his own hotspot later 🙂