Headlamp height adjusting method, system and equipment

By forcibly initializing the headlight adjustment motor to the mechanical limit position when the vehicle starts, and dynamically calculating the displacement amount with multi-dimensional signals, the problem of cumulative error in traditional headlight adjustment is solved, and the high accuracy and stability of headlight height adjustment is achieved, and driving safety and comfort are improved.

CN120363826APending Publication Date: 2025-07-25ZHEJIANG SMART INTELLIGENCE TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510810190.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-17
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

In traditional headlight height adjustment methods, the deviation between the actual position and the theoretical position gradually accumulates, affecting the adjustment accuracy, resulting in excessively high and dazzling lights or insufficient lighting.

Method used

When the vehicle usage mode is switched to the driving state and the vehicle speed is below the threshold, the headlight is forced to adjust the motor movement to the mechanical limit position for initialization. Combined with multi-dimensional signals such as suspension height, acceleration, etc., the driving working conditions are dynamically determined and the displacement is calculated. Through dynamic initialization calibration and the multi-source signal fusion control, it avoids single signal lag or cumulative errors.

Benefits of technology

It significantly improves the control accuracy of headlight height adjustment, ensuring the accuracy and stability of the light projection angle, especially improving lighting safety and driving comfort under complex road conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120363826A_ABST
    Figure CN120363826A_ABST
Patent Text Reader

Abstract

The invention relates to the field of automobile control, in particular to a headlamp height adjusting method, system and equipment, and the method comprises the steps: obtaining a vehicle use mode and a vehicle state; when the vehicle use mode is switched from the first mode group to the second mode group and the vehicle speed in the vehicle state is smaller than a preset first vehicle speed, initializing a headlamp adjusting motor so as to adjust the headlamp adjusting motor to a reference position; judging the driving condition of the vehicle according to the vehicle state; calculating the displacement of a headlamp adjusting motor according to the driving condition, the vehicle state and the reference position; and according to the displacement amount, a headlamp adjusting motor is controlled to move, so that headlamp height adjustment is achieved. According to the method, the driving working condition is dynamically judged, the target displacement amount is calculated, the adjustment deviation caused by single signal lag or accumulative errors in a traditional method is avoided, and the control precision of headlamp height adjustment is remarkably improved through dynamic initialization calibration and multi-source signal fusion control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle control, and particularly to a method, a system and a device for adjusting the height of a headlight. Background Art

[0002] Automobile headlights are key components for night driving safety, and their main function is to illuminate the road ahead and improve the driver's field of vision. However, if the irradiation angle and height of the headlights are not appropriate, it may affect the driver's line of sight and even cause glare to the driver of oncoming vehicles. To solve this problem, an automatic headlight height adjustment system has emerged. This system uses sensors to detect the vehicle's attitude changes in real time and controls the headlight adjustment motor according to a preset algorithm to achieve automatic adjustment of the headlight irradiation height to ensure a good field of vision for the driver.

[0003] Traditional methods dynamically adjust the headlight pitch angle by controlling the displacement of the headlight adjustment motor to cope with vehicle attitude changes, avoiding glare to oncoming vehicles caused by too high lights or insufficient lighting caused by too low lights; and rely on signals from suspension height sensors, acceleration sensors, etc. to calculate the target height in real time, and use a stepper motor to drive the headlight adjustment mechanism to achieve position control. However, in the adjustment of the headlight position, the deviation between the actual position and the theoretical position gradually accumulates, ultimately affecting the accuracy of headlight height adjustment. Summary of the Invention

[0004] To solve the above problems, the present invention provides a method, a system and a device for adjusting the height of a headlight.

[0005] In a first aspect of the present invention, a method for adjusting the height of a headlight is disclosed, including:

[0006] Obtaining the vehicle usage mode and the vehicle state;

[0007] When the vehicle usage mode switches from the first mode group to the second mode group and the vehicle speed in the vehicle state is less than a preset first vehicle speed, initializing the headlight adjustment motor to adjust the headlight adjustment motor to a reference position;

