need help with ping sensor
hummelm
Posts: 3
i have been trying to use the ping))) sensor with the usb propeller, i have tried to get it to work with a demo ping program and i have tried to get it with one i wrote and no matter what i try i cannot get the ping sensor to turn on and work. i attached a modified program that i made·and i was wondering if someone could help me by looking at my program and telling me if there are any problems with it? please, i need the sensors to work for a school project that i am doing.
Comments
It might be helpful if you described the board you are using to connect it to (and how), or even better still a picture. I have used a Ping with a prop like a zillion times on robots, it works great. Let me help you make it work.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Robots
If you mean the usb protoboard, then in the top right corner there are four sockets for servos that you can hook into the regulated 5v supply. This is a great way to run a ping sensor.
The two big things to be concerned with a Ping in my experience is don't hook it to a circuit with too much voltage. I have wrecked a couple by hooking them directly to a 7.2v battery. The second thing is that like servos they can cause a brown out if you have low battery or weak power supply. If you burn out a Ping from too much voltage, it will not light up when it gets a signal and it has the appropriate power. It will also not light up if it is not getting enough power. If you have a brown out, your code will load, run, and at the moment the Ping is about to fire your program will reset (assuming there is something in EEPROM).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Robots
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My wife is very, very understanding