Pages: [1]   Go Down
Author Topic: Devantech SRF05 Distance Sensor  (Read 1797 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26497
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Apart from the divide by two and the trigger pulse length, I don't think it needs any mods.
Logged

"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.

Pages: [1]   Go Up
Jump to: