Pages: [1]   Go Down
Author Topic: phototransistor  (Read 315 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 43
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

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

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

« Last Edit: July 26, 2012, 11:06:34 pm by keyboardbandit » Logged

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

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

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

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

Pages: [1]   Go Up
Jump to: