An environmental adaptive dimming method and system for optical lenses of smart wearable devices

By acquiring ambient light and attitude parameters, and combining PID control algorithms and anti-fogging measures, adaptive dimming of optical lenses in smart wearable devices is achieved. This solves the problems of single dimming dimension and lack of closed-loop feedback in existing technologies, thereby improving visual effects and user experience.

CN123113207APending Publication Date: 2026-11-17SHENZHEN LESU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611369746.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-04
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing optical lens dimming solutions for smart wearable devices lack closed-loop feedback, have a single dimming dimension, and do not consider changes in ambient color temperature and user posture, resulting in poor visual effects.

Method used

By acquiring ambient light parameters and device posture parameters, and combining them with a proportional-integral-derivative control algorithm, the transmittance and color shift of the electrochromic lens are adjusted in real time to achieve precise adjustment of transmittance and color temperature matching. An anti-fog mode is also introduced to suppress lens fogging.

Benefits of technology

It significantly improves the visual experience of smart wearable devices under different lighting and postures, ensures the stability of light transmittance and color, prevents lens fogging, and improves the user's all-weather visual comfort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123113207A_ABST
    Figure CN123113207A_ABST
Patent Text Reader

Abstract

This invention provides an environmentally adaptive dimming method and system for optical lenses in smart wearable devices, comprising: acquiring the current ambient light parameters and device posture parameters of the smart wearable device; determining a basic transmittance target value based on the ambient illuminance value; adjusting the basic transmittance target value according to the viewing angle to obtain a corrected transmittance target value; calculating the driving voltage value of the corresponding electrochromic lens based on the corrected transmittance target value; calculating the transmittance deviation value between the actual transmittance and the corrected transmittance target value; adjusting the driving voltage value using a proportional-integral-derivative control algorithm based on the transmittance deviation value; and, in response to detecting that the display interface of the smart wearable device is in an active state, synchronously adjusting the color shift of the electrochromic lens according to the ambient color temperature value to match the lens transmission spectrum with the color temperature of the display interface. This invention can significantly improve the visual comfort and display effect of smart wearable devices under different lighting conditions and different postures.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of optical control technology for smart wearable devices, and more specifically, to an environmental adaptive dimming method and system for optical lenses of smart wearable devices. Background Technology

[0002] With the widespread adoption of smart wearable devices, products such as AI glasses and head-mounted displays for smart cockpits are placing higher demands on the display performance and user experience of optical lenses. In various lighting environments, including strong outdoor light, low indoor light, and nighttime, users need lenses with adaptive light transmittance to ensure clear visibility of displayed content. Simultaneously, changes in user head posture (such as looking down or up) alter the angle between the line of sight and the lens normal, thus affecting the actual luminous flux entering the eye. Relying solely on ambient light intensity for single-dimensional dimming is insufficient to achieve optimal visual results.

[0003] Existing electrochromic lens dimming solutions mostly employ open-loop control, meaning they directly determine the driving voltage based on a table after looking up the ambient light intensity. This lacks closed-loop feedback verification of the actual transmittance, resulting in insufficient dimming accuracy and lag. Furthermore, existing solutions generally ignore the impact of ambient color temperature on the display interface's visual appeal, as well as the interference of lens surface fogging on transmittance in high humidity and low temperature environments. They also fail to address the issue of viewing angle compensation caused by changes in posture. Summary of the Invention

[0004] This invention aims to overcome the shortcomings of the prior art and provide an environmental adaptive dimming method and system for optical lenses of smart wearable devices. It aims to solve technical problems in the prior art such as single dimming dimension, lack of closed-loop feedback, and failure to consider posture compensation and environmental color temperature matching.

[0005] In a first aspect, the present invention provides an environmental adaptive dimming method for optical lenses of a smart wearable device, the method comprising: Acquire the current ambient light parameters and device posture parameters of the smart wearable device, wherein the ambient light parameters include at least the ambient illuminance value and the ambient color temperature value; Based on the ambient illuminance value, the target value of basic light transmittance is determined by a preset light-sensing mapping curve; The line of sight angle is determined based on the device posture parameters, and the basic target value of light transmittance is adjusted based on the line of sight angle to obtain the corrected target value of light transmittance. Based on the corrected transmittance target value, calculate the corresponding driving voltage value of the electrochromic lens, and output the driving voltage value to the electrochromic lens; The actual light transmittance of the electrochromic lens is collected in real time, and the light transmittance deviation between the actual light transmittance and the corrected light transmittance target value is calculated. Based on the transmittance deviation value, the driving voltage value is adjusted using a proportional-integral-derivative control algorithm until the absolute value of the transmittance deviation value is less than a preset threshold. In response to the detection that the display interface of the smart wearable device is active, the color shift of the electrochromic lens is synchronously adjusted according to the ambient color temperature value so that the transmission spectrum of the lens matches the color temperature of the display interface.

[0006] Preferably, obtaining the current ambient light parameters and device attitude parameters of the smart wearable device includes: The ambient illuminance value and the ambient color temperature value are collected by the ambient light sensor and the color temperature sensor integrated in the smart wearable device, respectively. The three-axis angular velocity and linear acceleration are obtained by the gyroscope and accelerometer built into the smart wearable device. The attitude parameters of the device are obtained by attitude calculation. The attitude parameters include pitch angle, roll angle and yaw angle. The line-of-sight angle is the pitch angle.

[0007] Preferably, determining the target value of basic transmittance based on the ambient illuminance value using a preset light-sensing mapping curve includes: The light-sensing mapping curve is a logarithmic curve, and the target value of the basic transmittance is calculated according to the following formula: in, To preset the minimum light transmittance, To preset the maximum light transmittance, The ambient illuminance value currently obtained. The reference ambient illuminance value is used as a reference, and the preset minimum transmittance, the preset maximum transmittance, and the reference ambient illuminance value are all fixed constants.

[0008] Preferably, adjusting the base transmittance target value according to the viewing angle to obtain the corrected transmittance target value includes: If the angle of view is greater than a preset angle threshold, then the correction coefficient is determined to be... ,in This is a preset proportional coefficient. The angle between the lines of sight, The preset angle threshold; If the angle of view is not greater than the preset angle threshold, then the correction coefficient is 1. The target value for the corrected transmittance is calculated. The target value of the corrected transmittance is limited to the range formed by the preset minimum transmittance and the preset maximum transmittance.

