Good morning, world!
I am currently doing this project where I need to display the distance of the obstacle from the HC-SR04 Ultrasonic Sensor on an LCD1602 based on this website below
"https://circuitdigest.com/microcont...ing-ultrasonic-sensor-hc-sr04-with-pic16f877a"
However, the sensor could not detect anything and kept displaying a distance range of 60 to 70cm, no matter how near or far the obstacle is.
Then I changed a bit of the coding which can be found in a word file "sr04code.docx".
Still, the sensor could not detect the distance, showing 000
Any idea where did I go wrong in the coding? Any help will be welcomed and Thank you
I am currently doing this project where I need to display the distance of the obstacle from the HC-SR04 Ultrasonic Sensor on an LCD1602 based on this website below
"https://circuitdigest.com/microcont...ing-ultrasonic-sensor-hc-sr04-with-pic16f877a"
However, the sensor could not detect anything and kept displaying a distance range of 60 to 70cm, no matter how near or far the obstacle is.
Then I changed a bit of the coding which can be found in a word file "sr04code.docx".
Still, the sensor could not detect the distance, showing 000
Any idea where did I go wrong in the coding? Any help will be welcomed and Thank you
Attachments
-
16 KB Views: 22