AI Support Bot
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.
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.
Upgrade to ARC Pro
Your robot can be more than a simple automated machine with the power of ARC Pro!
It has 5 connections 1 of which is not used and seems to work just as well
(wrong way = signalwire (the white/yellow one) facing the inside of the EZ-B)
Yet the notepad says D4 for the trigger and no port for the echo?
Sorry didnt see that D5 for the echo
Have you tried another ultrasonic control just on its own like Ping distance?
what reading do you get when you hold your hand right in front of the sensor?
Also, I'm pretty sure I read that voltage is very important with these things, make sure you are supplying enough power to the EZ-B to ensure a constant 5V from the digital ports. Hook up a flylead from VCC of any digital port to signal of an ADC and read the ADC to check the voltage if you don't have a meter.
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.