Control method and device for automobile lamp

文档序号:1854578 发布日期:2021-11-19 浏览:25次 中文

阅读说明:本技术 一种汽车车灯的控制方法及装置 (Control method and device for automobile lamp ) 是由 许方雷 何宗芬 温伟峰 陈子邮 申国栋 张波 潘海杰 何雷 陈韦聪 唐竞 林长波 于 2021-09-09 设计创作,主要内容包括:本发明公开了一种汽车车灯的控制方法及装置,所述控制方法包括:获取环境光照传感器采集的光照强度数据;其中,环境光照传感器包括滞回比较器;当光照强度数据大于等于第一预设值、小于等于第二预设值时,控制滞回比较器根据汽车车灯的状态反馈滞回电压后,根据滞回电压控制汽车车灯的状态保持不变。采用本发明实施例能提高汽车车灯抗环境干扰的能力。(The invention discloses a control method and a device of an automobile lamp, wherein the control method comprises the following steps: acquiring illumination intensity data acquired by an ambient illumination sensor; wherein the ambient light sensor comprises a hysteresis comparator; and when the illumination intensity data is greater than or equal to a first preset value and less than or equal to a second preset value, controlling the hysteresis comparator to feed back the hysteresis voltage according to the state of the automobile lamp, and controlling the state of the automobile lamp to keep unchanged according to the hysteresis voltage. The embodiment of the invention can improve the environmental interference resistance of the automobile lamp.)

1. A method of controlling an automotive lamp, comprising:

acquiring illumination intensity data acquired by an ambient illumination sensor; wherein the ambient illumination sensor comprises a hysteresis comparator;

and when the illumination intensity data is greater than or equal to a first preset value and less than or equal to a second preset value, controlling the hysteresis comparator to feed back a hysteresis voltage according to the state of the automobile lamp, and controlling the state of the automobile lamp to keep unchanged according to the hysteresis voltage.

2. The method according to claim 1, wherein after the hysteresis comparator feeds back the hysteresis voltage according to the state of the vehicle lamp, the state of the vehicle lamp is controlled to be kept unchanged according to the hysteresis voltage, specifically:

the hysteresis voltage includes: a hysteretic positive voltage and a hysteretic negative voltage, the states including an on state and an off state;

when the state of the automobile lamp is the opening state, controlling the hysteresis comparator to feed back the hysteresis positive voltage so as to enable an operational amplifier in the hysteresis comparator to keep outputting a high-level signal, and then controlling the automobile lamp to keep the opening state according to the high-level signal;

when the state of the automobile lamp is the closing state, controlling the hysteresis comparator to feed back the hysteresis negative voltage so as to enable an operational amplifier in the hysteresis comparator to keep outputting a low-level signal, and then controlling the automobile lamp to keep the closing state according to the low-level signal.

3. The control method of the vehicle lamp according to claim 2, further comprising:

when the illumination intensity data is smaller than a first preset value, judging whether the automobile lamp is in the closing state, if so, starting the automobile lamp; if not, controlling the automobile lamp to keep the opening state.

4. The control method of the vehicle lamp according to claim 3, wherein the turning on of the vehicle lamp specifically comprises:

when the illumination intensity data is smaller than a first preset value and the automobile lamp is in the off state, the output of an operational amplifier in the hysteresis comparator is a low-level signal;

and when the illumination intensity data continuously decrease, acquiring a reverse input voltage value of the operational amplifier, and when the reverse input voltage is smaller than a third value, controlling the operational amplifier to output a high-level signal and then starting the automobile lamp according to the high-level signal.

5. The control method of the vehicle lamp according to claim 3, further comprising:

when the illumination intensity data is larger than the second preset value, judging whether the automobile lamp is in the starting state, if so, closing the automobile lamp; and if not, controlling the automobile lamp to keep the closing state.

6. The control method of the vehicle lamp according to claim 5, wherein the turning off of the vehicle lamp specifically comprises:

when the illumination intensity data is larger than the second preset value and the automobile lamp is in the opening state, the operational amplifier in the hysteresis comparator outputs a high-level signal;

