An intelligent building switch control system based on a single IoT MCU

Intelligent building switch control is realized through a single Internet of Things MCU and electromechanical transmission device, which solves the problems of high cost and difficult maintenance of existing solutions, and realizes low-cost and low-difficulty switch control. It is suitable for a variety of light switches, improving smart buildings popularization.

CN113504752BActive Publication Date: 2024-12-13ANHUI LEADER TECHNOLOGY INNOVATION DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110777084.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-09
Publication Date
2024-12-13
Estimated Expiration
2041-07-09

Smart Images

  • Figure CN113504752B_ABST
    Figure CN113504752B_ABST
Patent Text Reader

Abstract

The present invention relates to an intelligent building switch control system based on a single Internet of Things MCU, comprising a control mainframe compartment, an electromechanical transmission device and a steering gear actuator, wherein the control mainframe compartment and the steering gear actuator are both arranged on the electromechanical transmission device; a power supply, an Internet of Things MCU, a motor drive circuit and a steering gear drive circuit are arranged in the control mainframe compartment; the power supply is electrically connected to the Internet of Things MCU, and the Internet of Things MCU is electrically connected to the motor drive circuit and the steering gear drive circuit respectively; the motor drive circuit is electrically connected to the electromechanical transmission device, and the steering gear drive circuit is electrically connected to the steering gear actuator; the electromechanical transmission device is synchronously driven and connected to the steering gear actuator. The present invention uses the control mode of a single Internet of Things MCU, and adopts an external mechanical structure to realize the switch light action, the circuit structure is simple, and the cost is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent buildings, and in particular to an intelligent building switch control system based on a single Internet of Things MCU. Background Art

[0002] After its advent, dedicated IoT chips (or IoT MCUs) have had an important impact on the development of the IoT in today's society. They specifically integrate Internet-related functions while retaining the basic functions of ordinary microcontrollers. Therefore, dedicated IoT MCUs have significantly occupied the market.

[0003] In the field of smart buildings, a large number of building switch control solutions based on IoT chips have emerged. These solutions are characterized by adding functional module units of IoT chips, but most of them use additional MCUs for control rather than independent work of IoT chips, which is costly. In addition, the building switch control solutions on the market all use the electrical implementation method of connecting switch control elements such as relays in series into the light circuit to achieve the switch light action. However, these implementation methods easily lead to troublesome installation and subsequent maintenance of the controller, further increasing the cost of use, so the building switch control solution has never been popularized. Summary of the invention

[0004] The technical problem to be solved by the present invention is to address the deficiencies of the above-mentioned prior art and provide an intelligent building switch control system based on a single IoT MCU. The control method of the single IoT MCU is used, and an external mechanical structure is adopted to realize the switch light action. The circuit structure is simple and the cost is effectively reduced.

[0005] The technical solution of the present invention to solve the above technical problems is as follows:

[0006] An intelligent building switch control system based on a single IoT MCU, comprising a control main unit compartment, an electromechanical transmission device and a steering gear actuator, wherein the control main unit compartment and the steering gear actuator are both arranged on the electromechanical transmission device;

[0007] The control host compartment is provided with a power supply, an Internet of Things MCU, a motor drive circuit and a steering gear drive circuit; the power supply is electrically connected to the Internet of Things MCU, and the Internet of Things MCU is electrically connected to the motor drive circuit and the steering gear drive circuit respectively; the motor drive circuit is electrically connected to the electromechanical transmission device, and the steering gear drive circuit is electrically connected to the steering gear actuator;

[0008] The electromechanical transmission device is synchronously connected with the steering gear actuator.

[0009] The beneficial effects of the present invention are as follows: the power supply is directly powered by the Internet of Things MCU, and the power is indirectly supplied to the steering gear drive circuit and the motor drive circuit respectively through the Internet of Things MCU. By controlling the operation of the motor drive circuit by controlling a single Internet of Things MCU in the main engine compartment, the electromechanical transmission device can be driven to start transmission work. Since the electromechanical transmission device is synchronously connected with the steering gear actuator, the steering gear actuator can be driven to move synchronously with the movement of the components in the electromechanical transmission device, and then the steering gear actuator can be driven to move to the light switch (i.e., the target light switch) where the switching action needs to be executed. Then, the operation of the steering gear drive circuit is controlled by the Internet of Things MCU, and the steering gear actuator can be driven to start executing the switching action on the target light switch, thereby realizing the switch control of the intelligent building.

