Go Down

Topic: phototransistor (Read 342 times) previous topic - next topic

jareeb

i just bought a phototransistor, you like to know how to hook it up. maybe just make it turn on an led with the sense of light from a tv remote. anything really to get me started with it.
thanks

keyboardbandit

#1
Jul 27, 2012, 06:02 am Last Edit: Jul 27, 2012, 06:06 am by keyboardbandit Reason: 1
https://sites.google.com/site/therobotronics/arduino/connect-a-phototransistor-to-arduino

Here you go!  This is how I learned.  So in your application just replace the use the variable "val" with what ever you want to control and remove the serial functions!

Edit:
If you need help reading the diagram, just connect the positive side of the phototransitor to +5v, the negative side to analog 1 in AND to a 10k resistor that connects to ground =D


jareeb

Thanks. I can read diagrams and stuff in that starter guide from spark fun I just used the diagrams not the breadboard overlays :)

keyboardbandit

no prob!  Didn't mean to assume, but I definitely had a hard time reading those when I first started and still have trouble reading more advanced ones today!

Go Up