A kind of intelligent automotive light control setup based on the CAN bus
Technical field
The utility model relates to vehicle electronics circuit control technology, relates in particular to a kind of intelligent automotive light control setup based on the CAN bus.
Background technology
What the automobile lamp controller adopted usually is the single control mode of " point-to-point ", and rare each other contact so just makes wire harness increase in the car, complicated, the poor reliability of wiring; And traditional lamp light control system adopts the control of relay stand-alone mode mostly at present, and this makes that the interior wire harness of car is too much and wiring is complicated, causes electromagnetic interference easily, makes the reliability decrease of system.The increase of consumer makes that the car connecting lead wire expands rapidly, the quantity of electric connection obviously increases, cause the increase of complete vehicle weight, and then cause the consumption of vehicle fuel oil and the reliability decrease in the vehicle ' process, vehicle light illumination effect control is simultaneously mainly carried out switch control by button, do not realize intelligent control, complex operation and real-time are poor, the variation of vehicle light illumination impassabitity external environment condition and automatically regulating.
Summary of the invention
The technical problems to be solved in the utility model: a kind of intelligent automotive light control setup based on the CAN bus is provided, to solve the wiring complexity that car light control adopts point-to-point master mode to exist, electromagnetic interference is big, and reliability is low can not to be changed and problems such as automatically regulating according to external environment condition with car light.
Technical solutions of the utility model:
A kind of intelligent automotive light control setup based on the CAN bus, main control unit passes through the total wire joint of CAN with left front car light control unit, right front car light control unit, left back car light control unit, right back car light control unit respectively, and optoelectronic sensor is connected with main control unit by lead with the car light combined switch.
Main control unit comprises central microprocessor and CAN bus transceiver, and central microprocessor links to each other with the CAN bus by the CAN bus transceiver.
Left front, right front, left back and right back car light control unit includes power circuit, CAN transceiver, node microprocessor, power drive chip and corresponding vehicle lamp assembly, corresponding vehicle lamp assembly links to each other with the power drive chip, the power drive chip links to each other with the node microprocessor, the node microprocessor links to each other with the CAN transceiver, and the CAN transceiver inserts the CAN bus.
Optoelectronic sensor is installed on the room mirror.
The beneficial effects of the utility model:
The utility model CAN bussing technique derives from so very proven technique of industry spot control bus and LAN, have very high reliability, real-time and anti-interference resistance, it is strong and vibrate big workplace to be particularly suitable for this work under bad environment of automobile, electromagnetic radiation.Its principal feature is: the real-time Transmission that only just can realize multi-path signal with the few lead of quantity.Adopt the CAN bus four car light control units of automobile and main control unit connect into behind the CAN local area network can realize convenient to automobile lamp, freely, control flexibly, increase the reliability and the safety of automobile, the utility model has been realized car light Based Intelligent Control function, promptly by adopting opto-electronic pickup control car light state, by opto-electronic pickup the environment of motor vehicle environment is judged, and control the mode of operation of car light as required, realize Based Intelligent Control to car light; Compared with the prior art, the lead that connects car light in the car is reduced, this control setup has light intelligent control function simultaneously, can effectively prevent the traffic accident that causes because of in the vision harm phase, the safety of raising automobile.This system only just can realize, flexibly control convenient to car light with two leads, and car light has intelligent control function and perfect defencive function simultaneously.Solved the wiring complexity that car light control adopts point-to-point master mode to exist, electromagnetic interference is big, and reliability is low can not to be changed and problems such as automatically regulating according to external environment condition with car light.
Description of drawings:
Fig. 1 is the utility model control principle structured flowchart;
Fig. 2 is each car light control unit constructional drawing of the utility model.
Embodiment:
A kind of intelligent automotive light control setup based on the CAN bus, its control principle structure as shown in Figure 1, main control unit passes through the total wire joint of CAN with left front car light control unit, right front car light control unit, left back car light control unit, right back car light control unit respectively, and optoelectronic sensor is connected with main control unit by lead with the car light combined switch.
Main control unit comprises central microprocessor and CAN bus transceiver, and central microprocessor inserts the CAN bus by the CAN bus transceiver.
Left front, right front, left back and right back car light control unit includes power circuit, CAN transceiver, node microprocessor, power drive chip and corresponding vehicle lamp assembly, and its constructional drawing as shown in Figure 2.Corresponding vehicle lamp assembly links to each other with the power drive chip, and the power drive chip links to each other with the node microprocessor, and the node microprocessor links to each other with the CAN transceiver, and the CAN transceiver inserts the CAN bus.
Optoelectronic sensor is installed on the room mirror.
Microprocessor is the core of The whole control system.Consider the automobile bad working environment, the MC9S08DZ60 micro controller system that has the CAN controller of having selected to have the higher Freescale company of automobile working temperature range and cost performance is the control circuit of each unit of core design.The MC9S08DZ60 internal resource is abundant, required external devices is few, the BKGD/MS pin can be conveniently implemented in the line programming, this microprocessor aims at automobile applied environment design, has in 40MHz dominant frequency, the 60KB sheet E2PROM of RAM, 2KB on Flash memory device, the 4KB sheet, 53 I/O ports, 24 interrupt pin, supports two kinds of super low-power consumption patterns.The embedded MSCAN module of MC9S08DZ60 is supported the CAN2.0A/B agreement, with MC9S08DZ60 be the body control system of core can be in-40 ℃~+ 85 ℃ scopes normal operation, have high reliability and low in power consumption.
Optoelectronic sensor is made up of luminous element, optical system, photoelectricity receiving element and metering circuit.Adopt the automatic guidance of photo-electric optical sensors realization to car light, the photo-electric optical sensors uses cadmium sulfide (CdS) as semiconductor element, when light irradiation cadmium sulfide (CdS), resistance value changes thereupon that (resistance value was big when surrounding environment was dark, resistance value diminishes when bright), the variation of ambient lighting can be converted to the variation of resistance value, with the form input controller of electric signal.
The CAN bus transceiver adopts TJA1050.Because the CAN controller drives is limited in one's ability, therefore need to add the CAN bus driver to strengthen the integraty of CAN signal transmission distance and signal transmission.
The power drive chip adopts smart power chip BTS6143D, BTS734L1, and it is directly linked to each other with microcontroller MC9S08DZ60, receives control signal.BTS6143D, BTS734L1 are the design-calculated N of INFINEON company channel fet power tubes, inner integrated charge pump, current drives, and have the fault feedback function (comprise overload, cross gentle short-circuit detecting etc.) that load current detects, be the flash smart power switch chip of technology on the integrated SIPMOS sheet.BTS6143D is in driving the car headlight, as: passing light, country beam, fog lamp etc., BTS734L1 is used to drive the car lampet.
Power circuit comprises storage battery and voltage stabilizing/insulating power supply.The vehicle power of automotive system is+12V, and controller needs+12V and+two kinds of DC power supply of 5V.Therefore need carry out level conversion, 12V accumulator DC in the automobile is converted to the direct current circuit of 5V by mu balanced circuit, again microcontroller and other ECU (Electrical Control Unit) be powered.Wherein+and the 12V power supply mainly is to provide driving voltage to power chip ,+5V power supply provides operating voltage then for the chip in the circuit.