Incorrect Distance Readings from HC-SR04 Ultrasonic Sensor on BeagleBone Black
Hey guys based on my question on developing an obstacle detection system using a BeagleBone Black running Embedded Linux using
HC-SR04
ultrasonic sensor to measure distances and displays the measurements on a 16x2
LCD
screen. i was finally able to solve the issue with the lcd screen it turns out it was faulty and i had to change it and is now working smootly, but am having another issue where am getting incorrect distance reading, i know this because from my observations the distance readings are inconsistent and unrealistic, with extreme values and occasional zero readings, please how can i resolve this
here's my code
Solution:Jump to solution
It's likely because of the noise or timing inaccuracies. Try adding a timeout for the echo response
Try if that would work!...
4 Replies
Solution
It's likely because of the noise or timing inaccuracies. Try adding a timeout for the echo response
Try if that would work!
thanks @wafa_ath it works perfectly now
still based on myquestion on developing an obstacle detection system using a BeagleBone Black running Embedded Linux using HC-SR04 ultrasonic sensor to measure distances and displays the measurements on a 16x2 LCD screen, how do i ensure my obstacle detection system starts automatically when the BeagleBone Black boots up
Hey @Boss lady follow this https://stackoverflow.com/questions/28854705/executing-a-script-on-startup-using-beaglebone-black
Stack Overflow
Executing a script on startup using BeagleBone Black
I have an a.out which I want to run when my BeagleBone boots up. It is actually a socket server which I want to start as soon as the BeagleBone powers up. I tried to put this in /etc/init.d, but it...