A surge generation test device and test method based on microcontroller

Through the surge generation test device based on the microcontroller, the ATmega8 chip and the MAX5035B DC-DC chip are used, combined with the photoelectric coupler to realize the surge test, which solves the problems of complex structure and high cost in the existing technology, and realizes the electrical equipment The instant withstand voltage test is compact, simple and low-cost.

CN110596502BActive Publication Date: 2024-10-29TIANJIN TONGGUANG GRP ZHENHAI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201910988086.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-17
Publication Date
2024-10-29
Estimated Expiration
2039-10-17

AI Technical Summary

Technical Problem

Existing surge test devices have complex structures, high design costs, and complex programming, making it difficult to meet the needs of electrical equipment for instant under-voltage or over-voltage testing.

Method used

Design a surge generation test device based on a microcontroller, including a reset circuit, a clock circuit, a filter circuit, a microcontroller, a microcontrol system power supply circuit, a weak and strong electrical isolation circuit, an under/overvoltage surge generation circuit and a human Computer interactive circuit uses ATmega8 chip and MAX5035B DC-DC chip to realize voltage isolation and surge generation through optocoupler, simplifying the circuit structure and operation process.

Benefits of technology

It realizes the instantaneous withstand voltage surge test of electrical equipment. It has compact circuit, simple operation, low cost and high cost performance. It meets the requirements of under-voltage surge (9V/50mS/1S, 6V/50mS/1S) and over-voltage surge ( 80V/50mS/1S, 100V/50mS/1S) test requirements, solving the complexity and high cost problems of the existing system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110596502B_ABST
    Figure CN110596502B_ABST
Patent Text Reader

Abstract

The present invention discloses a surge generation test device and test method based on a microcontroller, the device includes a microcontroller circuit composed of a reset circuit, a clock circuit, a filter circuit and a microcontroller; includes a microcontroller system power supply circuit; includes a weak-strong electrical isolation circuit composed of a first and a second photoelectric coupling circuit; includes an undervoltage / overvoltage surge generation circuit, including a human-computer interaction circuit composed of a mode selection button and a trigger button; the present invention meets the requirements of instantaneous withstand voltage surge testing of electrical equipment, has the characteristics of compact circuit structure, simple system operation, low cost, high cost performance and good stability, and solves the problems of complex structure, high design cost and complex programming of the existing surge test system. It can meet the test requirements of undervoltage surge (9V / 50mS / 1S, 6V / 50mS / 1S) and overvoltage surge (80V / 50mS / 1S, 100V / 50mS / 1S).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a testing device for testing electrical equipment against voltage surge, and more particularly to a surge generation testing device and a testing method based on a microcontroller. Background Art

[0002] Surge is also called sudden wave. As the name implies, it is a momentary undervoltage or overvoltage that exceeds the normal working voltage. It is a change in a certain characteristic that deviates from the controlled steady-state value caused by the self-regulation of the power supply system and the correction action of the regulator. The national military standard GJB181-86 requires that electrical equipment be tested for voltage surge resistance. When electrical equipment is subjected to surge voltage, the equipment should be able to work normally or not fail. Therefore, it is particularly urgent to invent a surge generating device to perform momentary undervoltage or overvoltage tests on electrical equipment. In the prior art, the test device is mainly composed of a programmed pulse sequence and advanced pattern analysis software, which has a complex structure, high design cost, and complex programming. Summary of the invention

[0003] In view of the existing technical conditions and existing problems, the present invention provides a surge generation test device and test method based on a microcontroller. The device has a compact circuit structure, simple system operation, high cost performance, good stability, and can meet application requirements, solving the problems of complex structure, high design cost, and complex programming of the existing surge test system.

[0004] The technical solution adopted by the present invention is: a surge generation test device based on a microcontroller, characterized in that: it includes a microcontroller circuit composed of a reset circuit, a clock circuit, a filter circuit and a microcontroller; includes a microcontroller system power supply circuit for providing power supply to the microcontroller circuit; includes a weak-strong electrical isolation circuit composed of a first photoelectric coupling circuit and a second photoelectric coupling circuit; includes an under / overvoltage surge generating circuit composed of an undervoltage surge generating circuit and an overvoltage surge generating circuit, and includes a human-computer interaction circuit composed of a mode selection button and a trigger button; the microcontroller system power supply circuit is connected to the microcontroller, the microcontroller is respectively connected to the first photoelectric coupling circuit and the second photoelectric coupling circuit, the first photoelectric coupling circuit and the second photoelectric coupling circuit are respectively connected to the undervoltage surge generating circuit and the overvoltage surge generating circuit, and the mode selection button and the trigger button are connected to the microcontroller.