[0009] Preferably, calculating the driving voltage value of the corresponding electrochromic lens based on the corrected transmittance target value includes: Based on the voltage-transmittance characteristic curve of the electrochromic lens, the driving voltage value corresponding to the corrected transmittance target value is determined by linear interpolation. The voltage-transmittance characteristic curve was obtained in advance through calibration experiments and stored as a discrete point sequence. The interpolation formula is ,in and These are the two calibration points in the discrete point sequence that are adjacent to the target value of the corrected transmittance.

[0010] Preferably, adjusting the driving voltage value using a proportional-integral-derivative control algorithm based on the transmittance deviation value includes: The current driving voltage adjustment is calculated as follows: , in , , These are the proportional coefficient, integral coefficient, and differential coefficient, respectively. The sampling period is The transmittance deviation value at the current moment. This represents the transmittance deviation value at the previous moment; The driving voltage adjustment is superimposed on the current driving voltage value to obtain a new driving voltage value, and the new driving voltage value is limited to the safe voltage range of the electrochromic lens; When the absolute value of the transmittance deviation is less than the preset threshold for a preset number of consecutive times, the accumulation of the integral term is stopped to prevent integral saturation.

[0011] Preferably, it further includes: The ambient temperature and relative humidity of the environment in which the smart wearable device is located are obtained; The dew point temperature is calculated based on the ambient temperature and the ambient relative humidity. If the ambient temperature is lower than the dew point temperature and the ambient relative humidity is greater than a preset humidity threshold, then the anti-fog mode is entered. In the anti-fog mode, the transparent electric heating film embedded in the electrochromic lens is activated, or the superhydrophilic coating on the surface of the electrochromic lens is activated, to suppress fogging on the lens surface. Meanwhile, the response speed of the proportional-integral-derivative control algorithm is adjusted according to the rate of change of the ambient illuminance value. If the rate of change is greater than a preset rate threshold, the proportional coefficient is increased and the integral coefficient is decreased to speed up the dimming response. The smart wearable device is either an AI glasses device or a head-mounted display device for a smart cockpit.

[0012] In a second aspect, the present invention provides an environmental adaptive dimming system for optical lenses of a smart wearable device, comprising: The parameter acquisition module is used to acquire the current ambient light parameters and device posture parameters of the smart wearable device. The ambient light parameters include at least the ambient illuminance value and the ambient color temperature value. The basic transmittance target value determination module is used to determine the basic transmittance target value based on the ambient illuminance value and through a preset light-sensing mapping curve. The corrected transmittance target value determination module is used to determine the line of sight angle based on the device posture parameters, adjust the basic transmittance target value based on the line of sight angle, and obtain the corrected transmittance target value. The driving voltage value calculation module is used to calculate the driving voltage value of the corresponding electrochromic lens based on the corrected light transmittance target value, and output the driving voltage value to the electrochromic lens; The transmittance deviation calculation module is used to collect the actual transmittance of the electrochromic lens in real time and calculate the transmittance deviation between the actual transmittance and the corrected transmittance target value. The driving voltage adjustment module is used to adjust the driving voltage value according to the transmittance deviation value using a proportional-integral-derivative control algorithm until the absolute value of the transmittance deviation value is less than a preset threshold. An adjustment module is used to respond to the detection that the display interface of the smart wearable device is in an active state, and to synchronously adjust the color shift of the electrochromic lens according to the ambient color temperature value, so that the transmission spectrum of the lens matches the color temperature of the display interface.

[0013] Thirdly, the present invention provides a readable medium including executable instructions, which, when executed by a processor of an electronic device, cause the electronic device to perform any of the methods described in the first aspect.

[0014] Fourthly, the present invention provides an electronic device including a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor performs the method as described in any of the first aspects.

[0015] This invention provides an environmentally adaptive dimming method and system for optical lenses in smart wearable devices. It achieves dual-dimensional dimming decisions by integrating ambient illuminance values ​​and device posture parameters. Based on ambient light perception, it introduces a line-of-sight angle compensation mechanism to correct for light flux deviations caused by the user's head tilt, making the dimming result more aligned with actual visual needs. By constructing a closed-loop feedback link for actual transmittance and dynamically adjusting the driving voltage using a proportional-integral-derivative control algorithm, it significantly improves the response speed and steady-state accuracy of transmittance adjustment. By synchronously adjusting the lens color offset in response to the display interface's activation state to match the ambient color temperature, it improves the color reproduction and visual consistency of displayed content under different ambient light sources. By introducing a temperature and humidity-sensing anti-fog mode and linking it with an electric heating film or super-hydrophilic coating, it effectively suppresses lens fogging in high-humidity and low-temperature environments. Simultaneously, it adaptively adjusts PID control parameters according to the rate of change in ambient illuminance to accelerate dimming response, fully ensuring an all-weather visual experience for devices such as AI glasses and smart cockpit head-mounted displays in complex outdoor scenarios.

[0016] The further effects of the aforementioned non-conventional preferred method will be explained below in conjunction with specific embodiments. Attached Figure Description

[0017] To more clearly illustrate the embodiments of the present invention or the existing technical solutions, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a schematic diagram of an environmental adaptive dimming method for optical lenses of a smart wearable device according to an embodiment of the present invention; Figure 2 This is a schematic diagram of another environmental adaptive dimming method for optical lenses of a smart wearable device provided in an embodiment of the present invention; Figure 3 This is a schematic diagram illustrating the composition of an environmental adaptive dimming system for an optical lens of a smart wearable device according to an embodiment of the present invention. Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this invention, and not all of them. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0020] See Figure 1 The illustration shows a specific embodiment of an environmental adaptive dimming method for optical lenses in a smart wearable device provided by the present invention. In this embodiment, the environmental adaptive dimming method for optical lenses in a smart wearable device includes:

[0021] Step 101: Obtain the current ambient light parameters and device posture parameters of the smart wearable device. The ambient light parameters include at least the ambient illuminance value and the ambient color temperature value. Specifically, in this embodiment, the smart wearable device is an AI glasses device or a head-mounted display device for a smart cockpit. The ambient illuminance value refers to the light intensity of the environment in which the device is located, measured in lux, and is used to characterize the brightness of the environment; the ambient color temperature value refers to the color temperature of the ambient light source, measured in Kelvin (K), and is used to characterize the warm or cool tone of the ambient light. Obtaining the current ambient light parameters and device attitude parameters of the smart wearable device specifically includes the following implementation methods.

