Log in

View Full Version : Sonar not responding


arithehun
16-01-2014, 20:27
We are trying to use the HC-SR04 Ultrasonic range finder. However, it is not working. Our wiring successfully wires the two signals to separate ports. Our code is attached.

Joe Ross
16-01-2014, 20:46
What ultrasonic rangefinder are you using?

arithehun
17-01-2014, 20:24
The HC-SR04.

BradAMiller
19-01-2014, 08:48
I believe that your rangefinder is the same design as the Daventech SRF04 model and works with WPILib as described here:
http://wpilib.screenstepslive.com/s/3120/m/7912/l/85774-measuring-robot-distance-to-a-surface-using-ultrasonic-sensors

Be careful, it has two connections:

Echo pulse output: Causes the sensor to send an ultrasonic "ping"
Trigger pulse input: listens for the echo to return

Be sure to connect it as described in the documentation.