Go Down

Topic: Devantech SRF05 Distance Sensor (Read 2057 times) previous topic - next topic


Please advise how to revise this following code for a Ping to suit a Devantech SR05 Distance Sensor:


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.


Apart from the divide by two and the trigger pulse length, I don't think it needs any mods.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Go Up