[0010] The intelligent building switch control system based on a single IoT MCU of the present invention uses a control mode in which a single IoT MCU works independently, does not require an additional MCU for control, reduces the number of MCU controllers, has a low chip cost, and uses an external mechanical structure to realize the switch light action. The circuit structure is simple, which effectively reduces the difficulty and cost of installation and maintenance. It can be applied to various light switches, has flexible and variable application scenarios, and has low popularization difficulty, giving intelligent buildings unlimited development space and market potential.

[0011] On the basis of the above technical solution, the present invention has the following improvements:

[0012] Further: the electromechanical transmission device comprises a motor, an optical axis, a slide, a conveyor belt, two synchronous wheels, and two first and second supports arranged oppositely; the motor is electrically connected to the motor drive circuit;

[0013] The slide is sleeved on the optical axis, and the two ends of the optical axis are respectively arranged on the two opposite sides of the first support and the second support, and the two synchronous wheels are also respectively arranged on the two opposite sides of the first support and the second support; a through groove is provided on the slide, and the conveyor belt is laid on the two synchronous wheels and passes through the slide through the through groove; a belt clamp is also provided on the slide at the through groove, and the slide is fixed to the conveyor belt through the belt clamp and moves synchronously with the conveyor belt; the motor is arranged on the first support, and the output shaft of the motor is transmission-connected with the synchronous wheel arranged on the side of the first support; the servo actuator is arranged at the upper end of the slide, and the control host compartment is arranged on the first support.

[0014] Further: the steering gear actuator comprises a mechanical arm and a steering gear both of which are arranged on the upper end of the slide;

[0015] The output shaft of the servo is transmission-connected to the mechanical arm, and the servo is electrically connected to the Internet of Things MCU via the servo drive circuit.

[0016] Further: the electromechanical transmission device also includes a first leveling component arranged on the second support.

[0017] Further: the intelligent building switch control system also includes a limit switch fixedly arranged on the side of the motor facing the slide, and the limit switch is electrically connected to the Internet of Things MCU.

[0018] Further: the intelligent building switch control system also includes an ultrasonic ranging sensor arranged on a side of the second support facing away from the first support, and the ultrasonic ranging sensor is electrically connected to the Internet of Things MCU.

[0019] Further: the power supply includes a lithium battery, a power management circuit, an LDO circuit, an external USB power supply interface, a lithium battery interface, a power management interface and an indicator light group;

[0020] The lithium battery is electrically connected to the power management circuit via the lithium battery interface, and the power management circuit is electrically connected to the Internet of Things MCU and the motor drive circuit respectively via the LDO circuit and the power management interface in turn, and the power management circuit is also electrically connected to the external USB power supply interface and the indicator light group respectively.

[0021] Further: a display circuit is also provided in the control host compartment, and an OLED display screen is provided on the surface of the control host compartment; the OLED display screen is electrically connected to the Internet of Things MCU through the display circuit.

[0022] Further: the control host compartment is also provided with an I / O expansion circuit, a key circuit and an audible and visual alarm circuit, and the surface of the control host compartment is provided with a key assembly;

[0023] The key assembly is electrically connected to the Internet of Things MCU through the key circuit and the I / O expansion circuit in turn, and the sound and light alarm circuit is electrically connected to the Internet of Things MCU through the I / O expansion circuit.

[0024] Further: the IoT MCU is specifically a WIFI MCU of the ESP8266EX model. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 This is a schematic diagram of electrical connections of an intelligent building switch control system based on a single IoT MCU in an embodiment of the present invention;

[0026] Figure 2 It is a structural schematic diagram of an intelligent building switch control system based on a single Internet of Things MCU in an embodiment of the present invention;

[0027] Figure 3This is a complete electrical connection diagram of another intelligent building switch control system based on a single IoT MCU in an embodiment of the present invention;