[0005] The microcontroller of the present invention adopts ATmega8 chip N2, pin 6 of chip N2 is connected to pin 4 of external active crystal oscillator G1, pin 7 is connected to pin 3 of active crystal oscillator G1 through capacitor C10, and pin 2 of active crystal oscillator G1 is grounded; the human-computer interaction circuit includes a trigger button and a mode selection button, and the connection relationship of the trigger button circuit is: the forward input end of diode D2 is connected to capacitor C19, inductor L4, capacitor C20, resistor R42, and is also connected to PD3 port of chip N2, capacitor C19 and The other end of capacitor C20 is grounded; the forward output end of diode D2 is connected to one end of single-pole double-throw switch S3, the common end of single-pole double-throw switch S3 is connected to one end of resistor R6, the other end of resistor R6 is connected to VCC, and the other end of single-pole double-throw switch S3 is grounded; the forward input end of diode D1 is connected to capacitor C17, inductor L3, capacitor C16, resistor R43 is connected to PD2 port of chip N2, the other ends of capacitor C16 and capacitor C17 are grounded, and the forward output end of diode D1 is connected to one end of single-pole double-throw switch S2 , the common end of the single-pole double-throw switch S2 is connected to one end of the resistor R7, the other end of the resistor R7 is connected to VCC, and the other end of the single-pole double-throw switch S2 is grounded; the connection relationship of the mode selection button circuit is as follows: the PB0 port, PB1 port, and PB2 interface of the chip N2 are respectively connected to the 6th, 5th, and 4th pins of the dip switch JP2, and the 1st, 2nd, and 3rd pins of the dip switch JP2 are respectively connected to the resistor R31, the resistor R30, and the resistor R29, and the other ends of the resistors R31, R30, and R29 are grounded; the PB0 of the chip N2 The PB1 port and the PB2 port are also connected to resistors R32, R33 and R34, and the other ends of the resistors R32, R33 and R34 are connected to VCC; the PB3 port of the chip N2 is connected to pin 4 of the connector J1, the PB4 port is connected to pin 1 of the connector J1, the PB5 port is connected to pin 3 of the connector J1, the pin 5 of the connector J1 is connected to one end of the toggle switch S1, and the other end of the toggle switch S1 and the pin 6 of the connector J1 are grounded respectively; the pin 20 of the chip N2 is grounded through the capacitor C22.

[0006] The micro-control system power supply circuit of the present invention adopts a MAX5035B DC-DC chip N1, and the circuit connection relationship is as follows: the 7th pin of the chip N1 is connected to a capacitor C3, a capacitor C2, one end of the capacitor C1 and the cathode of a diode D7, and the anode of the diode D7 is the input end of the micro-control system power supply circuit; the other ends of the capacitors C3, C2 and C1 are connected and then grounded; at the same time, the 7th pin of the chip N1 is connected to the 5th pin through a resistor R1, and then grounded through a resistor R2; the 3rd pin and the 6th pin of the chip N1 are connected and then grounded, and at the same time, the 6th pin is connected to the 2nd pin through a capacitor C5; the 1st pin and the 8th pin of the chip N1 are connected to the capacitor C3, and the other ends of the capacitor C2 are connected and then grounded. Both ends of C4, and pin 8 is connected to one end of the inductor L1 and the cathode of the diode D8, and the anode of the diode D8 is grounded; the other end of the inductor L1 is connected to pin 4 of the chip N1 through the resistor R3, and then grounded through the resistor R4; at the same time, the other end of the inductor L1 is connected to the anode of the diode D9, and the cathode of the diode D9 is connected to the anode of the light-emitting diode LED1 through the resistor R5, and at the same time, the cathode of the diode D9 is connected to the anode of the tantalum capacitor C6, and the cathode of the tantalum capacitor C6 is connected to the cathode of the light-emitting diode LED1 and then grounded.

[0007] The first photoelectric coupling circuit described in the present invention adopts an AQY212EHA photoelectric coupler N3, and the connection relationship is: the PC4 port of the chip N2 is connected to pin 1 of the photoelectric coupler N3, and pin 2 of the photoelectric coupler N3 is grounded through a resistor R14; pins 3 and 4 are respectively connected to the positive output end and input end of the voltage regulator tube VD8, and the positive input end of the voltage regulator tube VD8 is connected in parallel with a resistor R15 and a capacitor C21, one end of the resistor R16 is connected to the capacitor C21, and the other end of the resistor R16 is grounded.

[0008] The connection relationship of the undervoltage surge generating circuit of the present invention is as follows: the forward input end of the voltage regulator tube VD8 is also connected to the resistor R17, the gate of the field effect tube Q4, the resistor R35, and the gate of the field effect tube Q2 respectively; the drains of the field effect tubes Q4 and Q2 are connected to the forward input end of the diode D3; the gates and sources of the field effect tubes Q4 and Q2 are respectively connected to the resistors R36 and R37; the sources of the field effect tubes Q4 and Q2 are connected to the forward output end of the voltage regulator tube VD8; the forward output end of the voltage regulator tube VD8 is also connected to the input end +Vin of the power supply voltage; the forward output ends of the diodes D3 and D4 are connected to the +Vout end, the forward input end of the diode D4 is connected to the 6V / 9V undervoltage input end, the undervoltage input end is also connected to the resistor R18 and the forward input end of the light-emitting diode LED2, and the forward output end of the light-emitting diode LED2 is grounded.

[0009] The second photoelectric coupling circuit described in the present invention adopts an AQY212EHA photoelectric coupler N4, and the connection relationship is: the PC0 port of the chip N2 is connected to pin 1 of the photoelectric coupler N4, and pin 2 of the photoelectric coupler N4 is grounded through a resistor R19; pins 3 and 4 are respectively connected to the positive output end and input end of the voltage regulator tube VD10, and the positive input end of the voltage regulator tube VD10 is connected in parallel with a resistor R20 and a capacitor C22, one end of the resistor R21 is connected to the capacitor C22, and the other end of the resistor R21 is grounded.

[0010] The connection relationship of the overvoltage surge generating circuit of the present invention is as follows: the forward output end of the voltage regulator tube VD10 is also connected to the resistor R22, the gate of the field effect tube Q1, the resistor R36, and the gate of the field effect tube Q3 respectively; the drains of the field effect tubes Q1 and Q3 are connected to the forward input end of the diode D5; the gates and sources of the field effect tubes Q1 and Q3 are respectively connected to the resistors R38 and R39; the sources of the field effect tubes Q1 and Q3 are connected to the forward output end of the voltage regulator tube VD10; the forward output end of the voltage regulator tube VD10 is also connected to the 80V / 100V overvoltage input end; the forward output ends of the diodes D5 and D6 are connected to the +Vout end, the forward input end of the diode D6 is connected to the power supply voltage input end +Vin, the overvoltage input end is also connected to the resistor R23 and the forward input end of the light emitting diode LED3, and the forward output end of the light emitting diode LED3 is grounded.

[0011] The present invention provides a method for testing a surge generation test device based on a microcontroller, characterized in that the method comprises the following steps:

[0012] (1) Connect the surge test device correctly according to the test requirements.

[0013] (2) Set the corresponding buttons on the surge test device panel according to the test requirements.

[0014] (3) Under the premise of correct settings, turn on the AC / DC power supply for normal operation, the AC / DC power supply for undervoltage surge operation or the AC / DC power supply for overvoltage surge operation in turn, and observe the indicators on the panel; when the AC / DC power supply for normal operation is turned on, the control light is on; when the AC / DC power supply for undervoltage surge operation or the AC / DC power supply for overvoltage surge operation is turned on, the corresponding undervoltage surge operation pre-indicator light or overvoltage surge operation pre-indicator light is on.

[0015] (4) Connect the module under test of the electrical equipment, set the toggle switch K to "connect", press the undervoltage surge working switch or the overvoltage surge working switch once as required, and perform the corresponding single surge test; compare the level change of the second channel of the oscilloscope with the corresponding provisions of the electrical performance indicators of the module under test of the electrical equipment to determine whether the module under test of the electrical equipment meets the requirements that need to be met.

[0016] (5) After the test is completed, turn the toggle switch K to "off" and remove the module under test. The test is now complete.

[0017] (6) Repeat steps (4) and (5) for the tested modules of the electrical equipment with the same test requirements; otherwise, the surge test device updates the settings after completing the next step.

[0018] (7) After the test is completed, turn the toggle switch K to "off", and push buttons A, B, C, D, and E in sequence to turn off the AC / DC power supply for undervoltage surge operation or the AC / DC power supply for overvoltage surge operation, and the AC / DC power supply for normal operation, and remove the surge test device.

[0019] The microcontrol system power supply circuit is used to provide a stable power supply for the microcontroller module; the microcontroller circuit responds to the panel instructions and accurately transmits the instructions to the undervoltage and overvoltage surge generation module; the human-computer interaction circuit is used to set the undervoltage / overvoltage surge test mode and initiate a surge action request, and can complete surge mode selection and trigger surge action operations on the panel; the weak-strong current isolation circuit is connected to the microcontroller for isolation of weak and strong current; the undervoltage and overvoltage surge generation circuit is connected to the weak-strong current isolation circuit for the generation of actual surge action.

[0020] The beneficial effects of the present invention are as follows: the present invention meets the requirements for instantaneous withstand voltage surge testing of electrical equipment, has the characteristics of compact circuit structure, simple system operation, low cost, high cost performance, and good stability, and solves the problems of complex structure, high design cost, and complex programming of existing surge test systems. It can meet the requirements for undervoltage surge (9V / 50mS / 1S, 6V / 50mS / 1S) and overvoltage surge (80V / 50mS / 1S, 100V / 50mS / 1S) testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a block diagram of the principle of the surge generation test device based on a microcontroller of the present invention;

[0022] Figure 2 yes Figure 1 Schematic diagram of power supply circuit of micro-control system;

[0023] Figure 3 yes Figure 1Schematic diagram of microcontroller circuit and human-computer interaction circuit;

[0024] Figure 4 yes Figure 1 The schematic diagram of the first photoelectric coupling circuit and the undervoltage surge generating circuit;

[0025] Figure 5 yes Figure 1 The schematic diagram of the second photoelectric coupling circuit and the overvoltage surge generating circuit;

[0026] Figure 6 It is a schematic diagram of undervoltage test connection of a surge generation test device based on a microcontroller of the present invention;

[0027] Figure 7 It is a schematic diagram of overvoltage test connection of a surge generation test device based on a microcontroller of the present invention;

[0028] Figure 8 It is a schematic diagram of a panel of a surge generation test device based on a microcontroller of the present invention. DETAILED DESCRIPTION

