CN109030874B - Short circuit detection circuit of automobile switch - Google Patents

Short circuit detection circuit of automobile switch Download PDF

Info

Publication number
CN109030874B
CN109030874B CN201810551467.3A CN201810551467A CN109030874B CN 109030874 B CN109030874 B CN 109030874B CN 201810551467 A CN201810551467 A CN 201810551467A CN 109030874 B CN109030874 B CN 109030874B
Authority
CN
China
Prior art keywords
triode
resistor
pin
short circuit
relay
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.)
Active
Application number
CN201810551467.3A
Other languages
Chinese (zh)
Other versions
CN109030874A (en
Inventor
王进丁
李宏志
王正成
朱排进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changhui Auto Electric Huangshan JSC
Original Assignee
Changhui Auto Electric Huangshan JSC
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Changhui Auto Electric Huangshan JSC filed Critical Changhui Auto Electric Huangshan JSC
Priority to CN201810551467.3A priority Critical patent/CN109030874B/en
Publication of CN109030874A publication Critical patent/CN109030874A/en
Application granted granted Critical
Publication of CN109030874B publication Critical patent/CN109030874B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R1/00Details of instruments or arrangements of the types included in groups G01R5/00 - G01R13/00 and G01R31/00
    • G01R1/02General constructional details
    • G01R1/04Housings; Supporting members; Arrangements of terminals
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Of Short-Circuits, Discontinuities, Leakage, Or Incorrect Line Connections (AREA)
  • Electronic Switches (AREA)

Abstract

The invention discloses a short circuit detection circuit of an automobile switch, which comprises a power supply, an MCU, a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a first triode, a second triode, a third triode, a fourth triode, a fifth triode, a sixth triode, a first diode, a second diode and a relay. The short circuit detection circuit of the automobile switch can adapt to short circuit tests among different products through learning, meanwhile, the products are cut off through the relay after short circuit tests, and then product performance detection is carried out, so that insufficient performance tests caused by the short circuit test circuit are avoided, and the product tests are more rigorous and more convenient.

Description

Short circuit detection circuit of automobile switch
Technical Field
The invention relates to a short circuit detection circuit of an automobile switch.
Background
The automobile switch mainly comprises a functional switch and a combined switch, and strict detection is required to be carried out on products in the production process. The total types of switches are various, test items are relatively many, short circuit detection is an item which needs to be detected by each product, the traditional pin short circuit detection needs to set parameters of each pin independently in advance, then parameter comparison is carried out, and the parameters are connected with performance detection in series, so that great difficulty is increased in manufacturing a test board. In order to further optimize short circuit detection, an automobile switch short circuit detection circuit based on self-adaptive learning is specially designed due to more new product development.
Traditional short circuit detection circuitry: and developing a detection table aiming at each switch design, and solidifying parameters to be tested in a program. Traditional short circuit detection is to apply a 5V high level to each product pin and then determine whether the product is shorted by detecting the level state or specific AD value of the other pins. The detection method can only detect whether the port pins are short-circuited, and can not detect whether the circuit board is internally short-circuited. And after the short circuit test is finished, detecting the function of the product. And comparing the acquired value with a set threshold value for judging the AD signal, and judging whether the AD signal is qualified within the threshold value range. However, the threshold value of each type of product can be determined through multiple measurements and debugging. Moreover, the detection circuit is tested by dividing 1 path into two paths, and short circuit detection and performance detection are not completely divided, so that the test bench is troublesome to manufacture and is easy to interfere with each other, and the test is incomplete.
Disclosure of Invention
The invention aims at providing a short circuit detection circuit of an automobile switch, which can adapt to short circuit tests among different products through learning. After the short circuit test of the product, the product is cut off through the relay, and then the performance of the product is detected, so that the defect of insufficient performance test caused by a short circuit test circuit is avoided, and the product is more rigorous and more convenient to test.
The technical scheme adopted for solving the technical problems is as follows: a short circuit detection circuit of an automobile switch comprises a power supply, an MCU, a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a first triode, a second triode, a third triode, a fourth triode, a fifth triode, a sixth triode, a first diode, a second diode and a relay,
The two ends of the first resistor are respectively connected with a first triode control IO port of the MCU and a base electrode of the first triode, the two ends of the second resistor are respectively connected with a second triode control IO port of the MCU and a base electrode of the second triode, a collector electrode of the first triode is connected with one end of an eighth resistor, and the other end of the eighth resistor is connected with a 5V input end of a power supply; the emitter of the first diode, the collector of the second triode, the first AD sampling port of the MCU and the 8-pin short circuit detection port of the relay are connected, and the emitter of the second triode is grounded;
The first relay control IO port of the MCU is connected with one end of a third resistor, the other end of the third resistor is connected with the base electrode of a third triode, and the collector electrode of the third triode is connected with the anode of the first diode and the 7 pin of the relay; the cathode of the first diode is connected with the 12V input end of the power supply and the 6 pin of the relay; the emitter of the third triode is grounded;
the second relay control IO port of the MCU is connected with one end of a fourth resistor, the other end of the fourth resistor is connected with the base electrode of a fourth triode, and the collector electrode of the fourth triode is connected with the anode of the second diode and the 1 pin of the relay; the cathode of the second diode is connected with the 12V input end of the power supply and the 2 pin of the relay; the emitter of the fourth triode is grounded;
Two ends of a sixth resistor are respectively connected with a third triode control IO port of the MCU and a base electrode of a fifth triode, two ends of a seventh resistor are respectively connected with a fourth triode control IO port of the MCU and a base electrode of the sixth triode, a collector electrode of the fifth triode is connected with one end of the fifth resistor, and the other end of the fifth resistor is connected with a 5V input end of a power supply; the emitter of the fifth diode, the collector of the sixth triode, the second AD sampling port of the MCU and the 3-pin short circuit detection port of the relay are connected, and the emitter of the sixth triode is grounded.
The invention has the beneficial effects that: MCU first triode control IO mouth to fourth triode control IO mouth makes the short circuit PIN foot of product be in electrified or ground state through the break-make of control first triode, second triode, fifth triode, sixth triode, and the first AD sampling port of reuse MCU, the second AD sampling port carries out the sampling, power supply is given every PIN in proper order through controlling corresponding triode, detect the AD voltage value of other PINs simultaneously, judge with the product threshold value, if all near the threshold value represents that the short circuit is qualified. Aiming at different switch products, the voltage threshold is obtained by self-adaptive learning of parameters of the sample. The short circuit detection mode not only detects the short circuit condition of the switch pin, but also can identify the short circuit condition inside the circuit board of the product. And after the short circuit detection is qualified, all short circuit pins of the switch are switched to ports for normal performance detection through a relay to perform performance detection. The short circuit detection circuit can adapt to short circuit tests among different products through learning. After the short circuit test of the product, the product is cut off through the relay, and then the performance of the product is detected, so that the defect of insufficient performance test caused by a short circuit test circuit is avoided, and the product is more rigorous and more convenient to test.
In conclusion, the short circuit detection circuit of the automobile switch not only can detect whether the port pins are short-circuited, but also can detect whether the circuit board is short-circuited. The specific detection mode is as follows: all PIN PINs on the product are connected to a short circuit test port of the relay, the output state of the IO port is controlled by utilizing the lower computer to control the triode, so that only one product PIN PIN has electricity each time, the other product PIN PINs are all grounded, the AD value of the grounded PIN PIN is read through the AD port, the AD value is compared with the AD value learned before the lower computer, the next action is continued if the AD value accords with the AD value, the error is directly reported if the AD value does not accord with the AD value, and the fact that the PIN PIN is short-circuited with the power supply PIN PIN or inconsistent with the state of a sample is indicated. After all PIN PINs are electrified, and the states of other PIN PINs are consistent with the AD values learned and stored by the sample, the product is indicated to have no short circuit, and finally the lower computer sends the short circuit qualified information to the upper computer, and the upper computer lights the short circuit qualified indicator lamp. And after the short circuit test is finished, detecting the function of the product. And comparing the acquired value with a set threshold value for judging the AD signal, and judging whether the AD signal is qualified within the threshold value range. However, the threshold value of each type of product can be determined through multiple measurements and debugging. Moreover, the detection circuit is tested by dividing 1 path into two paths, and short circuit detection and performance detection are not completely divided, so that the test bench is troublesome to manufacture and is easy to interfere with each other, and the test is incomplete.
The invention will be described in more detail below with reference to the drawings and examples.
Drawings
Fig. 1 is a circuit schematic of the present invention.
Detailed Description
An embodiment of a short circuit detection circuit of an automobile switch shown in fig. 1 includes a power supply, an MCU, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a first transistor Q1, a second transistor Q2, a third transistor Q3, a fourth transistor Q4, a fifth transistor Q5, a sixth transistor Q6, a first diode D1, a second diode D2, and a relay K1,
Two ends of the first resistor R1 are respectively connected with a first triode control IO port PC0 of the MCU and a base electrode of the first triode Q1, two ends of the second resistor R2 are respectively connected with a second triode control IO port PC1 of the MCU and a base electrode of the second triode Q2, a collector electrode of the first triode Q1 is connected with one end of an eighth resistor R8, and the other end of the eighth resistor R8 is connected with a 5V input end VCC 5 of a power supply; the emitter of the first triode Q1, the collector of the second triode Q2, a first AD sampling port PAD8 of the MCU and an 8-pin short circuit detection port of the relay K1 are connected, and the emitter of the second triode Q2 is grounded GND;
The first relay control IO port PB1 of the MCU is connected with one end of a third resistor R3, the other end of the third resistor R3 is connected with the base electrode of a third triode Q3, and the collector electrode of the third triode Q3 is connected with the anode of a first diode D1 and the 7 pin of the relay; the cathode of the first diode D1 is connected with the 12V input end VCC 12 of the power supply and the 6 pin of the relay K1; the emitter of the third triode Q3 is grounded GND;
The second relay control IO port PB0 of the MCU is connected with one end of a fourth resistor R4, the other end of the fourth resistor R4 is connected with the base electrode of a fourth triode Q4, and the collector electrode of the fourth triode Q4 is connected with the anode of a second diode D2 and the pin 1 of the relay; the cathode of the second diode D2 is connected with the 12V input end VCC 12 of the power supply and the 2 pin of the relay K1; the emitter of the fourth triode Q4 is grounded GND;
Two ends of a sixth resistor R6 are respectively connected with a third triode control IO port PC2 of the MCU and a base electrode of a fifth triode Q5, two ends of a seventh resistor R7 are respectively connected with a fourth triode control IO port PC3 of the MCU and a base electrode of the sixth triode Q6, a collector electrode of the fifth triode Q5 is connected with one end of the fifth resistor R5, and the other end of the fifth resistor R5 is connected with a 5V input end VCC 5 of a power supply; the emitter of the fifth diode Q5, the collector of the sixth triode Q6, the second AD sampling port PAD0 of the MCU and the 3-pin short circuit detection port of the relay K1 are connected, and the emitter of the sixth triode Q6 is grounded GND.
Description of principle: firstly, a product PIN 1 of a sample is connected to a No. 5 PIN of a relay K1, a third triode controls an IO port PC2 to be arranged at 1 to enable a fifth triode Q5 to be conducted, the product PIN 1 is provided with 5V power input, a fourth triode controls an IO port PC3 to be arranged at 0 to enable a sixth triode Q6 to be cut off, and a second AD sampling port PAD0 reads an AD value of the product PIN 1 in real time. The product PIN foot 2 needs to put 1 through second triode control IO mouth PC1 and makes second triode Q2 switch on and connect it to ground, and first triode control IO mouth PC0 sets 0, makes first triode Q1 cut off, makes 5V power unable inflow product PIN foot 2 in, and first AD sampling port PAD8 detects the AD value on its product PIN foot 2 in real time. The other products PIN heel products PIN feet 2 are connected in the same way, so that all the products are connected to the ground. This is to supply 5V to the product PIN 1, detect the AD values of the other product PINs, and save these AD values to the ECU. And then 5V electricity is supplied to the product PIN 2, all other product PIN PINs are grounded, AD values of the grounded product PIN PINs are detected, and the AD values are stored in the MCU. And by analogy, after all the PIN PINs of the product of the sample are detected by a 5V power supply and the AD values in all the states are stored, the short circuit detection of the similar product of the sample can be carried out. When a new product is detected, the AD values recorded during detection of the sample are compared, and the AD values are in accordance with the range, so that the new product is qualified after short circuit. The performance test of the product can be performed only after the product is qualified in short circuit; after the failed state, the entire test must not be continued when no product is detected in the NG box.
Further description: PIN1 and PIN2 refer to two PINs on one product; when short circuit is detected, power is supplied to one PIN, and whether the other PIN has voltage is detected. If the voltage exists, the two PIN PINs are judged to be short-circuited; if there is no voltage, we decide that the two PIN do not short. When detecting whether the product PIN is short-circuited according to the requirements of the company, only if each PIN and other PIN are not short-circuited, the product PIN is not short-circuited. The PIN2 PIN is electrified through the control triode control IO port (PC 0), whether the PIN1 PIN has voltage or not is judged through the AD sampling port (PAD 0), and if only the component circuit between the relay 1/2/3/5 and the MCU is taken, the control and judgment of the PIN1 PIN can be realized. If other PIN control and judgment of the product are to be realized, the same circuit is needed to realize. Jian Shandian, for a PIN, it can be used both for control and for judgment, and if only half of the circuitry is used, only half of its functions can be implemented. Finally, the design aims to realize control and judgment of two PIN PINs by using a double-cell relay.
The invention is described above by way of example with reference to the accompanying drawings. It will be clear that the invention is not limited to the embodiments described above. As long as various insubstantial improvements are made using the method concepts and technical solutions of the present invention; or the invention is not improved, and the conception and the technical scheme are directly applied to other occasions and are all within the protection scope of the invention.

Claims (1)

1. A short circuit detection circuit of an automobile switch is characterized in that: comprises a power supply, an MCU, a first resistor (R1), a second resistor (R2), a third resistor (R3), a fourth resistor (R4), a fifth resistor (R5), a sixth resistor (R6), a seventh resistor (R7), an eighth resistor (R8), a first triode (Q1), a second triode (Q2), a third triode (Q3), a fourth triode (Q4), a fifth triode (Q5), a sixth triode (Q6), a first diode (D1), a second diode (D2) and a relay (K1),
Two ends of a first resistor (R1) are respectively connected with a first triode control IO port (PC 0) of the MCU and a base electrode of a first triode (Q1), two ends of a second resistor (R2) are respectively connected with a second triode control IO port (PC 1) of the MCU and a base electrode of a second triode (Q2), a collector electrode of the first triode (Q1) is connected with one end of an eighth resistor (R8), and the other end of the eighth resistor (R8) is connected with a 5V input end (VCC 5) of a power supply; the emitter of the first triode (Q1), the collector of the second triode (Q2), a first AD sampling port (PAD 8) of the MCU and an 8-pin short circuit detection port of the relay (K1) are connected, and the emitter of the second triode (Q2) is Grounded (GND);
The first relay control IO port (PB 1) of the MCU is connected with one end of a third resistor (R3), the other end of the third resistor (R3) is connected with the base electrode of a third triode (Q3), and the collector electrode of the third triode (Q3) is connected with the positive electrode of a first diode (D1) and the 7 pin of the relay; the cathode of the first diode (D1) is connected with the 12V input end (VCC 12) of the power supply and the 6 pin of the relay (K1); an emitter of the third triode (Q3) is Grounded (GND);
The second relay control IO port (PB 0) of the MCU is connected with one end of a fourth resistor (R4), the other end of the fourth resistor (R4) is connected with the base electrode of a fourth triode (Q4), and the collector electrode of the fourth triode (Q4) is connected with the positive electrode of a second diode (D2) and the 1 pin of the relay; the cathode of the second diode (D2) is connected with the 12V input end (VCC 12) of the power supply and the 2 pin of the relay (K1); an emitter of the fourth triode (Q4) is Grounded (GND);
Two ends of a sixth resistor (R6) are respectively connected with a third triode control IO port (PC 2) of the MCU and a base electrode of a fifth triode (Q5), two ends of a seventh resistor (R7) are respectively connected with a fourth triode control IO port (PC 3) of the MCU and a base electrode of the sixth triode (Q6), a collector electrode of the fifth triode (Q5) is connected with one end of the fifth resistor (R5), and the other end of the fifth resistor (R5) is connected with a 5V input end (VCC 5) of a power supply; the emitter of the fifth diode (Q5), the collector of the sixth triode (Q6), the second AD sampling port (PAD 0) of the MCU and the 3-pin short circuit detection port of the relay (K1) are connected, and the emitter of the sixth triode (Q6) is Grounded (GND);
and the 5 PINs and the 10 PINs of the relay (K1) are connected with the PIN PINs 1 and 2 of the product to be detected.
CN201810551467.3A 2018-05-31 2018-05-31 Short circuit detection circuit of automobile switch Active CN109030874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810551467.3A CN109030874B (en) 2018-05-31 2018-05-31 Short circuit detection circuit of automobile switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810551467.3A CN109030874B (en) 2018-05-31 2018-05-31 Short circuit detection circuit of automobile switch

Publications (2)

Publication Number Publication Date
CN109030874A CN109030874A (en) 2018-12-18
CN109030874B true CN109030874B (en) 2024-06-04

Family

ID=64612019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810551467.3A Active CN109030874B (en) 2018-05-31 2018-05-31 Short circuit detection circuit of automobile switch

Country Status (1)

Country Link
CN (1) CN109030874B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0993925A (en) * 1995-09-26 1997-04-04 Matsushita Electric Ind Co Ltd Power supply circuit and detector
CN103067103A (en) * 2012-12-27 2013-04-24 昌辉汽车电气系统(安徽)有限公司 Signal generator with self-diagnostic function
CN203456859U (en) * 2013-09-04 2014-02-26 陕西中科天地航空模块有限公司 Short-circuit protection circuit
CN204882772U (en) * 2015-07-17 2015-12-16 广州市雅江光电设备有限公司 A circuit for testing LED lamp pearl board
CN107621374A (en) * 2016-07-14 2018-01-23 陈立旭 A kind of detecting system for vehicle signal infomation detection
CN208188163U (en) * 2018-05-31 2018-12-04 昌辉汽车电器(黄山)股份公司 A kind of short-circuit detecting circuit of vehicle switch

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0993925A (en) * 1995-09-26 1997-04-04 Matsushita Electric Ind Co Ltd Power supply circuit and detector
CN103067103A (en) * 2012-12-27 2013-04-24 昌辉汽车电气系统(安徽)有限公司 Signal generator with self-diagnostic function
CN203456859U (en) * 2013-09-04 2014-02-26 陕西中科天地航空模块有限公司 Short-circuit protection circuit
CN204882772U (en) * 2015-07-17 2015-12-16 广州市雅江光电设备有限公司 A circuit for testing LED lamp pearl board
CN107621374A (en) * 2016-07-14 2018-01-23 陈立旭 A kind of detecting system for vehicle signal infomation detection
CN208188163U (en) * 2018-05-31 2018-12-04 昌辉汽车电器(黄山)股份公司 A kind of short-circuit detecting circuit of vehicle switch

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种实用CMOS芯片开路和短路特性测试的新方法;杨卫;;电工电气(第09期);全文 *

Also Published As

Publication number Publication date
CN109030874A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN107907815B (en) Single-board dual-channel FT (FT) mass production test and yield analysis system and method
CN103149526B (en) PCBA board test macro and method
CN201392350Y (en) Probe card for anti-interference asynchronous trimming wafer test
CN103033738A (en) Automatic test system for circuit board
CN103954905B (en) Digital circuit failure testing circuit and the method utilizing this circuit test fault
CN104198910B (en) A kind of integrated circuit automatic testing system and method for testing
CN109521357A (en) A kind of single board testing system integrating program burn writing, circuit functionality test
CN104142473A (en) Performance testing device and testing method for automotive relay
CN109030874B (en) Short circuit detection circuit of automobile switch
CN205015434U (en) A test jig for burning record ware switching card
CN113504395A (en) Method for detecting connectivity of ATE channel
CN211826336U (en) Automatic PCB detection platform system
CN116679187A (en) PCBA power supply short circuit and power supply voltage automatic detection low-cost test fixture circuit
CN208188163U (en) A kind of short-circuit detecting circuit of vehicle switch
CN116844363A (en) Traffic signal lamp self-adaptive fault judging method
JPH08511345A (en) Test system and test method for IC connected to circuit board
CN103837755A (en) Refrigerator component fault detection method and system
CN209728111U (en) A kind of single-board testing equipment
CN205581265U (en) Testing arrangement of self-service financial equipment SIU module
CN103823151A (en) Automatic identification type automotive electromagnetic relay short-circuit tester and testing method thereof
TWI633315B (en) Automated testing device
CN221977095U (en) Automatic open circuit test system
CN203191481U (en) Ageing test system for inverter
CN220305471U (en) General detection circuit of motormeter pilot lamp
CN103645351A (en) ICT needle bed having switching board

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
GR01 Patent grant
GR01 Patent grant