Pages: [1]   Go Down
Author Topic: noob needing help with sensor build  (Read 848 times)
0 Members and 1 Guest are viewing this topic.
melrose park, IL
Offline Offline
Newbie
*
Karma: 0
Posts: 5
hoping to work my way up and learn alot
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

im tryingo build a ir obstacle sensor using  ir led and transistor i got from radio shack i tryed hooking tham up so the transistor whant right to a pin and than did a analog read and got 1023 all the time and than tryd digital read and got all 0 please help this pore noob

http://www.radioshack.com/product/index.jsp?productId=2049723
Logged

Bristol, UK
Offline Offline
Edison Member
*
Karma: 0
Posts: 1197
Exhibitor at UK Maker Faire
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you add a pull-down (or pull-up) resistor as well as the phototransistor?

Like this:

http://www.flickr.com/photos/anachrocomputer/3483847795/

Can you post a circuit diagram of how you wired up your Arduino?
Logged

melrose park, IL
Offline Offline
Newbie
*
Karma: 0
Posts: 5
hoping to work my way up and learn alot
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yes i tryed that and just tryed it again only got 0 this time using the basics analog readto serial
Logged

melrose park, IL
Offline Offline
Newbie
*
Karma: 0
Posts: 5
hoping to work my way up and learn alot
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i build it like in this video except no  idea whatthe code is

Logged

melrose park, IL
Offline Offline
Newbie
*
Karma: 0
Posts: 5
hoping to work my way up and learn alot
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

little update tryed hooking it up again as the digram from above showed using a higher resistor now analog read shows 666 to 667 whan left alone and whan very close with hand shows 665 to 664 hmm its something but how to get a little more diffence in readings
Logged

Pages: [1]   Go Up
Jump to: