Go Down

Topic: noob needing help with sensor build (Read 997 times) previous topic - next topic

junpie

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

Anachrocomputer

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?

junpie

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

junpie

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

http://www.youtube.com/watch?v=Vqcvmh_9rBo

junpie

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

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