A control system for an intelligent switch
The intelligent switch control system, which combines components such as automatic control, real-time clock, and BA control circuit, solves the problem of the single control method in existing intelligent switches and realizes convenient and efficient control with multiple control methods. Especially in high-current application scenarios, priority ordering ensures the reliability of manual control.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- TIANFU JIANGXI LAB
- Filing Date
- 2026-03-26
- Publication Date
- 2026-05-29
Smart Images

Figure CN122117690A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of building power system control technology, and in particular to a control system for an intelligent switch. Background Technology
[0002] Existing smart switches use the controller's I / O for control. The controller outputs control signals to drive relays, thereby controlling the opening and closing of the relays. In high-current applications, magnetic latching relays are often used. Magnetic latching relays require positive and negative pulse current control, thus requiring the controller to output two control signals, making it difficult to achieve multiple control modes. With the development of the Internet of Things, the application scenarios of smart switches are increasing, but the existing smart switch control methods are limited and cannot achieve multiple control modes. Summary of the Invention
[0003] To address the aforementioned problems, this invention proposes a control system for an intelligent switch, which enables control of the intelligent switch in multiple ways.
[0004] To achieve the above objectives, the present invention adopts the following technical solution:
[0005] A control system for an intelligent switch, the system comprising an automatic control unit, a real-time clock, a BA control circuit, a first isolator, a controller, a second isolator, a manual controller, a buffer, a relay driver, and a relay;
[0006] Automatic control and real-time clock are connected to the controller via a communication interface. Automatic control enables remote control, while the real-time clock enables timed switching. The BA control circuit is connected to the first isolator and the controller. The controller outputs control signals and monitors various control states. The controller is also connected to the second isolator and the manual controller. The outputs of the first and second isolators are connected to a buffer and also fed back to the controller. The combined control signal output from the first and second isolators is output to the buffer and fed back to the controller for detection of the current combined state of multiple control signals. The isolators prevent mutual interference between different control modes. The manual controller is used to manually control the opening and closing of relays. The buffer is connected to the relay driver and aggregates signals from multiple control modes. The buffer is also connected to the BA control circuit to provide feedback on the state of relay control signals. The relay driver converts weak signals into relay drive signals and is connected to relays. Relays are used for high-voltage on / off control.
[0007] Furthermore, the relay drive circuit is specifically as follows: the input level Y1 is connected to the input terminal of inverter U5 and one end of resistor R4, and also to one end of capacitor C3. The other end of resistor R4 is connected to the positive terminal of diode D6, and the negative terminal of diode D6 is grounded. The output terminal of inverter U5 is connected to one end of capacitor C2. The other end of capacitor C2 is connected to one input terminal INA of relay drive chip U3, and also to one end of resistor R2 and the negative terminal of diode D3. The other end of resistor R2 is grounded, and the positive terminal of diode D3 is grounded. The other end of capacitor C3 is connected to another input terminal INB of relay drive chip U3, and also to one end of resistor R5 and the negative terminal of diode D5. The other end of resistor R5 is grounded, and the positive terminal of diode D5 is grounded. One output port OUTA of relay drive chip U3 is connected to port 1 of relay power supply interface P1, and the other output port OUTB of relay drive chip U3 is connected to port 2 of relay power supply interface P1. Relay drive chip U3 also includes a power supply port and a ground terminal.
[0008] Furthermore, R4 and D6 are control status indicator circuits that display the current control status. The inverter is used to generate a signal that is opposite to the level of Y1. C2, C3, R2, and R5 are edge capture pulse circuits. D3 and D5 are limit circuits to prevent negative pulses from damaging the relay driver chip U3. U3 is driven by the preceding pulse signal. P1 is the relay power supply interface.
[0009] Furthermore, the first isolator and the second isolator together form an isolation circuit. Specifically, the isolation circuit is as follows: the control signal BA_CON output by the BA control circuit is input to the positive terminal of diode D2, the negative terminal of diode D2 is connected to one end of resistor R1, the other end of resistor R1 is connected to one end of resistor R3 and the output terminal, the controller's control signal CON is input to the positive terminal of diode D4, the negative terminal of diode D4 is connected to the other end of resistor R3, and the output terminal outputs a summary control signal CON_STATE. The summary control signal is output to the buffer and fed back to the controller.
[0010] Furthermore, the manual control module includes two switches: one for control mode selection and one for on / off control.
[0011] Furthermore, the real-time clock circuit has two power supply methods: system power supply and button battery power supply.
[0012] Furthermore, the control priority is: manual > controller = BA control circuit.
[0013] The beneficial technical effects of this invention are as follows:
[0014] This invention provides a control system for an intelligent switch, comprising automatic control, a real-time clock, a BA control circuit, a first isolator, a controller, a second isolator, a manual controller, a buffer, a relay driver, and a relay. The relay switch is controlled by multiple control methods, including automatic control, timed control, and manual control. These control methods are prioritized to ensure that manual control has the highest priority. The control status can also be monitored. This solution uses a pulse extraction circuit, enabling the relay driver circuit to drive the magnetic latching relay with a single signal. Compared to the traditional method that requires two drive signals to generate positive and negative pulse currents to control the magnetic latching relay, this invention offers more convenient and efficient control, enabling multiple control methods. Furthermore, the high-precision real-time clock circuit improves power supply quality. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a schematic diagram of the structure of a control system for an intelligent switch provided in an embodiment of the present invention;
[0017] Figure 2 This is a schematic diagram of the structure of the relay driving circuit provided in an embodiment of the present invention;
[0018] Figure 3 This is a schematic diagram of the isolation circuit provided in an embodiment of the present invention;
[0019] Figure 4 This is a schematic diagram of the structure of the manual control module provided in an embodiment of the present invention;
[0020] Figure 5 This is a schematic diagram of the structure of the real-time clock circuit provided in an embodiment of the present invention. Detailed Implementation
[0021] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0022] This invention provides a control system for an intelligent switch, such as... Figure 1As shown, the system includes automatic control, real-time clock, BA control circuit, first isolator, controller, second isolator, manual controller, buffer, relay driver and relay.
[0023] The automatic control system connects to the controller via communication interfaces, including Bluetooth and Wi-Fi. A real-time clock communicates with the controller via IIC. The automatic control system enables remote control, while the real-time clock enables timed on / off switching. The BA (Building Automation) control circuit is a method of building power control, providing both control and feedback functions. The BA control circuit connects to the first isolator and the controller. The controller, which can be a microcontroller, outputs control signals and monitors various control states, including the current control signal state, BA control signal state, manual control mode state, and manual control state. The controller also connects to the second isolator and the manual controller. The outputs of both the first and second isolators are connected to a buffer and also to the controller via feedback. The combined control signal output from the first and second isolators is output to the buffer and fed back to the controller. The controller is used to detect the current state of the combined multiple control signals. The isolators are used to prevent mutual interference between various control modes. The manual controller is used to manually control the opening and closing of the relay. The manual controller has the highest priority. The buffer is connected to the relay driver. The buffer is used to collect signals from multiple control modes. The buffer can be an inverter. The buffer is also connected to the BA control circuit to provide feedback to the BA control circuit on the state of the relay control signal. The relay driver converts the weak signal into the relay drive signal. The relay driver is connected to the relay. The relay is used to control the on / off control of high voltage. It is generally a magnetic latching relay to achieve low heat generation and durability.
[0024] This invention primarily enables the on / off control of relays. Users can control the relays automatically, such as via Bluetooth or network control from a mobile phone. Timed control is also available, allowing users to set the on / off time (implemented via a real-time clock), for example, turning on lights at 7 PM and turning them off at 7 AM. It can also be integrated into a Building Automation (BA) system for control. Manual control has the highest priority; when the above control methods fail, manual control can be used.
[0025] like Figure 2As shown, the relay drive circuit is as follows: the input level Y1 is connected to the input terminal of inverter U5 and one end of resistor R4, and also to one end of capacitor C3. The other end of resistor R4 is connected to the positive terminal of diode D6, and the negative terminal of diode D6 is grounded. The output terminal of inverter U5 is connected to one end of capacitor C2. The other end of capacitor C2 is connected to one input terminal INA of relay drive chip U3, and also to one end of resistor R2 and the negative terminal of diode D3. The other end of resistor R2 is grounded, and the positive terminal of diode D3 is grounded. The other end of capacitor C3 is connected to another input terminal INB of relay drive chip U3, and also to one end of resistor R5 and the negative terminal of diode D5. The other end of resistor R5 is grounded, and the positive terminal of diode D5 is grounded. One output port OUTA of relay drive chip U3 is connected to port 1 of relay power supply interface P1, and the other output port OUTB of relay drive chip U3 is connected to port 2 of relay power supply interface P1. Relay drive chip U3 also includes a power supply port and a ground terminal.
[0026] R4 and D6 are control status indicator circuits, displaying the current control status. The inverter uses a 74LS14 to generate a signal opposite to the Y1 level. The low level is 0V, and the high level is the power supply voltage of the 74LS14, which is generally 5V. C2, C3, R2, and R5 are edge capture pulse circuits. D3 and D5 are limit circuits to prevent negative pulses from damaging U3. U3 is a relay driver chip, driven by the preceding pulse signal. P1 is the relay power supply interface.
[0027] The first and second isolators have the same structure, both consisting of a diode and a resistor. Together, they form an isolation circuit, such as... Figure 3 As shown, the isolation circuit is as follows: the control signal BA_CON output from the BA control circuit is input to the positive terminal of diode D2. The negative terminal of diode D2 is connected to one end of resistor R1. The other end of resistor R1 is connected to one end of resistor R3 and the output terminal. The controller's control signal CON is input to the positive terminal of diode D4. The negative terminal of diode D4 is connected to the other end of resistor R3. The output terminal outputs a summary control signal CON_STATE. This summary control signal is output to a buffer and fed back to the controller. The controller can detect the current state after summing multiple control signals. The isolation circuit utilizes the unidirectional conduction characteristic of diodes to ensure that each control signal can only control in one direction and will not affect each other.
[0028] like Figure 4 As shown, the manual control module includes two switches: a control mode selection switch and a switch control switch. S1 is the control mode selection switch, and diode D7 is a status indicator light. When the manual control mode is selected, the indicator light is on. At the same time, the status of the relay switch is controlled by the switch control switch S2. Manual control has the highest priority.
[0029] like Figure 5 As shown, the real-time clock circuit uses the RX8010 clock chip, which integrates a crystal oscillator and features high precision with a monthly error of less than 30 seconds. It is powered by two methods: system power supply and button battery power supply. It can realize power-off timing function and communicates with the controller through IIC. The button battery holder is used to connect the button battery and provide power to the clock circuit after the 220V power is cut off. C8 is a bypass capacitor used to improve the power supply quality of the clock circuit.
[0030] The controller can be a microcontroller circuit, such as STC's STC8H8K64U, which integrates a variety of peripherals, such as USB, serial port, IIC, SPI, comparator, timer, etc.
[0031] Control priority: Manual > Controller = BA control circuit. In automatic mode, the controller or BA control circuit is OR logic. Manual has the highest priority to prevent the user from manually controlling the relay switch after the microcontroller program crashes.
[0032] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A control system for an intelligent switch, characterized in that, The system includes automatic control, real-time clock, BA control circuit, first isolator, controller, second isolator, manual controller, buffer, relay driver and relay; Automatic control and real-time clock are connected to the controller via a communication interface. Automatic control enables remote control, while the real-time clock enables timed switching. The BA control circuit is connected to the first isolator and the controller. The controller outputs control signals and monitors various control states. The controller is also connected to the second isolator and the manual controller. The outputs of the first and second isolators are connected to a buffer and also fed back to the controller. The combined control signal output from the first and second isolators is output to the buffer and fed back to the controller for detection of the current combined state of multiple control signals. The isolators prevent mutual interference between different control modes. The manual controller is used to manually control the opening and closing of relays. The buffer is connected to the relay driver and aggregates signals from multiple control modes. The buffer is also connected to the BA control circuit to provide feedback on the state of relay control signals. The relay driver converts weak signals into relay drive signals and is connected to relays. Relays are used for high-voltage on / off control.
2. The control system for the intelligent switch according to claim 1, characterized in that, The relay drive circuit is as follows: the input level Y1 is connected to the input terminal of inverter U5 and one end of resistor R4, and also to one end of capacitor C3. The other end of resistor R4 is connected to the positive terminal of diode D6, and the negative terminal of diode D6 is grounded. The output terminal of inverter U5 is connected to one end of capacitor C2. The other end of capacitor C2 is connected to one input terminal INA of relay driver chip U3, and also to one end of resistor R2 and the negative terminal of diode D3. The other end of resistor R2 is grounded, and the positive terminal of diode D3 is grounded. The other end of capacitor C3 is connected to another input terminal INB of relay driver chip U3, and also to one end of resistor R5 and the negative terminal of diode D5. The other end of resistor R5 is grounded, and the positive terminal of diode D5 is grounded. One output port OUTA of relay driver chip U3 is connected to port 1 of relay power supply interface P1, and the other output port OUTB of relay driver chip U3 is connected to port 2 of relay power supply interface P1. Relay driver chip U3 also includes a power supply port and a ground terminal.
3. The control system for the intelligent switch according to claim 2, characterized in that, R4 and D6 are control status indicator circuits that display the current control status. The inverter is used to generate a signal that is opposite to the level of Y1. C2, C3, R2 and R5 are edge capture pulse circuits. D3 and D5 are limit circuits to prevent negative pulses from damaging the relay driver chip U3. U3 is driven by the preceding pulse signal. P1 is the relay power supply interface.
4. The control system for the intelligent switch according to claim 1, characterized in that, The first and second isolators together form an isolation circuit. The isolation circuit is as follows: the control signal BA_CON output from the BA control circuit is input to the positive terminal of diode D2. The negative terminal of diode D2 is connected to one end of resistor R1. The other end of resistor R1 is connected to one end of resistor R3 and the output terminal. The control signal CON from the controller is input to the positive terminal of diode D4. The negative terminal of diode D4 is connected to the other end of resistor R3. The output terminal outputs a summary control signal CON_STATE. The summary control signal is output to the buffer and fed back to the controller.
5. The control system for the intelligent switch according to claim 1, characterized in that, The manual control module includes two switches: one for control mode selection and one for on / off control.
6. The control system for the intelligent switch according to claim 1, characterized in that, The real-time clock circuit has two power supply methods: system power supply and button battery power supply.
7. The control system for the intelligent switch according to claim 1, characterized in that, The control priority is: manual > controller = BA control circuit.