and when the illumination intensity data is continuously increased, acquiring a reverse input voltage value of the operational amplifier, and when the reverse input voltage is greater than a fourth value, controlling the operational amplifier to output a low level signal and then closing the automobile lamp according to the low level signal.

7. A control device for an automotive lamp, comprising: the device comprises an acquisition module and a control module;

the acquisition module is used for acquiring illumination intensity data acquired by an ambient illumination sensor; wherein the ambient illumination sensor comprises a hysteresis comparator;

the control module is used for controlling the hysteresis comparator to feed back the hysteresis voltage according to the state of the automobile lamp and controlling the state of the automobile lamp to be kept unchanged according to the hysteresis voltage when the illumination intensity data is larger than or equal to a first preset value and smaller than or equal to a second preset value.

8. The control device of the vehicle lamp according to claim 7, wherein after the hysteresis comparator feeds back the hysteresis voltage according to the state of the vehicle lamp, the state of the vehicle lamp is controlled to be kept unchanged according to the hysteresis voltage, specifically:

the hysteresis voltage includes: a hysteretic positive voltage and a hysteretic negative voltage, the states including an on state and an off state;

when the state of the automobile lamp is the opening state, controlling the hysteresis comparator to feed back the hysteresis positive voltage so as to enable an operational amplifier in the hysteresis comparator to keep outputting a high-level signal, and then controlling the automobile lamp to keep the opening state according to the high-level signal;

when the state of the automobile lamp is the closing state, controlling the hysteresis comparator to feed back the hysteresis negative voltage so as to enable an operational amplifier in the hysteresis comparator to keep outputting a low-level signal, and then controlling the automobile lamp to keep the closing state according to the low-level signal.

9. The control device for the vehicle lamp according to claim 8, further comprising:

when the illumination intensity data is smaller than a first preset value, judging whether the automobile lamp is in the closing state, if so, starting the automobile lamp; if not, controlling the automobile lamp to keep the opening state.

10. The control device for the vehicle lamp according to claim 8, further comprising:

when the illumination intensity data is larger than the second preset value, judging whether the automobile lamp is in the starting state, if so, closing the automobile lamp; and if not, controlling the automobile lamp to keep the closing state.

Technical Field

The invention relates to the technical field of automobile control, in particular to a control method and device of an automobile lamp.

Background

Along with the vehicle is more and more popular, the automobile intelligent degree also promotes constantly, has also brought very big benefit for the driver, nevertheless along with the promotion of intelligent degree, the control system of vehicle is also more and more complicated, and the requirement of interference killing feature is also higher and more simultaneously. Although the intelligent system brings great driving pleasure and scientific and technological experience for consumers, great hidden dangers exist, and once the system makes mistakes or is interfered by the outside world, great damage is brought to drivers and passengers, and even safety accidents occur.

In the prior art, an automatic automobile lamp used on a vehicle can be controlled to be automatically turned on or turned off by sensing the intensity change of external light, but because the intensity change of the external light has uncertainty, if the external light is sensed to be too sensitive, the automobile lamp is frequently turned on or turned off due to environmental interference, and the automobile lamp is easily damaged; in addition, frequently lighting or extinguishing the car lights can cause the frequent change of road surface light, influence navigating mate's sight, finally cause danger for navigating mate's personal safety.

Disclosure of Invention

The embodiment of the invention provides a control method and a control device of an automobile lamp, which improve the environment interference resistance of the automobile lamp.

A first aspect of an embodiment of the present application provides a control method for an automobile lamp, including:

acquiring illumination intensity data acquired by an ambient illumination sensor; wherein the ambient light sensor comprises a hysteresis comparator;

and when the illumination intensity data is greater than or equal to a first preset value and less than or equal to a second preset value, controlling the hysteresis comparator to feed back the hysteresis voltage according to the state of the automobile lamp, and controlling the state of the automobile lamp to keep unchanged according to the hysteresis voltage.

In a possible implementation manner of the first aspect, after the hysteresis comparator feeds back the hysteresis voltage according to the state of the vehicle lamp, the state of the vehicle lamp is controlled to remain unchanged according to the hysteresis voltage, specifically:

