novel control device and control method for hydrogen energy automobile hazard warning lampTechnical Field
The invention relates to the field of new energy automobiles, in particular to a novel control device and a control method for a hydrogen energy automobile hazard warning lamp.
Background
When the vehicle suddenly encounters severe weather (rainstorm/heavy fog) during driving, no matter day or night, the danger alarm flash lamp is started immediately to remind other vehicles of paying attention to safety, so as to attract attention and avoid rear-end accidents.
disclosure of Invention
in order to solve the above problems, the present invention provides a novel control device and a control method for a hydrogen energy automobile hazard warning lamp, the novel control device for the hydrogen energy automobile hazard warning lamp comprises: the system comprises a light controller, a middle control large screen, an instrument, a rainfall sensor, a manual mechanical switch, a camera and a danger alarm lamp; the hazard warning lamp includes: a front hazard warning lamp and a rear hazard warning lamp;
The rainfall sensor is arranged on the front windshield and used for detecting the rainfall; the camera is arranged in front of the vehicle body and used for detecting visibility; a danger alarm lamp prompting lamp is arranged in the instrument; the central control large screen is provided with a danger alarm lamp automatic opening switch button for controlling the danger alarm lamp to be automatically opened or closed;
The light controller is respectively electrically connected with the central control large screen, the instrument, the rainfall sensor, the camera, the front danger alarm lamp and the rear danger alarm lamp so as to receive data sent by the camera, the central control large screen and the rainfall sensor and respectively control the instrument, the front danger alarm lamp and the rear danger alarm lamp;
the manual mechanical switch is arranged on the right side of the steering wheel in the cab and electrically connected with the light controller for manually controlling the danger alarm lamp.
Further, the manual mechanical switch is provided with a backlight lamp, and when the manual mechanical switch is pressed down, the backlight lamp is turned on to play a role in reminding.
Further, the front danger warning lamp is arranged in front of the vehicle body, and the rear danger warning lamp is arranged behind the vehicle body.
Furthermore, the large central control screen is a touch screen, the automatic on-off button of the danger alarm lamp is a touch screen button, and the touch screen button is arranged under a system menu of the large central control screen or directly arranged on the first page of the large central control screen, so that touch control is facilitated.
Further, the light controller is a single chip microcomputer or a computer.
further, the front danger warning lamp and the rear danger warning lamp are both halogen lamps or LED lamps.
Furthermore, a novel control method of the hydrogen energy automobile hazard warning lamp is applied to a novel control device of the hydrogen energy automobile hazard warning lamp;
The novel control method of the hydrogen energy automobile hazard warning lamp specifically comprises the following steps:
s101: when the automatic opening switch button of the danger alarm lamp of the central control large screen is in an opening state, the light controller acquires rainfall data acquired by the rainfall sensor and visibility data acquired by the camera in real time; the rainfall data comprises real-time rainfall values x, and the visibility data comprises real-time visibility values y;
S102, judging whether the condition x is larger than or equal to delta and y is smaller than or equal to lambda and? is true, if so, the vehicle enters an alarm state, otherwise, returning to the step S101, wherein delta is a preset rainfall threshold, lambda is a preset visibility threshold, delta is greater than 0, and lambda is greater than 0;
The steps S101 to S102 are circulated until the automatic on-off button of the danger alarm lamp is in an off state;
the alarm states are as follows:
when the vehicle is in an alarm state, the light controller controls a danger alarm lamp prompt lamp in the instrument to light and flash, controls the front danger alarm lamp and the rear danger alarm lamp to light, and controls a background lamp of the manual mechanical switch to light.
further, if the vehicle is in an alarm state, at the moment, the light controller judges that the condition x is more than or equal to delta and y is less than or equal to lambda and does not stand, and the vehicle enters a normal state; in the normal state:
The light controller controls the background light of the manual mechanical switch to be turned off, controls the front danger alarm lamp and the rear danger alarm lamp to be turned off, and controls the danger alarm lamp prompt lamp in the instrument to be turned off.
Further, when the light controller detects that manual mechanical switch opens, the light controller control manual mechanical switch's background light, preceding danger alarm lamp with back danger alarm lamp lights simultaneously, just in well accuse large-size screen danger alarm lamp opens shift knob failure automatically, whether the vehicle gets into alarm state promptly no longer by vehicle automatic control, until the light controller detects manual mechanical switch closes.
The technical scheme provided by the invention has the beneficial effects that: the technical scheme provided by the invention effectively reduces the complexity of driving operation, is intelligent and humanized in design, realizes the automatic starting function of the hazard warning lamp in severe weather (rainy days or heavy foggy days), avoids the situation that the driver forgets to start the hazard warning lamp in severe weather, can effectively improve the driving safety, and brings better driving experience to users.
drawings
the invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a diagram of a novel control device for a hazard warning lamp of a hydrogen powered vehicle according to an embodiment of the present invention;
Fig. 2 is a flow chart of a novel control method for a hydrogen energy automobile hazard warning lamp in the embodiment of the invention.
Detailed Description
For a more clear understanding of the technical features, objects and effects of the present invention, embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
the embodiment of the invention provides a novel control device and a control method of a hydrogen energy automobile hazard warning lamp.
Referring to fig. 1, fig. 1 is a diagram illustrating an apparatus for controlling a hazard warning lamp of a hydrogen powered vehicle according to an embodiment of the present invention; the method comprises the following steps: the system comprises a light controller 1, a middle control large screen 2, an instrument 3, a rainfall sensor 4, a manual mechanical switch 5, a camera 6 and a danger alarm lamp; the hazard warning lamp includes: a front hazard warning lamp 7 and a rear hazard warning lamp 8;
the rainfall sensor 4 is arranged on the front windshield and used for detecting the rainfall; the camera 6 is arranged in front of the vehicle body and used for detecting visibility; a danger alarm lamp prompting lamp is arranged in the instrument 3; the large central control screen 2 is provided with a danger alarm lamp automatic opening switch button for controlling the danger alarm lamp to be automatically opened or closed;
The light controller 1 is respectively electrically connected with the central control large screen 2, the instrument 3, the rainfall sensor 4, the camera 6, the front danger warning lamp 7 and the rear danger warning lamp 8 so as to receive data sent by the camera 6, the central control large screen 2 and the rainfall sensor 4 and respectively control the instrument 3, the front danger warning lamp 7 and the rear danger warning lamp 8;
Manual mechanical switch 5 sets up in the steering wheel right side in the driver's cabin, and with light controller 1 electric connection for manual control danger alarm lamp.
the manual mechanical switch 5 is provided with a backlight lamp, and when the manual mechanical switch 5 is pressed down, the backlight lamp is lightened to play a role in reminding.
The front danger warning lamp 7 is arranged in front of the vehicle body, and the rear danger warning lamp 8 is arranged behind the vehicle body.
the large central control screen 2 is a touch screen, the automatic on-off button of the danger alarm lamp is a touch screen button, and the touch screen button is arranged under a system menu of the large central control screen 2 or directly arranged on the first page of the large central control screen, so that touch control is facilitated.
the light controller 1 is a single chip microcomputer or a computer.
The front danger warning lamp 7 and the rear danger warning lamp 8 are both halogen lamps or LED lamps.
A novel control method of a hydrogen energy automobile hazard warning lamp is applied to a novel control device of the hydrogen energy automobile hazard warning lamp;
referring to fig. 2, fig. 2 is a flowchart of a method for controlling a novel hydrogen energy automobile hazard warning lamp in an embodiment of the present invention, which specifically includes the following steps:
s101: when the automatic opening switch button of the danger alarm lamp of the central control large screen is in an opening state, the light controller acquires rainfall data acquired by the rainfall sensor and visibility data acquired by the camera in real time; the rainfall data comprises real-time rainfall values x, and the visibility data comprises real-time visibility values y;
S102, judging whether the condition x is larger than or equal to delta and y is smaller than or equal to lambda and? is true, if so, the vehicle enters an alarm state, otherwise, returning to the step S101, wherein delta is a preset rainfall threshold, lambda is a preset visibility threshold, delta is greater than 0, and lambda is greater than 0;
The steps S101 to S102 are circulated until the automatic on-off button of the danger alarm lamp is in an off state;
the alarm states are as follows:
When the vehicle is in an alarm state, the light controller controls a danger alarm lamp prompt lamp in the instrument to light and flash, controls the front danger alarm lamp and the rear danger alarm lamp to light, and controls a background lamp of the manual mechanical switch to light.
if the vehicle is in an alarm state, at the moment, the light controller judges that the condition x is not less than delta and y is not more than lambda, and the vehicle enters a normal state; in the normal state:
The light controller controls the background light of the manual mechanical switch to be turned off, controls the front danger alarm lamp and the rear danger alarm lamp to be turned off, and controls the danger alarm lamp prompt lamp in the instrument to be turned off.
When the light controller detects manual mechanical switch opens, the light controller control manual mechanical switch's background light preceding danger alarm lamp with back danger alarm lamp lights simultaneously, just in well accuse large-size screen danger alarm lamp opens shift knob automatically and became invalid, whether the vehicle got into alarm state promptly no longer by vehicle automatic control, until the light controller detects manual mechanical switch closes.
In the embodiment of the invention, when the automatic on-off button of the danger warning lamp of the central control large screen is in an on state, the rainfall sensor and the camera can respectively judge whether x is greater than or equal to delta and y is less than or equal to lambda, and if x is greater than or equal to delta, the rainfall sensor sends an effective signal to the light controller; if y is not more than λ, the camera sends an effective signal to the light controller; and after receiving the effective signal, the light controller controls the vehicle to enter an alarm state.
The invention has the beneficial effects that: the technical scheme provided by the invention effectively reduces the complexity of driving operation, is intelligent and humanized in design, realizes the automatic starting function of the hazard warning lamp in severe weather (rainy days or heavy foggy days), avoids the situation that the driver forgets to start the hazard warning lamp in severe weather, can effectively improve the driving safety, and brings better driving experience to users.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.