CN-122028254-A - Keyboard backlight intelligent adjusting system and method with ambient light sensing function
Abstract
The invention relates to the technical field of intelligent backlight adjustment, and discloses an intelligent keyboard backlight adjustment system with environment light perception and an intelligent keyboard backlight adjustment method. The method comprises the steps of collecting an ambient illuminance time sequence, calculating a stable illuminance value, synchronously obtaining a keyboard visual angle and a key pressing state, adjusting a first peak duty ratio according to the stable illuminance value to obtain a second peak duty ratio, carrying out duty ratio distribution to obtain a target duty ratio of each local dimming unit and a brightness difference value between adjacent units, calculating a perception artifact strength value, simultaneously converting the target duty ratio of each local dimming unit into rendering duty ratio data, and outputting PWM driving signals according to the rendering duty ratio data when the perception artifact strength value exceeds a preset artifact threshold value. According to the invention, intelligent backlight adjustment in the whole ambient illuminance range is realized through backlight PWM modulation and dynamic rendering control of the ambient light driven keyboard local dimming unit perception artifact suppression.
Inventors
- XU RENSONG
Assignees
- 渴创技术(深圳)有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260206
Claims (10)
- 1. An intelligent keyboard backlight adjusting method with ambient light sensing function is characterized by comprising the following steps: acquiring an ambient illuminance time sequence, calculating a stable illuminance value, and synchronously acquiring a keyboard visual angle and a key pressing state; The first peak duty ratio is adjusted according to the stable illuminance value to obtain a second peak duty ratio, and the duty ratio distribution is carried out on the second peak duty ratio according to the key pressing state to obtain a target duty ratio of each local dimming unit and a brightness difference value between adjacent units; Calculating a perceived artifact intensity value by combining the keyboard visual angle and the brightness difference value between the adjacent units, and simultaneously converting the target duty ratio of each local dimming unit into rendering duty ratio data; and outputting PWM driving signals according to the rendering duty ratio data when the perceived artifact intensity value exceeds a preset artifact threshold value.
- 2. The intelligent adjustment method for keyboard backlight with ambient light sensing according to claim 1, wherein collecting an ambient illuminance time sequence and calculating a stable illuminance value, synchronously obtaining a keyboard viewing angle and a key press state, comprises: Acquiring an analog voltage signal output by a photodiode sensor in a keyboard, and converting the analog voltage signal into an ambient illuminance time sequence; Calculating a stable luminance value based on the ambient luminance time sequence; collecting inclination angle signals of the keyboard relative to a horizontal plane, and converting the inclination angle signals into keyboard visual angle angles; and detecting the level state of each key in the keyboard, mapping the detected pressed key coordinates to corresponding local dimming units according to the level state, and determining the key pressing state of each local dimming unit.
- 3. The intelligent adjustment method of a keyboard backlight with ambient light sensing according to claim 1, wherein adjusting a first peak duty cycle according to the stable illuminance value to obtain a second peak duty cycle, and performing duty cycle allocation on the second peak duty cycle according to the key press state to obtain a target duty cycle of each local dimming unit and a brightness difference value between adjacent units, comprises: when the stable illumination value is in a first illumination interval, hyperbolic tangent mapping is carried out on the first peak duty ratio to obtain a second peak duty ratio; When the stable illumination value is in a second illumination interval, performing linear mapping on the first peak duty ratio to obtain a second peak duty ratio; When the stable illumination value is in a third illumination interval, calculating a low illumination compensation coefficient according to the stable illumination value, and multiplying the first peak duty cycle by the low illumination compensation coefficient to obtain a second peak duty cycle; And calculating the brightness demand coefficient of each local dimming unit according to the key pressing state and the Manhattan distance, and carrying out duty ratio distribution based on the second peak duty ratio and the brightness demand coefficient to obtain the target duty ratio of each local dimming unit and the brightness difference value between adjacent units.
- 4. The intelligent adjustment method for keyboard backlight with ambient light sensing according to claim 3, wherein calculating the brightness demand coefficient of each local dimming unit according to the key-down state and the manhattan distance, and performing duty cycle distribution based on the second peak duty cycle and the brightness demand coefficient, to obtain the target duty cycle of each local dimming unit and the brightness difference value between adjacent units, comprises: An active unit set is established according to the key pressing state, a brightness demand coefficient is set to be a preset maximum value for the local dimming units in the active unit set, the Manhattan distance from the local dimming units in the inactive unit set to the active unit set is calculated, and an exponential decay operation is carried out on the Manhattan distance to obtain the brightness demand coefficient; And multiplying the second peak duty ratio by the brightness demand coefficient of each local dimming unit to obtain the target duty ratio of each local dimming unit, and calculating the maximum difference between the target duty ratios of the adjacent local dimming units to obtain the brightness difference value between the adjacent units.
- 5. The intelligent adjustment method for keyboard backlight with ambient light sensing according to claim 4, wherein the step of establishing an active unit set according to the key-press state, setting a luminance demand coefficient to a preset maximum value for a local dimming unit in the active unit set, calculating a manhattan distance from a local dimming unit in a non-active unit set to the active unit set, and performing an exponential decay operation on the manhattan distance to obtain the luminance demand coefficient comprises: Traversing the key pressing state of each local dimming unit, adding the local dimming units marked as pressed by the key pressing state to an active unit set, and setting the brightness requirement coefficient to be a preset maximum value for the local dimming units in the active unit set; For a local dimming unit in a non-active unit set, traversing the active unit set to calculate the sum of the absolute value of the row index difference and the absolute value of the column index difference, and taking the minimum value as the Manhattan distance; and carrying out exponential decay operation on the Manhattan distance to obtain a brightness demand coefficient.
- 6. The intelligent adjustment method of a keyboard backlight with ambient light sensing according to claim 1, wherein calculating a perceived artifact intensity value in combination with the keyboard viewing angle and the luminance difference value between the adjacent units while converting the target duty cycle of each local dimming unit into rendering duty cycle data comprises: When the stable illuminance value is larger than or equal to a preset low illuminance threshold, calculating an ambient light correction coefficient by adopting a negative logarithmic function, and when the stable illuminance value is smaller than the preset low illuminance threshold, calculating the ambient light correction coefficient by adopting a power function; Multiplying the keyboard view angle with the view weighting coefficient to obtain a view weighting value, multiplying the ambient light correction coefficient with the ambient light weighting coefficient to obtain an ambient light weighting value, and multiplying the brightness difference value between adjacent units with the brightness difference weighting coefficient to obtain a brightness difference weighting value; Summing the view angle weighted value, the ambient light weighted value and the brightness difference weighted value to obtain a perception artifact intensity value; The target duty cycle of each local dimming unit is converted into rendering duty cycle data.
- 7. The intelligent adjustment method for a keyboard backlight with ambient light sensing according to claim 6, wherein converting the target duty cycle of each local dimming unit into rendering duty cycle data comprises: traversing each local dimming unit, calculating a target duty ratio difference value between adjacent local dimming units, and determining a boundary of which the target duty ratio difference value exceeds a preset threshold value as a boundary transition region needing smoothing; Calculating space weight according to the distance from each point in the boundary transition area to the boundary center line; And carrying out weighted summation on the target duty ratios of the adjacent local dimming units according to the space weights to obtain the rendering duty ratio of each point in the boundary transition area, and combining the rendering duty ratio of each point in the boundary transition area with the target duty ratio of the non-boundary area to obtain the rendering duty ratio data.
- 8. The intelligent adjustment method of a keyboard backlight with ambient light perception according to claim 1, wherein outputting PWM driving signals according to the rendering duty cycle data when the perceived artifact intensity value exceeds a preset artifact threshold value comprises: When the perceived artifact intensity value exceeds a preset artifact threshold value, calculating a frequency lifting coefficient, and multiplying a PWM fundamental frequency by the frequency lifting coefficient to obtain an adjusted PWM fundamental frequency; and calculating a PWM period register value according to the adjusted PWM fundamental frequency, multiplying the rendering duty ratio data by the PWM period register value to obtain a duty ratio register value, setting a preset phase delay for PWM channels corresponding to each local dimming unit, and outputting the PWM channels to an LED driving chip to obtain PWM driving signals.
- 9. The intelligent adjustment method of a keyboard backlight with ambient light sensing according to claim 8, wherein when the perceived artifact intensity value exceeds a preset artifact threshold, calculating a frequency boost coefficient, and multiplying a PWM fundamental frequency with the frequency boost coefficient to obtain an adjusted PWM fundamental frequency, comprising: Subtracting a preset artifact threshold value from the perceived artifact intensity value to obtain an artifact excess, multiplying the artifact excess by a preset scaling factor to obtain a frequency increment proportion, and adding 1 to the frequency increment proportion to obtain a frequency lifting factor; Multiplying the PWM fundamental frequency with the frequency lifting coefficient to obtain a target frequency value, and judging whether the target frequency value exceeds a preset frequency upper limit; and when the target frequency value exceeds the preset frequency upper limit, taking the preset frequency upper limit value as the adjusted PWM fundamental frequency, otherwise, taking the target frequency value as the adjusted PWM fundamental frequency.
- 10. An intelligent keyboard backlight adjusting system with environmental light perception is characterized in that, the steps for implementing the intelligent keyboard backlight adjustment method with ambient light perception according to any one of claims 1 to 9, comprising: The acquisition module is used for acquiring an ambient illuminance time sequence, calculating a stable illuminance value and synchronously acquiring a keyboard visual angle and a key pressing state; The duty ratio distribution module is used for adjusting the first peak duty ratio according to the stable illumination value to obtain a second peak duty ratio, and carrying out duty ratio distribution on the second peak duty ratio according to the key pressing state to obtain a target duty ratio of each local dimming unit and a brightness difference value between adjacent units; The conversion module is used for calculating a perceived artifact intensity value by combining the keyboard visual angle and the brightness difference value between the adjacent units, and converting the target duty ratio of each local dimming unit into rendering duty ratio data; And the output module is used for outputting PWM driving signals according to the rendering duty ratio data when the perceived artifact intensity value exceeds a preset artifact threshold value.
Description
Keyboard backlight intelligent adjusting system and method with ambient light sensing function Technical Field The invention relates to the technical field of intelligent backlight adjustment, in particular to an intelligent keyboard backlight adjustment system with environment light perception and an intelligent keyboard backlight adjustment method. Background The keyboard backlight system needs to adaptively adjust brightness under different ambient lighting conditions to ensure key character identifiability and user visual comfort. In the existing keyboard backlight technology, transient interference exists in ambient light collection, so that backlight response is unstable, a fixed duty ratio mode cannot adapt to visual requirements of different illumination intervals, and character recognition degree is obviously reduced in a low-illumination environment. In addition, the PWM modulation frequency is fixed, which is easy to generate strobe perception under a specific viewing angle, and the current spike can be caused by the simultaneous switching of multiple channels. Disclosure of Invention The invention mainly aims to provide a keyboard backlight intelligent adjusting system and method with environmental light perception, according to the invention, intelligent backlight adjustment in the whole ambient illuminance range is realized through backlight PWM modulation and dynamic rendering control of the ambient light driven keyboard local dimming unit perception artifact suppression. In order to achieve the above purpose, the invention provides an intelligent keyboard backlight adjusting method with ambient light sensing, which comprises the following steps: acquiring an ambient illuminance time sequence, calculating a stable illuminance value, and synchronously acquiring a keyboard visual angle and a key pressing state; The first peak duty ratio is adjusted according to the stable illuminance value to obtain a second peak duty ratio, and the duty ratio distribution is carried out on the second peak duty ratio according to the key pressing state to obtain a target duty ratio of each local dimming unit and a brightness difference value between adjacent units; Calculating a perceived artifact intensity value by combining the keyboard visual angle and the brightness difference value between the adjacent units, and simultaneously converting the target duty ratio of each local dimming unit into rendering duty ratio data; and outputting PWM driving signals according to the rendering duty ratio data when the perceived artifact intensity value exceeds a preset artifact threshold value. Optionally, in a first implementation manner of the first aspect of the present invention, collecting an ambient illuminance time sequence and calculating a stable illuminance value, and synchronously obtaining a keyboard visual angle and a key press state, includes: Acquiring an analog voltage signal output by a photodiode sensor in a keyboard, and converting the analog voltage signal into an ambient illuminance time sequence; Calculating a stable luminance value based on the ambient luminance time sequence; collecting inclination angle signals of the keyboard relative to a horizontal plane, and converting the inclination angle signals into keyboard visual angle angles; and detecting the level state of each key in the keyboard, mapping the detected pressed key coordinates to corresponding local dimming units according to the level state, and determining the key pressing state of each local dimming unit. Optionally, in a second implementation manner of the first aspect of the present invention, adjusting the first peak duty ratio according to the stable illuminance value to obtain a second peak duty ratio, and performing duty ratio distribution on the second peak duty ratio according to the key press state to obtain a target duty ratio of each local dimming unit and a brightness difference value between adjacent units, where the method includes: when the stable illumination value is in a first illumination interval, hyperbolic tangent mapping is carried out on the first peak duty ratio to obtain a second peak duty ratio; When the stable illumination value is in a second illumination interval, performing linear mapping on the first peak duty ratio to obtain a second peak duty ratio; When the stable illumination value is in a third illumination interval, calculating a low illumination compensation coefficient according to the stable illumination value, and multiplying the first peak duty cycle by the low illumination compensation coefficient to obtain a second peak duty cycle; And calculating the brightness demand coefficient of each local dimming unit according to the key pressing state and the Manhattan distance, and carrying out duty ratio distribution based on the second peak duty ratio and the brightness demand coefficient to obtain the target duty ratio of each local dimming unit and the brightness difference value between adj