the hysteresis voltage includes: the hysteresis positive voltage and the hysteresis negative voltage, the state comprises an opening state and a closing state;

when the automobile lamp is in an on state, controlling the hysteresis comparator to feed back a hysteresis positive voltage so as to enable an operational amplifier in the hysteresis comparator to keep outputting a high-level signal, and then controlling the automobile lamp to keep in the on state according to the high-level signal;

when the state of the automobile lamp is the closing state, the hysteresis comparator is controlled to feed back the hysteresis negative voltage, so that the operational amplifier in the hysteresis comparator keeps outputting a low level signal, and then the automobile lamp is controlled to keep the closing state according to the low level signal.

In a possible implementation manner of the first aspect, the method further includes:

when the illumination intensity data is smaller than a first preset value, judging whether the automobile lamp is in a closed state, if so, starting the automobile lamp; if not, controlling the automobile lamp to keep the on state.

In a possible implementation manner of the first aspect, the turning on of the vehicle lamp specifically includes:

when the illumination intensity data is smaller than a first preset value and the automobile lamp is in a closed state, the operational amplifier in the hysteresis comparator outputs a low-level signal;

when the illumination intensity data continuously decrease, the reverse input voltage value of the operational amplifier is obtained, when the reverse input voltage is smaller than a third value, the operational amplifier is controlled to output a high-level signal, and then the automobile lamp is turned on according to the high-level signal.

In a possible implementation manner of the first aspect, the method further includes:

when the illumination intensity data is larger than a second preset value, judging whether the automobile lamp is in an opening state, if so, closing the automobile lamp; if not, controlling the automobile lamp to keep a closing state.

In a possible implementation manner of the first aspect, the turning off of the vehicle lamp specifically includes:

when the illumination intensity data is larger than a second preset value and the automobile lamp is in an on state, the operational amplifier in the hysteresis comparator outputs a high-level signal;

when the illumination intensity data continuously increase, the reverse input voltage value of the operational amplifier is obtained, when the reverse input voltage is larger than a fourth numerical value, the operational amplifier is controlled to output a low level signal, and then the automobile lamp is turned off according to the low level signal.

A second aspect of the embodiments of the present application provides a control device for an automobile lamp, including: the device comprises an acquisition module and a control module;

the acquisition module is used for acquiring illumination intensity data acquired by the ambient illumination sensor; wherein the ambient light sensor comprises a hysteresis comparator;

the control module is used for controlling the hysteresis comparator to feed back the hysteresis voltage according to the state of the automobile lamp and then controlling the state of the automobile lamp to keep unchanged according to the hysteresis voltage when the illumination intensity data is greater than or equal to a first preset value and less than or equal to a second preset value.

In a possible implementation manner of the second aspect, the electrical connection module is configured to electrically connect each through hole with its corresponding pin pad, specifically:

in a possible implementation manner of the second aspect, when the illumination intensity data is smaller than the first preset value, whether the automobile lamp is in a closed state is judged, and if yes, the automobile lamp is turned on; if not, controlling the automobile lamp to keep the on state.

In a possible implementation manner of the second aspect, when the illumination intensity data is greater than a second preset value, whether the automobile lamp is in an on state is judged, and if so, the automobile lamp is turned off; if not, controlling the automobile lamp to keep a closing state.

Compared with the prior art, the control method and the control device for the automobile lamp have the advantages that: the control method of the embodiment of the invention obtains the illumination intensity data collected by the ambient illumination sensor; wherein the ambient light sensor comprises a hysteresis comparator; and when the illumination intensity data is greater than or equal to a first preset value and less than or equal to a second preset value, controlling the hysteresis comparator to feed back the hysteresis voltage according to the state of the automobile lamp, and controlling the state of the automobile lamp to keep unchanged according to the hysteresis voltage. According to the method, the hysteresis comparator can be controlled to feed back the hysteresis voltage according to the illumination intensity data acquired by the ambient illumination sensor, and finally the state of the automobile lamp is controlled to be kept unchanged according to the hysteresis voltage. Under the condition that the illumination intensity data is changed near the first preset value and the second preset value, the state of the automobile lamp is kept unchanged under the action of the hysteresis voltage fed back by the hysteresis comparator, so that the stability and the anti-interference performance of the automobile lamp are greatly improved; frequent changes of road surface light caused by frequent lighting or extinguishing of automobile lamps are avoided, and personal safety of drivers is guaranteed; the damage of the automobile lamp caused by frequent lighting or extinguishing is avoided, and the service life of the automobile lamp is prolonged.

