PING))) sensor reading same values...
hoxie08
Posts: 2
I have a PING sensor hooked up on my basic stamp II. I have used the sample code and SOMETIMES the sensor works and will read accurately, but the majority of the time the sensor will just read 5 or 6 inches but will read accurately between the 2-6" range. It is basically useless at such a close range as my robot just crashes into objects before the sensors can detect it. Anyone have any ideas on this? Like I said I have used the code straight from Parallax and those are my results, maybe a faulty chip since it *occasionally* will read correctly? I have tried it in different rooms and locations to see if it was just interference but I get the same results..
Also, there are no objects in the way of the sensor, so I am not quite sure where it comes up with the 6" distance value.. for example if I point it up at the ceiling it will tell me 6" and then intermittently jump to the correct value (114") then go right back to 5-6"
Post Edited (hoxie08) : 7/18/2010 12:06:33 AM GMT
Also, there are no objects in the way of the sensor, so I am not quite sure where it comes up with the 6" distance value.. for example if I point it up at the ceiling it will tell me 6" and then intermittently jump to the correct value (114") then go right back to 5-6"
Post Edited (hoxie08) : 7/18/2010 12:06:33 AM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
-Phil
Good luck,
Duffer
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Any technology, sufficiently developed, is indistinguishable from magic.· A.C. Clark(RIP)
This would allow you to at least temporarily mount the Ping elsewhere and verify it's operation.
I don't know what else you're providing power for, but one of the "features" of the homework board is that it only supports the 9 volt battery. If you have a lot of stuff hanging on the board, or something that draws a lot of current, the power could be (but likely is not) the problem.
I suspect that your Ping))) is indeed seeing "something". The Ping can only report the closese object it gets an echo from, and ultasonic waves can sometimes be tricky in what they reflect off of, and what kind of interferrence patters are set up by nearby objects.
If you can re-mount, that would be your best bet for trouble shooting.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
Click here to see my Nomad Build Log