[0029] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0030] like Figure 1 As shown, the device includes a microcontroller circuit composed of a reset circuit, a clock circuit, a filter circuit and a microcontroller; includes a microcontroller system power supply circuit for providing power supply to the microcontroller circuit; includes a weak-strong electrical isolation circuit composed of a first photoelectric coupling circuit and a second photoelectric coupling circuit; includes an undervoltage / overvoltage surge generating circuit composed of an undervoltage surge generating circuit and an overvoltage surge generating circuit, and includes a human-computer interaction circuit composed of a mode selection button and a trigger button; the microcontroller system power supply circuit is connected to the microcontroller, the microcontroller is respectively connected to the first photoelectric coupling circuit and the second photoelectric coupling circuit, the first photoelectric coupling circuit and the second photoelectric coupling circuit are respectively connected to the undervoltage surge generating circuit and the overvoltage surge generating circuit, and the mode selection button and the trigger button are connected to the microcontroller.

[0031] like Figure 2As shown, the micro-control system power supply circuit adopts MAX5035B DC-DC chip N1, and the circuit connection relationship is: the 7th pin of chip N1 is connected to capacitor C3, capacitor C2, one end of capacitor C1 and the cathode of diode D7, and the anode of diode D7 is the input end of the micro-control system power supply circuit; the other ends of capacitor C3, capacitor C2 and capacitor C1 are connected and then grounded; at the same time, the 7th pin of chip N1 is connected to the 5th pin through resistor R1, and then grounded through resistor R2; the 3rd pin and the 6th pin of chip N1 are connected and then grounded, and at the same time, the 6th pin is connected to the 2nd pin through capacitor C5; the 1st pin and the 8th pin of chip N1 are connected to capacitor C3, capacitor C2 and capacitor C1. Both ends of C4, and pin 8 is connected to one end of the inductor L1 and the cathode of the diode D8, and the anode of the diode D8 is grounded; the other end of the inductor L1 is connected to pin 4 of the chip N1 through the resistor R3, and then grounded through the resistor R4; at the same time, the other end of the inductor L1 is connected to the anode of the diode D9, and the cathode of the diode D9 is connected to the anode of the light-emitting diode LED1 through the resistor R5, and at the same time, the cathode of the diode D9 is connected to the anode of the tantalum capacitor C6, and the cathode of the tantalum capacitor C6 is connected to the cathode of the light-emitting diode LED1 and then grounded.

[0032] The power supply circuit of the microcontroller system uses the BUCK integrated control chip MAX5035B, which can withstand a maximum input voltage of 76V, for voltage stabilization, making it extremely adaptable to input voltage. By placing diode D7, the power supply circuit has the ability to prevent reverse connection, reducing the probability of damage to the surge test device due to misoperation. Chip N1 outputs a stable 5V voltage, providing reliable drive for the microcontroller system.

[0033] like Figure 3As shown, the microcontroller adopts ATmega8 chip N2, the 6th pin of chip N2 is connected to the 4th pin of the external active crystal oscillator G1, the 7th pin is connected to the 3rd pin of the active crystal oscillator G1 through the capacitor C10, and the 2nd pin of the active crystal oscillator G1 is grounded; the human-computer interaction circuit includes a trigger button and a mode selection button, and the connection relationship of the trigger button circuit is: the positive input end of the diode D2 is connected to the capacitor C19, the inductor L4, the capacitor C20, and the resistor R42, and is also connected to the PD3 port of the chip N2, the capacitor C19 and the capacitor C The other end of 20 is grounded; the forward output end of the diode D2 is connected to one end of the single-pole double-throw switch S3, the common end of the single-pole double-throw switch S3 is connected to one end of the resistor R6, the other end of the resistor R6 is connected to VCC, and the other end of the single-pole double-throw switch S3 is grounded; the forward input end of the diode D1 is connected to the capacitor C17, the inductor L3, and the capacitor C16, the resistor R43 is connected to the PD2 port of the chip N2, the other ends of the capacitors C16 and C17 are grounded, the forward output end of the diode D1 is connected to one end of the single-pole double-throw switch S2, the single The common end of the double-throw switch S2 is connected to one end of the resistor R7, the other end of the resistor R7 is connected to VCC, and the other end of the single-pole double-throw switch S2 is grounded; the connection relationship of the mode selection button circuit is as follows: the PB0 port, PB1 port, and PB2 interface of the chip N2 are respectively connected to the 6th, 5th, and 4th pins of the dip switch JP2, and the 1st, 2nd, and 3rd pins of the dip switch JP2 are respectively connected to the resistor R31, the resistor R30, and the resistor R29, and the other ends of the resistors R31, R30, and R29 are grounded; the PB0 port of the chip N2 is connected to the 6th, 5th, and 4th pins of the dip switch JP2, and the 1st, 2nd, and 3rd pins of the dip switch JP2 are respectively connected to the resistor R31, the resistor R30, and the resistor R29. The other ends of the resistors R31, R30, and R29 are grounded; the PB0 port of the chip N2 is connected to the 6th, 5th, and 4th pins of the dip switch JP2, and the 1st, 2nd, and 3rd pins of the dip switch JP2 are respectively connected to the resistor R31, the resistor R30, and the resistor R29. The PB1 port and the PB2 port are also connected to resistors R32, R33 and R34, and the other ends of the resistors R32, R33 and R34 are connected to VCC; the PB3 port of the chip N2 is connected to pin 4 of the connector J1, the PB4 port is connected to pin 1 of the connector J1, the PB5 port is connected to pin 3 of the connector J1, the pin 5 of the connector J1 is connected to one end of the toggle switch S1, and the other end of the toggle switch S1 and the pin 6 of the connector J1 are grounded respectively; the pin 20 of the chip N2 is grounded through the capacitor C22.

