Pages: [1]   Go Down
Author Topic: How to wire this up?  (Read 508 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: