A method for controlling vehicle lights and a vehicle

By acquiring vehicle motion trends and using fuzzy PID control equations to adjust the headlight angle, the problem of blind spots during vehicle turning is solved, adaptive headlight illumination is achieved, and the risk of traffic accidents is reduced.

CN123104513APending Publication Date: 2026-11-17BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510639296.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

When driving at night, the limited angle of the headlights when turning can cause some areas around the vehicle to remain unilluminated, creating blind spots and increasing the risk of traffic accidents.

Method used

By acquiring the vehicle's horizontal motion trend, measuring the angular velocity using an inertial sensor, and employing fuzzy PID control equations to generate headlight illumination angle control quantities, the headlights are controlled to follow the vehicle's turning motion, eliminating blind spots.

Benefits of technology

Vehicle lights can always illuminate the direction in which the vehicle is about to travel, eliminating blind spots for the driver and reducing the probability of accidents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123104513A_ABST
    Figure CN123104513A_ABST
Patent Text Reader

Abstract

This invention discloses a vehicle headlight control method and a vehicle. The headlight control method includes: acquiring the vehicle's horizontal movement trend; generating a headlight illumination angle control value based on the movement trend; and controlling the headlights to rotate in accordance with the movement trend based on the headlight illumination angle control value. In this invention, by acquiring the vehicle's horizontal movement trend and controlling the headlight rotation, the headlights can always illuminate the direction the vehicle is about to travel, effectively eliminating blind spots for the driver. When turning, the headlights can be turned towards the inside of the curve in advance, allowing the driver to see the road conditions ahead and detect potential obstacles or pedestrians in time, greatly reducing the probability of accidents.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automatic control technology, and in particular to a vehicle lighting control method and a vehicle. Background Technology

[0002] When driving at night, drivers may encounter poorly lit road conditions (such as L-shaped alleys without streetlights). In such situations, when the vehicle turns, the limited angle of the headlights means that some areas around the vehicle cannot be illuminated, creating blind spots for the driver. If pedestrians, vehicles, or other obstacles suddenly appear in these blind spots, the driver may not be able to detect them in time, which can easily lead to traffic accidents and poses a significant safety hazard. Summary of the Invention

[0003] This invention provides a vehicle headlight control method and a vehicle, so as to achieve the purpose of the headlights moving at a certain angle with the direction of vehicle turning during the turning process, thereby avoiding blind spots.

[0004] In a first aspect, embodiments of the present invention provide a vehicle lighting control method, comprising:

[0005] The vehicle's horizontal movement trend is obtained, a headlight illumination angle control value is generated based on the movement trend, and the headlights are controlled to rotate to follow the movement trend based on the headlight illumination angle control value.

[0006] Optionally, obtaining the vehicle's horizontal motion trend includes:

[0007] The angular velocity of the vehicle in the horizontal direction is obtained, and the angular velocity is used as the motion trend.

[0008] Optionally, generating the headlight illumination angle control amount based on the motion trend includes:

[0009] Using the angular velocity as the input and the headlight illumination angle control quantity as the output, a closed-loop control equation is used to determine the headlight illumination angle control quantity.

[0010] Optionally, the closed-loop control equation adopts a fuzzy PID control equation.

[0011] Optionally, the fuzzy PID control equation is:

[0012] Δu(k)=k p (e(k)-e(k-1))+k i e(k)+k d (e(k)-2e(k-1)+e(k-2))

[0013] In the formula, k p k is the proportionality coefficient. i k is the integral coefficient.d Here, e(k) represents the error of the angular velocity at the k-th moment, and Δu(k) represents the change in the headlight illumination angle control quantity.

[0014] Optionally, different headlights can be controlled to rotate according to the same headlight illumination angle control amount, following the motion trend.

[0015] Optionally, the headlight illumination angle control amount is used for motion control of the motor that drives the headlight.

[0016] Optionally, the angular velocity is obtained by measurement using an inertial sensor.

[0017] Secondly, embodiments of the present invention also provide a vehicle, including a controller, the controller being configured to execute any of the vehicle lighting control methods described in the embodiments of the present invention.

[0018] Optional components also include inertial sensors and headlight motors;

