PING returns MAX value all the time.
Mojotexas
Posts: 2
Hi, I have a PING sensor plugged into an Arduino.
I have used this sensor successfully in the past, I don't know why it stopped working, but now when I run the Arduino basic PING sketch, the PING only returns the MAX value of 145in, regardless of what is in front of it.
I took everything else out of the circuit so the PING is the only thing plugged into the Arduino. 5v, GND, and SIG are plugged into the appropriate pins.
The ACT LED light on the front is blinking green, everything looks fine, and the same configuration and sketch has worked in the past. What could be the issue.
thanks for the help with a n00b question,
MT
I have used this sensor successfully in the past, I don't know why it stopped working, but now when I run the Arduino basic PING sketch, the PING only returns the MAX value of 145in, regardless of what is in front of it.
I took everything else out of the circuit so the PING is the only thing plugged into the Arduino. 5v, GND, and SIG are plugged into the appropriate pins.
The ACT LED light on the front is blinking green, everything looks fine, and the same configuration and sketch has worked in the past. What could be the issue.
thanks for the help with a n00b question,
MT
Comments
https://sites.google.com/site/parallaxinretailstores/home/ping-ultrasonic-distance-sensor
Just to take your USB power out of the equation, plug in an external 9V power supply to the Arduino, and also try it that way.
-- Gordon
I took both your advice. Rebuilt the circuit and checked the Code. Used Gordon's code. Still no love. Followed Mike's advice and talked to PING support, who offered to take it in for testing. Instead, I just brought it down to the Radio Shack where I bought it and exchanged it. (not perfectly within the rules, luckily the RS employee was a robot hacker).
New sensor works just fine. Old sensor must have been broken or defective.
Now I am wondering if there is any reason to protect the PING sensor in circuit with resistors, diodes, etc.? And, if so, what do you recommend?