Skip to content
Join our telegram channel, click this bar now!
Join our telegram channel, click this bar now!
Ultrasonic Distance Sensor

Ultrasonic Distance Sensor

Components Required:

  1. Raspberry Pi 3 B+
  2. SD Card
  3. Micro USB Cable with Adapter
  4. Monitor with HDMI cable
  5. Mouse and Keyboard
  6. Breadboard
  7. 4 Jumpers
  8. 2 , 330ohm resistors
  9. Ultrasonic Distance Sensor (HY-SRF05)

Step 1: Connect Ultrasonic Sensor on Breadboard

Step 2: Connect Vcc and Gnd to Raspberry Pi

Step 3: Connect echo pin to GPIO17 through two 330ohm resistors

Step 4: Connect trigger pin to GPIO4

Step 5: Power up Raspberry Pi and program in python

The source code for the project can be found here


Author: Nakul Garg

Previous article Analog IR Distance Sensor
Next article Setup Raspberry Pi

Leave a comment

* Required fields

Welcome Newcomer