Hobbit


Connecting the HC-SR04 sensor

Hobbit @ https://Mikronauts.com
(click on image for larger version)

I used four jumpers to connect the HC-SR04 ultrasonic range sensor to Pi Droid Alpha.

  1. Vcc goes to 5V from the Raspberry Pi
  2. GND goes to GND on Pi Droid Alpha
  3. TRIG should be connected directly to a Raspberry Pi GPIO pin on the 26 pin header
  4. 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 🙂

Pages: 1 2 3 4 5

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!