Phototransistor Light (Extended Range)
This is the same phototransistor circuit that was used earlier. This one can measure over a wider range of light levels, which might be more convenient than swapping out resistors to get a good response in a different ambient light situation.
Parts
(1) 850NM T1 3/4 Phototransistor (350-00029)
(1) Resistor 220 Ω (red-red-brown-gold)
(1) 0.01 µF capacitor (103)
(1) 0.1 µF capacitor (104)
Jumper wire: Black
Schematic
Use the 0.01 µF capacitor for the C1 value. If lighting is too bright, switch to the 0.1 µF capacitor.
Wiring.
Wiring
Script
Tests
Unlike the phototransistor circuit with a resistor in it, this version displays higher numbers when the light level is lower. For brighter lighting, replace the 0.01 µF capacitor with the 0.01 µF capacitor. Verify that the darker the shade, the higher the number.