Altera_Forum
Honored Contributor
10 years agoHC-SR04 (ultrasonic sensor) verilog code help
Hi, for my project i have to interface the HC-SR04 (ultrasonic sensor) to my DE2-115 board. I have been struggling with the verilog code for a while. Can anyone please help me out with the code?
The sensor basically needs to tell me how far an object is and report back stating the distance measured also. I understand that the distance can be found by distance= speed of sound X time duration and i've looked at the HC-SR04 manual for timing of the pulses. Please help :(