[0022] Ambient illuminance values ​​are collected via an ambient light sensor integrated into a smart wearable device. The ambient light sensor can be an OPT3006 single-chip illuminance meter, which measures visible light intensity to the human eye. It uses an ultra-small PicoStar package for installation in confined spaces, and its high-precision spectral response closely matches the daytime visual response of the human eye, exhibiting a strong infrared rejection response. Alternatively, the ambient light sensor can use a TSL2540 high-sensitivity photo-to-digital converter, which simulates the human eye's response to light intensity under different lighting conditions, converting light intensity into a digital signal output via a 1.8V I²C interface. The ambient light sensor's detection range covers 1 lux to 128,000 lux, adapting to illuminance detection needs across all scenarios, from low light at night to strong outdoor light.

[0023] Ambient color temperature values ​​are collected through a color temperature sensor integrated into the smart wearable device. The color temperature sensor can be a VEML6040 RGBW color sensor, which derives the X and Y color coordinates by measuring the intensity of red, green, and blue ambient light, thereby calculating the correlated color temperature in Kelvin. Alternatively, a WH3620 digital RGBW-IR color sensor can be used. This device integrates a photodiode, current amplifier, analog circuitry, and digital signal processor, supporting multi-channel parallel sensing of red, green, blue, white, and infrared light, providing color temperature sensing capabilities under various lighting conditions. The color temperature sensor's detection range covers 2000K to 10000K, encompassing a full range of color temperature scenarios from warm incandescent light to cool sunlight.

[0024] The three-axis angular velocity and three-axis linear acceleration are obtained through the gyroscope and accelerometer built into the smart wearable device. The gyroscope measures the angular velocity of the device's rotation about the three orthogonal axes (X-axis, Y-axis, and Z-axis), in degrees per second or radians per second. The rotation angle of the device can be calculated in real time by integrating the angular velocity data over time. The accelerometer measures the linear acceleration of the device along the three orthogonal axes, including the gravitational acceleration component, in meters per second squared. The gyroscope and accelerometer can be integrated into the same inertial measurement unit chip, such as the LSM6DSV16X inertial measurement unit.

[0025] The device's attitude parameters are obtained through attitude calculation. Attitude calculation refers to the process of converting the raw measurement data from the gyroscope and accelerometer into attitude angles describing the device's spatial orientation. In this embodiment, a quaternion-based attitude calculation algorithm is used. A quaternion is a mathematical representation that extends complex numbers to four-dimensional space, consisting of one real part and three imaginary parts, capable of describing any rotation in three-dimensional space without singularity. The specific process of attitude calculation is as follows: First, the linear accelerations along the three axes measured by the accelerometer are normalized, and the projection of the gravity direction in the device coordinate system is extracted to obtain the initial estimates of the device's roll and pitch angles; simultaneously, the differential equation of the attitude quaternion is constructed using the angular velocity data measured by the gyroscope, and the predicted value of the attitude quaternion based on the angular velocity integral is obtained by solving this differential equation; then, the attitude drift generated by the gyroscope integration is corrected using the gravity direction vector provided by the accelerometer as a reference; finally, the corrected attitude quaternion is converted into Euler angle form for output. Attitude parameters include pitch, roll, and yaw. Pitch is the angle of rotation of the device around the X-axis (left-right direction), reflecting the extent to which the user tilts their head up or down; roll is the angle of rotation of the device around the Y-axis (forward-backward direction), reflecting the extent to which the user's head tilts left or right; and yaw is the angle of rotation of the device around the Z-axis (vertical direction), reflecting the extent to which the user's head rotates horizontally. The line-of-sight angle is the pitch angle because when a user wears a head-mounted smart wearable device, the direction of their line of sight is basically consistent with the orientation of the device, and the pitch angle directly reflects the angle between the line-of-sight direction and the horizontal plane.

[0026] Step 102: Determine the target value of basic transmittance based on the ambient illuminance value using a preset light-sensing mapping curve; Furthermore, the light-sensing mapping curve is a logarithmic curve. The design of the logarithmic curve is based on the Weber-Fechner law, which states that the human eye's perception of light intensity follows the logarithm of the light intensity, rather than the light intensity itself. Therefore, the target transmittance value decreases logarithmically with increasing ambient illuminance, resulting in high adjustment sensitivity within a moderate illuminance range and saturation under extreme illuminance conditions, thus meeting the visual comfort requirements of the human eye.

[0027] The target value for basic light transmittance is calculated using the following formula: in, The preset minimum transmittance, expressed as a percentage, represents the lowest transmittance of the electrochromic lens in its strongest tinting state, for example, a value of 5%; The preset maximum light transmittance, expressed as a percentage, represents the highest light transmittance of the electrochromic lens in its completely faded state, for example, a value of 85%. The ambient illuminance value is currently obtained, in lux; The reference ambient illuminance value, in lux, represents a predefined illuminance reference point, for example, 100 lux (corresponding to a typical indoor lighting environment). The preset minimum transmittance, preset maximum transmittance, and reference ambient illuminance value are all fixed constants, which can be determined in advance through experimental calibration based on the lens material characteristics and target application scenario.

[0028] The physical meaning of this formula is as follows: when the ambient illuminance value Much greater than the reference ambient illuminance value Time (e.g., outdoor scenes with direct sunlight), fractions Approaching 0, the target value for basic light transmittance Approaching The lenses tend to be in their darkest, most tinted state to reduce the amount of light entering the eye and prevent glare from strong light. When the ambient illuminance value... much smaller Time (e.g., nighttime scenes), fractions Approaching 1, the target value for basic light transmittance Approaching The lens tends to be completely faded (brightest) to increase the amount of light entering the eye and ensure visibility in low-light environments. When the ambient illuminance value... Equal to the reference ambient illuminance value When the fraction is 1 / 2, the target value of the basic transmittance is... Values and The median value.

[0029] Step 103: Determine the line of sight angle based on the equipment posture parameters, and adjust the basic transmittance target value according to the line of sight angle to obtain the corrected transmittance target value; Furthermore, the line-of-sight angle is the pitch angle obtained from the attitude calculation in step 101, denoted by the symbol... This indicates that when a user wears a smart wearable device, a pitch angle of 0 degrees means that the direction of their gaze is parallel to the horizontal plane; a positive pitch angle means that the user is looking up and their gaze is deviating upwards from the horizontal plane; and a negative pitch angle means that the user is looking down and their gaze is deviating downwards from the horizontal plane.

[0030] The specific process of adjusting the basic target transmittance value based on the viewing angle and obtaining the corrected target transmittance value is as follows.