[0028] Figure 4 Schematic diagram of electrical connection of a power source in an embodiment of the present invention;

[0029] Figure 5 It is a model schematic diagram of the front-end human-machine interaction interface control terminal and the back-end management device corresponding to the intelligent building switch control system in the embodiment of the present invention.

[0030] In the accompanying drawings, the components represented by the reference numerals are listed as follows:

[0031] 1. Control main engine compartment, 2. Electromechanical transmission device, 3. Servo actuator, 4. Limit switch, 5. Ultrasonic ranging sensor, 101. OLED display screen, 102. Key assembly, 103. Switch button, 104. Second leveling assembly, 201. Motor, 202. Optical axis, 203. Slide, 204. Conveyor belt, 205. Synchronous wheel, 206. Through groove, 207. Belt clamp, 208. First support, 209. Second support, 210. First leveling assembly, 211. Seat flange coupling, 212. Linear bearing. DETAILED DESCRIPTION

[0032] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0033] The present invention will be described below in conjunction with the accompanying drawings.

[0034] Example, such as Figure 1 and Figure 2 As shown, an intelligent building switch control system based on a single IoT MCU includes a control host compartment 1, an electromechanical transmission device 2 and a steering gear actuator 3, wherein the control host compartment 1 and the steering gear actuator 3 are both arranged on the electromechanical transmission device 2;

[0035] The control host compartment 1 is provided with a power supply, an Internet of Things MCU, a motor drive circuit and a steering gear drive circuit; the power supply is electrically connected to the Internet of Things MCU, and the Internet of Things MCU is respectively connected to the motor drive circuit and the steering gear drive circuit; the motor drive circuit is electrically connected to the electromechanical transmission device 2, and the steering gear drive circuit is electrically connected to the steering gear actuator 3;

[0036] The electromechanical transmission device 2 is synchronously connected with the steering gear actuator 3 .

[0037] The working principle of the intelligent building switch control system based on a single IoT MCU in this embodiment is as follows:

[0038] The power supply is directly supplied by the IoT MCU, and the steering gear drive circuit and the motor drive circuit are indirectly powered by the IoT MCU respectively. By controlling the operation of the motor drive circuit by controlling a single IoT MCU in the main compartment, the electromechanical transmission device can be driven to start transmission work. Since the electromechanical transmission device is synchronously connected with the steering gear actuator, the steering gear actuator can be driven to move synchronously with the movement of the components in the electromechanical transmission device, and then the steering gear actuator can be driven to move to the light switch (i.e., the target light switch) where the switching action needs to be executed. Then, the operation of the steering gear drive circuit is controlled by the IoT MCU, and the steering gear actuator can be driven to start executing the switching action on the target light switch, thereby realizing the switch control of the intelligent building.

[0039] The smart building switch control system based on a single IoT MCU in this embodiment uses a control method in which a single IoT MCU works independently. No additional MCU is required for control, the number of MCU controllers is reduced, the chip cost is low, and an external mechanical structure is used to realize the switch light action. The circuit structure is simple, which effectively reduces the difficulty and cost of installation and maintenance. It can be applied to various light switches, the application scenarios are flexible and changeable, and the difficulty of popularization is low, which gives smart buildings unlimited development space and market potential.

[0040] Specifically, in this embodiment, a main control PCB and a power supply PCB are provided in the control host compartment, the Internet of Things MCU, the motor drive circuit and the servo drive circuit are all arranged on the main control PCB, the power supply is arranged on the power supply PCB, and power management interfaces are provided on the main control PCB and the power supply PCB. By docking the two power management interfaces, the power supply can directly supply power to the Internet of Things MCU and the motor drive circuit.

[0041] Specifically, the IoT MCU in this embodiment is specifically a WIFI MCU of the ESP8266EX model. This model of MCU integrates a 32-bit Tensilica processor, a standard digital peripheral interface, an antenna switch, a radio frequency balun, a power amplifier, a low noise amplifier, a filter, and a power management module. The CPU clock speed of the Tensilica processor can reach up to 160MHz, and supports a real-time operating system (RTOS) and a Wi-Fi protocol stack; only a few peripheral circuits are required, which can reduce the occupied PCB space; the operating temperature range is large, and it can maintain stable performance and can adapt to various operating environments; the power saving mode is suitable for various low-power application scenarios. Through this IoT MCU, it can ensure the realization of the low-cost and low-difficulty intelligent building switch control system based on a single IoT MCU in this embodiment.

[0042] Preferably, if Figure 2As shown, the electromechanical transmission device 2 includes a motor 201, an optical axis 202, a slide 203, a conveyor belt 204, two synchronous wheels 205, and two oppositely arranged first supports 208 and second supports 209; the motor 201 is electrically connected to the motor drive circuit;

[0043] The slide 203 is sleeved on the optical axis 202, and the two ends of the optical axis 202 are respectively arranged on the two side surfaces opposite to the first support 208 and the second support 209, and the two synchronous wheels 205 are also respectively arranged on the two side surfaces opposite to the first support 208 and the second support 209; a through slot 206 is provided on the slide 203, and the conveyor belt 204 is laid on the two synchronous wheels 205 and passes through the slide 203 through the through slot 206; a belt clamp 207 is also provided on the slide 203 at the through slot 206, and the slide 203 is fixed on the conveyor belt 204 through the belt clamp 207 and moves synchronously with the conveyor belt 204; the motor 201 is arranged on the first support 208, and the output shaft of the motor 201 is transmission-connected with the synchronous wheel 205 arranged on the side surface of the first support 208; the servo actuator 3 is arranged at the upper end of the slide 203, and the control host compartment 1 is arranged on the first support 208.

[0044] Through the motor driving circuit and the motor arranged on the first support, combined with two synchronous wheels, the synchronous wheel conveyor belt can be driven to start moving, and the slide is fixed on the conveyor belt by a belt clamp. When the conveyor belt moves, it drives the slide to move together, and the slide is sleeved on the optical axis, so when the slide moves with the conveyor belt, it can move along the optical axis; then the servo drive circuit drives the servo actuator to execute the switching action on the target light switch; based on the external physical mechanical method to realize the switching of smart building lights, the number of chips is reduced and the hardware cost is low; during installation, only the control host compartment needs to be attached to the wall, which reduces the installation cost and is conducive to maintaining the beauty of the home environment; and later inspection and maintenance only need to disassemble and inspect the electromechanical transmission device and the servo actuator, which is easy to operate and greatly reduces the dimensional difficulty and maintenance cost.

[0045] Specifically, in the two synchronous wheels of this embodiment, the synchronous wheel connected to the motor output shaft is the driving wheel, and the other is the driven wheel. The motor is a stepping motor, and the motor driving circuit is specifically a DRV8847 stepping motor driving module; the conveyor belt is a 2m conveyor belt; the optical axis is a linear optical axis with a surface roughness of ra0.10m to ra0.35m, and the number of optical axes can be set to one or more, such as Figure 2As shown, the number of optical axes 202 in this embodiment is two, and they are arranged in parallel along the horizontal direction. The two ends of the two optical axes 202 are fixed to the opposite sides of the two supports through a seat flange coupling 211, that is, there are four seat flange couplings 211 in this embodiment; both sides of the slide are sleeved on the optical axis through linear bearings 212. When there are two optical axes 202, the number of linear bearings 212 is four, as shown in FIG. Figure 2 The specific design of the motor drive circuit can adopt the conventional design in the prior art.

[0046] Preferably, if Figure 2 As shown, the steering gear actuator 3 includes a mechanical arm 301 and a steering gear 302 both of which are arranged on the upper end of the slide 203;

[0047] The output shaft of the servo 302 is transmission-connected to the mechanical arm 301 , and the servo 302 is electrically connected to the IoT MCU via the servo drive circuit.

[0048] When the servo actuator moves with the slide to the target light switch where the switching action needs to be executed, the operation of the servo drive circuit is controlled by the IoT MCU, the servo starts working, and then drives the robotic arm to flip the target light switch, realizing the switch control of smart buildings. It has high applicability to all types of light switches, and the physical implementation of controlling the light switch is flexible and adjustable, which can be applied to light switches of various appearances and has high universality.

