I have a GrovePi with an ultrasonic ranger (V2.0) The ranger works for a while then stops. The transmitter is hot to the touch. This happens with another ranger that I also have. While connected and not working the ranger continually returns 515 as the distance.
Here is the log from the test suite: log.txt (5.9 KB)
Do you think you can give our beta version a shot and see if this problem with the ultrasonic sensor persists?
Lots of things have changed in this new version and I wouldn’t be surprised to see the sensor working on this.
By the way, the ultrasonic sensor breaks after a while, we don’t know why exactly and that’s why we designed our own distance sensor. Anyway, in my experiments, if I remember correctly, a warm ultrasonic sensor to touch is a sign of an imminent failure. So the problem could also stem from the sensor and not the GrovePi.
We could go to the other extreme and change the delay to a higher value - upping it from 0.2 seconds to 0.7 seconds. And then see if anything changes.
Either way, I think both of your ultrasonic sensors are bad. I’d have them replaced - an ultrasonic sensor never gets hot and when it does it’s mostly because of a malfunction.