Smart home control system
By using the STM32L475VET6 main control chip and a variety of sensing modules in the smart home control system, combined with serial communication technology, the problems of system complexity and integration are solved, multi-functional smart home control is achieved, the circuit design is simplified and the efficiency is improved. System stability.
Patent Information
- Application Number
- CN202323515190.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2033-12-22
AI Technical Summary
The functional integration level of a smart home control system is directly proportional to the system complexity, and it is difficult to reduce the system integration level while ensuring comprehensive functions and stability.
A smart home control system is designed, including a variety of sensing modules and functional modules, using STM32L475VET6 as the main control chip, combined with a voice recognition module, smoke sensing module, steering module, fan module, temperature and humidity sensing module, lighting module and Buzzer realizes multi-functional control through IIC and SPI serial communication, reducing circuit complexity.
It supports multiple functions such as light-controlled lights, voice-controlled lights, smoke alarms, temperature and humidity detection, light intensity detection, infrared distance sensing, and voice recognition, simplifying the circuit design and improving the stability and portability of the system.
Smart Images

Figure CN221595540U
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart home, and in particular to a smart home control system. Background Art
[0002] Smart home uses residence as a platform and utilizes integrated wiring technology, network communication technology, security technology, automatic control technology, and audio and video technology to integrate facilities related to home life, build an efficient management system for residential facilities and family schedule affairs, improve home safety, convenience, comfort, and artistry, and achieve an environmentally friendly and energy-saving living environment.
[0003] For smart home control systems, the functional integration is often proportional to the complexity of the system. Reducing the system integration while ensuring the comprehensiveness and stability of the functions is an important issue in this field. Summary of the invention
[0004] The present invention proposes an intelligent home control system, which has multiple sensing modules and functional modules and has the characteristics of simple circuit and strong stability.
[0005] The technical solution of the present invention is as follows:
[0006] A smart home control system includes a main control board, and also includes a voice recognition module and a voice broadcast module. The voice recognition module includes a chip U4, the model of the chip U4 is LD3320P, the VCC pin of the chip U4 is connected to the VCC pin of the main control board, the GND pin of the chip U4 is connected to the GND pin of the main control board, the RXD pin is connected to the PA9 pin of the main control board, and the TXD is connected to the PA10 pin of the main control board. The voice broadcast module includes a chip U5, the model of the chip U5 is BY9301-16P, and broadcast sounds are stored in the voice broadcast module. The main control board is also communicatively connected to a smoke sensor module, a servo module, a fan module, a temperature and humidity sensor module, and a buzzer.
[0007] As a further optimization of this solution, the VCC pin of the chip U4 in the voice broadcast module is connected to the VCC pin of the main control board, the GND pin is connected to the GND pin of the main control board, the I01 pin of the chip U4 is connected to the PA8 pin of the main control board, the I02 pin of the chip U4 is connected to the PD15 pin of the main control board, the I03 of the chip U4 is connected to the PD13 pin of the main control board, the IO4 pin of the chip U4 is connected to the PC2 pin of the main control board, the IO5 pin of the chip U4 is connected to the PB14 pin of the main control board, and the IO6 pin of the chip U4 is connected to the PB12 pin of the main control board.
[0008] As a further optimization of this solution, the smoke sensing module includes an MQ-2 smoke sensor, a VCC pin of the MQ-2 smoke sensor is connected to the VCC pin of the main control board, a GND pin of the MQ-2 smoke sensor is connected to the GND pin of the main control board, and an AO pin of the MQ-2 smoke sensor is connected to the PB8 pin of the main control board.
[0009] As a further optimization of this solution, the servo module includes a servo of model SG90MG90s, the VCC pin of the servo is connected to the VCC pin of the main control board, the GND pin of the servo is connected to the GND pin of the main control board, and the PWM pin of the servo is connected to the PC7 pin of the main control board.
[0010] As a further optimization of this solution, the temperature and humidity sensor module includes a chip U2, the model of the chip U2 is AHT10, the VCC pin of the chip U2 is connected to the VCC pin of the main control board, the GND pin of the chip U2 is connected to the GND pin of the main control board, the SCL pin of the chip U2 is connected to the PD6 pin of the main control board, and the SCL pin of the chip U2 is also connected to the voltage source VCC through a resistor R1.
[0011] As a further optimization of this solution, the lighting module includes a chip U3, the model of the chip U3 is AP3216C, the VDD pin and LEDA pin of the chip U3 are connected to the VCC pin of the main control board, the GND pin of the chip U3 is connected to the GND pin of the main control board, the SCL pin of the chip U3 is connected to the PC0 pin of the main control board, the LDR pin of the chip U3 is connected to the LEDC pin of the chip U3, the INT pin of the chip U3 is connected to the VCC pin of the main control board through a resistor R2, and the SDA pin of the chip U2 is connected to the SDA pin of the chip U3.
[0012] As a further optimization of this solution, the illumination module further includes an LED lamp, and the LED lamp is connected between the PC6 pin of the main control board and the power ground.
[0013] As a further optimization of this solution, the positive pole of the buzzer is connected to the VCC pin of the main control board, the negative pole of the buzzer is connected to the collector of the switch tube Q1, the base of the switch tube Q1 is connected to the PB2 pin of the main control board through the resistor R3, and the drain of the switch tube Q1 is connected to the GND pin of the main control board.
[0014] As a further optimization of this solution, the fan module includes a fan of model ST027, the VCC pin of the fan is connected to the VCC pin of the main control board, the GND pin of the fan is connected to the GND pin of the main control board, and the switch pin of the fan is connected to the PB10 pin of the main control board.
[0015] The beneficial effects of the present invention are:
[0016] This product is a smart home system based on STM32L475VET6 as the main control chip, supporting multiple functions such as light-controlled lights, voice-controlled lights, smoke alarms, temperature and humidity detection, light intensity detection, infrared distance perception, voice recognition, and language broadcasting. This product realizes the communication between the voice module and the single-chip computer through IIC serial communication, controls the switch of the electric fan and LED lights through buttons and voice input, realizes the LCD screen display function and realizes the measurement of light intensity (ALS) / proximity distance (PS) / infrared light intensity (IR) through the SPI serial port, realizes the data acquisition function of the temperature and humidity sensor and the light sensor through the IIC communication protocol, and controls the servo through the voice recognition module to control the switch of the door. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0018] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0019] Figure 1 This is a structural diagram of this application;
[0020] Figure 2 This is the circuit schematic diagram of the main control board in this application;
[0021] Figure 3 This is a circuit diagram of the speech recognition module in this application;
[0022] Figure 4 This is a circuit diagram of the controller in the speech recognition module in this application;
[0023] Figure 5 This is the circuit schematic diagram of the voice broadcast module in this application;
[0024] Figure 6 Circuit diagram of the temperature and humidity sensing module in this application;
[0025] Figure 7 The circuit diagram of the illumination module in this application;
[0026] Figure 8 Circuit diagram of the smoke sensor module in this application;
[0027] Fig. 9 The circuit schematic diagram of the servo module in this application;
[0028] Fig.10 Circuit diagram of the buzzer in this application. DETAILED DESCRIPTION
[0029] The following will be combined with 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.
[0030] Specific embodiments:
[0031] As the instruction manual Figure 1-3 As shown, a smart home control system includes a main control board, and also includes a voice recognition module and a voice broadcast module. The voice recognition module includes a chip U4, the model of the chip U4 is LD3320P, the VCC pin of the chip U4 is connected to the VCC pin of the main control board, the GND pin of the chip U4 is connected to the GND pin of the main control board, the RXD pin is connected to the PA9 pin of the main control board, and the TXD is connected to the PA10 pin of the main control board. The voice broadcast module includes a chip U5, the model of the chip U5 is BY9301-16P, and the voice broadcast module stores broadcast sounds. The main control board is also communicatively connected to a smoke sensor module, a servo module, a fan module, a temperature and humidity sensor module, and a buzzer.
[0032] As the instruction manual Figure 2 , 5 As shown in Figure 9, the VCC pin of the chip U4 in the voice broadcast module is connected to the VCC pin of the main control board, the GND pin is connected to the GND pin of the main control board, the I01 pin of the chip U4 is connected to the PA8 pin of the main control board, the I02 pin of the chip U4 is connected to the PD15 pin of the main control board, the I03 of the chip U4 is connected to the PD13 pin of the main control board, the IO4 pin of the chip U4 is connected to the PC2 pin of the main control board, the IO5 pin of the chip U4 is connected to the PB14 pin of the main control board, and the IO6 pin of the chip U4 is connected to the PB12 pin of the main control board. The positive electrode of the buzzer is connected to the VCC pin of the main control board, the negative electrode of the buzzer is connected to the collector of the switch tube Q1, the base of the switch tube Q1 is connected to the PB2 pin of the main control board through the resistor R3, and the drain of the switch tube Q1 is connected to the GND pin of the main control board.
[0033] The voice broadcast function uses the BY9301-16P module. The six trigger input ports of the module are used to copy the sound to be broadcast by clicking on the new hard disk. Then the six trigger input ports of the module are connected to the six pins of the main control board. When the voice recognition module recognizes the corresponding command and responds, the corresponding pin turns into a low level, thereby playing the corresponding voice broadcast.
[0034] The voice module of this work adopts LD3320, and uses the serial port output function of the module to communicate with the main control board STM32L475VET6. By entering the corresponding instructions, the first-level instruction is the startup name such as "Xiao Ai", etc., as the wake-up instruction of the module, and the second-level instructions are respectively entered as kai deng (turn on the light), guan deng (turn off the light), da kai fengshan (turn on the fan), guan bi feng shan (turn off the fan), kai men (open the door), guan men (close the door). After waking up the module through the first-level instruction, if the module receives the second-level instruction, it will respond accordingly.
[0035] As the instruction manual Figure 7 As shown, the smoke sensing module includes an MQ-2 smoke sensor, a VCC pin of the MQ-2 smoke sensor is connected to the VCC pin of the main control board, a GND pin of the MQ-2 smoke sensor is connected to the GND pin of the main control board, and an AO pin of the MQ-2 smoke sensor is connected to the PB8 pin of the main control board.
[0036] The smoke alarm function uses the MQ-2 smoke gas sensitive sensor module. This module leads to three pins, a ground wire, a wire, and a PB8 pin connected to the main control board. When the smoke value exceeds the threshold, PB8 becomes a high level. When a high level is read, PB2 becomes a high level. At this time, the buzzer on the main control board alarms, thereby realizing the smoke alarm function.
[0037] As the instruction manual Figure 6 As shown, the temperature and humidity sensor module includes a chip U2, the model of the chip U2 is AHT10, the model of the chip U3 is AP3216C, the VCC pin of the chip U2 is connected to the VCC pin of the main control board, the GND pin of the chip U2 is connected to the GND pin of the main control board, the SCL pin of the chip U2 is connected to the PD6 pin of the main control board, the SCL pin of the chip U2 is also connected to the voltage source VCC through a resistor R1, and the SDA pin of the chip U2 is connected to the SDA pin of the chip U3.
[0038] The temperature and humidity display function uses the AHT10 module that comes with the main control, and also communicates with the main control board through IIC. After the host sends a collection command, it can wake up the AHT10 for data collection. When collecting data, the digital signal inside the sensor will calculate the collected temperature and humidity, and the internal algorithm will calibrate the data. After the collection is completed, the output register of the sensor will update the data. By writing code, the data in the output register is read and displayed on the output display. When the humidity value read is higher than the preset threshold, the fan module will be automatically started.
[0039] The illumination module includes a chip U3, the model of the chip U3 is AP3216C, the VDD pin and LEDA pin of the chip U3 are connected to the VCC pin of the main control board, the GND pin of the chip U3 is connected to the GND pin of the main control board, the SCL pin of the chip U3 is connected to the PC0 pin of the main control board, the LDR pin of the chip U3 is connected to the LEDC pin of the chip U3, the INT pin of the chip U3 is connected to the VCC pin of the main control board through a resistor R2, and the SDA pin of the chip U2 is connected to the SDA pin of the chip U3. The illumination module also includes an LED lamp, which is connected between the PC6 pin of the main control board and the power ground.
[0040] For the illumination display function, the AP3216C module on the main control board and the LCD screen on the development board are used to display the collected illumination information. The visible light photodiode (ALS) senses the ambient light intensity and converts it into a digital signal to detect the ambient light intensity. The host uses IIC to communicate with the AP3216C module and displays it on the display. When the illumination intensity is less than the set threshold, the PC6 pin of the main control board becomes a high level, making the light brighter.
[0041] As the instruction manual Figure 8 As shown, the servo module includes a servo of model SG90MG90s, a VCC pin of the servo is connected to a VCC pin of the main control board, a GND pin of the servo is connected to a GND pin of the main control board, and a PWM pin of the servo is connected to a PC7 pin of the main control board.
[0042] The door is controlled by the SG90MG90s servo, which can rotate 180 degrees. PWM is used to control the servo. When a pulse width of 1.5 milliseconds (ms) is sent to the servo, the output shaft of the servo will move to the middle position (90 degrees); when the duty cycle is 0.5 milliseconds (ms), the servo will turn to zero degrees. When the secondary command of the voice function is input to open the door, the corresponding duty cycle is adjusted to 1.5 milliseconds to realize the door opening function. When the secondary command of closing the door is input, the corresponding duty cycle is adjusted to 0.5 milliseconds, and the servo turns to zero degrees to realize the door closing function.
[0043] The fan module includes a fan of model ST027, the VCC pin of the fan is connected to the VCC pin of the main control board, the GND pin of the fan is connected to the GND pin of the main control board, and the switch pin of the fan is connected to the PB10 pin of the main control board. The fan module adopts the ST027 fan module, which leads to three pins, respectively connected to the ground, VCC and PB10 of the main control board. After the secondary command of turning on the fan is input through the voice module, PB10 outputs a high level to drive the fan to rotate.
[0044] Specific embodiment 2, speech recognition module LD3320, the VCC pin of the module is connected to the VCC pin of the main control board, the GND pin is connected to the GND pin of the main control board, the RXD pin is connected to PA9 of the main control board, and the TXD pin is connected to PA10 of the main control board.
[0045] Voice broadcast module BY9301-16P, the VCC pin of the module is connected to the VCC pin of the main control board, the GND pin is connected to the GND pin of the main control board, the I01 pin is connected to PA8 of the main control board, the I02 pin is connected to PD15 of the main control board, the I03 pin is connected to PD13 of the main control board, the IO4 pin is connected to PC2 of the main control board, the IO5 pin is connected to PB14 of the main control board, and the IO6 pin is connected to PB12 of the main control board.
[0046] MQ-2 smoke sensor, the VCC pin of the module is connected to the VCC pin of the main control board, the GND pin is connected to the GND pin of the main control board, and the AO pin is connected to the PB8 pin of the main control board.
[0047] The servo uses SG90MG90s. The VCC pin of the module is connected to the VCC pin of the main control board, the GND pin is connected to the GND pin of the main control board, and the PWM pin is connected to the PC7 pin of the main control board.
[0048] The illumination module uses an ordinary light-emitting diode, the positive pole of the diode is connected to PC6 of the main control board, and the negative pole is connected to GND of the main control board.
[0049] The fan module is an ST027 fan module, the VCC pin of the module is connected to the VCC pin of the main control board, the GND pin is connected to the GND pin of the main control board, and the IN pin is connected to PB10 of the main control board.
[0050] The temperature and humidity sensor AHT10, AP3216C sensor, and buzzer are modules that come with the main control board and do not need to be connected.
[0051] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A smart home control system, comprising a main control board, characterized in that: It also includes a voice recognition module and a voice broadcast module. The voice recognition module includes a chip U4, the model of the chip U4 is LD3320P, the VCC pin of the chip U4 is connected to the VCC pin of the main control board, the GND pin of the chip U4 is connected to the GND pin of the main control board, the RXD pin is connected to the PA9 pin of the main control board, and the TXD is connected to the PA10 pin of the main control board. The voice broadcast module includes a chip U5, the model of the chip U5 is BY9301-16P, and the voice broadcast module stores broadcast sounds. The main control board is also communicatively connected to a smoke sensor module, a servo module, a fan module, a lighting module, a temperature and humidity sensor module, and a buzzer.
2. The smart home control system according to claim 1, characterized in that: The VCC pin of the chip U4 in the voice broadcast module is connected to the VCC pin of the main control board, the GND pin is connected to the GND pin of the main control board, the I01 pin of the chip U4 is connected to the PA8 pin of the main control board, the I02 pin of the chip U4 is connected to the PD15 pin of the main control board, the I03 of the chip U4 is connected to the PD13 pin of the main control board, the IO4 pin of the chip U4 is connected to the PC2 pin of the main control board, the IO5 pin of the chip U4 is connected to the PB14 pin of the main control board, and the IO6 pin of the chip U4 is connected to the PB12 pin of the main control board.
3. The smart home control system according to claim 1, characterized in that: The smoke sensing module includes an MQ-2 smoke sensor, a VCC pin of the MQ-2 smoke sensor is connected to a VCC pin of the main control board, a GND pin of the MQ-2 smoke sensor is connected to a GND pin of the main control board, and an AO pin of the MQ-2 smoke sensor is connected to a PB8 pin of the main control board.
4. The smart home control system according to claim 1, characterized in that: The servo module includes a servo of model SG90MG90s, a VCC pin of the servo is connected to a VCC pin of the main control board, a GND pin of the servo is connected to a GND pin of the main control board, and a PWM pin of the servo is connected to a PC7 pin of the main control board.
5. The smart home control system according to claim 1, characterized in that: The temperature and humidity sensor module includes a chip U2, the model of the chip U2 is AHT10, the VCC pin of the chip U2 is connected to the VCC pin of the main control board, the GND pin of the chip U2 is connected to the GND pin of the main control board, the SCL pin of the chip U2 is connected to the PD6 pin of the main control board, and the SCL pin of the chip U2 is also connected to the voltage source VCC through a resistor R1.
6. The smart home control system according to claim 5, characterized in that: The lighting module includes a chip U3, the model of the chip U3 is AP3216C, the VDD pin and LEDA pin of the chip U3 are connected to the VCC pin of the main control board, the GND pin of the chip U3 is connected to the GND pin of the main control board, the SCL pin of the chip U3 is connected to the PC0 pin of the main control board, the LDR pin of the chip U3 is connected to the LEDC pin of the chip U3, the INT pin of the chip U3 is connected to the VCC pin of the main control board through a resistor R2, and the SDA pin of the chip U2 is connected to the SDA pin of the chip U3.
7. The smart home control system according to claim 6, characterized in that: The illumination module further comprises an LED lamp, and the LED lamp is connected between the PC6 pin of the main control board and the power ground.
8. The smart home control system according to claim 1, characterized in that: The positive electrode of the buzzer is connected to the VCC pin of the main control board, the negative electrode of the buzzer is connected to the collector of the switch tube Q1, the base of the switch tube Q1 is connected to the PB2 pin of the main control board through the resistor R3, and the drain of the switch tube Q1 is connected to the GND pin of the main control board.
9. The smart home control system according to claim 1, characterized in that: The fan module includes a fan of model ST027, a VCC pin of the fan is connected to a VCC pin of the main control board, a GND pin of the fan is connected to a GND pin of the main control board, and a switch pin of the fan is connected to a PB10 pin of the main control board.