[0031] If the angle of sight Greater than the preset angle threshold Then determine the correction factor. .in This is a preset proportional coefficient, with the unit being per degree, for example, a value of 0.008 / degree; The angle between the lines of sight is expressed in degrees. This is a preset angle threshold, in degrees, for example, a value of 15 degrees. The physical meaning is: when the angle of visual deflection is small, the decrease in the amount of light entering the eye is negligible, and no correction is needed to avoid overcompensation. If the angle of visual deflection is small... Not greater than the preset angle threshold If the value is 1, then no correction is performed.

[0032] If the viewing angle is greater than the preset angle threshold, then the corrected transmittance target value is calculated. The target transmittance value will be limited to a preset minimum transmittance. and preset maximum light transmittance Within the interval formed.

[0033] The physical basis for this correction logic is Lambert's cosine law, which states that when a ray of light makes an angle with the normal, the ray of light... When incident at an angle, the effective light-transmitting area is calculated according to... Attenuation. When a user tilts their head up or down, causing their line of sight to deviate from the lens's normal direction, the actual luminous flux entering the eye decreases according to a cosine law, assuming the lens transmittance remains constant. Therefore, it is necessary to compensate for this flux loss by increasing the target transmittance value. Correction coefficient. A value greater than 1 indicates an upward adjustment of the target transmittance value, making the lens brighter to compensate for the decrease in light flux entering the eye caused by the deflection of the line of sight.

[0034] Step 104: Calculate the driving voltage value of the corresponding electrochromic lens based on the corrected light transmittance target value, and output the driving voltage value to the electrochromic lens. The optical lens used in the smart wearable device in this embodiment is an electrochromic lens, which is an optical device that changes its optical transmittance by applying an external electric field. Its working principle is as follows: The electrochromic lens comprises an electrochromic layer (such as tungsten trioxide), an ion-conducting layer, and an ion-storage layer. When a voltage is applied between the transparent conductive layers (such as indium tin oxide) on both sides of the lens, the voltage drives ions (such as lithium ions or hydrogen ions) from the ion-storage layer through the ion-conducting layer into the electrochromic layer, triggering a redox reaction in the electrochromic material, thereby changing its optical absorption characteristics and achieving a change in light transmittance. The driving voltage is typically 1 volt to 5 volts.

[0035] The driving voltage value of the corresponding electrochromic lens is calculated based on the corrected light transmittance target value, and is specifically implemented in the following way.

[0036] Based on the voltage-transmittance characteristic curve of the electrochromic lens, the driving voltage value corresponding to the corrected transmittance target value is determined using linear interpolation. The voltage-transmittance characteristic curve refers to the mapping relationship between the steady-state transmittance values ​​of the electrochromic lens under different driving voltages. Since the transmittance of the electrochromic lens exhibits a non-linear relationship with the driving voltage, this characteristic curve needs to be obtained in advance through calibration experiments.

[0037] The voltage-transmittance characteristic curve was obtained in advance through calibration experiments and stored as a discrete point sequence. The specific procedure for the calibration experiment is as follows: Under standard environmental conditions (such as a temperature of 25 degrees Celsius and a relative humidity of 50%), a series of predefined driving voltage values ​​are sequentially applied to the electrochromic lens. After the transmittance at each voltage reaches a steady state (usually after 30 to 60 seconds), the corresponding steady-state transmittance value is recorded using a transmittance meter. Thus forming a discrete point sequence The calibrated voltage range covers the safe operating voltage range of electrochromic lenses, for example, from 0 volts to 3.3 volts, in increments of 0.1 volts or 0.2 volts.

[0038] The interpolation formula is: ,in and For the discrete point sequence and the target value of corrected transmittance Two adjacent calibration points, i.e. The linear interpolation method assumes a linear relationship between voltage and transmittance between two adjacent calibration points, and calculates the driving voltage value corresponding to the target transmittance through proportional calculation. If... If the transmittance value is exactly equal to that of a certain calibration point, then the voltage value corresponding to that calibration point is directly taken.

[0039] After the driving voltage value is calculated, the digital voltage value is converted into an analog voltage signal by a digital-to-analog converter. After being amplified by an amplifier circuit, the signal is output to the driving electrode of the electrochromic lens, which drives the electrochromic layer to undergo an electrochemical reaction, causing the lens transmittance to change towards the target value of corrected transmittance.

[0040] Step 105: Real-time acquisition of the actual transmittance of the electrochromic lens, and calculation of the transmittance deviation between the actual transmittance and the corrected transmittance target value; Actual transmittance refers to the true transmittance value of an electrochromic lens at the current moment, denoted by the symbol [symbol missing]. The transmittance is expressed as a percentage. Actual transmittance is acquired through a transmittance detection module integrated into one side of the electrochromic lens or embedded within the lens. The transmittance detection module can employ a photodiode in conjunction with a reference light source: a constant reference light source (such as a light-emitting diode) is placed on one side of the lens, and a photodetector is placed on the other side. Light emitted from the reference light source passes through the electrochromic lens and reaches the photodetector. The photodetector converts the received light intensity into an electrical signal. The actual transmittance of the lens can be calculated based on the ratio of the amplitude of the electrical signal output by the photodetector to the original light intensity of the reference light source. This method enables non-contact, real-time transmittance measurement.

[0041] Calculate the transmittance deviation value A positive transmittance deviation value indicates that the actual transmittance is higher than the target value (the lens is too bright), while a negative value indicates that the actual transmittance is lower than the target value (the lens is too dark). The actual transmittance may deviate from the target value due to factors such as lens aging, ambient temperature drift, output deviation of the drive circuit, and response lag of the electrochromic material, and needs to be corrected through closed-loop feedback control.

[0042] Step 106: Based on the transmittance deviation value, adjust the driving voltage value using a proportional-integral-derivative control algorithm until the absolute value of the transmittance deviation value is less than a preset threshold. The Proportional-Integral-Derivative (PID) control algorithm is a classic closed-loop feedback control method that achieves precise regulation of the controlled variable through a linear combination of proportional, integral, and derivative control actions. Proportional control provides a rapid response to the current deviation, with larger corrections for larger deviations. Integral control eliminates steady-state errors by accumulating historical deviations to compensate for persistent small deviations. Derivative control predicts the trend of deviation changes and proactively suppresses rapid changes in deviation, enhancing system stability. PID control algorithms are suitable for controlled objects such as electrochromic lenses, which exhibit response lag and nonlinear characteristics.

[0043] The specific process of adjusting the driving voltage value using the PID control algorithm based on the transmittance deviation value is as follows.