Drawings

Fig. 1 is a schematic flow chart of a control method for a vehicle lamp according to an embodiment of the present invention;

FIG. 2 is a schematic diagram of an ambient light sensor according to an embodiment of the present invention;

FIG. 3 is a schematic diagram illustrating the timing of turning on/off the lamps of the vehicle according to an embodiment of the present invention;

fig. 4 is a schematic structural diagram of a control device for an automobile lamp according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Referring to fig. 1, fig. 1 is a schematic flow chart of a control method for an automotive lamp according to an embodiment of the present invention, including S101-S102:

s101: acquiring illumination intensity data acquired by an ambient illumination sensor; wherein the ambient light sensor comprises a hysteresis comparator.

S102: and when the illumination intensity data is greater than or equal to a first preset value and less than or equal to a second preset value, controlling the hysteresis comparator to feed back the hysteresis voltage according to the state of the automobile lamp, and controlling the state of the automobile lamp to keep unchanged according to the hysteresis voltage.

In this embodiment, after the hysteresis comparator feeds back the hysteresis voltage according to the state of the vehicle lamp, the state of the vehicle lamp is controlled to remain unchanged according to the hysteresis voltage, specifically:

the hysteresis voltage includes: a hysteretic positive voltage and a hysteretic negative voltage, the states including an on state and an off state;

when the state of the automobile lamp is the opening state, controlling the hysteresis comparator to feed back the hysteresis positive voltage so as to enable an operational amplifier in the hysteresis comparator to keep outputting a high-level signal, and then controlling the automobile lamp to keep the opening state according to the high-level signal;

when the state of the automobile lamp is the closing state, controlling the hysteresis comparator to feed back the hysteresis negative voltage so as to enable an operational amplifier in the hysteresis comparator to keep outputting a low-level signal, and then controlling the automobile lamp to keep the closing state according to the low-level signal.

In this embodiment, the method further includes:

when the illumination intensity data is smaller than a first preset value, judging whether the automobile lamp is in the closing state, if so, starting the automobile lamp; if not, controlling the automobile lamp to keep the opening state.

In a specific embodiment, the turning on the vehicle lamp specifically includes:

when the illumination intensity data is smaller than a first preset value and the automobile lamp is in the off state, the output of an operational amplifier in the hysteresis comparator is a low-level signal;

and when the illumination intensity data continuously decrease, acquiring a reverse input voltage value of the operational amplifier, and when the reverse input voltage is smaller than a third value, controlling the operational amplifier to output a high-level signal and then starting the automobile lamp according to the high-level signal.

In this embodiment, the method further includes:

when the illumination intensity data is larger than the second preset value, judging whether the automobile lamp is in the starting state, if so, closing the automobile lamp; and if not, controlling the automobile lamp to keep the closing state.

In a specific embodiment, the turning off the vehicle lamp specifically includes:

when the illumination intensity data is larger than the second preset value and the automobile lamp is in the opening state, the operational amplifier in the hysteresis comparator outputs a high-level signal;

and when the illumination intensity data is continuously increased, acquiring a reverse input voltage value of the operational amplifier, and when the reverse input voltage is greater than a fourth value, controlling the operational amplifier to output a low level signal and then closing the automobile lamp according to the low level signal.

In this embodiment, the vehicle lamp includes: automobile headlights (automobile headlamps) and automobile headlamps (automobile width indicator).