[0049] Specifically, the number of servos and the number of robotic arms can be set to one or more. When multiple servos are set, all robotic arms and all servos are set in one-to-one correspondence, which can realize a multi-degree-of-freedom servo actuator and make the switching action of the light switch more flexible.

[0050] Preferably, if Figure 2 As shown, the electromechanical transmission device 2 further includes a first leveling component 210 disposed on the second support 209 .

[0051] The first leveling component adopts the mechanical leveling principle. When the entire intelligent building switch control system is installed on the wall, the first leveling component is manually operated and cooperates with the servo actuator on the slide to ensure that the switching action of the light switch is more precise. The principle is simple and the operation difficulty is low.

[0052] Specifically, Figure 2 As shown, the first leveling assembly 210 in this embodiment includes a pad and at least one leveling screw, the pad is arranged outside the second support 209, one end of each leveling screw passes through the second support 209 and abuts against the pad, and the other end of each leveling screw is provided with a leveling nut. The number of the above-mentioned leveling screws can be set and adjusted according to actual conditions.

[0053] Specifically, Figure 2 As shown, in this embodiment, at least one pair of second leveling components 104 is provided on the surface of the control main unit warehouse 1 , and each pair of the second leveling components 104 is symmetrically arranged relative to the center of the control main unit warehouse 1 .

[0054] Similarly, the at least one pair of second leveling components also adopts the mechanical leveling principle, and the manual operation of the second leveling components cooperates with the first leveling components and the servo actuator to achieve accurate switching action of the light switch. The number of pairs of second leveling components can be set according to actual conditions. For example, if the control main cabin in this embodiment is a square shell, a second leveling component is set on one pair of diagonal corners of the control main cabin, or a second leveling component is set on both pairs of diagonal corners (i.e., two pairs of second leveling components); the structure of the second leveling component is similar to that of the first leveling component, and the specific details are not repeated.

[0055] Preferably, if Figure 2 and Figure 3 As shown, the intelligent building switch control system further includes a limit switch 4 fixedly arranged on the side of the motor 201 facing the slide 203, and the limit switch 4 is electrically connected to the Internet of Things MCU.

[0056] By setting the limit switch on the motor, the zero point position of the motor moving axis can be determined, thereby avoiding motor overshoot and protecting the motor.

[0057] Specifically, a limit switch interface is provided on the main control PCB that controls the main host compartment, and a three-wire interface is provided for the limit switch through the limit switch interface to determine the zero point position of the motor moving shaft.

[0058] Preferably, if Figure 2 and Figure 3 As shown, the intelligent building switch control system further includes an ultrasonic ranging sensor 5 disposed on a side of the second support 209 facing away from the first support 208, and the ultrasonic ranging sensor 5 is electrically connected to the Internet of Things MCU.

[0059] The side of the second support facing away from the first support can be regarded as the front side of the entire intelligent building switch control system by default. The ultrasonic ranging sensor thereon can detect whether there is an object passing through its vicinity. Combined with the anti-theft device, it can achieve the anti-theft effect.

[0060] Specifically, an ultrasonic sensor interface is provided on the main control PCB of the control host warehouse, through which communication between the ultrasonic ranging sensor and the Internet of Things MCU is realized.

[0061] Preferably, if Figure 4As shown, the power supply includes a lithium battery, a power management circuit, an LDO circuit, an external USB power supply interface, a lithium battery interface, a power management interface and an indicator light group;

[0062] The lithium battery is electrically connected to the power management circuit via the lithium battery interface, and the power management circuit is electrically connected to the Internet of Things MCU and the motor drive circuit respectively via the LDO circuit and the power management interface in turn, and the power management circuit is also electrically connected to the external USB power supply interface and the indicator light group respectively.