[0044] Calculate the current driving voltage adjustment ΔV: , in The proportionality coefficient, expressed in volts per percentage (V / %), determines the strength of the proportional control effect. The integral coefficient, expressed in volts per second (V / (%·s)), determines the strength of the integral control action. The differential coefficient, expressed in volts per second (V·s / %), determines the strength of the differential control effect. The sampling period, in seconds, represents the time interval between two consecutive control operations, for example, a value of 50 milliseconds; This represents the transmittance deviation value at the current moment, expressed as a percentage. This represents the transmittance deviation value at the previous moment, expressed as a percentage. It is the cumulative sum of the products of the deviation value and the sampling period for all sampling periods from the initial time to the current time, i.e., the integral term, and the unit is percentage per second.

[0045] Proportional Term It responds instantly to the current deviation; the larger the deviation, the larger the drive voltage adjustment. (Integral term) Historical deviations are accumulated to eliminate static errors that persist around the target value. Differential term. It responds to the rate of change of the deviation, generating a large reverse adjustment to suppress overshoot when the deviation increases rapidly, and generating a positive adjustment to prevent oscillation when the deviation decreases rapidly.

[0046] Adjust the drive voltage Superimposed on the current driving voltage value To obtain the new driving voltage value The new driving voltage value is then limited to the safe voltage range of the electrochromic lens. The safe voltage range refers to the voltage interval within which the electrochromic lens can function normally; exceeding this range may cause lens damage or irreversible performance degradation. For example, the safe voltage range is 0 volts to 3.3 volts. Limiting is achieved as follows: If If it exceeds the upper limit of the safe voltage, then let Equal to the upper limit of safe voltage; if If it is less than the lower limit of the safe voltage, then let It equals the lower limit of safe voltage.

[0047] When the absolute value of the transmittance deviation is less than a preset threshold for a preset number of consecutive samples, the accumulation of the integral term is stopped to prevent integral saturation. Integral saturation refers to the phenomenon where, when the system has a persistent but incompletely eliminateable deviation, the integral term accumulates to an excessively large value, causing the system output to saturate (reach the limit) and fail to exit the saturated state in a timely manner. To prevent integral saturation, this embodiment sets the following anti-saturation mechanism: the preset threshold is a positive number close to zero, for example, 2%; the preset number of samples is, for example, 5. When the absolute value of the transmittance deviation is less than 2% for 5 consecutive samples, the system is determined to have entered a steady state. At this time, the accumulation of the integral term is stopped (i.e., the integral term is kept at its current value and no longer increases), thereby avoiding excessive accumulation of the integral term that would cause the system to respond sluggishly to subsequent disturbances.

[0048] Step 107: In response to the detection that the display interface of the smart wearable device is active, the color shift of the electrochromic lens is adjusted synchronously according to the ambient color temperature value so that the transmission spectrum of the lens matches the color temperature of the display interface.

[0049] Furthermore, "display interface active" means that the display screen of the smart wearable device is lit and working, indicating that the user is viewing content through the display interface. When the display interface is inactive (such as in standby or screen-off state), there is no need for color shift adjustment to save energy.

[0050] Color shift refers to the extent to which electrochromic lenses selectively adjust the spectral distribution of transmitted light, in addition to light transmittance adjustment. Unlike light transmittance adjustment (which mainly affects the total amount of light passing through all wavelengths), color shift adjustment mainly affects the relative proportion of light passing through different wavelengths (different colors), thereby changing the color temperature of the transmitted light.

[0051] The specific implementation of adjusting the color shift of electrochromic lenses according to the ambient color temperature is as follows: If the ambient color temperature is high (e.g., greater than 5500K, indicating a cooler tone with more blue light), the electrochromic lens is shifted towards a warmer tone, increasing the transmittance of the yellow to red wavelength (approximately 570nm to 700nm) while relatively suppressing the transmittance of the blue wavelength (approximately 400nm to 480nm), thus lowering the overall color temperature of the transmitted spectrum and complementing the cooler ambient light. If the ambient color temperature is low (e.g., less than 4000K, indicating a warmer tone with more red light), the electrochromic lens is shifted towards a cooler tone, increasing the transmittance of the blue wavelength while relatively suppressing the transmittance of the yellow to red wavelength, thus raising the overall color temperature of the transmitted spectrum and complementing the warmer ambient light.

[0052] Color shift can be achieved by adjusting the combination of driving voltages for different color sub-layers in an electrochromic lens. Electrochromic lenses can employ a multi-layered electrochromic material stacked structure, with different layers having different modulation capabilities for different wavelengths of light. By controlling the driving voltage of each layer separately, the transmittance of different wavelengths can be adjusted independently, thereby achieving continuous adjustment of the color shift.

[0053] Steps 106 and 107 are parallel and coordinated control steps. The proportional-integral-derivative closed-loop control in step 106 runs continuously to ensure that the actual total transmittance of the electrochromic lens accurately converges to the corrected transmittance target value. Step 107 is initiated when the display interface is activated, introducing a color offset bias by adjusting the driving voltage ratio of each color sub-layer of the electrochromic lens. This color offset bias is superimposed on the total driving voltage amplitude determined in step 106, and the transmittance deviation acquisition and PID calculation in step 106 are continuously performed during the color offset adjustment process to compensate in real time for fluctuations in the total transmittance measurement caused by spectral selective modulation. Both steps achieve comprehensive control of the lens from the dimensions of transmittance amplitude and transmission spectrum, respectively, jointly ensuring both accurate brightness and color matching when the display interface is activated.

[0054] As can be seen from the above technical solutions, the beneficial effects of this embodiment are as follows: by integrating ambient illuminance values ​​and device posture parameters for dual-dimensional dimming decisions, a line-of-sight angle compensation mechanism is introduced to correct the deviation in light flux entering the eye caused by the user's head tilt, and the transmittance is precisely adjusted by combining closed-loop feedback of actual transmittance and PID control. At the same time, the color offset is adjusted synchronously according to the display interface activation state and ambient color temperature to match the display color temperature, which significantly improves the visual comfort and display effect of smart wearable devices under different lighting conditions and different postures.

[0055] Figure 1 The embodiments shown are merely basic examples of the method of the present invention. Other preferred embodiments of the method can be obtained by making certain optimizations and extensions based on them.

[0056] like Figure 2 The image shows another specific embodiment of the environmental adaptive dimming method for optical lenses in a smart wearable device according to the present invention. This embodiment is a further description based on the foregoing embodiments. In this embodiment, the method includes the following steps:

