CN112596497A - DCM detection system based on CAN network - Google Patents
DCM detection system based on CAN network Download PDFInfo
- Publication number
- CN112596497A CN112596497A CN202011423345.XA CN202011423345A CN112596497A CN 112596497 A CN112596497 A CN 112596497A CN 202011423345 A CN202011423345 A CN 202011423345A CN 112596497 A CN112596497 A CN 112596497A
- Authority
- CN
- China
- Prior art keywords
- reverse
- dcm
- relay
- current
- current value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 54
- 238000005070 sampling Methods 0.000 claims abstract description 33
- 238000006243 chemical reaction Methods 0.000 claims description 19
- 238000010586 diagram Methods 0.000 description 2
- 229910044991 metal oxide Inorganic materials 0.000 description 2
- 150000004706 metal oxides Chemical class 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000001174 ascending effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
- G05B23/0213—Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Measurement Of Current Or Voltage (AREA)
Abstract
DCM detection system based on CAN network relates to the detection field. The invention aims to solve the problems of complex mode and low detection precision of the conventional vehicle door controller. This application sends positive direction detection command or negative direction detection command, positive direction detection command passes through CPU, a MOS pipe, positive voltage that a power sent is applyed to DCM with current sampling resistance, negative direction detection command passes through CPU, No. two MOS pipes, positive voltage that a power sent is applyed to DCM with current sampling resistance, the A/D converting circuit can detect the positive voltage value at current sampling resistance both ends, according to the resistance of positive voltage value and current sampling resistance, calculate the positive current value through DCM, contrast positive current value and the interior predetermined current range of CPU, come to detect DCM qualified. It is used to detect DCM.
Description
Technical Field
The invention relates to a DCM detection system, and belongs to the field of detection.
Background
The DCM is a car door controller, and belongs to an electronic product, so before leaving a factory, whether the DCM is qualified or not needs to be detected. The existing detection mode only uses a resistance simulation motor to apply signals to a vehicle door controller, so that the vehicle door controller controls the motor simulated by the resistance, and the action of the motor simulated by the resistance is manually checked.
Disclosure of Invention
The invention aims to solve the problems of complex mode and low detection precision of the conventional vehicle door controller. A DCM detection system based on a CAN network is provided.
The DCM detection system based on the CAN network comprises a PC (personal computer) 1, a CAN module 2, a CPU3, an amplifying circuit 4, a first MOS (metal oxide semiconductor) transistor 5, a second MOS transistor 6, a current sampling resistor 7, an A/D (analog/digital) conversion circuit 8, four relays, a first power supply 11 and a second power supply 12,
the four relays comprise a first relay, a second relay, a third relay and a fourth relay;
the PC 1 is used for sending a forward current detection command or a reverse current detection command;
the CPU3 is connected with the PC 1 through the CAN module 2;
a CPU3, configured to receive the forward current detection command or the reverse current detection command sent by the PC 1 through the CAN module 2, generate a PWM forward driving signal according to the forward current detection command or generate a PWM reverse driving signal according to the reverse current detection command, and transmit the signal to the amplifying circuit 4; the power supply is also used for controlling the first relay and the second relay to work simultaneously according to the PWM forward driving signal, so that the first power supply inputs a forward voltage signal to the first MOS tube through the first relay and the second relay, or controls the third relay and the fourth relay to work according to the PWM reverse driving signal, so that the second power supply inputs a reverse voltage signal to the second MOS tube through the third relay and the fourth relay;
the amplifying circuit 4 is connected with the CPU3 and is used for amplifying a PWM forward driving signal or a PWM reverse driving signal of the CPU3, the amplified PWM forward driving signal drives the first MOS transistor 5 to be switched on to switch off the second MOS transistor 6, and the amplified PWM reverse driving signal drives the second MOS transistor 6 to be switched on to switch off the first MOS transistor 5;
the current sampling resistor 7 is connected with the first MOS transistor or the second MOS transistor and the A/D conversion circuit 8 at the same time, is used for receiving a forward voltage signal or a reverse voltage signal of the first MOS transistor or the second MOS transistor, and simultaneously inputs the forward voltage signal or the reverse voltage signal to the DCM and the A/D conversion circuit 8;
the a/D conversion circuit 8 is configured to convert the forward voltage signal or the reverse voltage signal input by the current sampling resistor 7 into a corresponding forward voltage value or a corresponding reverse voltage value, obtain a forward current value or a reverse current value by combining the resistance value of the current sampling resistor 7, and transmit the forward current value or the reverse current value to the CPU 3;
the CPU3 is further configured to receive the forward current value or the reverse current value from the a/D conversion circuit 8, and if the forward current value or the reverse current value is within the preset current range, the DCM is qualified, and if the forward current value or the reverse current value is not within the preset current range, the DCM is not qualified.
Preferably, the current sampling resistor 7 is a 12-bit a/D processing module.
Preferably, the forward current value is 3.5A, and the preset current range is 3.5A ± 10%.
Preferably, the PC 1 is further configured to receive the forward current value or the reverse current value from the CPU3 through the CAN module 2 for displaying.
The invention has the beneficial effects that:
the DCM detection system completely adopts an automatic detection mode, automatically feeds back, judges the state of DCM in the detection process in real time and outputs the detection result.
The DCM is used for controlling the motor, the motor is used for controlling the ascending or descending of a car window, the application sends a forward detection command, the command applies forward voltage sent by a power supply to the DCM through the CPU, the MOS tube I and the current sampling resistor, the A/D conversion circuit can detect the forward voltage values at two ends of the current sampling resistor, the forward current value passing through the DCM is calculated according to the forward voltage value and the resistance value of the current sampling resistor, the forward current value is compared with the current range preset in the CPU to detect whether the DCM is qualified or not,
the application can also send a reverse detection command, the command applies reverse voltage sent by a second power supply to the DCM through the CPU, a second MOS tube and the current sampling resistor, the A/D conversion circuit can detect the reverse voltage values at two ends of the current sampling resistor, the reverse current value passing through the DCM is calculated according to the reverse voltage values and the resistance value of the current sampling resistor, the reverse current value is compared with the current range preset in the CPU to detect whether the DCM is qualified or not,
because the DCM is an electrodeless element, the DCM can receive a forward input voltage or a reverse input voltage,
when a PC (upper computer) sends a forward current detection command, a CPU (central processing unit) generates a PWM (pulse-width modulation) forward driving signal, the signal is amplified to drive a first MOS (metal oxide semiconductor) tube to enter a working mode (at the moment, a second MOS is turned off), meanwhile, the CPU controls a first relay and a second relay to work, and at the moment, forward voltage enters a device to be detected DCM (discontinuous cycle) from the first MOS tube through a current sampling resistor.
When a PC (upper computer) sends a reverse current detection command, a PWM negative driving signal is generated in the CPU, the signal is amplified to drive the second MOS tube to enter a working mode (at the moment, the first MOS tube is turned off), meanwhile, the CPU controls the third relay and the fourth relay to work, and at the moment, negative voltage enters the DCM to be detected from the second MOS tube through the current sampling resistor.
The detection mode of this application is simple, and it is high to detect the precision, and detection efficiency is high to can not damage DCM.
Drawings
FIG. 1 is a schematic diagram of a principle of inputting forward voltage to DCM in a DCM detection system based on a CAN network;
fig. 2 is a schematic diagram of the principle of inputting reverse voltage to DCM in a DCM detection system based on a CAN network.
Detailed Description
The first embodiment is as follows: referring to fig. 1 and 2, the DCM detection system based on CAN network according to the present embodiment includes a PC 1, a CAN module 2, a CPU3, an amplifying circuit 4, a first MOS transistor 5, a second MOS transistor 6, a current sampling resistor 7, an a/D conversion circuit 8, four relays, a first power supply 11 and a second power supply 12,
the four relays comprise a first relay, a second relay, a third relay and a fourth relay;
the PC 1 is used for sending a forward current detection command or a reverse current detection command;
the CPU3 is connected with the PC 1 through the CAN module 2;
a CPU3, configured to receive the forward current detection command or the reverse current detection command sent by the PC 1 through the CAN module 2, generate a PWM forward driving signal according to the forward current detection command or generate a PWM reverse driving signal according to the reverse current detection command, and transmit the signal to the amplifying circuit 4; the power supply is also used for controlling the first relay and the second relay to work simultaneously according to the PWM forward driving signal, so that the first power supply inputs a forward voltage signal to the first MOS tube through the first relay and the second relay, or controls the third relay and the fourth relay to work according to the PWM reverse driving signal, so that the second power supply inputs a reverse voltage signal to the second MOS tube through the third relay and the fourth relay;
the amplifying circuit 4 is connected with the CPU3 and is used for amplifying a PWM forward driving signal or a PWM reverse driving signal of the CPU3, the amplified PWM forward driving signal drives the first MOS transistor 5 to be switched on to switch off the second MOS transistor 6, and the amplified PWM reverse driving signal drives the second MOS transistor 6 to be switched on to switch off the first MOS transistor 5;
the current sampling resistor 7 is connected with the first MOS transistor or the second MOS transistor and the A/D conversion circuit 8 at the same time, is used for receiving a forward voltage signal or a reverse voltage signal of the first MOS transistor or the second MOS transistor, and simultaneously inputs the forward voltage signal or the reverse voltage signal to the DCM and the A/D conversion circuit 8;
the a/D conversion circuit 8 is configured to convert the forward voltage signal or the reverse voltage signal input by the current sampling resistor 7 into a corresponding forward voltage value or a corresponding reverse voltage value, obtain a forward current value or a reverse current value by combining the resistance value of the current sampling resistor 7, and transmit the forward current value or the reverse current value to the CPU 3;
the CPU3 is further configured to receive the forward current value or the reverse current value from the a/D conversion circuit 8, and if the forward current value or the reverse current value is within the preset current range, the DCM is qualified, and if the forward current value or the reverse current value is not within the preset current range, the DCM is not qualified.
In this embodiment, the DCM is an electrodeless element and can receive a forward input current or a reverse input current, so the present application provides two current input modes, that is: a positive current and a negative current.
The CPU is internally provided with a preset current range, and the current input to the DCM is compared with the internal preset current range to prevent overcurrent.
In fig. 1, the PC 1 sends a forward current detection command, the CPU drives the first MOS to be turned on, so that the second MOS transistor is turned off, the CPU controls the first relay and the second relay to operate simultaneously, at this time, the voltage emitted by the positive electrode of the first power supply flows into the first MOS transistor through the first relay, then enters one end of the DCM through the current sampling resistor, and the voltage flowing out of the other end of the DCM flows back to the negative electrode of the first power supply through the second relay. The A/D conversion circuit collects the voltage at two ends of the current sampling resistor, calculates the forward current value according to the resistance value of the current sampling resistor, compares the current value with the current range value preset in the CPU, and judges whether the DCM is qualified or not.
In fig. 2, the PC 1 sends a reverse current detection command, the CPU drives the second MOS to be turned on, so that the first MOS transistor is turned off, the CPU controls the third relay and the fourth relay to operate simultaneously, at this time, the voltage emitted by the positive electrode of the second power supply flows into the second MOS transistor through the fourth relay, then enters the other end of the DCM through the current sampling resistor, and the voltage flowing out of one end of the DCM flows back to the negative electrode of the first power supply through the third relay. The A/D conversion circuit collects the voltage at two ends of the current sampling resistor, calculates the reverse current value according to the resistance value of the current sampling resistor, compares the current value with the current range value preset in the CPU, and judges whether the DCM is qualified or not.
The second embodiment is as follows: in this embodiment, the DCM detection system based on the CAN network is further described in a first embodiment, and in this embodiment, the current sampling resistor 7 is a 12-bit a/D processing module.
The third concrete implementation mode: in this embodiment, a forward current value is 3.5A, and a preset current range is 3.5A ± 10%, in order to further explain the DCM detection system based on the CAN network in the first embodiment.
The fourth concrete implementation mode: in this embodiment, the PC 1 is further configured to receive and display a forward current value or a reverse current value sent from the CPU3 through the CAN module 2.
Claims (4)
1. DCM detection system based on CAN network, characterized in that the system comprises a PC (1), a CAN module (2), a CPU (3), an amplifying circuit (4), a first MOS tube (5), a second MOS tube (6), a current sampling resistor (7), an A/D conversion circuit (8), four relays, a first power supply (11) and a second power supply (12),
the four relays comprise a first relay, a second relay, a third relay and a fourth relay;
the PC (1) is used for sending a forward current detection command or a reverse current detection command;
the CPU (3) is connected with the PC (1) through the CAN module (2);
the CPU (3) is used for receiving the forward current detection command or the reverse current detection command sent by the PC (1) through the CAN module (2), generating a PWM forward driving signal according to the forward current detection command or generating a PWM reverse driving signal according to the reverse current detection command, and transmitting the signal to the amplifying circuit (4); the power supply is also used for controlling the first relay and the second relay to work simultaneously according to the PWM forward driving signal, so that the first power supply inputs a forward voltage signal to the first MOS tube through the first relay and the second relay, or controls the third relay and the fourth relay to work according to the PWM reverse driving signal, so that the second power supply inputs a reverse voltage signal to the second MOS tube through the third relay and the fourth relay;
the amplifying circuit (4) is connected with the CPU (3) and is used for amplifying a PWM forward driving signal or a PWM reverse driving signal of the CPU (3), the amplified PWM forward driving signal drives the first MOS tube (5) to be conducted to enable the second MOS tube (6) to be cut off, and the amplified PWM reverse driving signal drives the second MOS tube (6) to be conducted to enable the first MOS tube (5) to be cut off;
the current sampling resistor (7) is simultaneously connected with the first MOS transistor or the second MOS transistor and the A/D conversion circuit (8), is used for receiving a forward voltage signal or a reverse voltage signal of the first MOS transistor or the second MOS transistor and simultaneously inputs the forward voltage signal or the reverse voltage signal to the DCM and the A/D conversion circuit (8);
the A/D conversion circuit (8) is used for converting the forward voltage signal or the reverse voltage signal input by the current sampling resistor (7) into a corresponding forward voltage value or a corresponding reverse voltage value, obtaining a forward current value or a reverse current value by combining the resistance value of the current sampling resistor (7), and transmitting the forward current value or the reverse current value to the CPU (3);
and the CPU (3) is also used for receiving the forward current value or the reverse current value from the A/D conversion circuit (8), if the forward current value or the reverse current value is within a preset current range, the DCM is qualified, and if the forward current value or the reverse current value is not within the preset current range, the DCM is unqualified.
2. The CAN-network based DCM detection system of claim 1,
the current sampling resistor (7) is a 12-bit A/D processing module.
3. The CAN network-based DCM detection system of claim 1, wherein the forward current value is 3.5A, and the predetermined current range is 3.5A ± 10%.
4. The DCM detection system based on the CAN network as claimed in claim 1, wherein the PC (1) is further configured to receive the forward current value or the reverse current value sent from the CPU (3) through the CAN module (2) for displaying.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011423345.XA CN112596497A (en) | 2020-12-08 | 2020-12-08 | DCM detection system based on CAN network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011423345.XA CN112596497A (en) | 2020-12-08 | 2020-12-08 | DCM detection system based on CAN network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112596497A true CN112596497A (en) | 2021-04-02 |
Family
ID=75188715
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011423345.XA Pending CN112596497A (en) | 2020-12-08 | 2020-12-08 | DCM detection system based on CAN network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112596497A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102340269A (en) * | 2011-08-11 | 2012-02-01 | 上海中科深江电动车辆有限公司 | Forward and reverse rotation control circuit structure of direct current motor |
CN206429118U (en) * | 2017-01-22 | 2017-08-22 | 四川长虹技佳精工有限公司 | The glass door lifting controller of automatic vending machine |
-
2020
- 2020-12-08 CN CN202011423345.XA patent/CN112596497A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102340269A (en) * | 2011-08-11 | 2012-02-01 | 上海中科深江电动车辆有限公司 | Forward and reverse rotation control circuit structure of direct current motor |
CN206429118U (en) * | 2017-01-22 | 2017-08-22 | 四川长虹技佳精工有限公司 | The glass door lifting controller of automatic vending machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111781482B (en) | Method and device for detecting health state of bonding wire of high-power SIC MOSFET module | |
CN106961095B (en) | Current foldback circuit and air conditioner | |
US9735767B2 (en) | Electronic control apparatus having switching element and drive circuit | |
CN108322128A (en) | A kind of motor driving protective device, over-voltage protection method, device and air conditioner | |
CN204327552U (en) | Vehicle cooling fan controller | |
CN104422825A (en) | Method and method for detecting insulation resistance against ground of DC power supply | |
CN107819461A (en) | A kind of active IGBT drive circuit of numerical control | |
CN115561560B (en) | Pure hardware implementation control circuit and control method for power device aging test | |
CN111722090B (en) | Open-circuit fault detection system and detection method | |
US20150185287A1 (en) | Detection device for power component drivers, and detection method thereof | |
CN1093996C (en) | Base current-control circuit of an output transistor | |
CN107907777A (en) | A kind of short-circuit detecting circuit and method, control circuit | |
CN112596497A (en) | DCM detection system based on CAN network | |
CN116773896B (en) | Current detection circuit | |
CN101306486A (en) | Contravariant arc welding machine control device and control method thereof | |
CN102116833B (en) | Simulation test tool for direct current motor and method thereof | |
CN111786371A (en) | Electric automobile motor controller discharge circuit and vehicle | |
CN103887761B (en) | PWM drive circuit | |
CN203896245U (en) | AC motor frequency-variable controller | |
CN212991956U (en) | Short-circuit protection circuit, control panel and electrical apparatus | |
CN212304730U (en) | Soft turn-off system based on IGBT gate drive chip | |
CN211206705U (en) | IGBT drive board test platform for three-phase unbalance adjusting device | |
CN114441815A (en) | High-power pulse type constant current load circuit based on IGBT | |
CN109538458B (en) | Solar water pump adjusting device and control method thereof | |
CN210983123U (en) | OC output current limiting circuit and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |