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

Secure Checkout

We are PCI-DSS compliant and use 256 bit SSL encryption.

Instant Dispatch

99% of our orders are shipped within 24 hours.

Bulk Orders

Use the contact form for bulk order quotes.

Call us (Weekdays)

+91 93183 94903
American Express Diners Club Maestro Mastercard Visa