Let's Make Robots!

HC sr04 run on 3 pins with arduino

Just wanna share this(not mine) with everyone. I now have a ping))) arduino code running an HC sr04 on a robot due to this... http://code.google.com/p/arduino-new-ping/wiki/NewPing_Single_Pin_Sketch It's that simple.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Dannyv's picture

Good to know. :-) I was already wondering if it was possible. Thx. now I only have to write a picbasic version of this code / edit my other code using 4 pins.

chiefdadddy's picture
Post it and let us know how it goes! Maybe even a video. My stickbug runs on both ping))) or hc-sr04 with a tiny bit of modification to the code.
Dannyv's picture
As soon as I have time I will put something on breadboard and give it a try. First I Will try to simply connect these 2 pins together with using same piece of picbasic code. And see what happens. I will let you all know. I only don't fully understand what that condensator will do? How's that supposed to work?
chiefdadddy's picture
ignoblegnome's picture

Nifty. Collected.