Ambient light sensor (ALS) products are quickly becoming one of the most effective solutions for power management and display quality enhancement in electronic products and systems. Battery life for mobile phones, notebook computers, PDAs, and digital cameras can be extended significantly by using automatic brightness control through ambient light sensor (ALS) feedback. A recent study, for example, shows that the display backlight represents one-third of the total battery drain in a notebook computer. It has also become possible to achieve a more comfortable display quality with a light-sensing approach mimicking that of the human eye. Automotive applications, room lighting, and advanced color sensing are among other application areas for ALS that have been enhancing our daily lives, mostly without our realizing it.
This article will examine the analog output ALS devices available and the many possible ways to interface these products to achieve a good path to the microcontroller-based digital domain for full system performance and functionality.
Avago addresses low cost design ALS design alternatives with its APDS-9002
. An example interface (Figure 1) for this ALS uses low cost, passive RC components that convert the current output of the APDS-9002 to a voltage (VOUT
) and a low-cost/low-power analog-to-digital converter (ADC) or a microcontroller (µC) with on-board ADC to sample the VOUT
. The VOUT
is directly proportional to the ambient light source intensity shining on the photo sensor in the ALS. The analog current output from the ALS is converted to VOUT
as it travels through the load resistor RL
to ground. The capacitor C is optional for fluorescent light sources that are composed of AC ripple/noise mostly around 100 to 120-Hz frequency. The RL
in parallel with the C acts as a low-pass filter to bypass that ripple/noise.
Figure 1: Low-cost application example using Avago’s APDS-9002 ALS into an ADC or microcontroller with on-board ADC. (Courtesy of Avago).
Brightness is measured in units of lux, which describes the intensity of the ambient light source as perceived by our eyes. There is a direct relationship between exposure value (EV) and luminance (Since luminance is sometimes synonymous with EV, this exact relationship will not be discussed in this article, but a discussion can be found in the literature¹). Figure 2 provides a representation of VOUT
with different values of RL
as luminance varies.
Figure 2: Output voltage (VOUT) vs. luminance in lux at different load resistor (RL) values. (Courtesy of Avago).
There are many varieties of optical sensors available in small packages at low cost. Passive solutions in the above circuit have been used for decades in night lights and still digital cameras.
Active solutions have increased the range and usefulness of ALS. Most typical active solutions integrate a phototransistor or photodiode with a transimpedance amplifier.² Figure 3 represents a circuit that can be used for low-speed or high-speed applications with tremendous versatility as to custom design of circuit performance in a demanding system where photodiode current source and load impedance are buffered and bandwidth can be set as desired when choosing the right op amp.
Figure 3: Transimpedance circuit converting a photodiode current into a voltage. (Courtesy of Texas Instruments).
The photodiode in Figure 3 converts photons into a current (ID
) that appears at the summing junction of the amplifier. The current is amplified by the feedback resistor RF
. If we use a low bias current amplifier as compared to the photodiode current, then all of the ID
is converted to the output. The photodiode source impedance is not affected by the load impedance since the amplifier now buffers the two. The op amp should have a high enough input impedance as compared to the photodiode impedance and the amplifier output impedance is low so that a wide variety of loads can be connected. The bandwidth will be a function of the source capacitance (CS
), the feedback capacitance (CF
) and the gain-bandwidth product (GBP) of the op amp.
The source capacitance CS
is the sum of the photodiode capacitance CD
, the common-mode capacitance of the op amp (CCM
) and the differential capacitance of the amplifier CDIFF
include both the board layout and the op amp parasitic capacitance. The referenced Texas Instruments (TI) application note² will guide the designer through the op amp selection process as well as the design methodology for a successful circuit that will meet the necessary parameters for the overall system performance needs.
When greater resolution, low light capability, power supply rejection, or possibly a disabling function is needed in an integrated solution, the Intersil family of ISL29xxx family extends the usefulness of typical ALS. (See Intersil’s tutorial
on ALS on Digi-Key’s website.) In particular, let’s look at the ISL29102
The ISL29102 is a low-cost light-to-voltage silicon optical sensor that combines a photodiode array, a nonlinear current amplifier, and a micropower op amp in a single monolithic circuit. Similar to human eye response, the photodiode array has peak sensitivity at 550 nm and only spans from 400 to 600 nm, thereby rejecting ultraviolet (UV) light and infrared (IR) light.
The nonlinear current amplifier boosts and converts the photodiode signal following a square root function. This extends the light output dynamic range while maintaining excellent sensitivity at low lux levels. The data sheet provides details of VOUT
relationship to ambient light intensity level. Since the photodiode has a responsivity that resembles the human eye, the light source conversion rate is independent of the light source; whether it is fluorescent, incandescent, or direct sunlight. The external set resistor REXT
sets the light-to-voltage scaling constant.
Rohm Semiconductor also has a similar integrated photodiode and current amplifier with built-in shutdown via logic control and three-step-controllable output current gain in a very tiny surface-mount package measuring 3 x 1.6 mm with their BH1603 series
Again, as in the previous example, an ADC can digitize the VOUT
of these devices and the result can be passed on to a µC.
Proper ALS choices and interface circuitry will help designers meet market needs for greener, more user-friendly sensing devices that provide greater interactivity with lower power consumption. For more information use the links to product information provided on the Digi-key website.
- Illumination Fundamentals, by Rensselaer Polytechnic Institute, Lighting Research Center in conjunction with Optical Research Associates.
- Texas Instruments Application report SBOA122, November 2009, “Transimpedance considerations for High Speed Amplifiers,” by Xavier Ramus.