[0034] The microcontroller circuit is composed of the ATmega8 chip and the peripheral reset and anti-interference circuits to form a minimum system. The system clock is provided by an external active crystal oscillator to ensure the stability of the system clock frequency and provide an accurate time reference for the timer inside the microcontroller to accurately control the time of the surge. The human-computer interaction panel is composed of a dip switch JP2, a single-pole double-throw switch S2, and a single-pole double-throw switch S3. The required surge mode can be selected through the dip switch JP2. When the tester sets the required mode, the microcontroller identifies it and enters the standby mode after the identification is completed. When the single-pole double-throw switch S2 or the single-pole double-throw switch S3 initiates a surge action request, the microcontroller enters the response mode from the standby mode, sends the initiated surge action request to the undervoltage and overvoltage surge generation circuit, and uses the external active crystal oscillator to provide an accurate time reference for its internal timer to accurately control the time of the surge. After the timing time ends, the microcontroller returns to the standby mode and waits for the next surge action request.

[0035] The ATmega8 microcontroller is a very special microcontroller. It integrates a large-capacity memory and rich and powerful hardware interface circuits inside the chip, and has all the performance and features of the AVR high-end microcontroller MEGE series. At the same time, because of the small pin package, it is inexpensive. In addition, the in-system programmable characteristics of the ATmega8 microcontroller make it possible to design and develop microcontroller embedded systems without purchasing expensive emulators and programmers, solving the problems of complex structure, high design cost, and complex programming of existing surge test systems.

[0036] like Figure 4As shown, the first photoelectric coupling circuit adopts AQY212EHA photoelectric coupler N3, and the connection relationship is: the PC4 port of chip N2 is connected to pin 1 of photoelectric coupler N3, and pin 2 of photoelectric coupler N3 is grounded through resistor R14; pins 3 and 4 are respectively connected to the positive output end and input end of voltage regulator tube VD8, and the positive input end of voltage regulator tube VD8 is connected in parallel with resistor R15 and capacitor C21, one end of resistor R16 is connected to capacitor C21, and the other end of resistor R16 is grounded; the connection relationship of undervoltage surge generating circuit is: the positive input end of voltage regulator tube VD8 is also connected to resistor R17, the gate of field effect tube Q4, resistor R35, the gate of field effect tube Q2, etc. The drains of the field effect transistors Q4 and Q2 are connected to the forward input terminal of the diode D3; the gate and source terminals of the field effect transistors Q4 and Q2 are connected to resistors R36 and R37 respectively; the sources of the field effect transistors Q4 and Q2 are connected to the forward output terminal of the voltage regulator tube VD8; the forward output terminal of the voltage regulator tube VD8 is also connected to the input terminal +Vin of the power supply voltage; the forward output terminals of the diodes D3 and D4 are connected to the +Vout terminal, the forward input terminal of the diode D4 is connected to the 6V / 9V undervoltage input terminal, the undervoltage input terminal is also connected to resistor R18 and the forward input terminal of the light-emitting diode LED2, and the forward output terminal of the light-emitting diode LED2 is grounded.

[0037] Working principle of photoelectric coupling circuit I and undervoltage surge generating circuit: When the single-pole double-throw switch S2 initiates a request for surge action, a falling edge from high level to low level will be generated at the PD2 port of the microcontroller circuit ATmega8 chip N2. After receiving the falling edge, the chip N2 will enter the response mode from the standby mode, and the drive pin 1 of the photoelectric coupler N3 connected to the PC4 port of the chip N2 will be set to a high level (5V). The light-emitting diode inside the photoelectric coupler is turned on and emits light through the current. After being illuminated by light, the current is turned on, the gate-source voltage Vgs voltage of the field effect transistor Q2 and the field effect transistor Q4 is 0, the field effect transistor is cut off, Vout changes from +Vin to 6V / 9V, and the undervoltage surge action occurs.

[0038] like Figure 5As shown, the second photoelectric coupling circuit adopts AQY212EHA photoelectric coupler N4, and the connection relationship is: the PC0 port of chip N2 is connected to pin 1 of photoelectric coupler N4, and pin 2 of photoelectric coupler N4 is grounded through resistor R19; pins 3 and 4 are respectively connected to the positive output end and input end of voltage regulator tube VD10, and the positive input end of voltage regulator tube VD10 is connected in parallel with resistor R20 and capacitor C22, one end of resistor R21 is connected to capacitor C22, and the other end of resistor R21 is grounded; the connection relationship of the overvoltage surge generating circuit is: voltage regulator tube VD10 The forward output end of the diode D5 is also connected to the resistor R22, the gate of the field effect transistor Q1, the resistor R36, and the gate of the field effect transistor Q3; the drains of the field effect transistors Q1 and Q3 are connected to the forward input end of the diode D5; the gates and sources of the field effect transistors Q1 and Q3 are connected to the resistor R38 and the resistor R39 respectively; the sources of the field effect transistors Q1 and Q3 are connected to the forward output end of the voltage regulator tube VD10; the forward output end of the voltage regulator tube VD10 is also connected to the 80V / 100V overvoltage input end; the forward output ends of the diodes D5 and D6 are connected to the +Vout end, the forward input end of the diode D6 is connected to the power supply voltage input end +Vin, the overvoltage input end is also connected to the resistor R23 and the forward input end of the light-emitting diode LED3, and the forward output end of the light-emitting diode LED3 is grounded.

