Hello,
I have just received my first EZ-Robot order and it was great to see how fast it was to get the camera up and running. Unfortuantely, my ultrasonic sensor does not appear to be working.
It looks like I have the same problem as here:
http://www.ez-robot.com/Community/Forum/Thread?threadId=6087&page=3
I can see the LED is on in the in-line voltage regulator and I've metered the digital control pins with a meter and see that I can set the values [ set (D10,on) for example), so it looks like the EZ-B is fine.
Can you help with confirming the green and white wire connections (which is signal and which is read) or let me know of anything else that I could be wrong? (The exchange department mentioned I needed to post here before going further)
Thank you,
Dan
Asked
— Edited
In this example the Trigger is connected to Port D0 and the Ping is connected D1
If it detects something within 65mm servo D22 should move to Postion 13
Code:
You might have switch the Trigger and Ping wires around.
1) Ground = Black wire to D10 black pin (regulator)
2) Power = Red wire to D10 red pin (regulator)
3) Trigger = white wire to D10 White pin
4) Echo = green wire to D11 White pin
Click here and scroll down to the "Six-Distance sensor" project which is second from the bottom and download it. Adjust the digital ports in the ARC project to what you have your ping sensor connected to (in your case, D10 and D11 for echo).
I keep a couple of spares and would send you one but the postage from the US to Australia is far more than the part is worth.
Alan
Thanks for the offer - in fact I think this just shows how remarkable the forum is for this kind of help to be given. In fact I bought 4 and 3 of them are working fine so I have more than enough. Happily they come with the voltage regulator already wired in so there should be no problem with the voltage.
This is not the problem with the faulty sensor but do they only work on certain connections to the EZ-B? I can't get any of my ultrasonic sensors to work on D23 and D22 but they spring into life on D7 and D8. I can't see that this is likely to be right but I think it is worth asking.
Also I notice that sometimes servos and motors on the roli don't work until you play with the controls and then all is good again. Is this normal?
I am having fun and certainly much more fun that work !
Cheers from sunny Sydney
Chris
Very rarely I have the issue where Roli is unresponsive until restart him. Usually when the battery is starting to get low but before the low battery alert goes off.
Alan
If you use the Roli with the ARC Example Project you'll notice that there is an initialization script that activates the H-bridge. If you start from scratch and don't include this kind of script you'll have to move the PWM sliders at least once to activate the H-Bridge functions.
I thought this was looked at by @DJ a little while back but yeah I've verified that the only 2 ports the ultrasonic doesn't work on are D22 and D23. I'm sure this is on his list of things to do already but it's a good reminder. Thanks @ZebraStripes for the heads up!
I have some SRF08 sensors around, but they'd require doing a different control since they are strictly I2C driven.