[0057] Step 201: Obtain the ambient temperature and relative humidity of the environment where the smart wearable device is located; Ambient temperature refers to the thermodynamic temperature of the air surrounding the smart wearable device, which is collected by a temperature sensor integrated into the device. The temperature sensor can be a negative temperature coefficient thermistor (NTC thermistor), whose resistance decreases as temperature increases. By measuring the resistance value and combining it with a pre-calibrated resistance-temperature curve, the ambient temperature can be calculated. Alternatively, a semiconductor integrated temperature sensor (such as the LM75 digital temperature sensor) can be used. This type of sensor has a built-in bandgap reference source and analog-to-digital converter, and can directly output a digital temperature value with a measurement accuracy of ±0.5°C.

[0058] Ambient relative humidity refers to the percentage of actual water vapor pressure in the air to the saturated water vapor pressure at the same temperature, collected by a humidity sensor integrated into a smart wearable device. Humidity sensors can be capacitive (such as the SHT30 digital temperature and humidity sensor). These sensors utilize the characteristic that the dielectric constant of polymer dielectric materials changes with humidity, converting humidity changes into capacitance changes, which are then converted into digital signals by signal conditioning circuitry. The measurement accuracy of humidity sensors is typically ±2%RH to ±3%RH, and the measurement range is 0%RH to 100%RH.

[0059] Step 202: Calculate the dew point temperature based on the ambient temperature and relative humidity. If the ambient temperature is lower than the dew point temperature and the relative humidity is higher than the preset humidity threshold, then enter the anti-fog mode. Dew point temperature refers to the temperature at which water vapor in the air begins to condense into liquid water (condensation) under certain ambient temperature and relative humidity conditions. When the surface temperature of an object is lower than the dew point temperature of the surrounding air, water vapor in the air will condense into tiny water droplets on the surface, resulting in fogging. Therefore, by determining whether the lens temperature (approximately equal to the ambient temperature) is lower than the dew point temperature, it is possible to predict whether fogging will occur on the lens surface.

[0060] In this embodiment, the Magnus formula is used to calculate the dew point temperature. The Magnus formula is an empirical formula for calculating saturated vapor pressure, and the dew point temperature is calculated by inversely using the saturated vapor pressure. The specific calculation process is as follows:

[0061] First, calculate the intermediate variables: ,in This refers to the ambient temperature, expressed in degrees Celsius. This refers to the ambient relative humidity, expressed as a percentage. and is the Magnus constant for water surfaces (where the temperature is above 0°C). =17.62, =243.12.

[0062] Then calculate the dew point temperature: The unit is Celsius.

[0063] If the ambient temperature Below dew point temperature And the relative humidity of the environment If the relative humidity exceeds a preset threshold, the system will enter anti-fog mode. The preset humidity threshold is a predefined relative humidity critical value, for example, 80%RH. The physical meaning of this judgment logic is: fogging conditions are only truly met and anti-fog measures need to be activated when the water vapor content in the air is sufficiently high (relative humidity greater than 80%) and the lens surface temperature is lower than the dew point temperature; if the relative humidity is low, even if the temperature is lower than the dew point temperature, the amount of water vapor in the air is insufficient to form obvious fog on the lens surface.

[0064] Step 203: In anti-fog mode, activate the transparent electric heating film embedded in the electrochromic lens, or activate the superhydrophilic coating on the surface of the electrochromic lens to suppress fogging on the lens surface. A transparent electric heating film is a thin-film heating element with transparent and conductive properties, which can be fabricated using indium tin oxide (ITO) thin films or graphene thin films. The transparent electric heating film is embedded within the interlayer of an electrochromic lens or adhered to the lens surface, generating Joule heating when energized. The main advantages of the transparent electric heating film are: high light transmittance (visible light transmittance greater than 85%), without affecting the optical performance of the lens; it enables large-area uniform heating with high temperature control accuracy; and it has a low driving voltage, making it suitable for battery-powered wearable devices. In anti-fog mode, applying a low-voltage DC current (e.g., 3 to 5 volts) to the transparent electric heating film, with a heating power of, for example, 0.5 watts, raises the lens surface temperature by 5 to 8 degrees Celsius, thereby raising the lens surface temperature above the dew point temperature and preventing water vapor condensation.

[0065] Superhydrophilic coatings are functional thin-film coatings applied to the surface of lenses. Their core characteristic is an extremely low static water contact angle (typically less than 5 degrees), allowing tiny water droplets condensed on the lens surface to quickly spread into a uniform, continuous water film, rather than forming spherical droplets. The scattering effect of a uniform water film on light is far less than that of a large number of spherical droplets, thus maintaining high light transmittance and image clarity even with condensation on the lens surface. Superhydrophilic coatings can be applied to the lens surface using nano-titanium dioxide coatings or composite coatings containing ITO and silica, via sol-gel methods or magnetron sputtering.

[0066] The transparent electric heating film and the superhydrophilic coating can be used alone or in combination. In combination, the superhydrophilic coating spreads condensed water into a uniform water film to reduce light scattering, while the transparent electric heating film raises the lens temperature to fundamentally inhibit condensation. The synergistic effect of the two results in a superior anti-fog performance.

[0067] The electrochromic properties of electrochromic materials exhibit a significant temperature dependence. When the transparent electric heating film is activated, the lens temperature gradually rises from ambient temperature to the anti-fog operating temperature. This temperature change alters the ion mobility within the electrochromic material layer, causing a shift in the transmittance response value of the electrochromic lens under the same driving voltage—that is, a general drift in the transmittance-voltage characteristic curve. If this drift is not compensated for, it will directly affect the control adaptability of the proportional, integral, and derivative coefficients already tuned in step 106, leading to a decrease in closed-loop dimming accuracy. Therefore, while activating the heating film to suppress fogging, it is necessary to simultaneously adjust the PID control parameters in subsequent steps to counteract the interference of temperature drift on dimming accuracy.

[0068] Step 204: Simultaneously, adjust the response speed of the proportional-integral-derivative control algorithm according to the rate of change of the ambient illuminance value. If the rate of change is greater than the preset rate threshold, increase the proportional coefficient and decrease the integral coefficient to speed up the dimming response.

[0069] Since the activation of the transparent electric heating film in step 203 has caused the temperature of the electrochromic lens to rise, and this temperature change has caused the transmittance-voltage characteristic curve to drift and interfere with the accuracy of the PID closed-loop control in step 106, the adjustment of the PID control parameters in step 204 is precisely to suppress this interference and ensure dimming accuracy. At the same time, the rate of change of ambient illuminance is also an important factor affecting the performance of PID control; therefore, step 204 performs temperature drift compensation and illuminance change rate response in a coordinated manner.