[0039] Working principle of photoelectric coupling circuit II and overvoltage surge generating circuit: When the single-pole double-throw switch S3 initiates a request for surge action, a falling edge from high level to low level will be generated at the PD3 port of the microcontroller chip N2. After receiving the falling edge, the main chip N2 will enter the response mode from the standby mode, and the drive 1 pin of the photoelectric coupler N4 connected to the PC0 port of the chip N2 will be set to a high level (5V). The light-emitting diode inside the photoelectric coupler is turned on and emits light through the current. After being illuminated by light, the current is turned on, the gate-source voltage Vgs voltage of the field effect transistor Q1 and the field effect transistor Q3 is 0, the field effect transistor is cut off, Vout changes from +Vin to 80V / 100V, and the overvoltage surge action occurs.

[0040] The weak-to-strong current isolation circuit can not only accurately transmit the action of the micro-control system to the under-voltage and over-voltage surge generating circuit, but also realize the isolation of weak current and strong current, effectively eliminating the interference of the voltage and current mutation of the strong current part on the micro-control system when a surge occurs; the under-voltage and over-voltage surge generating circuit adopts a combination of electronic switches, and realizes the surge action through the control of the micro-control system on the enabling end of the electronic switch.

[0041] The test method of the microcontroller-based surge generation test device has the following steps:

[0042] (1) Connect the surge test device correctly according to the test requirements, such as Figure 6 , Figure 7 shown.

[0043] (2) Set the corresponding buttons on the surge test device panel according to the test requirements, such as Figure 8 shown.

[0044] (3) Under the premise of correct settings, turn on the AC / DC power supply for normal operation, the AC / DC power supply for undervoltage surge operation or the AC / DC power supply for overvoltage surge operation in turn, and observe the indicators on the panel; when the AC / DC power supply for normal operation is turned on, the control light is on; when the AC / DC power supply for undervoltage surge operation or the AC / DC power supply for overvoltage surge operation is turned on, the corresponding undervoltage surge operation pre-indicator light or overvoltage surge operation pre-indicator light is on, such as Figure 8 shown.

[0045] (4) Connect the module under test of the electrical equipment, set the toggle switch K to "connect", press the undervoltage surge working switch or the overvoltage surge working switch once as required, and perform the corresponding single surge test; compare the level change of the second channel of the oscilloscope with the corresponding provisions of the electrical performance indicators of the module under test of the electrical equipment to determine whether the module under test of the electrical equipment meets the requirements that need to be met.

[0046] (5) After the test is completed, turn the toggle switch K to "off" and remove the module under test. The test is now complete.

[0047] (6) Repeat steps (4) and (5) for the tested modules of the electrical equipment with the same test requirements; otherwise, the surge test device updates the settings after completing the next step.

[0048] (7) After the test is completed, turn the toggle switch K to "off", and push buttons A, B, C, D, and E in sequence to turn off the AC / DC power supply for undervoltage surge operation or the AC / DC power supply for overvoltage surge operation, and the AC / DC power supply for normal operation, and remove the surge test device.

[0049] like Figure 8 As shown, the meanings of the buttons and the specific setting methods are as follows:

[0050] Pressing button A means that the micro-control unit for undervoltage surge is effective, otherwise it is invalid; the corresponding indicator light is the "control light".

[0051] Pressing button B means that the micro-control unit for overvoltage surge is effective, otherwise it is invalid; the corresponding indicator light is the "control light".

[0052] The combination of buttons C, D, and E can be used to set the undervoltage surge and overvoltage surge test modes;

[0053] Here, it is stipulated that the button is lifted to represent "1", and the button is pressed to represent "0". The specific setting method is shown in the table below:

[0054]

Claims