To further explain a specific control method of an automobile lamp, please refer to fig. 2, fig. 2 is a schematic structural diagram of an ambient light sensor according to an embodiment of the present invention, a dotted frame of fig. 2 is a structure of the ambient light sensor, and the ambient light sensor 201 includes a hysteresis comparator and a voltage comparator, and specifically includes resistors R1, R2, R3, R4 … … R10, capacitors C1, C2, C3, C4, a diode D1, a photodiode D3, a TVS tube D2, an operational amplifier ICA, and a transistor T1. In addition, the ambient light sensor 201 is connected to the vehicle body controller 202 through a transistor T1, and the vehicle body controller 202 supplies power to the power module 2011 of the ambient light sensor 201 through the vehicle power supply 203. The body controller 202 is configured to control the turning on/off of the vehicle lamps according to the high/low level signal.

The circuit 1(R1 → D1 → D3 → R10), the circuit 2(R1 → D1 → R2 → R3 → R4) and the operational amplifier ICA form a voltage comparator, the circuit 2 provides a reference forward voltage input for the operational amplifier ICA, and is mainly used for ensuring that when the ambient light is weak (i.e. the light intensity data L is less than the first preset value L-), and the vehicle lamp is in a closed state, the forward input voltage provided by the circuit 2 counteracts the reverse input voltage (the reverse input voltage is generated by the current and the leakage current excited by the photodiode under the ambient light), the forward input of the operational amplifier ICA is ensured to be larger than the reverse input at the moment, and the operational amplifier ICA outputs a high-level signal, and then reaches the vehicle body controller 202 through the resistor R7 and the triode T1, so that the vehicle body controller 202 finally turns on the vehicle lamp according to the high-level signal.

The loop 1(R1 → D1 → D3 → R10), the loop 3(R6 → R3 → R4) and the operational amplifier constitute a hysteresis comparator, which functions as follows:

when the ambient light is weak (i.e. the light intensity data L is smaller than the first preset value L-), the operational amplifier ICA outputs a high level, and the automobile lamp is in an on state. The hysteresis positive voltage is fed back through the loop 3, so that the illumination intensity data L still keeps outputting a high level signal even if the illumination intensity data L is slightly larger than the first preset value L-, the illumination intensity data L reaches the automobile body controller 202 through the resistor R7 and the triode T1, and finally the automobile body controller 202 controls the automobile lamp to keep an opening state according to the high level signal. Under the condition that the illumination intensity data L is changed near the first preset value L-, due to the action of the hysteresis comparator, the problem that the output level signal of the operational amplifier ICA is frequently changed between high and low level signals can be avoided, and therefore the anti-interference capability of the automobile lamp is improved.

When the ambient illumination is strong (namely, the illumination intensity data L is greater than the second preset value L +), the operational amplifier ICA outputs a low level at the moment, and the automobile lamp is in a closed state. The hysteresis negative voltage is fed back through the loop 3, so that even if the illumination intensity data L is slightly smaller than the second preset value L +, the operational amplifier ICA still keeps outputting a low level signal, and then the low level signal passes through the resistor R7 and the triode T1 to reach the vehicle body controller 202, and finally the vehicle body controller 202 controls the vehicle lamp to keep a closed state according to the low level signal. Under the condition that the illumination intensity data L is changed near the second preset value L +, the problem that the output level signal of the operational amplifier ICA is frequently changed between high and low level signals can be avoided due to the effect of the hysteresis comparator, and therefore the anti-interference capability of the automobile lamp is improved.

In addition, the ambient light sensor 201 further includes a fault emergency device, and the fault emergency device is used for still guaranteeing to automatically turn on the car lamp when the operational amplifier or the front end of the operational amplifier is in fault, and has strong fault-proof capability. The body controller 202 is further connected to an automatic vehicle light module, which is used to detect an automatic vehicle light switch signal: when the automatic lamp module detects that the automatic lamp switching signal is valid and transmits the signal to the vehicle body controller 202, the vehicle body controller 202 can control the on/off of the vehicle lamp according to the high/low level signal; when the auto light module detects that the auto light switch signal is invalid and transmits the auto light switch signal to the body controller 202, the body controller 202 does not control the auto lights.