[0019] The inertial sensor is used to measure the angular velocity of the vehicle in the horizontal direction, and the headlight motor is used to control the rotation of the headlights according to the headlight illumination angle control amount output by the controller.

[0020] Compared with existing technologies, the beneficial effects of this invention are as follows: This invention proposes a vehicle headlight control method, comprising: acquiring the vehicle's horizontal movement trend, generating a headlight illumination angle control amount based on the movement trend, and controlling the headlights to rotate in accordance with the movement trend based on the headlight illumination angle control amount. In this solution, by acquiring the vehicle's horizontal movement trend and controlling the headlight rotation, the headlights can always illuminate the direction the vehicle is about to travel, effectively eliminating blind spots for the driver. When turning, the headlights can be turned towards the inside of the curve in advance, allowing the driver to see the road conditions clearly and detect potential obstacles or pedestrians in time, greatly reducing the probability of accidents. Attached Figure Description

[0021] Figure 1 This is a flowchart of the vehicle headlight control method in the embodiment;

[0022] Figure 2 This is a flowchart of another vehicle light control method in the embodiment;

[0023] Figure 3 This is a block diagram of the vehicle lighting control system in the embodiment;

[0024] Figure 4 This is a schematic diagram of the electronic device structure in the embodiment. Detailed Implementation

[0025] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.

[0026] Example 1

[0027] Figure 1 This is a flowchart of the vehicle headlight control method in the embodiment, for reference. Figure 1 The methods for controlling vehicle lights include:

[0028] S101. Obtain the vehicle's horizontal motion trend and generate headlight illumination angle control quantity based on the motion trend.

[0029] For example, in this solution, the motion trend specifically refers to the turning trend of the vehicle. During driving, the driver turns the steering wheel and controls the front wheels (or front and rear wheels) of the vehicle to generate a certain steering angle through the steering system. The vehicle will make circular or curved motion around a certain center point, thereby generating a turning trend.

[0030] For example, in this solution, the motion trend can be determined by sensors configured on the vehicle, or by technologies such as vision and image processing.

[0031] For example, a gyroscope sensor can be used to measure the angular velocity of a vehicle. By integrating the angular velocity, the angle change information of the vehicle can be obtained, thereby determining whether the vehicle is turning and the direction and angle of the turn.

[0032] If the angular velocity measured by the gyroscope is zero and remains so for a period of time, it indicates that the vehicle may be traveling in a straight line; if the angular velocity is not zero, it indicates that the vehicle has a turning tendency, and the sign of the angular velocity can determine the direction of the turn.

[0033] Alternatively, wheel speed sensors can be used to measure the rotational speed of the wheels. By comparing the differences in rotational speed among the wheels, it can be determined whether the vehicle is turning. For example, when turning, the inner and outer wheels will rotate at different speeds; based on the speed difference, information such as the vehicle's turning radius can be calculated.

[0034] Alternatively, the movement trend of a vehicle can be determined by analyzing the images captured by the camera. For example, a forward-facing camera can monitor the road conditions ahead and the vehicle's trajectory. If the vehicle's trajectory is found to gradually deviate from the center line of the lane, it may indicate that the vehicle is turning.

[0035] Alternatively, image processing techniques can be used to extract and analyze features from images captured by cameras, such as identifying lane lines and roadside signs. By calculating the positional relationship and relative motion between the vehicle and these signs, the vehicle's movement trend can be accurately determined.

[0036] Alternatively, GPS or other positioning data can be used to obtain the vehicle's location information. By continuously monitoring changes in the vehicle's position, the vehicle's trajectory and speed can be calculated. Based on changes in the shape and direction of the trajectory, the vehicle's movement trend can be determined.

[0037] For example, in this solution, the headlight illumination angle control is mainly used to adjust the rotation angle of the headlight on the horizontal plane, so that the headlight can swing left and right.

[0038] The headlight beam angle control is used to control the headlights to rotate at the appropriate angle, so that the headlights can illuminate the direction in which the vehicle is about to travel in advance, increasing the driver's field of vision when turning.

[0039] For example, when a vehicle turns left, the horizontal control will cause the left headlight to turn to the left by a certain angle, and the right headlight will also turn to the left appropriately to ensure that the road in front of the vehicle and on both sides are well illuminated.

[0040] For example, in this solution, when generating the headlight illumination angle control amount based on the motion trend, the headlight illumination angle control amount can be dynamically adjusted using adaptive control, or the headlight illumination angle control amount can be a preset value.

[0041] When a vehicle turns, the turning angle of the vehicle can correspond to the horizontal beam angle of the headlights. The angle that the headlights need to turn is determined based on the turning angle of the vehicle, thereby generating the headlight beam angle control quantity.

[0042] For example, if the vehicle turns left at an angle greater than 30 degrees, the corresponding left headlight is set to turn 15 degrees to the left and the right headlight is set to turn 5 degrees to the left to achieve better cornering illumination.

[0043] When the movement trend is determined by GPS or high-precision map, the vehicle can obtain its own position on the map through the positioning system. Combined with map data, the vehicle can predict the road conditions ahead in advance and adjust the headlight beam angle in advance.

[0044] For example, when the vehicle is 50 meters away from the curve ahead, the system generates a headlight illumination angle control value in advance based on the radius and angle information of the curve in the map, thereby adjusting the headlights to a suitable illumination angle. The headlight illumination angle can have a certain functional relationship with the turning radius, and the functional relationship can be determined through simulation experiments.

[0045] S102. Control the headlights to rotate according to the movement trend based on the headlight illumination angle control amount.

[0046] For example, in this solution, the headlights are controlled to rotate in accordance with the movement trend, that is, the rotation direction of the headlights is the same as the direction corresponding to the movement trend of the vehicle. For example, if the vehicle turns left, the headlight illumination angle control amount controls the headlights to rotate to the left; if the vehicle turns right, the headlight illumination angle control amount controls the headlights to rotate to the right.

[0047] This embodiment proposes a vehicle headlight control method, including: acquiring the vehicle's horizontal movement trend, generating a headlight illumination angle control value based on the movement trend, and controlling the headlights to rotate in accordance with the movement trend based on the headlight illumination angle control value. In this solution, by acquiring the vehicle's horizontal movement trend and controlling the headlight rotation, the headlights can always illuminate the direction the vehicle is about to travel, effectively eliminating blind spots for the driver. When turning, the headlights can be turned towards the inside of the curve in advance, allowing the driver to see the road conditions ahead and detect potential obstacles or pedestrians in time, greatly reducing the probability of accidents.

[0048] exist Figure 1 Based on the scheme shown, in one possible implementation, obtaining the vehicle's horizontal motion trend includes:

[0049] Obtain the angular velocity of the vehicle in the horizontal direction and use the angular velocity as the motion trend.

[0050] For example, in this solution, the angular velocity of the vehicle in the horizontal direction refers to the rate of change of angle when the vehicle rotates in a horizontal plane around an axis perpendicular to the ground. Angular velocity can be used to describe the speed and direction of the vehicle's rotation in the horizontal direction.

[0051] For example, in this solution, a gyroscope can be used to measure the angular velocity of the vehicle. The measurement principle of the gyroscope is the same as that of the prior art, and the specific details will not be described in detail.

[0052] Based on the aforementioned scheme that uses angular velocity as a motion trend, in one possible implementation, generating the headlight illumination angle control amount according to the motion trend includes:

[0053] Using angular velocity as the input and headlight illumination angle control as the output, a closed-loop control equation is used to determine the headlight illumination angle control.

[0054] For example, in this solution, the control objective is to adjust the headlight beam angle in real time according to the vehicle's horizontal angular velocity, so that the headlights can always illuminate the direction in which the vehicle is about to travel, providing the driver with the best visibility.

[0055] For example, in this solution, the vehicle's horizontal angular velocity can be set to ω, the headlight illumination angle to θ, and the desired headlight illumination angle to θ.d Set θ d First, set a base value, which can be dynamically adjusted according to the actual situation;

[0056] The closed-loop control equation is defined as a PID equation, which includes proportional, integral, and derivative components. The overall control equation can be:

[0057]

[0058] In the formula, k p k is the proportionality coefficient. i k is the integral coefficient. d Here, u is the differential coefficient, representing the headlight illumination angle control amount.

[0059] For example, in this scheme, in practical applications, the PID control equation can be in discrete form, specifically as follows:

[0060] u(k)=k p e(k)+k i e(k)+k d (e(k)-e(k-1))

[0061] e(k)=θ d (k)-θ(k)

[0062] For example, in this solution, the angular velocity of the vehicle in the horizontal direction can be collected in real time using a gyroscope sensor or other angular velocity measuring device. Simultaneously, the actual illumination angle of the headlights can be obtained (this can be achieved by installing an angle sensor on the headlight rotation mechanism).

[0063] Based on the vehicle's motion model and current driving state, the desired headlight illumination angle is calculated using angular velocity. For example, when the vehicle is turning with a radius R at a speed v, the desired change in the horizontal headlight illumination angle Δθ can be calculated using geometric relationships. d Given the relationship between θ and angular velocity ω, velocity v, radius R, etc., then... d For the current θ d Add Δθ d ;

[0064] Calculate the current headlight illumination angle θ and the desired headlight illumination angle θ d The error is substituted into the PID control equation to calculate the headlight illumination angle control quantity u;

[0065] The system continuously monitors the actual illumination angle of the headlights and feeds it back to the control system. The error is then recalculated and PID adjustments are made to form a closed-loop control, continuously optimizing the headlight illumination angle to adapt to changes in the vehicle's motion state.

[0066] Based on the aforementioned scheme of using closed-loop control equations to determine the control quantity of the vehicle headlight illumination angle, in one feasible implementation, the closed-loop control equations adopt fuzzy PID control equations.

[0067] For example, in this solution, a fuzzy PID control equation is used to determine the headlight illumination angle control quantity. When applying the fuzzy PID control equation, the PID parameters in the PID equation are dynamically adjusted according to the vehicle's operating state by utilizing the reasoning ability of fuzzy logic, which can improve the control performance.

[0068] In this scheme, the angular velocity error e and the rate of change of the angular velocity error ec are used to adjust the PID parameters of the PID equation in real time using fuzzy rules, so as to meet the self-tuning requirements of e and ec for the PID parameters at different times.

[0069] In this scheme, the error e and the error change rate ec are used as inputs. Fuzzy rules are used for fuzzy inference, and the fuzzy matrix table is queried to adjust the PID parameters. The error e is set as the difference between the current angular velocity and the target angular velocity, and the error change rate is the change rate between two adjacent errors e.

[0070] Among them, the set error e, the rate of change of error ec, and the adjustment amount of the proportional coefficient Δk p Integral coefficient adjustment Δk i Δk, the adjustment amount of the differential coefficient d The domains of discourse are the first domain, the second domain, the third domain, the fourth domain, and the fifth domain;

[0071] For e, ec, Δk p Δk i Δk d Define fuzzy subsets and their corresponding membership functions, and establish fuzzy control rules based on experience.

[0072] In practical applications, once the angular velocity error *e* and the rate of change of the angular velocity error *ec* are determined at a certain moment, the membership degrees of *e* and *ec* can be determined respectively. Subsequently, based on fuzzy control rules, Δk can be determined respectively. p Δk i Δk d Membership degree;

[0073] Defuzzification using the centroid method can determine Δk. p Δk i Δk d The values ​​of and k are respectively compared with the previous time step. p k i k d After summing the corresponding values, k can be achieved. p k i k dUpdate.

[0074] Based on the aforementioned scheme employing fuzzy PID control equations for closed-loop control, in one feasible implementation, the fuzzy PID control equations are as follows:

[0075] Δu(k)=k p (e(k)-e(k-1))+k i e(k)+k d (e(k)-2e(k-1)+e(k-2))

[0076] In the formula, k p k is the proportionality coefficient. i k is the integral coefficient. d Here, e(k) represents the error of the angular velocity at the k-th moment, and Δu(k) represents the change in the headlight illumination angle control quantity.

[0077] Based on any of the aforementioned solutions, in one possible implementation, different headlights are controlled to rotate according to the same headlight illumination angle control amount following the motion trend.

[0078] For example, in this solution, the vehicle lights are set to include the left and right headlights of the vehicle, and the headlights illuminate in the same direction. That is, for the two headlights, a set of PID control methods is used to realize the rotation control of the headlights.

[0079] Based on any of the aforementioned solutions, in one possible implementation, the headlight illumination angle control amount is used for the motion control of the motor that drives the headlight movement.

[0080] For example, in this solution, a motor is used to control the motion of the vehicle lights. Based on the weight of the lights, their moment of inertia, and the required rotational speed and precision, a suitable motor, such as a stepper motor or a servo motor, is selected. Stepper motors offer advantages such as high control precision and accurate positioning, making them suitable for applications requiring high angle control. Servo motors offer advantages such as fast response speed and high torque, making them suitable for applications requiring high dynamic performance.

[0081] For example, in this solution, since the headlight illumination angle control signal is a small voltage signal, it cannot directly drive the motor. Therefore, a power amplifier circuit needs to be designed to amplify the control signal to sufficient power to drive the motor to rotate. The power amplifier circuit can be implemented using power devices such as transistors and MOSFETs.

[0082] For example, in this solution, the motor is also equipped with a motor driver, which can be designed based on a suitable motor driver chip (such as L298N, DRV8825, etc.). The motor driver controls the speed and direction of the motor according to the magnitude and direction of the headlight illumination angle control.

[0083] For example, in this solution, a transmission mechanism is provided to transmit the rotation of the motor to the vehicle lights. The transmission mechanism can adopt a gear transmission or other methods. The appropriate transmission method can be selected according to the actual situation to ensure transmission efficiency and reliability.

[0084] Based on any of the aforementioned schemes, in one possible implementation, the angular velocity is obtained by measurement using an inertial sensor.

[0085] For example, in this solution, a high-precision inertial measurement unit (IMU) is installed near the vehicle's center of gravity to accurately measure the vehicle's angular velocity in the horizontal direction.

[0086] Figure 2 This is a flowchart of another vehicle light control method in the embodiment, for reference. Figure 2 Based on any of the aforementioned solutions, in one possible implementation, the vehicle lighting control method includes:

[0087] S201. Use an inertial sensor to obtain the angular velocity of the vehicle in the horizontal direction.

[0088] S202. Using angular velocity as the input and headlight illumination angle control quantity as the output, a fuzzy PID control equation is used to determine the headlight illumination angle control quantity.

[0089] S203. Control the rotation of the headlights according to the headlight illumination angle control amount.

[0090] In this solution, an IMU chip placed inside the vehicle body is used to detect the vehicle's motion state. The IMU detects the angular velocity of the vehicle body when it turns. The angular velocity can represent the vehicle's motion trend. The angular velocity is used as the input to the (adaptive) headlight control. The motor controls the headlight illumination angle, and the motor's control angle is the output of the headlight control system.

[0091] For example, when a car is turning left, the IMU will detect that the car body has a leftward angular velocity. This angular velocity is then injected into the fuzzy PID control equation to obtain the headlight illumination angle control quantity. The motor is then driven to control the headlight rotation according to this headlight illumination angle control quantity, thereby eliminating the blind spot during turning.

[0092] In this design, considering the uncertainties in steering angle and time, the vehicle lighting control system needs to be an adaptive closed-loop control system that is independent of the external environment. A fuzzy PID control algorithm is used to construct this closed-loop control system.

[0093] In this solution, setting one headlight requires one motor to control its illumination direction. When a vehicle is equipped with multiple headlights, the illumination direction is set to be consistent, and different motors use the same headlight illumination angle control amount to control the headlights.

[0094] In this scheme, a fuzzy PID control equation is used to determine the control quantity of the headlight illumination angle. The angular velocity value collected by the IMU is used as a reference, and the error e of the angular velocity and the rate of change of the error ec are used as inputs. Fuzzy rules are used to perform fuzzy inference, and the fuzzy matrix table is consulted to adjust the parameters to meet the self-tuning requirements of e and ec at different times for the PID parameters (in the fuzzy PID control equation).

[0095] In this solution, a high-precision inertial measurement unit (such as ASM330LHH) is selected and installed at the center of gravity of the vehicle chassis to ensure accurate measurement of the vehicle's angular velocity in the horizontal direction. The IMU transmits the measurement data to the control unit in real time.

[0096] The control unit can be a TC397, which is responsible for receiving IMU data, running a fuzzy PID algorithm, calculating the control quantity, and sending the control signal to the motor drive module.

[0097] The configuration uses two independent motor driver chips (such as DRV8825) to control the steering motors of the two headlights respectively. The driver chip receives PWM signals and direction control signals from the control unit, drives the motor to rotate, and thus adjusts the direction of the headlight beam.

[0098] Optionally, an angle sensor (such as a potentiometer or rotary encoder) can be installed on the rotation axis of each headlight to measure the actual illumination angle of the headlight in real time and feed it back to the control unit.

[0099] In this scheme, the error e in the fuzzy PID control equation is defined as the difference between the current headlight illumination angle θ and the desired headlight illumination angle θ. d The difference is used to set the output of the fuzzy PID control equation as the duty cycle adjustment amount Δu of the PWM control signal of the motor (i.e., the change in the headlight illumination angle control amount).

[0100] Let e ​​be the error, ec be the rate of change of error, and Δk be the values ​​of these variables. p Δk i Δk d Set the corresponding fuzzy subsets, such as {Negative Large (NB), Negative Medium (NM), Negative Small (NS), Zero (ZO), Positive Small (PS), Positive Medium (PM), Positive Large (PB)}. Define the membership function for each subset (e.g., using a triangular membership function).

[0101] A fuzzy rule table is developed based on experience and control objectives. For example, if e is NB and ec is NB, then Δk pFor PB, the rule table should cover all possible combinations of inputs to ensure that the requirements of e and ec at different times for PID parameter self-tuning are met.

[0102] The Mamdani inference method is used to calculate the fuzzy values ​​of the PID parameters based on the fuzzy values ​​of e and ec and the fuzzy rules. Defuzzification methods such as the centroid method are then used to convert the fuzzy values ​​of the PID parameters into accurate PID parameters.

[0103] In this scheme, when the vehicle headlight control method is actually executed, the control unit is configured to read the angular velocity data of the IMU and the actual illumination angle data of the vehicle headlight from the angle sensor at a fixed sampling period.

[0104] Based on the vehicle dynamics model and IMU angular velocity, combined with the vehicle speed (which can be obtained from the vehicle speed sensor), the desired headlight illumination angle is calculated, and then the error e and the error change rate ec are obtained.

[0105] Based on the error e and the error change rate ec, the PID parameters at the current moment are obtained through inference and defuzzification according to fuzzy rules. Taking the errors e, e(k-1), and e(k-2) as inputs, the duty cycle adjustment amount u of the motor PWM control signal is determined by the following formula:

[0106] Δu(k)=k p (e(k)-e(k-1))+k i e(k)+k d (e(k)-2e(k-1)+e(k-2))

[0107] The control unit adjusts the duty cycle of the PWM signal sent to the motor drive chip according to Δu(k), controls the rotation of the headlight motor, and adjusts the headlight illumination angle.

[0108] For example, in this solution, the method for determining the desired headlight illumination angle is not limited. For instance, based on the vehicle's steering geometry, when the vehicle turns, the body rotates around an instantaneous steering center. Let the vehicle's turning radius be R, the wheelbase be L, the angular velocity be ω, and the vehicle speed be v. According to the geometry, the steering angle 'a' when the vehicle turns satisfies the following formula:

[0109]

[0110] Desired headlight beam angle θ d It can be expressed by the following formula:

[0111]

[0112] In the formula, k is a set proportionality coefficient.

[0113] For example, in this solution, based on fuzzy PID control, angular velocity can also be directly used as input to control the headlight illumination angle.

[0114] For example, in an ideal vehicle steering model, the desired angular velocity can be determined based on the vehicle's speed and turning radius. Assume the vehicle's speed is v and the desired turning radius is R. d The desired angular velocity ω can be obtained from the following formula. d :

[0115]

[0116] The desired turning radius can be based on the vehicle's route planning information, such as the radius of the curve ahead in the route planned by the navigation system.

[0117] A high-precision inertial measurement unit (IMU) installed at the vehicle's center of gravity can measure the vehicle's actual steering angular velocity in real time.

