Arduino Forum

Using Arduino => Sensors => Topic started by: HELLOWORLD on Feb 06, 2011, 04:42 am

Title: Devantech SRF05 Distance Sensor
Post by: HELLOWORLD on Feb 06, 2011, 04:42 am
Please advise how to revise this following code for a Ping to suit a Devantech SR05 Distance Sensor:

http://arduino.cc/en/Tutorial/Ping?from=Tutorial.UltrasoundSensor

I am trying to use the Mode 2 of the Devantech which uses the same pin for Input and Output.

I want to measure the distance in cm or inches.

Thank you for your help.
Title: Re: Devantech SRF05 Distance Sensor
Post by: AWOL on Feb 07, 2011, 10:07 pm
Apart from the divide by two and the trigger pulse length, I don't think it needs any mods.