1. A surge test device based on a microcontroller, Features: It includes a microcontroller circuit, a microcontroller system power supply circuit for providing power supply to the microcontroller circuit, a weak-strong electric isolation circuit, an undervoltage / overvoltage surge generating circuit, and a human-computer interaction circuit; wherein the microcontroller circuit is composed of a reset circuit, a clock circuit, a filter circuit, and a microcontroller; the weak-strong electric isolation circuit is composed of a first photoelectric coupling circuit and a second photoelectric coupling circuit; the undervoltage / overvoltage surge generating circuit is composed of an undervoltage surge generating circuit and an overvoltage surge generating circuit; The human-computer interaction circuit is composed of a mode selection button and a trigger button; the micro-control system power supply circuit is connected to the microcontroller, the microcontroller is respectively connected to the first photoelectric coupling circuit and the second photoelectric coupling circuit, the first photoelectric coupling circuit and the second photoelectric coupling circuit are respectively connected to the undervoltage surge generating circuit and the overvoltage surge generating circuit, and the mode selection button and the trigger button are connected to the microcontroller; The microcontroller adopts ATmega8 chip N2, the 6th pin of chip N2 is connected to the 4th pin of the external active crystal oscillator G1 of model 73728M, the 7th pin is connected to the 3rd pin of the active crystal oscillator G1 through the capacitor C10, and the 2nd pin of the active crystal oscillator G1 is grounded; the connection relationship of the trigger button circuit is as follows: the forward input end of the diode D2 of model MBR0530 is connected to the capacitor C19 and one end of the inductor L4, the other end of the inductor L4 is connected to the capacitor C20 and one end of the resistor R42, the other end of the resistor R42 is connected to the PD3 port of the chip N2, and the other ends of the capacitor C19 and the capacitor C20 are grounded; the forward output end of the diode D2 is connected to the single-pole double-throw switch S3 One end, the common end of the single-pole double-throw switch S3 is connected to one end of the resistor R6, the other end of the resistor R6 is connected to VCC, and the other end of the single-pole double-throw switch S3 is grounded; the forward input end of the diode D1, model MBR0530, is connected to the capacitor C17 and one end of the inductor L3, the other end of the inductor L3 is connected to the capacitor C16 and one end of the resistor R43, and the other ends of the capacitor C16 and the capacitor C17 are grounded; the other end of the resistor R43 is connected to the PD2 port of the chip N2, the forward output end of the diode D1 is connected to the common end of the single-pole double-throw switch S2, one end of the single-pole double-throw switch S2 is connected to one end of the resistor R7, the other end of the resistor R7 is connected to VCC, and the other end of the single-pole double-throw switch S2 is grounded; The connection relationship of the mode selection button circuit is as follows: the PB0 port, PB1 port, and PB2 interface of the chip N2 are connected to the 6th, 5th, and 4th pins of the dip switch JP2 respectively, and the 1st, 2nd, and 3rd pins of the dip switch JP2 are connected to one end of the resistor R31, the resistor R30, and the resistor R29 respectively, and the other ends of the resistors R31, the resistor R30, and the resistor R29 are grounded; the PB0 port, PB1 port, and PB2 port of the chip N2 are also connected to one end of the resistor R32, the resistor R33, and the resistor R34, and the other ends of the resistors R32, the resistor R33, and the resistor R34 are connected to the VCC of the chip N2; the PB3 port of the chip N2 is connected to the 4th pin of the connector J1, the PB4 port is connected to the 1st pin of the connector J1, the PB5 port is connected to the 3rd pin of the connector J1, the 5th pin of the connector J1 is connected to one end of the toggle switch S1, and the other end of the toggle switch S1 and the 6th pin of the connector J1 are grounded respectively; the 20th pin of the chip N2 is grounded through the capacitor C22; The micro-control system power supply circuit adopts MAX5035B DC-DC chip N1, and the circuit connection relationship is as follows: pin 7 of chip N1 is connected to capacitor C3, capacitor C2, one end of capacitor C1 and the cathode of diode D7 of model SS210, and the anode of diode D7 is the input end of the micro-control system power supply circuit; the other ends of capacitor C3, capacitor C2 and capacitor C1 are connected and then grounded; at the same time, pin 7 of chip N1 is connected to pin 5 through resistor R1, and then grounded through resistor R2; pin 3 and pin 6 of chip N1 are connected and then grounded, and pin 6 is connected to pin 2 through capacitor C5; pin 1 and pin 8 of chip N1 are connected to both ends of capacitor C4, At the same time, the 8th pin is connected to one end of the inductor L1 and the cathode of the diode D8 of model MBR0530, and the anode of the diode D8 is grounded; the other end of the inductor L1 is connected to the 4th pin of the chip N1 through the resistor R3, and then grounded through the resistor R4; at the same time, the other end of the inductor L1 is connected to the anode of the diode D9 of model MBR0530, and the cathode of the diode D9 is connected to the anode of the light-emitting diode LED1 through the resistor R5, and at the same time, the cathode of the diode D9 is connected to the anode of the tantalum capacitor C6, and the cathode of the tantalum capacitor C6 is connected to the cathode of the light-emitting diode LED1 and then grounded; The first photoelectric coupling circuit adopts AQY212EHA photoelectric coupler N3, and the connection relationship is as follows: the PC4 port of the chip N2 is connected to the 1st pin of the photoelectric coupler N3, and the 2nd pin of the photoelectric coupler N3 is grounded through the resistor R14; the 3rd pin of the photoelectric coupler N3 is connected to the 1st pin of the voltage regulator tube VD8 of model MMB5242B, and the 4th pin of the photoelectric coupler N3 is connected to the 3rd pin and the 2nd pin of the voltage regulator tube VD8, and the 1st pin and the 2nd pin of the voltage regulator tube VD8 are respectively connected to the two ends of the resistor R15 and the capacitor C21, and the 2nd pin of the voltage regulator tube VD8 is grounded through the resistor R16; the 1st pin of the voltage regulator tube VD8 is connected to the power supply voltage input terminal +Vin; The connection relationship of the undervoltage surge generating circuit is as follows: the 3rd pin of the voltage regulator tube VD8 is also connected to one end of the resistor R17, and the other end of the resistor R17 is connected to the gate of the field effect tube Q4 of model IRF6218S; the 2nd pin of the voltage regulator tube VD8 is connected to one end of the resistor R35, and the other end of the resistor R35 is connected to the gate of the field effect tube Q2 of model IRF6218S; the drain of the field effect tube Q4 and the field effect tube Q2 is connected to the positive input end of the diode D3 of model MBR41H100CT; the other ends of the resistors R17 and R35 are connected to the source of the field effect tube Q4 and the field effect tube Q2 through the resistors R36 and R37 respectively, and are also connected to the power supply voltage input end + Vin; the forward input end of the MBR41H100CT diode D4 is connected to the 6V / 9V undervoltage input end, the 6V / 9V undervoltage input end is connected to the forward input end of the light-emitting diode LED2 through the resistor R18, and the forward output end of the light-emitting diode LED2 is grounded; the forward output ends of the diodes D3 and D4 are connected to the +Vout end; The second photoelectric coupling circuit adopts AQY212EHA photoelectric coupler N4, and the connection relationship is as follows: the PC0 port of the chip N2 is connected to the 1st pin of the photoelectric coupler N4, and the 2nd pin of the photoelectric coupler N4 is grounded through the resistor R19; the 3rd pin of the photoelectric coupler N4 is connected to the 1st pin of the voltage regulator tube VD10 of model MMB5242B, and the 4th pin of the photoelectric coupler N4 is connected to the 3rd pin and the 2nd pin of the voltage regulator tube VD10, and the 1st pin and the 2nd pin of the voltage regulator tube VD10 are respectively connected to the two ends of the resistor R20 and the capacitor C22, and the 2nd pin of the voltage regulator tube VD10 is grounded through the resistor R21; the 1st pin of the voltage regulator tube VD10 is connected to the 80V / 100V overvoltage input terminal; The connection relationship of the overvoltage surge generating circuit is as follows: the 3rd pin of the voltage regulator tube VD10 is also connected to one end of the resistor R22, and the other end of the resistor R22 is connected to the gate of the IRF6218S field effect tube Q1; the 2nd pin of the voltage regulator tube VD10 is connected to one end of the resistor R36, and the other end of the resistor R36 is connected to the gate of the IRF6218S field effect tube Q3; the drain of the field effect tube Q1 and the field effect tube Q3 is connected to the positive input end of the MBR41H100CT diode D5; the other ends of the resistors R22 and R36 are connected to the source of the field effect tube Q1 and the field effect tube Q3 through the resistors R38 and R39 respectively, and are also connected to the 80V / 100V overvoltage input end; the positive input end of the MBR41H100CT diode D6 is connected to the power supply voltage input end + Vin; the 80V / 100V overvoltage input terminal is connected to the forward input terminal of the light emitting diode LED3 through the resistor R23, and the forward output terminal of the light emitting diode LED3 is grounded; the forward output terminals of the diodes D5 and D6 are connected to the +Vout terminal.

