
unclemike

UncleMike here again;
I am having a problem (yes I read the post by angpal59, and have not found any other posts relative to this ) getting a signal from my ping unit.
I have hooked a 3 wire connector (as supplied in the kit blk,red,wht) black-5v, red- grd. white to trigger and a separate white to echo (by the way DJ in the ultrasonic tutorial video says the middle pin is ground but that is not how the board is labeled) I have set the trigger to D0 and the echo to D1 and the servo to D2, (servo responds correctly)
the panel shows the changing servo settings but the distance shows 20 and does not change when I change the distance my hand is in front of it, nor does the graphic show "pings"
Any ideas?
UncleMike
5 volts at the board and at the SR01. all solder joints solid, I only use 60/40.
Also tried a Sharp 2D120X IR unit it works in collision mode stopping the servos but in ir radar mode I get very strange results (in mm maybe?) and does not interact with the servo movement panel.
label me confused
UncleMiike
PS can a parallax ping (3pin) be used with the EZ-B?
keep in mind that on the EZ-B board, it goes as Ground, 5v + , trigger ( D1)
Echo (D2)
On the ultrasonic sensor the inputs are Ground, Echo, Trigger VCC
I assume you use a normal 3 wire connector without modifying it. So you had
Ground to ground ( D1)
5V + to echo ( D1)
trigger to trigger ( D1)
Echo to VCC ( D2)
Above it where you probably burn your sensor
it should had been
Ground to Ground ( D1)
5V to VCC ( D1) Modify wire connector here
trigger to trigger ( D1)
echo to echo ( D2)
I am at work, can't really give you a visual image, if still need help later, will post visual.
If you have Echo and Trig backwards it will read 255.
If it's not detecting anything (i.e. broken echo or trig wires, cold solder joints etc.) it will read 255.
Reading 20 indicates that the sensor is damaged or there is a short.
And @UncleMike, are you asking if theres a way to use only one port on the ez-b for the ping sensor? Unless your a programmer, no. The ARC control requires one port giving the trigger and another giving the echo.
And no, the ping sensor requires 2 digital ports (even if you're a programmer). You can get single port sensors but they aren't used often and aren't supported by the native controls.
On the IR question any ideas as to why I get strange readings in IR radar mode (works fine in collision mode)?
UncleMike
Daylight is the enemy when it comes to IR. It can cause weird readings.
Sharp 2d120x
UncleMike
Rich thanks for the info.
Marking complete.
UncleMike