To specifically explain the timing of turning on and off the lamp of the vehicle, please refer to fig. 3, and fig. 3 is a schematic diagram of the timing of turning on/off the lamp of the vehicle according to an embodiment of the present invention.

As can be seen from fig. 3, the upper half of fig. 3 shows the relationship between the light intensity and the time, and the lower half of fig. 3 shows the relationship between the output voltage of the operational amplifier and the time.

The upper half according to fig. 3 can be taken:

when the automobile lamp is in an open state and the ambient illumination intensity is weak (namely the illumination intensity data L is less than a first preset value L-), the forward input of the operational amplifier is greater than the reverse input, and the operational amplifier outputs a high-level signal. And at the moment, the hysteresis comparator feeds back a hysteresis positive voltage to the positive input, so that the positive input of the operational amplifier is further increased, and the automobile lamp is kept in a starting state.

When the automobile lamp is in an open state, the current of the photosensitive diode is continuously increased along with the enhancement of the ambient illumination intensity, so that the reverse input voltage of the operational amplifier is continuously increased. When the illumination intensity data L is greater than the second preset value L +, the reverse input voltage of the operational amplifier is greater than the sum of the reference forward voltage and the hysteresis forward voltage provided by the loop 2, that is, the reverse input voltage is greater than a fourth value (the fourth value is the sum of the reference forward voltage and the hysteresis forward voltage). When the reverse input voltage is greater than the fourth value, the operational amplifier starts outputting a negative voltage, i.e., outputting a low level signal, so that the state of the vehicle lamp changes from the on state to the off state, as shown in the upper half of fig. 3 as a "light-off point". After the state of the automobile lamp is changed into the off state, the hysteresis comparator feeds back a hysteresis negative voltage to the positive input, and the positive input voltage of the operational amplifier is further reduced. Even if the illumination intensity data L is reduced to the second preset value L +, the operational amplifier still keeps outputting negative voltage due to the hysteresis negative voltage fed back by the hysteresis comparator, so that the automobile lamp keeps in a closed state.

When the automobile lamp is in a closed state, along with the continuous reduction of the ambient illumination intensity, when the illumination intensity data L is smaller than a first preset value L < - >, the current of the photosensitive diode D3 is continuously reduced, so that the sum of the voltage of the reverse input end of the operational amplifier and the hysteretic feedback voltage is smaller than the reference forward voltage provided by the loop 2, namely the reverse input voltage is smaller than a third value (the third value is the difference between the reference forward voltage and the hysteretic feedback voltage). When the reverse input voltage is smaller than the third value, the operational amplifier starts to output a positive voltage, i.e., a high level signal, so that the state of the vehicle lamp changes from the off state to the off-on state, as shown in "lamp lighting" in the lower half of fig. 3. After the state of the automobile lamp is changed into the opening state, the hysteresis comparator feeds back a hysteresis positive voltage to the positive input, so that the positive input of the operational amplifier is further increased. Even if the illumination intensity data L is enhanced to the first preset value L-, the operational amplifier still keeps positive voltage output due to the hysteresis positive voltage fed back by the hysteresis comparator, so that the automobile lamp is kept in a starting state. Only when the ambient light intensity L is increased to the second preset value L +, the output of the operational amplifier is changed from the positive voltage to the negative voltage again for outputting, so that the state of the automobile lamp is changed from the on state to the off state.

In summary, the turning on and off of the light is not realized by one critical value, but by two critical values (the first predetermined value L-and the second predetermined value L +). The difference between the two critical values is called the return difference of the illumination intensity, and when the ambient illumination intensity is between the return difference of the illumination intensity, the output of the operational amplifier keeps the original output value unchanged, so that the state of the automobile lamp is kept unchanged, and the stability and the anti-interference performance of the automobile lamp are greatly improved.

From the bottom half of fig. 3, we can see:

