The second part of the control scheme is to adjust the backlight brightness of the display. This can be done in a variety of ways, depending on the display module in the device. The two simplest ways are direct regulation via a pulse width modulation (PWM) scheme and indirect regulation using a display controller.
Many display modules now have an integrated controller that allows the user to set the backlight brightness directly by sending serial commands to the controller. If the display module does not have an integrated controller, a simple backlight control actuator can be installed to control the input current to the white LED lamps behind the display for backlighting. A simple way to implement this control is to connect a field-effect transistor (FET) directly in series with the LED and use a PWM signal to quickly turn the FET on and off (Figure 5). However, it can also be accurately and reliably regulated using a single chip (the MAX1698 boost converter for LED control) (Figure 6). Refer to application note 3866, "Low-power PWM output controls LED brightness," for more information.
Figure 5. Simple PMW control circuit
Figure 6. LED brightness adjuster based on the MAX1698.
Backlight Control: Making the Connection
The final step is to establish the connection between the sensor and the actuator, which is implemented by the microcontroller. One might first ask, “How is ambient light intensity mapped to backlight brightness?” In fact, there are some literature that specifically describes relevant schemes. One of the mapping methods is proposed by Microsoft® for computers running Windows® 7¹ operating system. The curve shown in Figure 7 is provided by Microsoft and can map ambient light intensity to display brightness (expressed as a percentage of full brightness).
Figure 7. Example of a curve that maps ambient light intensity to optimal display brightness.
This special curve can be represented by the following function:
If the device uses an LCD control chip with integrated brightness control function, the backlight brightness can be easily set by sending instructions to the chip. If the device uses PWM to directly control the brightness, it is necessary to consider how to map the proportional signal to the display brightness.
In the MAX1698 example, according to its data sheet, the drive current can be mapped to a voltage. In this example, we can assume that the LED current intensity is almost linearly related to its current. In this way, we can multiply a coefficient in the above equation to calculate the effective voltage mapped by PWM, which is then mapped to the LED current and finally converted to the display brightness.
Implementation
It is better not to jump directly from one brightness level to another, but to smoothly adjust the backlight brightness up and down to ensure seamless transitions between different brightness levels. To achieve this goal, it is best to use a timer interrupt with fixed or different brightness steps to gradually adjust the brightness, or a timer interrupt with a PWM value that can control the LED input current, or a timer interrupt with a serial command that can be sent to the display controller. Figure 8 provides an example of such an algorithm.
Figure 8. Algorithm example for step-by-step brightness adjustment
Another issue is how quickly the system responds to changes in ambient light intensity. We should try to avoid changing the brightness level too quickly. This is because instantaneous changes in light intensity (such as a window opening or a light beam sweeping across the room) can cause unnecessary changes in backlight brightness, which often makes the user feel uncomfortable. In addition, a longer response time helps reduce the number of times the microcontroller checks the light sensor, thereby freeing up some microcontroller resources.
The most basic approach would be to check the light sensor every one or two seconds and adjust the backlight brightness accordingly. A better approach would be to adjust the backlight brightness only when the light intensity deviates from a certain range for a certain period of time. For example, if the normal light intensity is 200 lux, we might adjust the brightness only when the light intensity drops below 180 lux or rises above 220 lux for more than a few seconds. Fortunately, both the MAX9635 and MAX44009 have integrated interrupt pins and threshold registers to make this easy. See application note 4786, "Interface Procedures for the MAX9635 Ambient Light Sensor," for more details.
Previous article:MAX44009 ambient light sensor LCD backlight brightness control application 1
Next article:MAX44007 ambient light sensor improves black glass design performance
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- HGIT Fights Epidemic-After-sales Technical Exchange
- KiCad KiCost GOOD
- Support Xilinx/Altera/Lattice JTAG and UART
- R329 development board series tutorial | Running aipu program on real machine
- Angle, distance, speed, and direction of motion detection can be done on one board. Infineon's FMCW radar solution Position2Go is here
- PWM issues with MSP432
- Is there any MP3 decoding library?
- MicroPython has over 10,000 stars on GitHub!
- MSP430G2553 State Machine Modeling
- Registration for the 2020 ADI Test and Measurement Technology Solution Exchange is now open! Participants can win an oscilloscope grand prize!