Ultrasonic Radar icon Ultrasonic Radar Ultrasonic on a servo sweeps 180°; radar shows distances and obstacles, integrates with movement panels for automatic avoidance, scriptable GetPing Try it →
Canada
Twitter YouTube GitHub
Asked — Edited

HC-SR04 Ping Sensor

This tutorial demonstrates how to wire a HC-SR04 Ping Sensor to the EZ-B for use with the SDK or ARC software.

This sensor is very affordable compared to the Sharp IR Distance Sensor. They are going for around $14 USD shipped off ebay.

Ebay Link

Gnd = black Pos = red Signa = white (or sometimes yellow)

For this sensor, you will need 2 servo cables. One set of wires on the cable will be used for Positive, Gnd and Trigger. Only the Signal wire will be used on the second cable to connect to Echo.

The Gnd and Pos on the second cable can be cut because they will not be used.

User-inserted image

User-inserted image


ARC Pro

Upgrade to ARC Pro

Don't limit your robot's potential – subscribe to ARC Pro and transform it into a dynamic, intelligent machine.

Author Avatar
Germany
#17  

I have the same problem here. Double checked and treiud everything in the thread, no change. Maybe sensor is defect?

Update: Received new sensors today (ebay 9 EURs for 5 sensors) and it works now.