[0008] Judging the driving condition of the vehicle according to the vehicle state;

[0009] Calculating the displacement of the headlight adjustment motor according to the driving condition, the vehicle state and the reference position;

[0010] Controlling the movement of the headlight adjustment motor according to the displacement to achieve headlight height adjustment.

[0011] Further, the method further includes:

[0012] Obtaining the number of headlight adjustment times within a first preset time period;

[0013] When the number of headlight adjustments is greater than a preset threshold, exit the headlight height adjustment mode.

[0014] Further, the steps for initializing the headlight adjustment motor include:

[0015] Control the headlight adjustment motor to move in a first direction until the mechanical limit position, and maintain for a second preset duration;

[0016] Control the headlight adjustment motor to move in the opposite direction of the first direction by a preset first distance; the first distance is the distance from the mechanical limit position to the reference position.

[0017] Further, the steps for determining the driving condition of the vehicle according to the vehicle state include:

[0018] Determine the driving condition of the vehicle according to the vehicle speed, vehicle acceleration, brake pedal value, brake pedal change rate, front suspension height, and rear suspension height in the vehicle state;

[0019] Wherein, the driving conditions include a low-speed driving state, an accelerating driving state, a decelerating driving state, an uphill driving state, a downhill driving state, and a maintaining driving state.

[0020] Further, when the driving condition is the low-speed driving state, the uphill driving state, or the downhill driving state, the steps for calculating the displacement of the headlight adjustment motor according to the driving condition, the vehicle state, and the reference position include:

[0021] Calculate the target position of the headlight adjustment motor according to the front suspension height and the rear suspension height;

[0022] Calculate the displacement of the headlight adjustment motor according to the target position and the reference position.

[0023] Further, when the driving condition is the accelerating driving state / decelerating driving state, the steps for calculating the displacement of the headlight adjustment motor according to the driving condition, the vehicle state, and the reference position include:

[0024] Control the headlight adjustment motor to move so that the headlight is adjusted downward / upward by a preset height;

[0025] Calculate the target position of the headlight adjustment motor according to the front suspension height and the rear suspension height;

[0026] Calculate the displacement of the headlight adjustment motor according to the target position, the preset height, and the reference position.

[0027] Further, the step of controlling the headlight adjustment motor according to the displacement amount includes:

[0028] Controlling the headlight adjustment motor to preheat, and the preheating duration is a preset third duration;

[0029] Judging whether the displacement amount exceeds a preset displacement threshold:

[0030] When it exceeds, determining the maximum motor speed movement duration according to the displacement amount; controlling the headlight adjustment motor to accelerate according to a preset motor acceleration until the speed of the headlight adjustment motor reaches the preset motor maximum speed, and maintaining the maximum motor speed movement duration, then decelerating to 0 according to the preset motor deceleration and stopping, and maintaining a preset fourth duration at the stop position;

[0031] Otherwise, determining the motor acceleration duration according to the displacement amount, the motor acceleration, and the motor deceleration; controlling the headlight adjustment motor to run for the motor acceleration duration according to the motor acceleration, then decelerating to 0 according to the motor deceleration and stopping, and maintaining the fourth duration at the stop position.

[0032] Further, the method further includes:

[0033] When the headlight adjustment motor moves twice continuously and the movement directions are opposite, the time interval between the two movements is not less than a preset fifth duration.

[0034] A second aspect of the present invention discloses a headlight height adjustment system, including:

[0035] An acquisition module, configured to acquire the vehicle usage mode and the vehicle state;

[0036] An initialization module, configured to initialize the headlight adjustment motor to adjust the headlight adjustment motor to a reference position when the vehicle usage mode switches from the first mode group to the second mode group and the vehicle speed in the vehicle state is less than a preset first vehicle speed;

[0037] A judgment module, configured to judge the driving condition of the vehicle according to the vehicle state;