2. A test method using the microcontroller-based surge generation test device as claimed in claim 1, Features: The test method has the following steps: (1) Connect the surge test device correctly according to the test requirements; (2) Set the corresponding buttons on the surge test device panel according to the test requirements; (3) Under the premise of correct settings, turn on the AC / DC power supply for normal operation, the AC / DC power supply for undervoltage surge operation or the AC / DC power supply for overvoltage surge operation in turn, and observe the indicators on the panel; when the AC / DC power supply for normal operation is turned on, the control light is on; when the AC / DC power supply for undervoltage surge operation or the AC / DC power supply for overvoltage surge operation is turned on, the corresponding undervoltage surge operation pre-indicator light or overvoltage surge operation pre-indicator light is on; (4) Connect the tested module of the electrical equipment, set the gear position of the toggle switch K to "connect", press the undervoltage surge working switch or the overvoltage surge working switch once as required, and perform the corresponding single surge test; compare the level change of the second channel of the oscilloscope with the corresponding provisions of the electrical performance indicators of the tested module of the electrical equipment to determine whether the tested module of the electrical equipment meets the requirements that need to be met; (5) After the test is completed, turn the toggle switch K to "off" and remove the module under test of the electrical equipment. The test is completed. (6) Repeat steps (4) and (5) for the tested modules of the electrical equipment with the same test requirements; otherwise, the surge test device updates the settings after completing the next step; (7) After the test is completed, turn the toggle switch K to "off" and pop up buttons A, B, C, D, and E in sequence. Pressing button A means that the micro-control unit for undervoltage surge is valid, otherwise it is invalid; pressing button B means that the micro-control unit for overvoltage surge is valid, otherwise it is invalid; buttons C, D, and E are used in combination to set the undervoltage surge and overvoltage surge test modes; Lifting the button represents 1, and pressing the button represents 0; turn off the AC / DC power supply for undervoltage surge operation or the AC / DC power supply for overvoltage surge operation, and the AC / DC power supply for normal operation in sequence, and remove the surge generation test device.

Citation Information

Patent Citations

  • Surge testing system and surge testing method

    CN103454534A

  • Method for testing voltage transient performance of communication transmission device

    CN106841872A

  • Surge generation testing device based on microcontroller

    CN210982637U