Go Down

Topic: How to wire this up? (Read 548 times) previous topic - next topic

Dylan552

I am looking to wire up an ultrasonic sensor. Well the one in the book im reading has 3 pins. 5v,Gnd and Sig. However thoses cost alot more than this one

http://cgi.ebay.com/HC-SR04-ultrasonic-sensor-distance-measuring-module-/260809561241?pt=LH_DefaultDomain_0&hash=item3cb9761499#ht_1304wt_1398

However this has more pins, so how would i wire it up? One to gnd and 5v but what about the other two? Also how might the code change?

Thanks!

Dylan552

Look i am super new to this. So besides the ground and power what pins should the send and receive go to? Where as the other one i was looking at goes through one pin.

Here is the 3 pin one

http://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_282861_-1

Dylan552

Oh i think i got it! So in the setup just make one input and one output each to there own pins. Other than that the code would be the same.

Dylan552

Will do, I also found this http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=200628216960&category=57016&_trksid=p5197.c0.m619 which is even better if you dont mind the extra few bucks for 3 pins.

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!

Arduino
via Egeo 16
Torino, 10131
Italy