[0038] A calculation module, configured to calculate the displacement amount of the headlight adjustment motor according to the driving condition, the vehicle state, and the reference position;

[0039] A control module, configured to control the movement of the headlight adjustment motor according to the displacement amount to achieve headlight height adjustment.

[0040] A third aspect of the present invention discloses an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. It is characterized in that when the processor executes the computer program, the steps of any of the headlight height adjustment methods disclosed in the first aspect of the present invention are implemented.

[0041] When the usage mode of the vehicle is switched to the driving state and the vehicle speed is lower than the threshold, the present invention forcibly triggers the headlight adjustment motor to move to the mechanical limit position and detects stall, and initializes with the actual stall point as the reference position to eliminate the initial position drift error caused by mechanical wear or environmental temperature change; on this basis, combining multi-dimensional signals such as vehicle suspension height, acceleration, and the number of adjustments within a preset duration, dynamically determines the driving condition and calculates the target displacement amount, avoiding the adjustment deviation caused by single-signal lag or cumulative error in the traditional method. Through dynamic initialization calibration and multi-source signal fusion control, the control accuracy of headlight height adjustment is significantly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0043] Figure 1 is a flowchart of a headlight height adjustment method disclosed in an embodiment of the present invention;

[0044] Figure 2 is a structural diagram of a headlight height adjustment system disclosed in an embodiment of the present invention;

[0045] Figure 3 is a structural diagram of the electronic device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0046] In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0047] In the description, claims, and the above-mentioned drawings of the present invention, terms such as "first" and "second" are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, or product that includes a series of steps or units is not limited to the listed steps or units, but may optionally further include unlisted steps or units, or may optionally further include other steps or units inherent to these processes, methods, devices, or products.

[0048] Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.

[0049] Please refer to Figure 1 as shown in Figure 1 FIG. is a schematic flowchart of a headlight height adjustment method disclosed in an embodiment of the present invention. As Figure 1 shown, the headlight height adjustment method may include the following operations:

[0050] S101. Obtain the vehicle usage mode and vehicle state;

[0051] In an alternative embodiment, the vehicle state includes vehicle speed, vehicle acceleration, brake pedal value, brake pedal change rate, front suspension height, and rear suspension height.

[0052] Vehicle speed refers to the instantaneous speed of the vehicle in the traveling direction during driving, which can be collected in real time through a wheel speed sensor or GPS signal, and reflects how fast the vehicle is moving. Vehicle speed can be in units of kilometers per hour or meters per second.

[0053] Vehicle acceleration refers to the physical quantity of the change in vehicle speed per unit time, which can be obtained by calculating the drive motor torque signal through an inertial measurement unit. A positive value of vehicle acceleration indicates acceleration, and a negative value indicates deceleration.

[0054] Brake pedal value refers to the travel depth or pressure value of the brake pedal depressed by the driver, which can quantify the intensity of the braking action, and can be measured by a brake pedal position sensor or a hydraulic pressure sensor, and is expressed as a percentage or a pressure value.

[0055] Brake pedal change rate refers to the change amount of the brake pedal value per unit time, which reflects the urgency of the braking operation and can be obtained by differentiating the brake pedal value.

[0056] The front suspension height refers to the real-time compression amount or ground clearance of the vehicle's front wheel suspension system, which characterizes the attitude of the vehicle's front end and can be measured by a displacement sensor installed on the front suspension.

[0057] The rear suspension height refers to the real-time compression amount or ground clearance of the vehicle's rear wheel suspension system, which characterizes the attitude of the vehicle's rear end and can be measured by a displacement sensor installed on the rear suspension.

[0058] The vehicle usage mode is a category divided according to the current operating state of the vehicle and the user's operation intention.

[0059] S102. When the vehicle usage mode switches from the first mode group to the second mode group, and the vehicle speed in the vehicle state is less than a preset first vehicle speed, initialize the headlight adjustment motor to adjust the headlight adjustment motor to the reference position;

[0060] In this optional embodiment, the first mode group is the low state mode, indicating that the vehicle has not entered the driving preparation or only enables some non-driving functions. The second mode group is the high state mode, indicating that the vehicle has started and has the driving conditions or is driving. The first mode group may include the ignition-off standby mode, the temporary parking mode, and the convenience function mode. The ignition-off standby mode indicates that the vehicle is completely powered off or in a sleep state. The temporary parking mode indicates short-term parking without activating the driving function. The convenience function mode indicates that the vehicle only enables comfort functions such as air conditioning and audio-visual, without triggering the power system. The first mode group may include the power-on ready-to-drive mode and the driving mode. The power-on ready-to-drive mode indicates that the vehicle's power system is powered on and enters the drivable state. The driving mode indicates that the vehicle is actually in a moving or autonomous driving state.

[0061] In an optional embodiment, the steps of initializing the headlight adjustment motor include:

[0062] Control the headlight adjustment motor to move in the first direction until the mechanical limit position and maintain for a second preset duration;

[0063] Control the headlight adjustment motor to move a preset first distance in the opposite direction of the first direction; the first distance is the distance from the mechanical limit position to the reference position.

[0064] In this optional embodiment, the mechanical limit position refers to the end position where the headlight adjustment motor cannot continue to move due to mechanical structure limitations or sensor triggering in a certain movement direction. The mechanical structure limitations in this embodiment may be stoppers or limiters, and the embodiments of the present invention do not make limitations.

[0065] It can be seen that in this optional embodiment, by first controlling the headlight adjustment motor to move to the mechanical limit position and maintaining for a second preset duration to eliminate gear clearance or mechanical rebound error, and then moving in the reverse direction by a preset distance, high-precision calibration of the initial position of the headlight adjustment motor is achieved, ensuring the benchmark consistency of subsequent height adjustment. At the same time, using the mechanical limit position as an absolute reference point can avoid long-term position deviation caused by sensor drift or cumulative error, improving the reliability and long-term stability of the headlight adjustment system, especially maintaining the accuracy of the light projection angle in the scenario of frequent mode switching.

[0066] S103. Determine the driving condition of the vehicle according to the vehicle state;

[0067] In an optional embodiment, the step of determining the driving condition of the vehicle according to the vehicle state includes:

[0068] Determine the driving condition of the vehicle according to the vehicle speed, vehicle acceleration, brake pedal value, brake pedal change rate, front suspension height, and rear suspension height in the vehicle state;

[0069] Wherein, the driving conditions include a low-speed driving state, an accelerating driving state, a decelerating driving state, an uphill driving state, a downhill driving state, and a maintaining driving state.

[0070] In an optional embodiment, the step of determining the driving condition of the vehicle includes:

[0071] Determine whether the vehicle speed is less than a preset first vehicle speed:

[0072] If it is less, determine that the driving condition is a low-speed driving state;

[0073] Otherwise, determine whether the vehicle acceleration exceeds a preset range:

[0074] If it exceeds, determine that the driving condition is an accelerating driving state or a decelerating driving state;

[0075] Otherwise, determine whether the vehicle acceleration, brake pedal value, and brake pedal change rate are all less than the corresponding preset minimum thresholds:

[0076] If so, determine the driving condition as an uphill driving state or a downhill driving state according to the front suspension height and the rear suspension height;

[0077] Otherwise, determine that the driving condition is a maintaining driving state.

[0078] It can be seen that in this alternative embodiment, by integrating multi-dimensional dynamic data such as vehicle speed, acceleration, brake pedal parameters, and front and rear suspension heights, a refined classification of driving conditions is achieved, thereby dynamically matching the headlight adjustment logic. At the same time, the influence of vehicle attitude on light projection is corrected in real time in combination with the change in suspension height, which not only improves the lighting safety and driving comfort in complex scenarios, but also avoids frequent adjustments caused by misjudgment of a single parameter, enhancing the system robustness and adaptability.

[0079] S104. Calculate the displacement of the headlight adjustment motor according to the driving condition, the vehicle state, and the reference position;

[0080] In an alternative embodiment, when the driving condition is the low-speed driving state, the uphill driving state, or the downhill driving state, the steps of calculating the displacement of the headlight adjustment motor according to the driving condition, the vehicle state, and the reference position include:

[0081] Calculate the target position of the headlight adjustment motor according to the front suspension height and the rear suspension height;

[0082] Calculate the displacement of the headlight adjustment motor according to the target position and the reference position.

[0083] In this alternative embodiment, based on the real-time difference between the front suspension height and the rear suspension height, the body pitch angle can be calculated through a vehicle geometric model, and then the change amount of the angle between the headlight beam projection axis and the horizontal plane can be deduced. Combining with a preset pitch angle-motor position mapping table, the target position of the headlight adjustment motor required to compensate for the pitch attitude is determined. Calculate the difference between the target position and the reference position to obtain the displacement of the headlight adjustment motor.

[0084] It can be seen that in this alternative embodiment, the body pitch angle is dynamically correlated with the suspension height, directly quantifying the actual influence of terrain or load changes on the headlight irradiation angle. In scenarios such as low speed, uphill and downhill that are prone to large body pitch, the target position of the motor is calculated in real time and accurately compensated, avoiding the lag of traditional single vehicle speed or acceleration adjustment. For example, when going uphill, the lights are automatically raised to prevent lighting blind spots, and when going downhill, the upward movement of the lights is suppressed to reduce the risk of dazzling oncoming vehicles. At the same time, by combining the geometric model and the mapping table, the calculation efficiency and hardware control compatibility are ensured, significantly improving the lighting safety and adaptive ability under complex road conditions.

[0085] In an alternative embodiment, when the driving condition is the accelerating driving state / decelerating driving state, the steps of calculating the displacement of the headlight adjustment motor according to the driving condition, the vehicle state, and the reference position include:

[0086] Control the movement of the headlight adjustment motor to adjust the headlight downward / upward by a preset height;

[0087] Calculate the target position of the headlight adjustment motor according to the front suspension height and the rear suspension height;

[0088] Calculate the displacement of the headlight adjustment motor according to the target position, the preset height and the reference position.

[0089] In this alternative embodiment, when the driving condition is an accelerating driving state, the vehicle's center of gravity moves backward, the compression amount of the front suspension spring decreases, and the front of the vehicle will briefly lift, resulting in the upward deviation of the headlight beam. When in the accelerating driving state, adjusting the headlight downward by a preset height can compensate for the upward tilt of the headlight caused by the lifting of the front of the vehicle, and make up for the signal delay of the suspension height sensor through early action. When the driving condition is a decelerating driving state, the vehicle's center of gravity moves forward due to braking, the compression amount of the front suspension spring increases, and the front of the vehicle will briefly sink, causing the headlight beam to tilt downward, which may shorten the effective lighting distance; by controlling the headlight to adjust upward by a preset height during deceleration, the downward pressure of the headlight caused by the sinking of the front of the vehicle can be actively compensated, and at the same time, the signal acquisition and processing delay of the suspension height sensor can be offset in advance by using the preset height adjustment, ensuring that the lighting projection angle is quickly corrected at the moment of deceleration and maintaining a stable lighting range.

[0090] It can be seen that this alternative embodiment aims at the dynamic characteristics of the vehicle body in the accelerating driving state and the decelerating driving state, and realizes the dual compensation of the headlight angle through the combination of preset height adjustment and real-time calculation of the suspension height: it can quickly respond to the instantaneous lifting or sinking of the front of the vehicle caused by braking, and correct the long-term attitude deviation through suspension data, so as to balance the adjustment speed and accuracy under complex acceleration / deceleration conditions, avoid the response lag caused by traditional single reliance on suspension signals, and significantly improve the lighting safety during braking and the driver's ability to predict road conditions.

[0091] S105. Control the movement of the headlight adjustment motor according to the displacement amount to realize the adjustment of the headlight height.

[0092] In an alternative embodiment, the step of controlling the movement of the headlight adjustment motor according to the displacement amount includes:

[0093] Control the headlight adjustment motor to perform preheating, and the preheating duration is a preset third duration;

[0094] Judge whether the displacement amount exceeds a preset displacement threshold:

[0095] When it exceeds, determine the duration of the maximum motor speed according to the displacement; control the headlight adjustment motor to accelerate according to a preset motor acceleration until the speed of the headlight adjustment motor reaches the preset maximum motor speed, and maintain the duration of the maximum motor speed. After that, decelerate to 0 according to the preset motor deceleration and stop, and maintain a preset fourth duration at the stop position;

[0096] Otherwise, determine the motor acceleration duration according to the displacement, the motor acceleration, and the motor deceleration; control the headlight adjustment motor to run for the motor acceleration duration according to the motor acceleration, then decelerate to 0 according to the motor deceleration and stop, and maintain the fourth duration at the stop position.

[0097] In this optional embodiment, the maximum motor speed is preset according to the motor movement noise, the motor adjustment time, and the motor current magnitude. For example, calculate the average value of the motor speeds when the motor movement noise, the motor adjustment time, and the motor current magnitude respectively reach their corresponding preset values as the maximum motor speed.

[0098] It can be seen that this optional embodiment reduces the current impact during the cold start of the motor through the preheating stage, prolongs the service life of the motor, and dynamically selects the motion control strategy according to the displacement threshold: for large displacements, a trapezoidal speed curve of "acceleration - constant speed - deceleration" is adopted to avoid overshoot while ensuring the adjustment efficiency; for small displacements, a short - time precise control of "acceleration - deceleration" is adopted to reduce mechanical vibration. Finally, the fourth duration is maintained after stopping to eliminate the inertia margin and lock the final position, thereby comprehensively improving the adjustment accuracy and system stability.

[0099] In an optional embodiment, the method further includes:

[0100] Obtain the number of headlight adjustments within a first preset duration;

[0101] When the number of headlight adjustments is greater than a preset threshold, exit the headlight height adjustment mode.

[0102] It can be seen that this optional embodiment effectively prevents the problem of superposition of adjustment hysteresis caused by frequent start - stop of the motor under continuous bumpy or suspension height repeatedly fluctuating road conditions by statistically counting the number of headlight adjustments within a preset period in real time and forcibly exiting the adjustment mode when exceeding the threshold, avoids over - adjustment from damaging the lighting consistency, reduces the ineffective wear of the motor and system power consumption at the same time, ensures the stability of light projection under extreme road conditions and protects the hardware life, and improves the overall reliability.

[0103] In an optional embodiment, the method further includes:

[0104] When the headlight adjustment motor moves twice continuously and in opposite directions, the time interval between the two movements is not less than a preset fifth time duration.

[0105] It can be seen that in this optional embodiment, by forcibly restricting the minimum time interval of continuous reverse movement, the mechanical impact, the risk of overload or overheating of the motor drive circuit caused by frequent forward and reverse switching of the motor and the transmission mechanism are effectively avoided. At the same time, the headlight adjustment command oscillation caused by the short-term attitude fluctuation of the vehicle body is reduced, so as to maintain the stability of the light projection angle and extend the hardware life under complex road conditions, ensuring the coherence of the adjustment action and the reliability of the system.

[0106] Please refer to Figure 2 shown in Figure 2 which is a schematic structural diagram of a headlight height adjustment system disclosed in an embodiment of the present invention, including:

[0107] An acquisition module 201, configured to acquire a vehicle usage mode and a vehicle state;

[0108] An initialization module 202, configured to initialize the headlight adjustment motor to adjust the headlight adjustment motor to a reference position when the vehicle usage mode switches from a first mode group to a second mode group and the vehicle speed in the vehicle state is less than a preset first vehicle speed;

[0109] A judgment module 203, configured to judge the driving condition of the vehicle according to the vehicle state;