[0070] The rate of change of ambient illuminance refers to the rate at which the ambient illuminance value changes over time, measured in lux per second (lux / s). It reflects the drastic change in ambient lighting conditions. The rate of change can be calculated as follows: The ambient illuminance value is obtained at the current sampling time. The ambient illuminance value was obtained at the previous sampling time. Then the rate of change ,in The sampling period.

[0071] The preset rate threshold is a predefined critical value for the rate of change of illuminance, for example, 500 lux per second. This threshold corresponds to typical scenarios of rapid changes in light intensity, such as when a user moves from indoors to outdoors and the ambient illuminance jumps from hundreds of lux to tens of thousands of lux within seconds.

[0072] If the rate of change of ambient illuminance exceeds a preset rate threshold, it indicates that the ambient light is undergoing a drastic change. Combined with the activation of the anti-fog mode in step 203, the system faces dual interference from temperature drift and sudden changes in light intensity, requiring a faster dimming response to reduce the transition time that causes visual discomfort for the user. The specific implementation method is to increase the proportional coefficient. And reduce the integral coefficient Increase the proportionality factor (For example, increasing it to 1.5 times the original value) can enhance the system's response to the current transmittance deviation, allowing the driving voltage to adjust towards the correction target value more quickly; reducing the integral coefficient (For example, reducing it to 0.5 times the original value) can lower the weight of the integral term, preventing excessive accumulation of the integral term during rapid changes that could lead to system overshoot or oscillation. Furthermore, based on the real-time lens temperature, a pre-calibrated temperature-voltage compensation table is consulted to obtain the drive voltage compensation amount at the current temperature. This compensation amount is then added to the drive voltage value output by the PID controller to directly offset the transmittance-voltage characteristic drift of the electrochromic material caused by temperature increases. Differential coefficients It can remain unchanged or be finely adjusted according to the actual response. When the rate of change of the ambient illuminance value falls below the preset rate threshold, the proportional coefficient and integral coefficient are restored to their original values ​​to maintain the control accuracy of the system in steady state; when the anti-fog mode is deactivated, the drive voltage compensation is returned to zero.

[0073] As can be seen from the above technical solutions, the beneficial effects of this embodiment are as follows: by linking the heating operation in anti-fog mode with the adaptive adjustment of PID dimming parameters, the temperature compensation mechanism is used to offset the transmittance-voltage characteristic drift caused by the heating of electrochromic materials. At the same time, the PID control parameters are adjusted in coordination according to the rate of change of ambient illuminance, thus achieving compatibility and unity between anti-fog execution and precise dimming. This ensures the all-weather visual experience and dimming accuracy of smart wearable devices in complex environments with low temperature, high humidity and rapid changes in light.

[0074] This invention also provides an environmentally adaptive dimming system for optical lenses in smart wearable devices. See also... Figure 3 The image shown is a specific embodiment of an environmental adaptive dimming system for optical lenses in a smart wearable device provided by the present invention. This embodiment of the system is used to execute... Figures 1-2 The physical apparatus of the method. Its technical solution is essentially the same as the embodiments described above, and the corresponding descriptions in the embodiments above also apply to this embodiment. The system includes:

[0075] The parameter acquisition module 301 is configured to acquire the current ambient light parameters and device posture parameters of the smart wearable device. The ambient light parameters include at least the ambient illuminance value and the ambient color temperature value. The basic transmittance target value determination module 302 is configured to determine the basic transmittance target value based on the ambient illuminance value and through a preset light-sensing mapping curve. The corrected transmittance target value determination module 303 is configured to determine the line of sight angle based on the device posture parameters, adjust the basic transmittance target value based on the line of sight angle, and obtain the corrected transmittance target value. The drive voltage value calculation module 304 is configured to calculate the drive voltage value of the corresponding electrochromic lens based on the corrected light transmittance target value, and output the drive voltage value to the electrochromic lens. The transmittance deviation calculation module 305 is configured to collect the actual transmittance of the electrochromic lens in real time and calculate the transmittance deviation between the actual transmittance and the corrected transmittance target value. The drive voltage adjustment module 306 is configured to adjust the drive voltage value according to the transmittance deviation value using a proportional-integral-derivative control algorithm until the absolute value of the transmittance deviation value is less than a preset threshold. The adjustment module 307 is configured to adjust the color shift of the electrochromic lens synchronously according to the ambient color temperature value in response to detecting that the display interface of the smart wearable device is active, so that the transmission spectrum of the lens matches the color temperature of the display interface.

[0076] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include main memory, such as high-speed random-access memory (RAM), or it may also include non-volatile memory, such as at least one disk storage device. Of course, the electronic device may also include other hardware required for other services.

[0077] The processor, network interface, and memory can be interconnected via an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 4 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0078] Memory is used to store instructions for execution. Specifically, instructions for execution are computer programs that can be executed. Memory can include main memory and non-volatile memory, and it provides the processor with execution instructions and data.

[0079] In one possible implementation, the processor reads the corresponding execution instructions from non-volatile memory into memory and then executes them. Alternatively, it can obtain the corresponding execution instructions from other devices to form an environmental adaptive dimming device for the optical lens of a smart wearable device at the logical level. The processor executes the execution instructions stored in memory to implement the environmental adaptive dimming method for the optical lens of a smart wearable device provided in any embodiment of the present invention.

[0080] The above is as described in the present invention. Figure 3 The method for implementing an environmental adaptive dimming system for an optical lens of a smart wearable device, as provided in the illustrated embodiment, can be applied to or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed through integrated logic circuits in the processor's hardware or through software instructions. The processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor.

[0081] The steps of the method disclosed in the embodiments of this invention can be directly manifested as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.

[0082] This invention also proposes a readable medium storing execution instructions. When these instructions are executed by the processor of an electronic device, the electronic device can perform an environmental adaptive dimming method for optical lenses of a smart wearable device provided in any embodiment of this invention, specifically for performing actions such as... Figure 1 , Figure 2 The method shown.

[0083] The electronic devices in the foregoing embodiments may be computers.

[0084] Those skilled in the art will understand that embodiments of the present invention can be provided as methods or computer program products. Therefore, the present invention can be implemented in a completely hardware embodiment, a completely software embodiment, or a combination of software and hardware.