[0063] Through the lithium battery and the lithium battery interface, the power supply access of the lithium battery is guaranteed. The power management circuit is the core component of the power supply. Through the power management circuit and the LDO circuit, the electric energy in the lithium battery can be used to provide the required power supply voltage for the Internet of Things MCU, the motor drive circuit and other devices directly connected to the power supply, so as to ensure the normal operation of each component; the power management circuit is also connected to the external USB power supply interface, which can be connected to the external power supply and use the electric energy of the external power supply for power supply without directly using the electric energy of the lithium battery. At the same time, based on the principle of the power management circuit, the connected electric energy can be stored in the lithium battery to realize the rechargeable function of the lithium battery, thereby realizing the external power supply mode and the lithium battery power supply mode, providing multi-mode power supply for the entire intelligent building switch control system, and having a wider range of applicable scenarios; the power management circuit is also electrically connected to the indicator light group, which can realize functions such as power supply operation status indication and charging status indication.

[0064] Specifically, each component in the above-mentioned power supply is installed in the power supply PCB; the number and type of indicator lights in the indicator light group can be selected and adjusted according to actual conditions. The indicator light group in this embodiment includes a power operation status indicator light and a charging status indicator light. When the power management circuit is working normally, the operation status indicator light is on, and when the power management circuit is abnormal, the operation status indicator light is off; when the power management circuit is working normally and there is a charging circuit flowing into the lithium battery, the charging status indicator light is on, and when there is no charging circuit flowing into the lithium battery, the charging status indicator light is off.

[0065] Specifically, the lithium battery in this embodiment is a 1S Li battery, and the power management circuit is specifically a BQ25896 power management chip, which can provide a 5V / 3A power supply and then provide a 3.3V / 3A power supply through an LDO circuit.

[0066] Preferably, a display circuit is further provided in the control host compartment 1, and an OLED display screen 101 is provided on the surface of the control host compartment 1; the OLED display screen 101 is electrically connected to the Internet of Things MCU through the display circuit.

[0067] By controlling the display circuit in the host compartment, the IoT MCU can control the content displayed on the OLED display.

[0068] Specifically, in this embodiment, the display circuit is a display interface on the main control PCB, and the OLED display screen is specifically a 0.96' OLED display module.

[0069] Preferably, the control host compartment 1 is further provided with an I / O expansion circuit, a key circuit and an audible and visual alarm circuit, and the surface of the control host compartment is provided with a key assembly 102;

[0070] The button assembly 102 is electrically connected to the Internet of Things MCU through the button circuit and the I / O expansion circuit in sequence, and the sound and light alarm circuit is electrically connected to the Internet of Things MCU through the I / O expansion circuit.

[0071] Through the above-mentioned I / O expansion circuit, other additional functions can be provided for the entire intelligent building switch control system, including switch or selection functions realized by key circuits and key components, and alarm and anti-theft functions realized by sound and light alarm circuits, etc., thereby improving the degree of intelligence.

[0072] Specifically, if Figure 2 As shown, the number of buttons in the button assembly 102 can be set according to actual conditions. In this embodiment, five touch switch buttons with independent I / O control are included; the button circuit and the sound and light alarm circuit are both arranged on the main control PCB, and the sound and light alarm circuit is also arranged corresponding to an LED lamp and a buzzer (not shown in the figure) arranged on the surface of the control host compartment 1. The LED lamp and the buzzer are electrically connected to the Internet of Things MCU through the sound and light alarm circuit and the I / O expansion circuit in turn. The I / O expansion circuit is specifically a PCF8574 I / O expansion module.

[0073] Specifically, if Figure 2 As shown, a switch button 103 is also provided on the surface of the control host compartment 1, and the switch button 103 is electrically connected to the power supply and the Internet of Things MCU respectively.

[0074] The entire intelligent building switch control system can be turned on and off by the switch button. For example, lightly pressing the switch button once turns it on, and long pressing it for 5 seconds turns it off. This implementation method is a prior art, and the specific details are not repeated here.

[0075] Specifically, in this embodiment, Figure 2The physical structure of the intelligent building switch control system is designed based on the structure shown, which not only ensures the close cooperation between the electromechanical transmission device and the actuator, but also ensures the accuracy of the mechanical cooperation of the switch light actuator with various forms of wall switches; at the same time, the design appearance is beautiful and neat, and it is generous. It reveals a trendy fashion and modern sense in the old mechanical style, which significantly improves the affinity of this design.

