Switch control system
By introducing electrical connection between the MCU and the relay in the switch control system, the problem of changes in the operating state of the equipment during the main control chip restart is solved, the control accuracy and restart efficiency are improved, and the cost of MCU control is reduced.
Patent Information
- Application Number
- CN202421552387.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2034-07-02
AI Technical Summary
In smart home scenarios, when the main control chip of the switch control system is restarted, the working status of various smart home devices connected to the smart switch device changes, and the control accuracy is low.
By introducing a microcontroller unit MCU into the switch control system, the MCU is electrically connected to the main control chip and relay. The MCU controls the relay when the main control chip is restarted, keeping the equipment working state unchanged, and directly restarting the main control chip through the reset key to avoid the MCU participating in the restart process.
It effectively improves the control efficiency and accuracy of the switch control system, avoids the problem of changing the working state of the equipment when the main control chip is restarted, and at the same time improves the system restart efficiency and reduces the cost of MCU control.
Smart Images

Figure CN222672201U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automatic control technology, and in particular to a switch control system. Background Art
[0002] With the rapid development of science and technology and living standards, smart homes are widely used in people's lives. In smart home scenarios, the working status of various smart home devices (such as smart lamps, smart curtains, smart air conditioners, etc.) connected to smart switch devices can be controlled by a switch control system.
[0003] However, when the working status of various smart home devices connected to the smart switch device is controlled by the switch control system, since the main control chip of the switch control system is directly connected to the relay, when the main control chip is restarted, the working status of the various smart home devices connected to the smart switch device changes, resulting in low control accuracy. Utility Model Content
[0004] In view of this, it is necessary to provide a switch control system that can solve the technical problem of low control accuracy caused by changes in the working states of various smart home devices connected to the smart switch device when the main control chip is restarted.
[0005] An embodiment of the present application provides a switch control system, which includes: a main control chip, a micro control unit MCU, a relay and a reset button, wherein the main control chip is electrically connected to the relay through the MCU, the main control chip is electrically connected to the reset button, the reset button is used to restart the main control chip, the relay is electrically connected to a device electrically connected to the switch, and the MCU is used to control the working state of the device electrically connected to the switch to remain unchanged when the main control chip is restarted.
[0006] The technical effects of the embodiments of the present application include: the main control chip of the switch control system is electrically connected to the relay through the MCU, and the relay is controlled by the MCU, which can effectively share the processing tasks of the main control chip, improve the control efficiency of the switch control system, and avoid the problem that the working state of the device electrically connected to the switch changes when the main control chip is restarted, thereby improving the control accuracy. By setting a reset button in the switch control system to be connected to the main control chip, when the reset button is used to restart the main control chip, MCU control is not required, thereby improving the restart efficiency of the switch control system and saving the cost of the implementation method of MCU control.
[0007] In some embodiments of the present application, the main control chip includes a WiFi module and / or a Bluetooth module.
[0008] In some embodiments of the present application, the switch control system further includes an interface, and the MCU is electrically connected to an external device through the interface.
[0009] In some embodiments of the present application, the switch control system further includes an information acquisition module, which is electrically connected to the main control chip, and the information acquisition module is used to send the acquired information to the main control chip.
[0010] In some embodiments of the present application, the information acquisition module includes a temperature sensor and / or a humidity sensor.
[0011] In some embodiments of the present application, the switch control system further includes a voice chip, a microphone and a speaker, the microphone and the speaker are electrically connected to the voice chip, and the voice chip is electrically connected to the main control chip.
[0012] In some embodiments of the present application, the voice chip includes an offline voice chip.
[0013] In some embodiments of the present application, the switch control system further includes a display screen, and the display screen is electrically connected to the main control chip.
[0014] In some embodiments of the present application, the switch control system further includes a ZigBee module, and the ZigBee module is electrically connected to the main control chip.
[0015] In some embodiments of the present application, the switch control system is communicatively connected to a cloud server. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of the circuit structure of a switch control system in an embodiment is shown.
[0017] Figure 2 A circuit structure diagram of a switch control system in another embodiment is shown.
[0018] Main component symbols
[0019] Switch control system 100
[0020] Main control chip 11
[0021] WiFi module 110
[0022] Bluetooth module 111
[0023] MCU 12
[0024] Relay 13
[0025] Reset button 14
[0026] Interface 15
[0027] Information collection module 16
[0028] Temperature sensor 160
[0029] Humidity sensor 161
[0030] Voice chip 17
[0031] Offline voice chip 170
[0032] Microphone 18
[0033] Speaker 19
[0034] Display 20
[0035] ZigBee Module 21
[0036] Cloud Server 22
[0037] Zero crossing detection module 23
[0038] The following specific embodiments will further illustrate the present application in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0039] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0040] It should be noted that when a component is referred to as being "mounted on" another component, it may be directly on the other component or there may be a central component. When a component is considered to be "set on" another component, it may be directly set on the other component or there may be a central component at the same time.
[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art to which the present application belongs. The terms used herein in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0042] Some embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0043] See also Figure 1, an embodiment of the present application provides a switch control system 100, the switch control system 100 includes: a main control chip 11, a micro control unit MCU12, a relay 13 and a reset button 14. The main control chip 11 is electrically connected to the relay 13 through the MCU12. The main control chip 11 is electrically connected to the reset button 14, and the reset button 14 is used to restart the main control chip 11. The relay 13 is electrically connected to the device electrically connected to the switch. The MCU12 is used to control the working state of the device electrically connected to the switch to remain unchanged when the main control chip 11 is restarted, wherein the restart includes a simple device restart or device reset, the initialization of the main control chip 11, etc. Specifically, the key restart is to press the restart button to set the restart signal in the circuit to a low level, thereby realizing the restart operation of the circuit. When the restart button is pressed, a path is formed between the button and the circuit, causing the trigger or gate circuit in the restart circuit to be triggered, and the output signal is set to a low level. This low-level restart signal will be transmitted to various electronic components in the circuit, such as CPU, memory, peripherals, etc., to notify them to perform initialization operations.
[0044] In some embodiments of the present application, the main control chip 11 of the switch control system 100 is electrically connected to the relay 13 through the MCU 12, and the relay 13 is controlled by the MCU 12, which can effectively share the processing tasks of the main control chip 11, improve the control efficiency of the switch control system 100, and avoid the problem that the working state of the device electrically connected to the switch changes when the main control chip 11 restarts, thereby improving the control accuracy. By setting a reset button 14 in the switch control system 100 and connecting it to the main control chip 11, when the reset button 14 is used to restart the main control chip 11, there is no need for MCU 12 control, which improves the restart efficiency of the switch control system 100 and saves the cost of implementing the device restart solution through MCU 12.
[0045] In some embodiments of the present application, since the MCU12 with a reset function has a relatively high cost, and when the switch control system 100 is restarted through the MCU12, there may be problems such as reset delay or incomplete reset. In this embodiment, by electrically connecting the main control chip 11 to the reset button 14, the reset button 14 is used to restart the main control chip 11. Without the participation of the MCU12, the restart process can be triggered immediately, which has the advantages of fast response, convenient operation, system security, resource saving, low cost, high flexibility, strong stability and improved performance, thereby improving the restart efficiency of the switch control system 100 and reducing costs.
[0046] In some embodiments of the present application, the relay 13 is electrically connected to a device electrically connected to the switch. The relay 13 may include a 2-way relay.
[0047] In some embodiments of the present application, in actual applications, since the switch control system 100 restarts the main control chip 11 when performing a remote upgrade (Over-the-Air Technology, OTA), if the main control chip 11 is directly connected to the relay 13, the working state of the device electrically connected to the switch will change, and the control accuracy of the switch control system 100 is low. For example, if the device electrically connected to the switch is a lamp, during the process of restarting the main control chip 11 during the OTA upgrade, the lamp will go out as the main control chip 11 restarts. In this embodiment, since the restart of the main control chip 11 does not affect the control of the MCU 12, the main control chip 11 is connected to the relay 13 through the MCU 12. During the process of restarting the main control chip 11 during the OTA upgrade, the relay 13 is controlled by the MCU 12, which can avoid the working state of the device electrically connected to the switch from changing, thereby improving the control accuracy of the switch control system 100.
[0048] In some embodiments of the present application, see Figure 2 As shown, the switch control system 100 also includes a zero-crossing detection module 23, which is electrically connected to the MCU 12. The zero-crossing detection module 23 feeds back the zero pulse signal to the MCU 12, and the MCU 12 controls the relay 13 to trigger the opening or closing of the circuit at the zero-crossing point of the AC sinusoidal current pulse to avoid damage to the relay 13 caused by the instantaneous large current pulse, thereby causing the switch control system 100 to fail.
[0049] In some embodiments of the present application, the switch control system 100 further includes an interface 15, and the MCU 12 is electrically connected to an external device via the interface 15. The interface 15 may include a 485 interface.
[0050] In some embodiments of the present application, the MCU 12 is electrically connected to the external device via the interface 15 , and the MCU 12 can effectively share the processing tasks of the main control chip 11 , and is used to control the external device, thereby improving the operating efficiency of the switch control system 100 .
[0051] In some embodiments of the present application, the main control chip 11 includes a WiFi module 110 and / or a Bluetooth module 111. By integrating the WiFi module 110 and / or the Bluetooth module 111 in the main control chip 11, data can be exchanged with a device electrically connected to the switch through the WiFi module 110 and / or the Bluetooth module 111, thereby realizing remote control.
[0052] In some embodiments of the present application, the switch control system 100 further includes a ZigBee module 21, and the ZigBee module 21 is electrically connected to the main control chip 11. The ZigBee module 21 is used to wirelessly communicate with the main control chip 11, and in the wireless communication mode, transmits control information of a device electrically connected to the switch to achieve control of the device electrically connected to the switch.
[0053] In some embodiments of the present application, the switch control system 100 is communicatively connected to the cloud server 22. The user can communicate with the cloud server 22 through a mobile phone APP program to view the monitoring data displayed by the main control chip 11 on the mobile phone APP program, thereby realizing remote control of the device electrically connected to the switch.
[0054] In some embodiments of the present application, the switch control system 100 further includes an information acquisition module 16, which is electrically connected to the main control chip 11, and is used to send the collected information to the main control chip 11. The information acquisition module 16 may include a temperature sensor 160 and / or a humidity sensor 161, which is not limited in this embodiment. For example, the information acquisition module 16 may also include a GPS sensor, an optical sensor, an acoustic sensor, etc. In this solution, the temperature sensor 160, the humidity sensor 161 and the reset button 14 are all passive components, and do not need to communicate with the main control chip in a two-way manner, so that the operation efficiency of the entire system is higher.
[0055] In some embodiments of the present application, the information acquisition module 16 is directly connected to the main control chip 11 without the participation of the MCU 12 , which can improve the operating efficiency of the switch control system 100 .
[0056] In some embodiments of the present application, the switch control system 100 further includes a voice chip 17, a microphone 18 and a speaker 19, wherein the microphone 18 and the speaker 19 are electrically connected to the voice chip 17, and the voice chip 17 is electrically connected to the main control chip 11. The voice chip 17 may include an offline voice chip 170.
[0057] In some embodiments of the present application, the microphone 18 is used to record the user's voice, and the microphone 18 may include dual microphones. The voice chip 17 is used to process the received voice. The speaker 19 is used to broadcast the voice processed by the voice chip 17.
[0058] In some embodiments of the present application, by setting a voice chip 17, a microphone 18 and a speaker 19 in the switch control system 100, the switch control system 100 can realize functions such as voice recognition, voice control, and human-computer dialogue. For example, the microphone 18 sends the recorded user's voice "I want to adjust the brightness of lamp A" to the voice chip 17, and the voice chip 17 converts the user's voice into a text instruction and sends it to the main control chip 11. The main control chip 11 parses the text instruction and controls the brightness adjustment of lamp A. At the same time, the voice chip 17 generates a broadcast instruction according to the text instruction, and sends the broadcast instruction "OK" to the speaker 19 for broadcasting.
[0059] In this embodiment, the main control chip 11 is directly connected to the voice chip 17 , and the voice chip 17 directly converts the user's voice into text instructions and sends them to the main control chip 11 , thereby improving the operating efficiency of the switch control system 100 .
[0060] In some embodiments of the present application, the switch control system 100 further includes a display screen 20, and the display screen 20 is electrically connected to the main control chip 11. The display screen 20 is used to display the execution task of the device connected to the switch transmitted by the main control chip 11. The display screen 20 is a touch display screen 20, and the task can be executed by single-point or multi-point touch display screen 20. For example, the execution task of the B light connected to the switch transmitted by the main control chip 11 is to turn on the B light, and the B light can be turned on by single-point touch display screen 20.
[0061] In some embodiments of the present application, the display screen 20 is directly connected to the main control chip 11, and the MCU 12 does not need to participate in the control, thereby improving the operating efficiency of the switch control system 100.
[0062] Those skilled in the art should recognize that the above embodiments are only used to illustrate the present application, and are not used as limitations on the present application. As long as they are within the spirit of the present application, appropriate changes and modifications to the above embodiments are within the scope of the present application.
Claims
1. A switch control system, characterized in that: The switch control system includes: a main control chip, a micro control unit MCU, a relay and a reset button, the main control chip is electrically connected to the relay through the MCU, the main control chip is electrically connected to the reset button, the reset button is used to restart the main control chip, the relay is electrically connected to the device electrically connected to the switch, and the MCU is used to control the working state of the device electrically connected to the switch to remain unchanged through the relay when the main control chip is restarted.
2. The switch control system according to claim 1, characterized in that: The main control chip includes a WiFi module and / or a Bluetooth module.
3. The switch control system according to claim 1, characterized in that: The switch control system further includes an interface, and the MCU is electrically connected to an external device via the interface.
4. The switch control system according to claim 1, characterized in that: The switch control system further includes an information acquisition module, which is electrically connected to the main control chip and is used to send the acquired information to the main control chip.
5. The switch control system according to claim 4, characterized in that: The information acquisition module includes a temperature sensor and / or a humidity sensor.
6. The switch control system according to claim 1, characterized in that: The switch control system further includes a voice chip, a microphone and a speaker. The microphone and the speaker are electrically connected to the voice chip, and the voice chip is electrically connected to the main control chip.
7. The switch control system according to claim 6, characterized in that: The voice chip includes an online and offline voice chip.
8. The switch control system according to claim 1, characterized in that: The switch control system further includes a display screen, and the display screen is electrically connected to the main control chip.
9. The switch control system according to claim 1, characterized in that: The switch control system further includes a ZigBee module, and the ZigBee module is electrically connected to the main control chip.
10. The switch control system according to claim 1, characterized in that: The switch control system is communicatively connected to the cloud server.