NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Microcontroller Programming » HC-SR04 ultrasonic distance sensor NerdKits coding
March 30, 2012 by victor ![]() |
I've got the HC-SR04 ultrasonic distance sensor. I looked up online but was only able to find those Arduino tutorials to make it work. Here is one example. http://www.alt42.com/2011/12/hc-sr04-ultrasonic-distance-sensor/ I'm wondering how to implement this particular function which is available in Arduino ? Basically it's measuring the duration that input pin voltage changes from high to low (vice visa), to calculate the distance (d = v*t/2).
|
---|---|
March 30, 2012 by pcbolt ![]() |
Hi victor - Here is a forum thread lukel started to help him with a distance sensor. Hope it helps. |
Please log in to post a reply.
Did you know that talking to the microcontroller over the USB/Serial link is easy under Windows, Linux, and OS X? Learn more...
|