A kind of motor-driven vehicle meeting at night automatic brightness-changing system
Technical field
The utility model relates to a kind of motor-driven vehicle meeting at night automatic brightness-changing system.For the automatic switchover of instant and near light during motor-driven vehicle meeting at night.
Background technology
The switching of self-propelled vehicle night running long-and-short distant light is in the market all that chaufeur M/C realizes substantially.If switch to passing light not in time due to during a variety of causes meeting, the inconvenience that the other side can be caused to drive a vehicle or accident.For this reason, people have carried out long-term exploration, propose various solution.
Such as, Chinese patent literature discloses a kind of automatic device for changing light of front headlight of motor vehicle [application number: 200410059949.5], this device is one automobile meeting at night is send wireless signal, make both sides' self-propelled vehicle all be switched to dipped beam state, after meeting, switch to the device of country beam again.This device adopts the radio transmitter of single-chip, the transmission varying optical signal of omnidirectional, by 8 micro controller systems as signal processing unit, and the input/output signal of process radio transmitter, and control the conducting of field effect transistor and close to realize the switching of long-and-short distant light.It in Vehicle during Crossing Event, can realize the switching of automobile long-and-short distant light automatically, and without the need to manual hand manipulation, maximum likelihood reduces the generation of consequent traffic accident.
Obviously, what such scheme adopted is that omnidirectional antenna sends wireless varying optical signal, its defect is: cannot realize becoming light according to the relative position between vehicle and travel direction when vehicle meeting, likely also can become light by false triggering Dim Dimmer when the self-propelled vehicle that Liang Tai is provided with this system travels in the same way.When particularly opponent vehicle does not install above-mentioned Dim Dimmer when a chassis is provided with Dim Dimmer, the effect of automatic beam change cannot be played.On the other hand, such scheme needs external beam deflector switch, needs to destroy car panel to install the switch of Dim Dimmer.
Summary of the invention
The purpose of this utility model is for the problems referred to above, provides a kind of and becomes light reliably, motor-driven vehicle meeting at night automatic brightness-changing system easy for operation.
For reaching above-mentioned purpose, the utility model provides a kind of motor-driven vehicle meeting at night automatic brightness-changing system, and this automatic brightness-changing system comprises:
Multi-path light intensity sensor, the intensity of light of opposite vehicle and situation of change thereof during for detecting meeting;
GPS receiver module, for road speed and the direction of this car of Real-time Obtaining;
ARM microcontroller, for controlling the operation of all modules of native system;
Communicating circuit between zigbee self-propelled vehicle, for the communication between meeting vehicle;
Bluetooth circuit, for realizing the communication between native system and chaufeur;
Power output circuit, for controlling the switching of car light light;
Car light state detection circuit, for detecting the car light situation of this car;
Wherein, the PORT COM of ARM microcontroller connects communicating circuit and Bluetooth circuit between Zigbee self-propelled vehicle;
When meeting both sides are provided with native system, two cars can carry out Zigbee communication before meeting, mutual transmission speed and direction information, in suitable distance, then realize country beam simultaneously switch to passing light, when meeting terminates, recovered country beam;
When opponent vehicle does not install native system, native system can judge opponent vehicle light situation according to the rate of change of light intensity and light intensity, and automatically adjusts this car change light.
Further, described light intensity sensor, GPS receiver module, car light state detection circuit and power output circuit are connected in ARM microcontroller.
Further, long-and-short distant light is connected on power output module, is realized the switching of light by power output module.
Further, in above-mentioned motor-car nighttime meeting automatic brightness-changing system, multisensor composite mode can be adopted, for the detection of complex condition to vehicle.
Further, described brightness-changing system, according to the incoming signal of Bluetooth circuit, changeablely becomes optical mode manually or automatically, can realize automatic switchover distance-light when automatic beam change pattern is opened, and can realize the far and near lamp of manual switchover when manual mode is opened.
Further, described Bluetooth circuit can be connected with chaufeur mobile phone, by the special software in mobile phone, switches native system for automatically or manually to become optical mode.
Further, in above-mentioned motor-car nighttime meeting automatic brightness-changing system, described microprocessor can arrange the distance range becoming light, can adjust change light according to the speed of opponent vehicle and direction.
Motor-driven vehicle meeting at night based on above-mentioned automatic brightness-changing system becomes light method, and the method comprises the steps:
(1) automatic brightness-changing system is started, and initialization system;
(2) receive the Bluetooth signal from mobile phone, determine manually/become light automatic beam change mode;
(3) Dim Dimmer and car light state is determined;
(4) attempt setting up with meeting vehicle communicating;
(5) as established a communications link with opponent vehicle, then
(51) this car automatic brightness-changing system detects opponent vehicle car light situation voluntarily, and portable lighter light of going forward side by side switches;
As established a communications link with opponent vehicle, then
(52) automatic brightness-changing system of meeting both sides exchanges both sides travelling data, and cooperatively interacts and carry out light switching.
Further, in step (4), write to each other by Zigbee module.
Further, in step (51), brightness-changing system reads four road light intensity sensor data, and calculating judges opponent vehicle car light situation thus.
Further, in step (52), the travelling data of exchange comprises the current GPS location of vehicle, road speed and car light situation.
Further, in step (52), meeting both sides are after entering reliable communication range, and confirm connect after, the ID of self brightness-changing system of mutual transmission, then sends light status, speed, location information, until meeting both sides leave reliable communicating scope by the cycle.
Further, in step (2), ARM microcontroller is connected by bluetooth communication and car owner's mobile phone, and car owner, by mobile phone terminal control software design, controls to become optical mode.
Beneficial effect:
Compared with prior art, the advantage of this motor-car nighttime meeting automatic brightness-changing system is: the advantage 1, having gathered GPS, Zigbee and multichannel light intensity sensor, improve the precision of system, speed of response and reliability, can easily realize automatic switchover passing light.2, adopt the remote control of Bluetooth of mobile phone to select to become the function of optical mode, do not destroy original car panel, keep the succinct of panel, improve Consumer's Experience.3, have employed ARM microcontroller, can process data in time fast, speed of response is faster, and safety is better.4, have employed the compatibility mode of manual/auto change light, more expand the applicable area of native system.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of a kind of motor-driven vehicle meeting at night automatic brightness-changing system of the present utility model.
Fig. 2 is the circuit diagram of a kind of motor-driven vehicle meeting at night automatic brightness-changing system of the present utility model.
Fig. 3 is the diagram of circuit of a kind of motor-driven vehicle meeting at night automatic brightness-changing system operating method of the present utility model.
Fig. 4 is the meeting communication schematic diagram of a kind of motor-driven vehicle meeting at night automatic brightness-changing system of the present utility model.
Fig. 5 is the workflow diagram of the Bluetooth circuit of a kind of motor-driven vehicle meeting at night automatic brightness-changing system of the present utility model.
Detailed description of the invention
system's composition
As shown in Figure 1, this motor-car nighttime meeting automatic brightness-changing system include light intensity sensor 1 for detecting the other side's car light, for obtain car speed and direction GPS module 2, for car to car communication zigbee self-propelled vehicle between communicating circuit 4, for mobile phone remote Bluetooth circuit 5 and control the power output circuit 6 that light switches and the car light state detection circuit 7 detecting car light state.These functional circuits are all connected in ARM microcontroller 3.
When two cars are all provided with native system, two cars can carry out communication by communicating circuit 4 between the zigbee self-propelled vehicle of car to car communication before meeting, mutual transmission speed and direction information, then in suitable distance, calculate driving power output circuit 6 by ARM microcontroller 3 to realize country beam simultaneously and switch to passing light, when meeting terminates, recover country beam.When opponent vehicle does not install native system, the rate of change that motor-car nighttime meeting automatic brightness-changing system can obtain four tunnel light intensities and light intensity according to light intensity sensor 1 judges opponent vehicle, thus realizes automatic beam change.ARM microcontroller 3 li is provided with real time operating system (RTOS) FreeRTOS, and use real time operating system (RTOS) can make programming modularization more, extendability greatly strengthens, and time response can be precisely controlled, can respond incoming signal in time fast, between calculating when becoming light.Can arrange and become electrical distance 100 to 200 meters.
Power output circuit 6 and car light state detection circuit 8 are connected to car light, are respectively used to the real-time status driving car light and detect car light.
Bluetooth circuit 5 can be connected with mobile phone, by the special software in mobile phone, can switch native system easily for automatically or manually to become optical mode.Manually become light when switching under being not suitable for adopting the pattern of automatic beam change, expand the safety of field of application and use.
circuit specifically forms
See Fig. 2, mu balanced circuit of the present utility model is made up of integrated voltage stabilizer IC1, the circuit of ARM microcontroller 3 is by having internal storage, the STM32F103 microcontroller chip IC 2 of I2C bus controller and AD converter and resistance R3, R4, R9, R10 connects to form, between zigbee self-propelled vehicle, communicating circuit 4 is made up of CC2531 radio transmitting and receiving chip IC3, GPS receiver module 2 is made up of BH1750FVI module I C4, Bluetooth circuit 5 is made up of CC2540 Bluetooth chip IC5, the circuit of light intensity sensor 1 is by 4 digital optical intensity sensor BH1750FVI chip IC 6, IC7, IC8, IC9 and resistance R11, R12, R13, R14 is formed, four BH1750FVI digital optical intensity induction chips are respectively towards the upper left of vehicle heading, lower-left, upper right, lower right, separated by the housing be in the light between BH1750FVI chip.
Power output circuit 6 is made up of resistance R1, R2, R5, R6, R7, R8, aerotron T1, T2, field effect transistor V1, V2.The wherein positive pole of the input termination automobile batteries of the LM2596 integrated voltage-stabilized chip IC 1 of mu balanced circuit, mouth is connected respectively to VCC end, the VCC end of the VCC end of the VCC end of the CC2531 radio transmitting and receiving chip IC3 of communicating circuit 4, the VCC end of the CC2540 Bluetooth chip IC5 of Bluetooth circuit 5, the BH1750FVI module I C4 of GPS receiver module 2 and 4 digital optical intensity sensor BH1750FVI chip IC 6, IC7, IC8, IC9 between zigbee self-propelled vehicle of the STM32F103 chip IC 2 of ARM microcontroller circuit 2.The GND of IC1, IC2, IC3, IC4, IC5, IC6, IC7, IC8, IC9 holds ground connection.
RX and the TX end of CC2531 radio transmitting and receiving chip IC3 connects TX1 and the RX1 port of STM32F103 microcontroller chip IC 2 respectively.RX and the TX end of the BH1750FVI module I C4 of GPS receiver module 2 connects TX2 and the RX2 port of STM32F103 microcontroller chip IC 2 respectively.RX and the TX end of the CC2540 Bluetooth chip IC5 of Bluetooth circuit 5 connects TX3 and the RX3 port of STM32F103 microcontroller chip IC 2 respectively.
SDA and the SCL port of digital optical intensity sensor BH1750FVI chip IC 6, IC7 receives SDA1 and the SCL1 port of STM32F103 microcontroller chip IC 2 respectively, one end of resistance R11 connects SDA1, the other end connects the mouth of regulator block IC1, one end of resistance R12 connects SCL1, and the other end connects the mouth of regulator block IC1.SDA and the SCL port of digital optical intensity sensor BH1750FVI chip IC 8, IC9 receives SDA2 and the SCL2 port of STM32F103 microcontroller chip IC 2 respectively, one end of resistance R11 connects SDA2, the other end connects the mouth of regulator block IC1, one end of resistance R12 connects SCL2, and the other end connects the mouth of regulator block IC1.
The input end P1 of the IC2 of ARM microcontroller 3 circuit is connected with one end of resistance R3, R4, and the other end of R3 is held with the D of K switch 2 and is connected, and the other end of R4 is connected to the ground.The input end P4 of the IC2 of ARM microcontroller 3 circuit is connected with one end of resistance R9, R10, and the other end of R9 is held with the E of K switch 2 and is connected, and the other end of R10 is connected to the ground.The mouth P2 of the IC2 of ARM microcontroller 3 circuit is connected with one end of resistance R5, the other end of R5 is connected with the base stage of aerotron T1, the emitter ground connection of aerotron T1, collecting electrode is connected with resistance R2, the other end contact resistance R1 of R2 is connected with the gate pole of field effect transistor V1, the other end of resistance R1 and the source electrode of field effect transistor V1 are connected to the D end of K switch 2, and the drain electrode of field effect transistor V1 is connected to one end of country beam FL, the other end ground connection of country beam FL.
The mouth P3 of the IC2 of ARM microcontroller 3 circuit is connected with one end of resistance R8, the other end of R8 is connected with the base stage of aerotron T2, the emitter ground connection of aerotron T2, collecting electrode is connected with resistance R7, the other end contact resistance R6 of R7 is connected with the gate pole of field effect transistor V2, the other end of resistance R6 and the source electrode of field effect transistor V2 are connected to the D end of K switch 2, and the drain electrode of field effect transistor V2 is connected to one end of passing light CL, the other end ground connection of passing light CL.The drain electrode of the E termination field effect transistor V2 of K switch 2, the B end of the C termination K switch 1 of K switch 2, the positive pole of the A termination automobile batteries of K switch 1, the ground of system connects the negative pole of automobile batteries.
system operation method
As shown in Figure 3, when namely native system access automobile circuit starts working, wait for the initiation command of Bluetooth Receiver, when receiving the commencing signal from Bluetooth circuit, system can read car light status information by P1, P4 mouth, then this car of periodic broadcast ID and open the broadcast singal receiving other vehicles.If there is another native system entry communication scope, set up intercommunication with it, ask the geographic coordinates of the other side, speed and car light status information, the gps signal and the car light state that read native system send to method, system simultaneously, draw suitable change light time point as calculated and become light time span, until leave communication context.If do not receive the signal from another system, system will constantly read the data of 4 road light intensity sensors, and uses recurrence learning algorithm identified the need of the time span becoming and became light.Export control signal finally by control P2, P3 mouth, implement to become light action.
Be divided into two kinds of situations when two automobiles meeting, one is that two cars are all provided with this brightness-changing system, another kind of for only having side's car to be provided with this brightness-changing system.
When two cars are all provided with this brightness-changing system, as shown in Figure 4, two cars are this car of meeting fixed time broadcast ID before entry communication scope, within entering into Zigbee communication context, when both sides can receive the other side ID, can confirm ID, to ensure the other side also for the brightness-changing system of homologous ray, then both sides can send this car car light state, GPS geographic coordinates car speed mutually with fixed frequency, between when native system calculates suitable change light according to above-mentioned data and control P2 or P3 mouth export the varying optical signal of response.Country beam is switched back when vehicle location speed no longer meets and becomes optical condition.Data mutually send and are continued until and leave communication context.
When only having this car to be provided with this brightness-changing system, according to the data of four road light intensity sensors, system can judge whether front sends a car and calculate the time whether becoming light and become light.And control P2 or P3 mouth export the varying optical signal of response.
Mobile phone terminal bluetooth software flow process as shown in Figure 5, when mobile phone terminal software is opened, software can be connected to the Bluetooth circuit of native system according to the selection of user, opening button and closing button then on software meeting detection of handset screen software, if there is corresponding button to be pressed, then can sends and open or close the Bluetooth circuit of signal to native system accordingly.
Finally to should be noted that; above embodiment is only in order to illustrate the technical solution of the utility model but not restriction to the utility model protection domain; although be explained in detail the utility model with reference to preferred embodiment; those of ordinary skill in the art is to be understood that; can modify to the technical solution of the utility model or equivalent replacement, and not depart from essence and the scope of technical solutions of the utility model.