when the output voltage of the operational amplifier is positive voltage, namely the output of the operational amplifier is a high-level signal, the automobile lamp is in a starting state; when the output voltage of the operational amplifier is negative voltage, namely the output of the operational amplifier is a low level signal, the automobile lamp is in a closed state. When the state of the automobile lamp is changed from the on state to the off state, the state corresponds to the 'lamp-off point' in the upper half part of fig. 3; when the state of the vehicle lamp is changed from the off state to the on state, it corresponds to "light-on" in the upper half of fig. 3.

To further explain the control device of the vehicle lamp, please refer to fig. 4, fig. 4 is a schematic structural diagram of the control device of the vehicle lamp according to an embodiment of the present invention, including: an acquisition module 401 and a control module 402.

The acquiring module 401 is configured to acquire illumination intensity data acquired by an ambient illumination sensor; wherein the ambient light sensor comprises a hysteresis comparator.

The control module 402 is configured to control the hysteresis comparator to feed back a hysteresis voltage according to the state of the vehicle lamp and then control the state of the vehicle lamp to remain unchanged according to the hysteresis voltage when the illumination intensity data is greater than or equal to a first preset value and less than or equal to a second preset value.

In a specific embodiment, after the hysteresis comparator feeds back the hysteresis voltage according to the state of the vehicle lamp, the state of the vehicle lamp is controlled to remain unchanged according to the hysteresis voltage, specifically:

the hysteresis voltage includes: a hysteretic positive voltage and a hysteretic negative voltage, the states including an on state and an off state;

when the state of the automobile lamp is the opening state, controlling the hysteresis comparator to feed back the hysteresis positive voltage so as to enable an operational amplifier in the hysteresis comparator to keep outputting a high-level signal, and then controlling the automobile lamp to keep the opening state according to the high-level signal;

when the state of the automobile lamp is the closing state, the hysteresis comparator is controlled to feed back the hysteresis negative voltage, so that an operational amplifier in the hysteresis comparator keeps outputting a low-level signal, and then the automobile lamp is controlled to keep the closing state according to the low-level signal.

In this embodiment, the method further includes:

when the illumination intensity data is smaller than a first preset value, judging whether the automobile lamp is in a closed state, if so, starting the automobile lamp; if not, controlling the automobile lamp to keep the on state.

When the illumination intensity data is larger than the second preset value, judging whether the automobile lamp is in an opening state, if so, closing the automobile lamp; and if not, controlling the automobile lamp to keep a closing state.

In the embodiment of the invention, the illumination intensity data collected by the ambient illumination sensor is firstly obtained through an obtaining module 401; wherein the ambient light sensor comprises a hysteresis comparator; and then, when the illumination intensity data is greater than or equal to the first preset value and less than or equal to the second preset value, the control module 402 controls the hysteresis comparator to feed back the hysteresis voltage according to the state of the automobile lamp, and then controls the state of the automobile lamp to be kept unchanged according to the hysteresis voltage.

According to the embodiment of the invention, the hysteresis comparator can be controlled to feed back the hysteresis voltage according to the illumination intensity data acquired by the ambient illumination sensor, and finally the state of the automobile lamp is controlled to be kept unchanged according to the hysteresis voltage. Under the condition that the illumination intensity data is changed near the first preset value and the second preset value, the state of the automobile lamp is kept unchanged under the action of the hysteresis voltage fed back by the hysteresis comparator, so that the stability and the anti-interference performance of the automobile lamp are greatly improved; frequent changes of road surface light caused by frequent lighting or extinguishing of automobile lamps are avoided, and personal safety of drivers is guaranteed; the damage of the automobile lamp caused by frequent lighting or extinguishing is avoided, and the service life of the automobile lamp is prolonged.

Secondly, the ambient light sensor used in the embodiment of the invention can realize output similar to a digital switch, and the automobile body controller can realize control on the automobile lamp only by acquiring two signals of high/low level, thereby greatly simplifying the software logic of the automobile body controller and improving the stability of a control system.

Finally, the ambient light sensor used in the embodiment of the invention is also integrated with a fault emergency device, when the operational amplifier or the front end of the operational amplifier breaks down due to some reason, the automatic starting of the automobile lamp can still be ensured, and the invention has stronger fault-proof capability.

While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种汽车车灯投影方法以及相关装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!