Interfacing HC-SR04 Ultrasonic Sensor with PIC16F877A

JohnInTX

Joined Jun 26, 2012
4,787
Shopping around for the HC-SR04 reveals that there are numerous cheap Chinese knockoffs which have firmware problems - they don't drop the range output signal if it misses an echo. That would lock up the published firmware. They also apparently don't have the rated range. I'm shocked, I tell you.

Google HC-SR04 over range lockup and you'll get something like this:
https://forum.sparkfun.com/viewtopic.php?t=40513https://forum.arduino.cc/index.php?topic=55119.0
The firmware should take things like this into account but start with a sensor from a reliable source.

Have fun!
 
Top