External control circuit of combined junction box
By designing an external control circuit including switching circuit, crystal oscillator circuit, reset circuit and relay control, the problems of easy damage, inconvenience in use and safety of traditional junction boxes are solved, and a simple structure, low cost, fast switching speed, safe and reliable Terminal box control.
Patent Information
- Application Number
- CN202411019018.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-12-03
AI Technical Summary
Traditional junction boxes are prone to damage, inconvenient to use, slow switching speed and dangerous. The smart junction boxes are costly and complex in structure, so they cannot be used on a large scale.
Design an external control circuit for a joint junction box, including switching circuit, crystal oscillator circuit, reset circuit, main control chip and relay control circuit, connected to the junction box through relay, and use lock switches, low-dropout voltage stabilization chips, reset buttons, Crystal oscillator and relay drive circuits achieve fast and safe circuit switching.
It realizes a junction box control method with simple structure, low cost, fast switching speed, safe and reliable, solves the defects of traditional junction boxes and is suitable for large-scale use.
Smart Images

Figure CN119065284A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of a combined junction box, and more particularly to an external control circuit of a combined junction box. Background Art
[0002] Junction boxes are widely used in energy metering and electricity billing. Traditional junction boxes are mainly composed of mechanical switches and plugs, and circuit switching is achieved by manually switching different plugs. However, this traditional junction box has many problems, such as easy damage, inconvenient use, slow switching speed and certain dangers. To address this problem, there are already some smart junction boxes on the market, but they are either expensive or have complex mechanical structures, which prevents them from being used on a large scale.
[0003] Therefore, how to provide a combined junction box control method with simple structure, low cost, fast switching speed, safety and reliability is a problem that technical personnel in this field need to solve urgently. Summary of the invention
[0004] In view of this, an object of the present invention is to provide an external control circuit of a combined junction box, which has a simple structure, low cost, fast switching speed, and is safe and reliable.
[0005] In order to achieve the above object, the present invention adopts the following technical solution: an external control circuit of a combined junction box, the external control circuit is connected to the combined junction box through a relay;
[0006] The external control circuit includes a switch circuit, a crystal oscillator circuit, a reset circuit, a main control chip and a relay control circuit;
[0007] The switch circuit is used to control the opening and closing of the external control circuit;
[0008] The crystal oscillator circuit is used to provide a clock signal to the main control chip;
[0009] The reset circuit is used to reset the state of the external control circuit;
[0010] The switch circuit, crystal oscillator circuit, reset circuit and relay control circuit are all connected to the main control chip;
[0011] The relay control circuit controls the opening and closing of the relay through the main control chip.
[0012] Preferably, the switch circuit includes a locking switch SW1, a low voltage dropout voltage regulator chip, a capacitor C4 and a capacitor C5;
[0013] The locking switch SW1 is connected to ground via capacitor C4;
[0014] The low voltage dropout voltage regulator chip is grounded through capacitor C5;
[0015] The locking switch SW1 is connected to a low voltage dropout voltage regulator chip.
[0016] Preferably, the switch circuit further includes a light emitting diode LED1 and a resistor R7;
[0017] The light emitting diode LED1 is used to indicate whether the low voltage difference voltage regulator chip is working normally;
[0018] The anode of the light emitting diode LED1 is connected to the power supply VCC;
[0019] The cathode of the light diode LED1 is grounded via a resistor R7.
[0020] Preferably, the reset circuit comprises a reset button, a resistor R1 and a capacitor C3;
[0021] The reset button is connected in parallel with the capacitor C3;
[0022] One end of the capacitor C3 is grounded through the resistor R1, and the other end is connected to the power supply VCC;
[0023] One end of the capacitor C3 is connected to the reset pin of the main control chip.
[0024] Preferably, the crystal oscillator circuit comprises a capacitor C1, a capacitor C2 and a crystal oscillator X1;
[0025] One end of the crystal oscillator X1 is grounded via a capacitor C1;
[0026] The other end of the crystal oscillator X1 is grounded via a capacitor C2;
[0027] Two ends of the crystal oscillator X1 are respectively connected to two crystal oscillator pins of the main control chip.
[0028] Preferably, the relay control circuit includes a plurality of relay key control circuits;
[0029] Each of the relay key control circuits is used to control the opening and closing of a relay, and each of the relay key control circuits includes a relay locking switch and a relay locking resistor;
[0030] The relay locking switch is connected to the main control chip through the relay locking resistor.
[0031] Preferably, the relay control circuit further includes a relay drive circuit;
[0032] The relay drive circuit includes a Darlington tube ULN2003ADR, a resistor R5, a resistor R8, a resistor R9, a resistor R10 and a resistor R11;
[0033] The 1B pin of the Linton tube ULN2003ADR is connected to the P1.1 pin of the main control chip STC8G1K08 through the resistor R5;
[0034] The 2B pin of the Linton tube ULN2003ADR is connected to the P1.2 pin of the main control chip STC8G1K08 through the resistor R8;
[0035] The 3B pin of the Linton tube ULN2003ADR is connected to the P1.3 pin of the main control chip STC8G1K08 through the resistor R9;
[0036] The 4B pin of the Linton tube ULN2003ADR is connected to the P1.4 pin of the main control chip STC8G1K08 through the resistor R10;
[0037] The 5B pin of the Linton tube ULN2003ADR is connected to the P3.4 pin of the main control chip STC8G1K08 through a resistor R11.
[0038] Preferably, the external control circuit further includes a clock circuit;
[0039] The clock circuit is used to provide a more accurate clock signal;
[0040] The clock circuit includes a crystal oscillator X2 and a clock chip;
[0041] The crystal oscillator X2 is connected to the crystal oscillator pin of the clock chip.
[0042] Preferably, the external control circuit also includes a plurality of LED display circuits;
[0043] Each of the LED display circuits includes a current limiting resistor and an indicating light emitting diode;
[0044] The anode of the indicating light emitting diode is connected to the power supply VCC through the current limiting resistor;
[0045] The cathode of the indicating light emitting diode is connected to the main control chip.
[0046] Preferably, the number of the LED display circuits and the number of the relay button control circuits are the same as the number of the relays.
[0047] It can be seen from the above technical solutions that, compared with the prior art, the present invention discloses an external control circuit of a combined junction box, which has a simple structure, low cost, fast switching speed, and is safe and reliable. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0049] Figure 1 The figure is a connection diagram of an external control circuit, a relay, an intelligent junction box and an electric meter in a certain embodiment.
[0050] Figure 2 This is a connection diagram of a switch circuit in an external control circuit provided by the present invention.
[0051] Figure 3 A connection diagram of a relay drive circuit in an external control circuit provided by the present invention;
[0052] Figure 4 A connection diagram of a reset circuit in an external control circuit provided by the present invention;
[0053] Figure 5 A connection diagram of a crystal oscillator circuit in an external control circuit provided by the present invention;
[0054] Figure 6 A connection diagram of a relay button control circuit in an external control circuit provided by the present invention;
[0055] Figure 7 An LED display circuit in an external control circuit provided by the present invention;
[0056] Figure 8 A clock circuit in the external control circuit provided by the present invention;
[0057] Fig. 9 A pin connection diagram of the main control chip provided by the present invention;
[0058] Fig.10 This is an overall connection diagram of the external control circuit provided by the present invention. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0060] like Figure 1-Figure 10As shown, an embodiment of the present invention discloses an external control circuit of a combined junction box, and the external control circuit is connected to the combined junction box through a relay;
[0061] The external control circuit includes a switch circuit, a crystal oscillator circuit, a reset circuit, a main control chip STC8G1K08 and a relay control circuit;
[0062] The switch circuit is used to control the opening and closing of the external control circuit;
[0063] The crystal oscillator circuit is used to provide a clock signal to the main control chip to ensure the accurate operation of the external control circuit;
[0064] The reset circuit is used to reset the state of the external control circuit;
[0065] The switch circuit, crystal oscillator circuit, reset circuit and relay control circuit are all connected to the main control chip;
[0066] The relay control circuit controls the switch of the relay through the main control chip.
[0067] Further, the switch circuit includes a locking switch SW1, a low voltage dropout voltage regulator chip AMS1117, a capacitor C4, a capacitor C5, a light emitting diode LED1 and a resistor R7;
[0068] The low voltage dropout voltage regulator chip AMS1117 is used to stabilize the input power supply to prevent the main control chip STC8G1K08 from burning;
[0069] Pin 5 of the lock switch SW1 is connected to the power supply VCC;
[0070] Pin 6 of the locking switch SW1 is grounded via a capacitor C4;
[0071] Pin 6 of the lock switch SW1 is connected to pin 3 of the low voltage dropout voltage regulator chip AMS1117;
[0072] Pin 1 of the low voltage dropout voltage regulator chip AMS1117 is grounded;
[0073] Pin 2 of the low voltage dropout voltage regulator chip AMS1117 is grounded via capacitor C5;
[0074] Pin 4 of the low voltage dropout voltage regulator chip AMS1117 is connected to the power supply VCC;
[0075] The light emitting diode LED1 is used to indicate whether the low voltage difference voltage regulator chip is working normally;
[0076] The anode of the light emitting diode LED1 is connected to the power supply VCC;
[0077] The cathode of the light diode LED1 is grounded via a resistor R7.
[0078] Furthermore, the reset circuit includes a reset button, a resistor R1 and a capacitor C3;
[0079] The reset button is connected in parallel with the capacitor C3;
[0080] One end of the capacitor C3 is grounded through the resistor R1, and the other end is connected to the power supply VCC;
[0081] One end of the capacitor C3 is connected to the reset pin P5.4 of the main control chip STC8G1K08.
[0082] Further, the crystal oscillator circuit includes a capacitor C1, a capacitor C2 and a crystal oscillator X1;
[0083] One end of the crystal oscillator X1 is grounded via a capacitor C1;
[0084] The other end of the crystal oscillator X1 is grounded via a capacitor C2;
[0085] The two ends of the crystal oscillator X1 are respectively connected to the two crystal oscillator pins P1.6 and P1.7 of the main control chip.
[0086] Further, the relay control circuit includes a plurality of relay key control circuits;
[0087] Each of the relay key control circuits is used to control the opening and closing of a relay, and each of the relay key control circuits includes a relay locking switch and a relay locking resistor;
[0088] The relay locking switch is connected to the main control chip through the relay locking resistor;
[0089] In this embodiment, the relay control circuit includes two relay button control circuits, which are used to control voltage and current respectively;
[0090] The relay locking switch of a relay key control circuit is a second locking switch SW4, and the relay locking resistor is a fourth resistor R4; the second locking switch SW4 is connected to the P3.2 pin of the main control chip STC8G1K08 through the fourth resistor R4;
[0091] The relay locking switch of another relay button control circuit is a third locking switch SW3; the relay locking resistor is a sixth resistor R6; the third locking switch SW3 is connected to the P3.3 pin of the main control chip STC8G1K08 through the sixth resistor R6;
[0092] Furthermore, the relay control circuit also includes a relay drive circuit;
[0093] The relay driving circuit includes a Darlington tube ULN2003ADR, a resistor R5, a resistor R8, a resistor R9, a resistor R10 and a resistor R11, and is used to improve the driving capability of the single chip so that the single chip can directly drive the relay.
[0094] The 1B pin of the Linton tube ULN2003ADR is connected to the P1.1 pin of the main control chip STC8G1K08 through the resistor R5;
[0095] The 2B pin of the Linton tube ULN2003ADR is connected to the P1.2 pin of the main control chip STC8G1K08 through the resistor R8;
[0096] The 3B pin of the Linton tube ULN2003ADR is connected to the P1.3 pin of the main control chip STC8G1K08 through the resistor R9;
[0097] The 4B pin of the Linton tube ULN2003ADR is connected to the P1.4 pin of the main control chip STC8G1K08 through the resistor R10;
[0098] The 5B pin of the Linton tube ULN2003ADR is connected to the P3.4 pin of the main control chip STC8G1K08 through the resistor R11;
[0099] Furthermore, the control circuit also includes a clock circuit;
[0100] The clock circuit is used to provide a more accurate clock signal;
[0101] The clock circuit includes a crystal oscillator X2 and a clock chip DS1302z;
[0102] Pin 1 of the clock chip DS1302z is connected to the power supply VCC;
[0103] The crystal oscillator pins (pins 2 and 3) of the clock chip DS1302z are connected to the crystal oscillator X2;
[0104] Pin 4 of the clock chip DS1302z is grounded;
[0105] Pin 5 of the clock chip DS1302z is connected to P3.7 of the main control chip STC8G1K08;
[0106] Pin 6 of the clock chip DS1302z is connected to P3.6 of the main control chip STC8G1K08;
[0107] Pin 7 of the clock chip DS1302z is connected to P1.0 (SCK) of the main control chip STC8G1K08;
[0108] Pin 8 of the clock chip DS1302z is grounded via a battery CR2032.
[0109] Furthermore, the control circuit further comprises a plurality of LED display circuits; the number of the LED display circuits and the number of the relay key control circuits are the same as the number of the relays;
[0110] Each of the LED display circuits includes a current limiting resistor and an indicating light emitting diode;
[0111] The anode of the indicating light emitting diode is connected to the power supply VCC through the current limiting resistor;
[0112] The cathode of the indicating light emitting diode is connected to the main control chip.
[0113] In this embodiment, the LED display circuit includes two;
[0114] One of the LED display circuits includes a resistor R2 and a light emitting diode LED2; the anode of the light emitting diode LED2 is connected to the power supply VCC through the resistor R2; the cathode of the light emitting diode LED2 is connected to the P1.5 pin of the main control chip STC8G1K08;
[0115] Another LED display circuit includes a resistor R3 and a light emitting diode LED3; the anode of the light emitting diode LED3 is connected to the power supply VCC through the resistor R3; the cathode of the light emitting diode LED3 is connected to the P5.5 pin of the main control chip STC8G1K08.
[0116] The parameters of the electronic components selected in this embodiment are as follows:
[0117] Main control chip STC8G1K08: operating voltage 1.9V ~ 5.5V; operating temperature -40℃ ~ 85℃, 128 bytes of internal direct access RAM (DATA), 128 bytes of internal indirect access RAM (IDATA), 1024 bytes of internal extended RAM (internal XDATA).
[0118] Clock chip DS1302z: operates in a wide voltage range of 2.0V to 5.5V, operating temperature range: -40℃ t~+85℃, compatible with TTL, operating current less than 300nA at 2.0V.
[0119] The low voltage dropout voltage regulator chip AMS1117 has a maximum output current of 1A and an output voltage of 5.0V; it is used to power the STC8G1K08 chip;
[0120] Darlington driver chip ULN2003ADRZU: includes seven independent Darlington output channels, each channel has a maximum current of 500mA, a maximum withstand voltage of 50V, and a TTL / CMOS logic level at the input end, which has high noise suppression and anti-jitter capabilities. The package form is DIP-16. Each Darlington output channel includes two PNP transistors and two NPN transistors, and the built-in protection diodes are used to achieve overvoltage protection and reverse current protection for the load. The logic level at the input end uses inverting logic, and the internal resistor network is used to achieve anti-jitter and noise suppression of the input signal.
[0121] Crystal oscillator X1: 12MHZ;
[0122] Crystal oscillator X2: 32.768KHZ;
[0123] R1: 1K Euro;
[0124] R2, R3, R4, R5, R6, R7, resistor R8, resistor R9, resistor R10 and resistor R11: 510 ohms;
[0125] C1 and C2: 20pf;
[0126] C3, C4, C5: 10uf;
[0127] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0128] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An external control circuit of a combined junction box, characterized in that: The external control circuit is connected to the joint junction box through a relay; The external control circuit includes a switch circuit, a crystal oscillator circuit, a reset circuit, a main control chip and a relay control circuit; The switch circuit is used to control the opening and closing of the external control circuit; The crystal oscillator circuit is used to provide a clock signal to the main control chip; The reset circuit is used to reset the state of the external control circuit; The switch circuit, crystal oscillator circuit, reset circuit and relay control circuit are all connected to the main control chip; The relay control circuit controls the opening and closing of the relay through the main control chip.
2. The external control circuit of the combined junction box according to claim 1 is characterized in that: The switch circuit includes a locking switch SW1, a low voltage dropout voltage regulator chip, a capacitor C4 and a capacitor C5; The locking switch SW1 is connected to ground via capacitor C4; The low voltage dropout voltage regulator chip is grounded through capacitor C5; The locking switch SW1 is connected to a low voltage dropout voltage regulator chip.
3. The external control circuit of the combined junction box according to claim 2 is characterized in that: The switch circuit also includes a light emitting diode LED1 and a resistor R7; The light emitting diode LED1 is used to indicate whether the low voltage difference voltage regulator chip is working normally; The anode of the light emitting diode LED1 is connected to the power supply VCC; The cathode of the light diode LED1 is grounded via a resistor R7.
4. The external control circuit of the combined junction box according to claim 1 is characterized in that: The reset circuit includes a reset button, a resistor R1 and a capacitor C3; The reset button is connected in parallel with the capacitor C3; One end of the capacitor C3 is grounded through the resistor R1, and the other end is connected to the power supply VCC; One end of the capacitor C3 is connected to the reset pin of the main control chip.
5. The external control circuit of the combined junction box according to claim 1 is characterized in that: The crystal oscillator circuit includes a capacitor C1, a capacitor C2 and a crystal oscillator X1; One end of the crystal oscillator X1 is grounded via a capacitor C1; The other end of the crystal oscillator X1 is grounded via a capacitor C2; Two ends of the crystal oscillator X1 are respectively connected to two crystal oscillator pins of the main control chip.
6. The external control circuit of the combined junction box according to claim 1, characterized in that: The relay control circuit includes a plurality of relay key control circuits; Each of the relay key control circuits is used to control the opening and closing of a relay, and each of the relay key control circuits includes a relay locking switch and a relay locking resistor; The relay locking switch is connected to the main control chip through the relay locking resistor.
7. The external control circuit of the combined junction box according to claim 1, characterized in that: The relay control circuit also includes a relay drive circuit; The relay drive circuit includes a Darlington tube ULN2003ADR, a resistor R5, a resistor R8, a resistor R9, a resistor R10 and a resistor R11; The 1B pin of the Linton tube ULN2003ADR is connected to the P1.1 pin of the main control chip STC8G1K08 through the resistor R5; The 2B pin of the Linton tube ULN2003ADR is connected to the P1.2 pin of the main control chip STC8G1K08 through the resistor R8; The 3B pin of the Linton tube ULN2003ADR is connected to the P1.3 pin of the main control chip STC8G1K08 through the resistor R9; The 4B pin of the Linton tube ULN2003ADR is connected to the P1.4 pin of the main control chip STC8G1K08 through the resistor R10; The 5B pin of the Linton tube ULN2003ADR is connected to the P3.4 pin of the main control chip STC8G1K08 through a resistor R11.
8. The external control circuit of the combined junction box according to claim 1, characterized in that: The external control circuit also includes a clock circuit; The clock circuit is used to provide a more accurate clock signal; The clock circuit includes a crystal oscillator X2 and a clock chip; The crystal oscillator X2 is connected to the crystal oscillator pin of the clock chip.
9. The external control circuit of the combined junction box according to claim 6, characterized in that: The external control circuit also includes a number of LED display circuits; Each of the LED display circuits includes a current limiting resistor and an indicating light emitting diode; The anode of the indicating light emitting diode is connected to the power supply VCC through the current limiting resistor; The cathode of the indicating light emitting diode is connected to the main control chip.
10. The external control circuit of the combined junction box according to claim 9, characterized in that: The number of the LED display circuits and the number of the relay key control circuits are the same as the number of the relays.
