Multiple PING)) Sensors
bgul
Posts: 6
In my project, I'm using 6 PING)) directed NW-NE-W-E-SW-SE. After a while I realized that they somehow stop receiving signals. When I connect them to power, the lights on top of them still work, but I only get furthest distance.
The possibilities that I thought of are;
1 - Too much power: my source gives 5V all the time, so I don't think that's the case... Also the last one stopped working while it was connected to 5V-out of BS2.
2 - They jam each other: I don't know if this is possible...
3 - Something got wrong with the receivers or signals: I don't know how to check that...
So what could it be? Any of the reasons that I thought of or something else? Also is it possible to fix them somehow?
PS: This is getting costly since I've trashed 7 sensors up until now...
The possibilities that I thought of are;
1 - Too much power: my source gives 5V all the time, so I don't think that's the case... Also the last one stopped working while it was connected to 5V-out of BS2.
2 - They jam each other: I don't know if this is possible...
3 - Something got wrong with the receivers or signals: I don't know how to check that...
So what could it be? Any of the reasons that I thought of or something else? Also is it possible to fix them somehow?
PS: This is getting costly since I've trashed 7 sensors up until now...
Comments
If you connect them to a higher voltage (much above 6V), it's possible to burn them out.
2) If you pulse more than one at a time, they can interfere with each other. Usually that would cause a false "close" reading.
3) They're pretty reliable. How do you have them connected?
I’ve never heard of anyone damaging the PING))) Sensor except for when connecting too much voltage to them (usually using VIN for power). Which BASIC Stamp and development board are you using?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
2 -·Can that cause a permanent damage? Now even if I try them one by one, all I get is
Time (uS)......9751
Inches ........132
which is supposed to be
Time (uS)......1207
Inches ........16
3 - What do you mean by how I connected them? They are soldered to the board on a line, and the 5V is applied to the line. I checked if they all get 5V and I'm positive on that too.
BS2 for sensors right now.
Switched to another BS2 to check if the problem was with the stamp, it's all the same.
I'm running the single working one throught the 5V-out of the stamp, right now, and there seems to be no problem (scared to plug the other ones, but I'll plug them one by one... Hope they'll be fine...)
Post Edited (bgul) : 5/29/2007 6:10:37 PM GMT
Each one has a three-pin connector. That's +5 DC, Ground, and Signal. You can connect the Grounds together, and the +5 together. But each 'Signal' pin has to go to a separate pin of the BS2. And the 'Ground' of the Pings MUST be tied to the ground of the BS2. The +5 of the PINGs does not have to be tied to the BS2. Putting a 10 to 100 uF capacitor between Ground and +5 is also a good idea to filter out noise.
You then use "PULSOUT" followed by a "PULSIN" for each one -- you can't interleave these, or the sound from one Ping will be recieved from another Ping, and your distances won't be accurate.
You can't power the Ping from a BS2 I/O pin -- I hope that's not what you're doing.
I think that was the problem with first 4. But it still happened after I tied all the grounds together.
About the schematic... For signals I had different cable for each. I just draw the first sonar. Think it as there were 6 of them... (Everything is pretty basic.)
I think the code is straight forward.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I updated the file with labels, it's better this way. Anyways, I connected 5 together on the breadboard and they are working fine right now. They get the power from +5V of the BS2. I checked them all and they are getting enough power (4.94 average).
I guess the problem was not connecting them to the ground of BS2 (the last one is still a mystery though).
Thanks to everyone that helped me to figure it out.
It's also possible for the Ping sensor to 'brown-out' the BS2 briefly (for a millisecond or so), by briefly pulling too much current and 'drawing down' the output voltage. There's a voltage comparator on the BS2 which will reset the BS2 in that case.· Note you can't measure this 'brown-out' voltage with a multi-meter, it would take an oscilloscope to see it.
If this is true, it's very simple (and inexpensive) to add an additional LM7805 linear regulator (the TO220 package will provide 1.0 amps) for the Ping sensors, with one input and one output capacitor (as called out in the LM7805 documentation).
I don't really understand this type of stuff, so I have no idea about "100uF 6-10V electrolytic capacitor" or "LM7805 linear regulator." As a quick solution I connected PING)))s to 4AA bateries now, putting out 5.1V. They share the same ground with everything else. Might that cause a problem too, or do I really need to read some about capacitors and regulators?
My problem is not with the BS2 btw. The biggest problem is I have 7 not working PING)))s. And by not working I mean they are not measuring anything. I didn't want to believe that they were completely dead since I can see the light on top of them blinking, but apparently they are dead...
You actually must have the common ground (Vss), if things are going to work. You must NOT have 'common Vdd', or the BS2 is not going to work right.
And a battery makes a wonderful power source, so you probably don't need additional capacitance for that.
The 7 dead Pings are a symptom of something you're doing wrong. We're trying to help you fix what you're doing that's killing Pings, before you kill 7 more. Maybe Parallax can help you with the 7 dead ones.
Oh, and "I don't know too much" about stuff is why Google is around.· Google for LM7805, and read the manual.· As I see it, you have a choice.· You can learn by reading, or you can learn by blowing stuff up.· Either way, there's stuff you'll learn.· One way is cheaper.· So far, if you've really 'killed' those PING's, at $30 each you've spent $210 on your education.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Sorry for the confusion.
And thanks again for suggestions.