[0076] Specifically, in Figure 3 In the complete circuit shown, a 1S Li battery is used to provide 5V / 3A power to the system through the BQ25896 power management chip, and the 5V / 3A power provides 3.3V / 3A power to the system through the LDO circuit; the ESP8266EX WIFI MCU communicates with the 0.96' OLED display module, the DRV8847 stepper motor driver module, the BQ25896 power management module, and the PCF8574 I / O expansion module through the IIC protocol; communicates with the ultrasonic ranging sensor through the USART protocol; reads the limit switch status through the on-chip ADC; and controls the servo drive circuit and the multi-level movement of the servo actuator through the PWM wave output by the I / O. Among them, the PCF8574 I / O expansion module provides control I / O for the five buttons, buzzer, and LED lights of the key assembly. Through the above serial bus protocol or ordinary I / O, it communicates with each module of the system, thereby realizing system data transmission and command control. The ultrasonic sensor interface is a four-wire interface for connecting the ultrasonic ranging sensor; the servo drive circuit is specifically a servo interface, which is a three-wire interface for connecting the servo; the DRV8847 stepper motor drive module is IIC communication, has two sets of built-in full H-Bridge dedicated stepper motor controllers and a standard five-wire interface for connecting 48 stepper motors; the power management module interface provides 5V / 3A power for the power PCB board, and has an IIC interface and a power button interface for the Internet of Things chip module to control; the display interface is a standard four-wire interface, which provides power and IIC control lines for the 0.96'OLED screen. With the careful cooperation of the above parts, the entire intelligent building switch control system operates in an orderly manner, interference is reduced, and the stability of the system operation is greatly improved.

[0077] Specifically, in this embodiment, Figure 3 The intelligent building switch control system is designed with a front-end human-machine interaction interface control terminal and a back-end management device. Figure 5As shown in the figure, in the design of the front-end human-computer interaction interface control terminal, a self-made WeChat applet is used for design. In the WeChat applet, you can log in with a dedicated account and bind it to the IoT MCU, set the timer switch lights, alarm clock settings, and the anti-theft function. In addition, the self-made WeChat applet has a clear page structure and simple logic, which is convenient for users to deploy this design in large quantities in building scenes, such as office buildings, office buildings, and teaching buildings, and can be adapted to users of almost all ages for configuration and control. In the design of back-end device management, the MQTT server and the Bmob back-end cloud database are used for joint control. The IoT device identity is recognized by burning the self-generated global unique device ID into the IoT MCU. The IoT MCU and the WeChat applet report data to the dedicated MQTT server through the MQTT protocol. At the same time, the IoT MCU will also receive subscription information from the MQTT server. The WeChat applet will also query and report the background data to the Bmob' back-end cloud database to realize the back-end management of the large-scale use of this intelligent building switch control system. Due to the introduction of a dedicated MQTT server and a dedicated Bmob backend cloud database, this intelligent building switch control system can deploy a large number of devices for different users in any area. The devices of each user do not interfere with each other, which is very convenient.

[0078] according to Figure 3 and Figure 5 The scheme shown in the figure is designed, which has the following advantages compared with the existing IoT switch control scheme in the market:

[0079] 1. Using a single IoT chip as MCU for control reduces the number of MCU controllers and the cost is much lower than most IoT switch control solutions on the market, which is conducive to popularization;

[0080] 2. The control method is external mechanical control. When installing, you only need to stick the controller on the wall, which reduces the installation cost;

[0081] 3. The circuit structure is simple, which reduces the difficulty and cost of later inspection and maintenance;

[0082] 4. The IoT MCU, backend server and user-side host computer use MQTT for communication so that users can understand the real-time status of the switch, control the switch in real time at any location, and set alarms, timed lights, anti-theft alarms and other timed tasks, which is safe and reliable;

[0083] 5. Use a dedicated power management chip with a rechargeable lithium battery for independent power supply, which can be charged and used at any time;

[0084] 6. It has high applicability to the types of light switches. The physical implementation of controlling the light switch is flexible and adjustable, and can be applied to light switches of various appearances;

