View Single Post
  #1   Spotlight this post!  
Unread 19-01-2008, 11:56
the401tauntaun's Avatar
the401tauntaun the401tauntaun is offline
The Tauntaun
FRC #0401 (Hokie Guard)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Blacksburg, VA
Posts: 3
the401tauntaun is an unknown quantity at this point
Send a message via AIM to the401tauntaun
SRF04 Ultrasonic Rangefinder Unresponsive

we are using the Devantech SRF04 Ultrasonic Rangefinder. We have sent a 5v pulse to the input pin, and verified this with a voltmeter. The power supply is working. We are not getting any feedback. The voltage from the "echo output" pin stays at zero. The code we are using to send this signal folows:

if(p1_sw_trig == 0)
{
rc_dig_out02 = 0;
}
else
{
rc_dig_out02 = 1;
}

We are reading the output from the rangefinder using both a voltmeter and printfs, and neither one shows any output. We expected a pulse at the falling edge of our signal, to signify that it was "listening" for echoes. Is there something obvious we are missing here? These rangefinders are a few years old, so it's possible (though unlikely) that they are just broken.