Asked
— Edited
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.
Ok thats good looks like your wiring is correct then
Have you tried another ultrasonic control just on its own like Ping distance?
Yes I have and it is only ready a set value of 20, nothing else. I have tried adding a bunch of object different shapes, size and colors. Still nothing confused stress
Err sounds like you are talking about the camera control?
what reading do you get when you hold your hand right in front of the sensor?
still reading at 20, nothing change. I am about to use servo wires, what i have learn so far "never assume".
Still No luck, I'll just wait for the new ones to come in stress
What cables are you using? I found an old topic a few weeks back about poor quality extensions causing problems with the ultrasonic sensors, it may pay to try better quality cables. 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.
I switch to bench power supply and is reading a little above 5V.
You need to try a new sensor then and be careful when soldering the fly leads dont get the pins on the sensor too hot