Go Down

Topic: Devantech SRF05 Distance Sensor (Read 2079 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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131