[0085] The various embodiments in this invention are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the apparatus embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0086] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0087] The above are merely embodiments of the present invention and are not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of the present invention should be included within the scope of the claims of the present invention.

Claims

1. An environmental adaptive dimming method for optical lenses of a smart wearable device, characterized in that, The method includes: Acquire the current ambient light parameters and device posture parameters of the smart wearable device, wherein the ambient light parameters include at least the ambient illuminance value and the ambient color temperature value; Based on the ambient illuminance value, the target value of basic light transmittance is determined by a preset light-sensing mapping curve; The line of sight angle is determined based on the device posture parameters, and the basic target value of light transmittance is adjusted based on the line of sight angle to obtain the corrected target value of light transmittance. Based on the corrected transmittance target value, calculate the corresponding driving voltage value of the electrochromic lens, and output the driving voltage value to the electrochromic lens; The actual light transmittance of the electrochromic lens is collected in real time, and the light transmittance deviation between the actual light transmittance and the corrected light transmittance target value is calculated. Based on the transmittance deviation value, the driving voltage value is adjusted using a proportional-integral-derivative control algorithm until the absolute value of the transmittance deviation value is less than a preset threshold. In response to the detection that the display interface of the smart wearable device is active, the color shift of the electrochromic lens is synchronously adjusted according to the ambient color temperature value so that the transmission spectrum of the lens matches the color temperature of the display interface.

2. The method according to claim 1, characterized in that, The acquisition of the current ambient light parameters and device attitude parameters of the smart wearable device includes: The ambient illuminance value and the ambient color temperature value are collected by the ambient light sensor and the color temperature sensor integrated in the smart wearable device, respectively. The three-axis angular velocity and linear acceleration are obtained by the gyroscope and accelerometer built into the smart wearable device. The attitude parameters of the device are obtained by attitude calculation. The attitude parameters include pitch angle, roll angle and yaw angle. The line-of-sight angle is the pitch angle.

3. The method according to claim 1, characterized in that, The step of determining the target value of basic transmittance based on the ambient illuminance value and through a preset light-sensing mapping curve includes: The light-sensing mapping curve is a logarithmic curve, and the target value of the basic transmittance is calculated according to the following formula: in, To preset the minimum light transmittance, To preset the maximum light transmittance, The ambient illuminance value currently obtained. The reference ambient illuminance value is used as a reference, and the preset minimum transmittance, the preset maximum transmittance, and the reference ambient illuminance value are all fixed constants.

4. The method according to claim 1, characterized in that, The step of adjusting the base transmittance target value according to the viewing angle to obtain the corrected transmittance target value includes: If the angle of view is greater than a preset angle threshold, then the correction coefficient is determined to be... ,in This is a preset proportional coefficient. The angle between the lines of sight, The preset angle threshold; If the angle of view is not greater than the preset angle threshold, then the correction coefficient is 1. The target value for the corrected transmittance is calculated. The target value of the corrected transmittance is limited to the range formed by the preset minimum transmittance and the preset maximum transmittance.

5. The method according to claim 1, characterized in that, The step of calculating the driving voltage value of the corresponding electrochromic lens based on the corrected light transmittance target value includes: Based on the voltage-transmittance characteristic curve of the electrochromic lens, the driving voltage value corresponding to the corrected transmittance target value is determined by linear interpolation. The voltage-transmittance characteristic curve was obtained in advance through calibration experiments and stored as a discrete point sequence. The interpolation formula is ,in and These are the two calibration points in the discrete point sequence that are adjacent to the target value of the corrected transmittance.

6. The method according to claim 1, characterized in that, The step of adjusting the driving voltage value using a proportional-integral-derivative control algorithm based on the transmittance deviation value includes: The current driving voltage adjustment is calculated as follows: , in , , These are the proportional coefficient, integral coefficient, and differential coefficient, respectively. The sampling period is The transmittance deviation value at the current moment. This represents the transmittance deviation value at the previous moment; The driving voltage adjustment is superimposed on the current driving voltage value to obtain a new driving voltage value, and the new driving voltage value is limited to the safe voltage range of the electrochromic lens; When the absolute value of the transmittance deviation is less than the preset threshold for a preset number of consecutive times, the accumulation of the integral term is stopped to prevent integral saturation.

7. The method according to any one of claims 1 to 6, characterized in that, Also includes: The ambient temperature and relative humidity of the environment in which the smart wearable device is located are obtained; The dew point temperature is calculated based on the ambient temperature and the ambient relative humidity. If the ambient temperature is lower than the dew point temperature and the ambient relative humidity is greater than a preset humidity threshold, then the anti-fog mode is entered. In the anti-fog mode, the transparent electric heating film embedded in the electrochromic lens is activated, or the superhydrophilic coating on the surface of the electrochromic lens is activated, to suppress fogging on the lens surface. Meanwhile, the response speed of the proportional-integral-derivative control algorithm is adjusted according to the rate of change of the ambient illuminance value. If the rate of change is greater than a preset rate threshold, the proportional coefficient is increased and the integral coefficient is decreased to speed up the dimming response. The smart wearable device is either an AI glasses device or a head-mounted display device for a smart cockpit.

8. An environmental adaptive dimming system for optical lenses of a smart wearable device, characterized in that, include: The parameter acquisition module is used to acquire the current ambient light parameters and device posture parameters of the smart wearable device. The ambient light parameters include at least the ambient illuminance value and the ambient color temperature value. The basic transmittance target value determination module is used to determine the basic transmittance target value based on the ambient illuminance value and through a preset light-sensing mapping curve. The corrected transmittance target value determination module is used to determine the line of sight angle based on the device posture parameters, adjust the basic transmittance target value based on the line of sight angle, and obtain the corrected transmittance target value. The driving voltage value calculation module is used to calculate the driving voltage value of the corresponding electrochromic lens based on the corrected light transmittance target value, and output the driving voltage value to the electrochromic lens; The transmittance deviation calculation module is used to collect the actual transmittance of the electrochromic lens in real time and calculate the transmittance deviation between the actual transmittance and the corrected transmittance target value. The driving voltage adjustment module is used to adjust the driving voltage value according to the transmittance deviation value using a proportional-integral-derivative control algorithm until the absolute value of the transmittance deviation value is less than a preset threshold. An adjustment module is used to respond to the detection that the display interface of the smart wearable device is in an active state, and to synchronously adjust the color shift of the electrochromic lens according to the ambient color temperature value, so that the transmission spectrum of the lens matches the color temperature of the display interface.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method of any one of claims 1 to 7.

10. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1 to 7.