Materials
- 10k Ohm resistor
- IR Phototransistor
- Hookup wire
Circuit Layout (refer to Drawing)
Simply connect the Phototransistor and Resistor in series.Connect the emitter pin of the Phototransistor (long leg) to GND and the collector pin (short leg) to the resistor which we will connect to the 5v pin of the Arduino.
Analog pin 0 needs to read the voltage drop across the Phototransistor so connect the A0 pin to the Phototransistor's collector pin.
No comments:
Post a Comment