[0118] After obtaining the desired angular velocity and the actual angular velocity, the angular velocity error can be calculated using a formula. In the fuzzy PID algorithm, the angular velocity error, after fuzzification, is used for fuzzy rule reasoning and calculation to obtain the headlight illumination angle control quantity, ultimately achieving precise control of the headlight illumination angle to adapt to the actual steering conditions of the vehicle.

[0119] Example 2

[0120] This embodiment proposes a vehicle, including a controller, which is configured to execute any of the vehicle light control methods described in Embodiment 1. The implementation and beneficial effects of the method are the same as those described in Embodiment 1, and will not be repeated here.

[0121] Figure 3 This is a block diagram of the vehicle lighting control system in the embodiment, for reference. Figure 3 Based on any of the aforementioned solutions, in one possible implementation, the vehicle also includes an inertial sensor 100 and a headlight motor 400.

[0122] The inertial sensor 100 is used to measure the angular velocity of the vehicle in the horizontal direction, and the headlight motor 400 is used to control the rotation of the headlight according to the headlight illumination angle control amount output by the controller 200.

[0123] In this scheme, the headlight illumination angle control value output by the controller 200 is sent to the motor drive 300, which controls the movement of the headlight motor 400, thereby realizing the rotation control of the headlight.

[0124] In this solution, the controller 200 uses the TC397, the inertial sensor 100 uses the ASM330LHH, and the headlight motor 400 uses a servo motor.

[0125] In this solution, the TC397 adopts the Classic AutoSAR software architecture, and the software part can be divided into a sensor data acquisition module, a motor drive module, and an algorithm control module.

[0126] The sensor data acquisition module is used to acquire the measurement data of the inertial sensor 100, the motor drive module is used to realize the drive control of the vehicle headlight motor, and the algorithm control module is used to output the headlight illumination angle control quantity based on the closed-loop control method.

[0127] Example 3

[0128] Figure 4 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0129] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0130] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0131] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as vehicle lighting control methods.

[0132] In some embodiments, the headlight control method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the headlight control method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the headlight control method by any other suitable means (e.g., by means of firmware).

[0133] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0134] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0135] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0136] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0137] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0138] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0139] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.

Claims

1. A vehicle headlight control method, characterized in that, include: The vehicle's horizontal movement trend is obtained, a headlight illumination angle control value is generated based on the movement trend, and the headlights are controlled to rotate to follow the movement trend based on the headlight illumination angle control value.

2. The vehicle light control method as described in claim 1, characterized in that, Obtaining the vehicle's horizontal motion trend includes: The angular velocity of the vehicle in the horizontal direction is obtained, and the angular velocity is used as the motion trend.

3. The vehicle light control method as described in claim 2, characterized in that, The headlight illumination angle control amount generated based on the aforementioned motion trend includes: Using the angular velocity as the input and the headlight illumination angle control quantity as the output, a closed-loop control equation is used to determine the headlight illumination angle control quantity.

4. The vehicle light control method as described in claim 3, characterized in that, The closed-loop control equation adopts the fuzzy PID control equation.

5. The vehicle light control method as described in claim 4, characterized in that, The fuzzy PID control equation is as follows: Δu(k)=k p (e(k)-e(k-1))+k i e(k)+k d (e(k)-2e(k-1)+e(k-2)) In the formula, k p k is the proportionality coefficient. i k is the integral coefficient. d Here, e(k) represents the error of the angular velocity at the k-th moment, and Δu(k) represents the change in the headlight illumination angle control quantity.

6. The vehicle lighting control method according to any one of claims 1 to 5, characterized in that, The different headlights are controlled to rotate according to the same headlight illumination angle, following the movement trend.

7. The vehicle lighting control method according to any one of claims 1 to 5, characterized in that, The headlight illumination angle control value is used for motion control of the motor that drives the headlight.

8. The vehicle lighting control method according to any one of claims 1 to 5, characterized in that, The angular velocity was obtained by measuring an inertial sensor.

9. A vehicle, characterized in that, Includes a controller configured to perform the vehicle lighting control method according to any one of claims 1 to 8.

10. The vehicle as claimed in claim 9, characterized in that, It also includes inertial sensors and headlight motors; The inertial sensor is used to measure the angular velocity of the vehicle in the horizontal direction, and the headlight motor is used to control the rotation of the headlights according to the headlight illumination angle control amount output by the controller.