Go Down

Topic: phototransistor (Read 360 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

#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 :)

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
 


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