[0110] A calculation module 204, configured to calculate the displacement of the headlight adjustment motor according to the driving condition, the vehicle state and the reference position;

[0111] A control module 205, configured to control the movement of the headlight adjustment motor according to the displacement to achieve headlight height adjustment.

[0112] For the specific limitations of the headlight height adjustment system, reference can be made to the limitations of the headlight height adjustment method in the above text, which will not be elaborated here. Each module in the above headlight height adjustment system can be implemented in whole or in part by software, hardware and their combination. The above modules can be embedded in or independent of the processor in the electronic device in a hardware format, or stored in the memory in the electronic device in a software format, so that the processor can call the corresponding operations of the above modules.

[0113] It should be noted that in order to highlight the innovative part of the present invention, modules that are not closely related to solving the technical problems proposed by the present invention are not introduced in this embodiment, but this does not mean that there are no other modules in this embodiment.

[0114] Such as Figure 3As shown, the electronic device 1 provided by the present invention may include a memory 11, a processor 12 and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 12, such as a headlight height adjustment program.

[0115] Among them, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (such as: SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as the mobile hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 can be used not only to store application software installed on the electronic device 1 and various types of data, such as the code for headlight height adjustment, etc., but also to temporarily store data that has been output or will be output.

[0116] The processor 12 may be composed of integrated circuits in some embodiments. For example, it may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits with the same or different functions, including a combination of one or more Central Processing Units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips, etc. The processor 12 is the control core (Control Unit) of the electronic device 1, connecting various components of the entire electronic device 1 through various interfaces and lines, and by running or executing programs or modules (such as the headlight height adjustment program, etc.) stored in the memory 11, and calling data stored in the memory 11, to execute various functions of the electronic device 1 and process data.

[0117] The processor 12 executes the operating system of the electronic device 1 and various installed application programs. The processor 12 executes the application program to implement the steps in the above-mentioned headlight height adjustment method.

[0118] Exemplarily, the computer program may be divided into one or more modules. The one or more modules are stored in the memory 11 and executed by the processor 12 to complete the present application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, and these instruction segments are used to describe the execution process of the computer program in the electronic device 1. For example, the computer program may be divided into an acquisition module 201, an initialization module 202, a judgment module 203, a calculation module 204, and a control module 205.

[0119] In summary, for a headlight height adjustment method, system, and device disclosed by the present invention, when the usage mode of the vehicle is switched to the driving state and the vehicle speed is lower than a threshold value, the headlight adjustment motor is forced to move to the mechanical limit position and the stall is detected, and the actual stall point is used as the reference position for initialization to eliminate the initial position drift error caused by mechanical wear or environmental temperature changes; on this basis, in combination with multi-dimensional signals such as the vehicle suspension height, acceleration, and the number of adjustments within a preset duration, the driving working conditions are dynamically determined and the target displacement amount is calculated, avoiding the adjustment deviation caused by the lag or cumulative error of a single signal in the traditional method. Through dynamic initialization calibration and multi-source signal fusion control, the control accuracy of headlight height adjustment is significantly improved. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

[0120] The above embodiments only exemplarily illustrate the principles and effects of the present invention, rather than limiting the present invention. Any person familiar with this technology can modify or change the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or changes completed by those with ordinary knowledge in the technical field without departing from the spirit and technical ideas disclosed by the present invention should still be covered by the claims of the present invention.

Claims

1. A headlight height adjustment method, characterized in that, The method includes: Obtaining a vehicle usage pattern and a vehicle state; When the vehicle usage pattern switches from a first mode group to a second mode group and the vehicle speed in the vehicle state is less than a preset first vehicle speed, initializing a headlight adjustment motor to adjust the headlight adjustment motor to a reference position; Judging a driving condition of the vehicle according to the vehicle state; Calculating a displacement of the headlight adjustment motor according to the driving condition, the vehicle state and the reference position; Controlling the headlight adjustment motor to move according to the displacement to achieve headlight height adjustment.

2. The headlight height adjustment method according to claim 1, characterized in that The method further includes: Obtaining the number of headlight adjustments within a first preset duration; When the number of headlight adjustments is greater than a preset threshold, exiting the headlight height adjustment mode.

3. The headlamp height adjustment method according to claim 1, wherein, The step of initializing the headlight adjustment motor includes: Controlling the headlight adjustment motor to move in a first direction until a mechanical limit position and maintaining for a second preset duration; Controlling the headlight adjustment motor to move a preset first distance in the opposite direction of the first direction; the first distance is the distance from the mechanical limit position to the reference position.

4. A headlamp height adjustment method according to claim 1, characterized in that, The step of judging the driving condition of the vehicle according to the vehicle state includes: Judging the driving condition of the vehicle according to the vehicle speed, vehicle acceleration, brake pedal value, brake pedal change rate, front suspension height and rear suspension height in the vehicle state; Wherein, the driving conditions include a low-speed driving state, an accelerating driving state, a decelerating driving state, an uphill driving state, a downhill driving state and a maintaining driving state.

5. A headlight height adjustment method according to claim 4, characterized in that, When the driving condition is the low-speed driving state, the uphill driving state or the downhill driving state, the step of calculating the displacement of the headlight adjustment motor according to the driving condition, the vehicle state and the reference position includes: Calculating a target position of the headlight adjustment motor according to the front suspension height and the rear suspension height; Calculating the displacement of the headlight adjustment motor according to the target position and the reference position.

6. A headlight height adjustment method according to claim 4, characterized in that, When the driving condition is the accelerating driving state / decelerating driving state, the step of calculating the displacement of the headlight adjustment motor according to the driving condition, the vehicle state and the reference position includes: Controlling the headlight adjustment motor to move so that the headlight is adjusted downward / upward by a preset height; Calculating a target position of the headlight adjustment motor according to the front suspension height and the rear suspension height; Calculating the displacement of the headlight adjustment motor according to the target position, the preset height and the reference position.

7. A headlight height adjustment method according to claim 1, characterized in that, The step of controlling the headlight adjustment motor to move according to the displacement includes: Controlling the headlight adjustment motor to perform preheating, and the preheating duration is a preset third duration; Judging whether the displacement exceeds a preset displacement threshold: When it exceeds, determine the maximum motor speed movement duration according to the displacement; control the headlight adjustment motor to accelerate according to a preset motor acceleration until the speed of the headlight adjustment motor reaches the preset maximum motor speed, and after maintaining the maximum motor speed movement duration, decelerate to 0 according to the preset motor deceleration and stop, and maintain a preset fourth duration at the stop position; Otherwise, determine the motor acceleration duration according to the displacement, the motor acceleration, and the motor deceleration; control the headlight adjustment motor to run for the motor acceleration duration according to the motor acceleration, then decelerate to 0 according to the motor deceleration and stop, and maintain the fourth duration at the stop position.

8. A headlight height adjustment method according to claim 1, characterized in that, The method further includes: When the headlight adjustment motor moves twice continuously and the movement directions are opposite, the time interval between the two movements is not less than a preset fifth duration.

9. A headlight height adjustment system, characterized in that, It includes: An acquisition module, configured to acquire a vehicle usage mode and a vehicle state; An initialization module, configured to initialize the headlight adjustment motor to adjust the headlight adjustment motor to a reference position when the vehicle usage mode switches from a first mode group to a second mode group and the vehicle speed in the vehicle state is less than a preset first vehicle speed; A judgment module, configured to judge the driving condition of the vehicle according to the vehicle state; A calculation module, configured to calculate the displacement of the headlight adjustment motor according to the driving condition, the vehicle state, and the reference position; A control module, configured to control the movement of the headlight adjustment motor according to the displacement to achieve headlight height adjustment.

10. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, the steps of the headlight height adjustment method according to any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • Motorcycle light control method and system

    CN120916309A