[0085] 7. With dedicated back-end management equipment, this design can be deployed on a large scale in the same area, making its application scenarios flexible and variable, giving it unlimited development space and market potential.

[0086] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. An intelligent building switch control system based on a single IoT MCU, characterized in that: It includes a main control compartment, an electromechanical transmission device and a steering gear actuator, wherein the main control compartment and the steering gear actuator are both arranged on the electromechanical transmission device; The control host compartment is provided with a power supply, an Internet of Things MCU, a motor drive circuit and a steering gear drive circuit; the power supply is electrically connected to the Internet of Things MCU, and the Internet of Things MCU is electrically connected to the motor drive circuit and the steering gear drive circuit respectively; the motor drive circuit is electrically connected to the electromechanical transmission device, and the steering gear drive circuit is electrically connected to the steering gear actuator; The electromechanical transmission device is synchronously connected with the steering gear actuator; The electromechanical transmission device comprises a motor, an optical axis, a slide, a conveyor belt, two synchronous wheels, and two first and second supports arranged opposite to each other; the motor is electrically connected to the motor drive circuit; The slide is sleeved on the optical axis, and the two ends of the optical axis are respectively arranged on the two side surfaces opposite to the first support and the second support, and the two synchronous wheels are also respectively arranged on the two side surfaces opposite to the first support and the second support; a through groove is provided on the slide, and the conveyor belt is laid on the two synchronous wheels and passes through the slide through the through groove; a belt clamp is also provided on the slide at the through groove, and the slide is fixed to the conveyor belt through the belt clamp and moves synchronously with the conveyor belt; the motor is arranged on the first support, and the output shaft of the motor is connected to the synchronous wheel arranged on the side surface of the first support; the steering gear actuator is arranged at the upper end of the slide, and the control host compartment is arranged on the first support; The steering gear actuator comprises a mechanical arm and a steering gear, both of which are arranged at the upper end of the slide; The output shaft of the steering gear is transmission-connected to the mechanical arm, and the steering gear is electrically connected to the Internet of Things MCU through the steering gear drive circuit; The electromechanical transmission device also includes a first leveling assembly disposed on the second support.

2. According to claim 1, the intelligent building switch control system based on a single Internet of Things MCU is characterized in that: The intelligent building switch control system also includes a limit switch fixedly arranged on a side of the motor facing the slide, and the limit switch is electrically connected to the Internet of Things MCU.

3. The intelligent building switch control system based on a single IoT MCU according to claim 1 is characterized in that: The intelligent building switch control system also includes an ultrasonic ranging sensor disposed on a side of the second support facing away from the first support, and the ultrasonic ranging sensor is electrically connected to the Internet of Things MCU.

4. The intelligent building switch control system based on a single IoT MCU according to claim 1 is characterized in that: The power supply includes a lithium battery, a power management circuit, an LDO circuit, an external USB power supply interface, a lithium battery interface, a power management interface and an indicator light group; The lithium battery is electrically connected to the power management circuit via the lithium battery interface, and the power management circuit is electrically connected to the Internet of Things MCU and the motor drive circuit respectively via the LDO circuit and the power management interface in turn, and the power management circuit is also electrically connected to the external USB power supply interface and the indicator light group respectively.

5. The intelligent building switch control system based on a single IoT MCU according to any one of claims 1 to 4, characterized in that: A display circuit is also provided in the control host compartment, and an OLED display screen is provided on the surface of the control host compartment; the OLED display screen is electrically connected to the Internet of Things MCU through the display circuit.

6. The intelligent building switch control system based on a single IoT MCU according to any one of claims 1 to 4, characterized in that: The control host compartment is also provided with an I / O expansion circuit, a key circuit and an audible and visual alarm circuit, and the surface of the control host compartment is provided with a key assembly; The key assembly is electrically connected to the Internet of Things MCU through the key circuit and the I / O expansion circuit in turn, and the sound and light alarm circuit is electrically connected to the Internet of Things MCU through the I / O expansion circuit.

7. The intelligent building switch control system based on a single IoT MCU according to any one of claims 1 to 4, characterized in that: The Internet of Things MCU is specifically a WIFI MCU of the ESP8266EX model.