Controller of daytime running light based on CAN communication module
Technical Field
The utility model belongs to the technical field of the lamp controller that drives daytime and specifically relates to a lamp controller drives daytime based on CAN communication module.
Background
At present, some domestic and foreign small automobiles have daytime running light control functions, heavy automobiles are not provided with daytime running lights, the operation of the daytime running lights is completed through special daytime running light controllers, and according to the requirement of European Union regulations, if a vehicle is exported to the European Union, the daytime running lights must be provided, so that the daytime running lights are required to be mounted on the motor vehicles in order to improve the safety of roads and reduce the occurrence rate of accidental faults of the vehicle. According to the relevant standards (european ECE R48 "unified regulations on the installation certification of lighting and signalling devices"), motor vehicle daytime running lights need to be able to be automatically switched off when the front fog or headlight of the vehicle is switched on. At present, a motor vehicle provided with daytime running lamps adopts a relay to drive and control the daytime running lamps to be turned on and off, the relay is worn after long-term use, the service life of the relay is limited, and the reliability of the daytime running lamps is poor; meanwhile, the relay is adopted for control, so that the circuit is complex and the manufacturing cost is high; the state of the daytime running light cannot be monitored, and the daytime running light is inconvenient to use. Therefore, there is a need for a daytime running light controller that can overcome the above problems.
Disclosure of Invention
The utility model aims to provide a: the utility model provides a lamp controller drives daytime based on CAN communication module has solved current lamp controller drives the problem that the reliability is poor, CAN't carry out state detection and state transmission that drives daytime.
The utility model adopts the technical scheme as follows:
the utility model provides a daytime running light controller based on CAN communication module, includes drive circuit and power supply circuit, drive circuit connects the load, still includes singlechip, switch detection circuitry and CAN communication circuit respectively with singlechip electric connection, drive circuit includes intelligent power chip, singlechip and intelligent power chip input electric connection, load are connected to intelligent power chip output, realize drive and drive state through singlechip control power chip and detect.
Preferably, still include protection circuit, the protection circuit OUTPUT is connected with intelligent power chip OUTPUT pin, and power VCC is connected to its input, protection circuit includes MOS pipe Q37, diode D67 and diode D68, and power VCC is connected to MOS pipe Q37's grid, and diode D67 positive pole, diode D68 positive pole are connected respectively to its source, and interface J1 is connected respectively to diode D67 negative pole, diode D68 negative pole, its drain-source ground.
Preferably, the pin 3 and the pin 2 of the intelligent power chip are connected with the pin 3 of the single chip microcomputer, the pin 5 and the pin 2 of the intelligent power chip are connected with the pin 2 of the single chip microcomputer, the pin 7 and the pin CURRENT SENSE1 of the intelligent power chip are connected with the pins 5 and 9 of the single chip microcomputer, the pin 9 and the pin CURRENT SENSE2 of the intelligent power chip are connected with the pins 6 and 10 of the single chip microcomputer, the pin 2 of the intelligent power chip is connected with the pin C123 of the capacitor, the pin 1 of the intelligent power chip is connected with the pin C124 of the capacitor, the pin C123 of the capacitor is connected with the power supply after being connected with the pin C124 of the capacitor in parallel, the pin 2 of the intelligent power chip is also connected with the pin 7 of the.
Preferably, the CAN communication circuit includes a CAN chip, the TXD pin and the RXD pin of the CAN chip are respectively and correspondingly connected with the pins 23 and 24 of the single chip microcomputer, the CANH pin and the CANL pin thereof are respectively and correspondingly connected with the pins 10 and 9 of the interface J1, the VDD pin thereof is connected with the capacitor C11 and then grounded, the TXD pin thereof is connected with the resistor R29 and then connected with the power supply VDD, the RXD pin thereof is connected with the resistor R28-1 and then connected with the power supply VDD, and the RS pin thereof is connected with the resistor R30 and then grounded.
Preferably, the switch detection circuit comprises a switch diode, the switch diode K1 end is connected with the single chip microcomputer and the power supply VDD, the K2 end is connected with the high beam switch or the low beam switch or the front fog light switch or the rear position light switch, and the a end is connected with the resistor and the capacitor which are connected in parallel and then grounded.
Preferably, the circuit connections of the power supply circuit are as follows: the anode of the diode D6 is connected with a power supply VCC, the cathode of the diode D6 is connected with the rear of a capacitor C13 and then grounded, the capacitor C13 is connected with the capacitor C6 and the capacitor C7 which are connected in series in parallel, the cathode of the diode D13 is also connected with the cathode of a voltage stabilizing tube D20 after being connected with a resistor R28, the anode of a voltage tube D20 is grounded, one end of the capacitor C14, one end of the capacitor C8 and one end of the capacitor C9 which are connected in parallel are connected with a power.
To sum up, owing to adopted above-mentioned technical scheme, the beneficial effects of the utility model are that:
1. The utility model uses the intelligent power chip to replace the original relay driving mode, utilizes the chip to drive the load, simplifies the circuit, simultaneously selects the power chip with a protection circuit and adds the protection circuit, ensures the stability of the driving control, and improves the reliability of the driving of the daytime running light;
2. The utility model uses the microcontroller to control the CAN communication module, simplifies the circuit and reduces the cost while realizing the state communication;
3. The utility model ensures the stability of power supply by arranging voltage stabilization, filtering, diodes and the like on the power circuit, and further improves the reliability of the driving of the daytime running lamp;
4. The utility model discloses a switch diode detects the on-off state, detects and communicates the on-off state, improves practicality and convenience in use.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a circuit diagram of a power driving circuit of the present invention;
Fig. 2 is a circuit diagram of the single chip microcomputer of the present invention;
fig. 3 is a CAN communication circuit diagram of the present invention;
fig. 4 is a circuit diagram of the protection circuit of the present invention;
Fig. 5 is a current diagram of the power circuit of the present invention;
Fig. 6 is a circuit diagram of an interface circuit of the present invention;
Fig. 7 is a circuit diagram of the switch detection circuit of the present invention;
fig. 8 is a control block diagram of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the detailed description and specific examples, while indicating the preferred embodiment of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It is noted that relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
the technical problem is as follows: the problem of current daytime running light controller adopt the relay drive reliability poor, can't carry out state detection and state transmission is solved.
the technical means is as follows:
the utility model provides a daytime running light controller based on CAN communication module, includes drive circuit and power supply circuit, and drive circuit connects the load, still includes singlechip, switch detection circuitry and CAN communication circuit respectively with singlechip electric connection, drive circuit includes intelligent power chip, singlechip and intelligent power chip input electric connection, load is connected to intelligent power chip output, realizes drive and drive state through singlechip control power chip and detects.
Still include protection circuit, the protection circuit OUTPUT is connected with intelligent power chip OUTPUT pin, and power VCC is connected to its input, and protection circuit includes MOS pipe Q37, diode D67 and diode D68, and power VCC is connected to MOS pipe Q37's grid, and diode D67 positive pole, diode D68 positive pole are connected respectively to its source, and interface J1 is connected respectively to diode D67 negative pole, diode D68 negative pole, and its drain-source ground.
The pin 3 and the pin 2 of the intelligent power chip are connected with the pin 3 of the single chip microcomputer, the pin 5 and the pin INPUT2 of the intelligent power chip are connected with the pin 2 of the single chip microcomputer, the pin 7 and the pin CURRENT SENSE1 of the intelligent power chip are connected with the pins 5 and 9 of the single chip microcomputer, the pin 9 and the pin CURRENT SENSE2 of the intelligent power chip are connected with the pins 6 and 10 of the single chip microcomputer, the pin 2 of the OUTPUT is connected with a capacitor C123, the pin 1 of the OUTPUT is connected with a capacitor C124, the capacitor C123 and the capacitor C124 are connected with a power supply after being connected in parallel, the pin 2 of the OUTPUT is also connected with the pin 7 of an interface J35.
The CAN communication circuit comprises a CAN chip, pins TXD and RXD of the CAN chip are respectively and correspondingly connected with pins 23 and 24 of the singlechip, pins CANH and CANL of the CAN chip respectively correspond to pins 10 and 9 of an interface J1, a pin VDD of the CAN chip is grounded after being connected with a capacitor C11, a pin TXD of the CAN chip is connected with a power supply VDD after being connected with a resistor R29, a pin RXD of the CAN chip is connected with a resistor R28-1 and then is connected with the power supply VDD, and a pin RS of the CAN chip is grounded after being connected.
The switch detection circuit comprises a switch diode, the end of the switch diode K1 is connected with the singlechip and the power supply VDD, the end K2 is connected with the high beam switch or the dipped headlight switch or the front fog light switch or the rear position light switch, and the end A is connected with the resistor and the capacitor which are connected in parallel and then grounded.
The circuit connection of the power supply circuit is as follows: the anode of the diode D6 is connected with a power supply VCC, the cathode of the diode D6 is connected with the rear of a capacitor C13 and then grounded, the capacitor C13 is connected with the capacitor C6 and the capacitor C7 which are connected in series in parallel, the cathode of the diode D13 is also connected with a resistor R28 and then connected with the cathode of a voltage regulator tube D20, the anode of the voltage regulator tube D20 is grounded, one end of the capacitor C14, one end of the capacitor C8 and one end of the capacitor C9 which are connected in parallel are connected with a power.
The technical effects are as follows: the utility model uses the intelligent power chip to replace the original relay driving mode, utilizes the chip to drive the load, simplifies the circuit, simultaneously selects the power chip with a protection circuit and the design protection circuit, ensures the stability of the driving control, and improves the reliability of the driving of the daytime running light; the microcontroller is used for controlling the CAN communication module, so that the circuit is simplified while state communication is realized, and the cost is reduced; the stability of power supply is ensured by arranging voltage stabilization, filtering, diodes and the like on the power supply circuit, and the reliability of driving the daytime running lamp is further improved; the switch state is detected through the switch diode, and the switch state is detected and communicated, so that the practicability and the use convenience are improved.
The features and properties of the present invention are described in further detail below with reference to examples.
example 1
A daytime running lamp controller based on a CAN communication module comprises a driving circuit and a power circuit, wherein the driving circuit is connected with a load, and further comprises a single chip microcomputer, a switch detection circuit and a CAN communication circuit, the switch detection circuit and the CAN communication circuit are respectively and electrically connected with the single chip microcomputer, and the driving circuit comprises an intelligent power chip; the daytime running light controller acquires the states of a high beam switch or a low beam switch or a front fog light switch or a rear position light switch through a switch detection circuit, transmits information through CAN communication, controls daytime running lights through a driving circuit according to the daytime running light control logic requirement, monitors the driving load state in real time, judges faults and protects the controller and a loop load, the single chip microcomputer is controlled through an INPUT pin connected with a power chip, and the output end of the power chip is connected with a driving object; meanwhile, the state of the driving object can be fed back to the singlechip according to a current detection pin (CURRT SENSE pin) of the power chip; the detection is realized while the driving is realized, when the daytime running lamp works, the load loop is monitored in real time, when the overload occurs, the output of the loop is immediately cut off, the fault information is sent to the instrument for prompting through the CAN communication circuit and the CAN bus, and when the fault is eliminated, the loop returns to normal work.
The model of the power chip is VND5012AK, the model of the master control chip is PIC18F25K80, the model of the CAN communication module is MCP2551, the model of the MOS tube of the protection circuit is RU75N08S, the model of the diode is S3B (DO-214 type), and the model of the switch diode is BAV 70;
The pin 3 and the pin 2 of the intelligent power chip are connected with the pin 3 of the singlechip, the pin 5 and the pin 2 of the intelligent power chip are connected with the pin 2 of the singlechip, the pin 7 and the pin CURRENT SENSE1 of the intelligent power chip are connected with the pins 5 and 9 of the singlechip, the pin 9 and the pin 2 of the CURRENT SENSE2 of the intelligent power chip are connected with the pins 6 and 10 of the singlechip, the pin 2 of the OUTPUT is connected with a capacitor C123, the pin 1 of the OUTPUT is connected with a capacitor C124, the capacitor C123 and the capacitor C124 are connected in parallel and then connected with a power supply, the pin 2 of the OUTPUT is also connected with the pin 7 of an interface J1, the pin 1 of the OUTPUT is also connected with the pin.
The switch detection circuit comprises a switch diode, the end of the switch diode K1 is connected with the singlechip and the power supply VDD, the end K2 is connected with the high beam switch or the low beam switch or the front fog light switch or the rear position light switch, the end A is connected with the resistor and the capacitor which are connected in parallel and then grounded, and the specific circuit is shown in figures 2, 6 and 7.
The circuit connection of the power supply circuit is as follows: the anode of the diode D6 is connected with a power supply VCC, the cathode of the diode D6 is connected with the capacitor C13 and then grounded, the capacitor C13 is connected with the capacitor C6 and the capacitor C7 which are connected in series in parallel, the cathode of the diode is also connected with the resistor R28 and then connected with the cathode of the voltage regulator tube D20, the anode of the voltage regulator tube D20 is grounded, one end of the capacitor C14, the capacitor C8 and the capacitor C9 which are connected in parallel is connected with the power supply +5V and the resistor R28, and the other end of the capacitor C9.
The specific circuit is shown in fig. 1-7. The technical solutions described in the present application can be clearly implemented by those skilled in the art according to circuit diagrams or device models, so as to solve the technical problems described in the present application. The control block diagram is as shown in fig. 8, the single chip microcomputer controls the power chip to realize stable driving control and detection driving state (judging the level of the detection pin); the CAN communication circuit is controlled by the single chip microcomputer to transmit the lamp on-off state or the driving state of the daytime running lamp through the CAN bus, so that the practicability is high, and the use is more convenient; the on-off states of various lamps are acquired through the on-off detection circuit, monitoring is facilitated, consequences caused by lamp on-off faults are prevented, control reliability is improved compared with that of an existing daytime running lamp controller, and functions are optimized and perfected.
Example 2
Based on embodiment 1, the protection circuit is added in this embodiment, an OUTPUT end of the protection circuit is connected to an OUTPUT pin of the intelligent power chip, an input end of the protection circuit is connected to the power VCC, the protection circuit includes an MOS transistor Q37, a diode D67 and a diode D68, a gate of the MOS transistor Q37 is connected to the power VCC, a source of the MOS transistor Q37 is connected to an anode of the diode D67 and an anode of the diode D68, a cathode of the diode D67 and a cathode of the diode D68 are connected to the interface J1, and a drain of the MOS. The pin 3 and the pin 2 of the intelligent power chip are connected with the pin 3 of the singlechip, the pin 5 and the pin 2 of the intelligent power chip are connected with the pin 2 of the singlechip, the pin 7 and the pin CURRENT SENSE1 of the intelligent power chip are connected with the pins 5 and 9 of the singlechip, the pin 9 and the pin CURRENT SENSE2 of the intelligent power chip are connected with the pins 6 and 10 of the singlechip, the pin 2 of the OUTPUT is connected with a capacitor C123, the pin 1 of the OUTPUT is connected with a capacitor C124, the capacitor C123 and the capacitor C124 are connected in parallel and then connected with a power supply, the pin 2 of the OUTPUT is also connected with the pin 7 of an interface J1, and the pin 1 of the OUTP; the MOS transistor is RU75N08S TO263 type, the diode is S3B (DO-214 type), and the specific circuit is as shown in fig. 4, and voltage limiting or current limiting protection is performed by the protection circuit, which specifically includes: the main control chip controls the output end of the power chip to be a high level or a low level through the high level and the low level, so that the driving object is connected or disconnected, when an abnormal condition occurs, such as abnormal current, the abnormal current is protected through a diode when being small, and when the abnormal current is large, the abnormal current is protected through an MOS (metal oxide semiconductor) tube; the load is driven by the power chip, the circuit is simplified, and meanwhile, the power chip with a protection circuit is selected and the voltage limiting and current limiting protection circuit is arranged, so that the stability of driving control is ensured, and the driving reliability of the daytime running lamp is improved.
example 3
Based on embodiment 1, the communication of this embodiment adopts CAN communication, the CAN communication circuit includes the CAN chip, the TXD of the CAN chip, RXD pin correspond respectively and connect singlechip 23, 24 pin, its CANH, CANL pin correspond respectively 10, 9 pin of interface J1, its VDD pin is grounded after connecting electric capacity C11, its TXD pin is connected with power supply VDD after connecting resistance R29, its RXD pin is connected with power supply VDD after connecting resistance R28-1, its RS pin is grounded after connecting resistance R30, the model of the CAN communication module is MCP2551, concrete circuit is as shown in fig. 2, 3, 6, compare present daytime running light controller add CAN communication, do benefit to in time detection and feedback.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, as any modifications, equivalents, improvements and the like made within the spirit and principles of the present invention are intended to be included within the scope of the present invention.