Seeing The Light: A Circuit For Interfacing With Ambient Light Sensors
We built a smart mailbox, as related in an article, that had an ambient light sensor to detect when the mailbox door was opened. In that project we used a Vishay ambient light sensor (Mouser Part #782-TEPT4400) that acts very much like an NPN transistor, in fact the part is also referred to as a phototransistor. The difference being (when compared to a normal bipolar junction transistor) that instead of needing a base lead to setup the bias voltage, photons provide energy at the base-collector junction to turn the transistor on, thus allowing current flow from collector-to-emitter.
In that project we were solely worried about the presence or absence of light, not accurately measuring the intensity of the light. Thus we got away with a pretty simple voltage divider circuit to measure the light. In other applications you might be concerned with accurately measuring the light intensity with greater resolution. If your project needs that accuracy, there are many circuits that can give you that resolution. One particular implementation utilizing an operational amplifier (op-amp) is this circuit here:
*** All circuits were done in the new MultiSim BLUE from Mouser and NI. Check it out at www.mouser.com/MultiSimBlue.