Indoor environment intelligent monitoring regulation and control system

By designing intelligent control subsystems and button control subsystems in the indoor environment intelligent monitoring and control system, and using sensor data to automatically adjust the equipment status, the problem that the existing system requires manual intervention is solved, and the entire process is achieved without manual intervention and is simple and easy to use. button mode, suitable for the elderly and children.

CN118605342AInactive Publication Date: 2024-09-06UNIV OF SCI & TECH BEIJING
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410892803.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing indoor environment intelligent monitoring and control system requires manual judgment and execution of control instructions, which is complex and not suitable for the elderly and children.

Method used

An indoor environment intelligent monitoring and control system including an intelligent control subsystem and a button control subsystem is designed. It uses sensor data to automatically adjust the status of indoor equipment and provides a simple button mode, which is suitable for the elderly and children. The intelligent control subsystem includes air purification module, over-limit alarm module, light adjustment module and curtain adjustment module. The key control subsystem includes mode selection, window switch, fan switch, lighting switch, alarm switch, curtain switch, digital display and LCD display. module.

Benefits of technology

It realizes intelligent control without manual intervention in the whole process, provides a simple and easy-to-use button mode, is suitable for the elderly and children to operate, and improves the convenience and safety of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118605342A
    Figure CN118605342A
Patent Text Reader

Abstract

The invention provides an indoor environment intelligent monitoring regulation and control system, which belongs to the field of intelligent monitoring regulation and control systems and comprises an intelligent control subsystem and a key control subsystem. The intelligent control subsystem comprises an air purification module, an over-limit alarm module, a light adjusting module and a curtain adjusting module. The key control subsystem comprises a mode selection module, a window switch module, a fan switch module, a lighting switch module, an alarm switch module, a curtain switch module, a digital display module and an LCD display module. According to the intelligent control mode, the working state of the indoor equipment is automatically adjusted according to the data collected by the sensor, no manual intervention in the whole process is achieved, meanwhile, the provided key mode is simple, and the system is more suitable for old people and children to use.
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 monitoring and control systems, and in particular to an indoor environment intelligent monitoring and control system. Background Art

[0002] With the development and progress of science and technology, modern social life is gradually moving towards networking, scientific and technological services have entered thousands of households, and intelligent systems have become the general trend. Intelligent systems refer to intelligent collections formed by modern communication and information technology, computer network technology, and intelligent control technology. With the continuous development of information technology, the concept of intelligence has gradually penetrated into all walks of life and people's daily lives, resulting in the emergence of smart residential communities, smart hospitals and other smart home buildings.

[0003] However, the existing intelligent indoor environment monitoring and control system still requires manual judgment and command execution. At the same time, the manual control part is relatively complicated and difficult to use for the elderly. Summary of the invention

[0004] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide an intelligent monitoring and control system for indoor environment, which automatically adjusts the working status of indoor equipment according to the data collected by sensors, realizes the whole process without human intervention, and provides a key mode that is more suitable for use by the elderly and children.

[0005] To achieve the above object, the present invention provides the following solutions:

[0006] An indoor environment intelligent monitoring and control system, comprising: an intelligent control subsystem and a key control subsystem; the intelligent control subsystem comprises: an air purification module, an over-limit alarm module, a light adjustment module and a curtain adjustment module; the key control subsystem comprises: a mode selection module, a window switch module, a fan switch module, a lighting switch module, an alarm switch module, a curtain switch module, a digital display module and an LCD display module;

[0007] The air purification module is used to control the on / off state of the preset fan and the opening degree of the preset window according to the air quality data collected by the preset gas sensor; the over-limit alarm module is used to control the working state of the preset buzzer according to the air quality data; the light adjustment module is used to control the lighting power of the preset lighting lamp according to the indoor light intensity data collected by the preset light intensity sensor; the curtain adjustment module is used to control the opening and closing state of the preset curtain according to the outdoor light intensity data collected by the light intensity sensor; the mode selection module is used to receive the mode switching instruction of the preset input keyboard, and switch between the automatic adjustment mode and the manual adjustment mode according to the mode switching instruction; the window switch module is used to receive the opening degree instruction of the preset input keyboard, and control the opening of the preset window according to the opening degree instruction. The fan switch mode is used to receive the speed adjustment instruction of the preset input keyboard, and control the rotation speed of the preset fan according to the speed adjustment instruction; the lighting switch mode is used to receive the light adjustment instruction of the preset input keyboard, and control the output light power of the preset lighting according to the light adjustment instruction; the alarm switch module is used to receive the alarm instruction of the preset input keyboard, and control the working state of the preset buzzer according to the alarm instruction; the curtain switch module is used to receive the curtain switch instruction of the preset input keyboard, and control the opening and closing state of the preset curtain according to the curtain switch instruction; the digital display module is used to display the working data of the preset input keyboard; the LCD display module is used to display indoor environment information and equipment working state data.

[0008] Preferably, the light intensity sensor comprises: a photosensitive diode, an operational amplifier and an ADC acquisition unit connected in sequence;

[0009] The photodiode is used to convert the optical signal into an electrical signal; the operational amplifier is used to amplify the electrical signal to obtain an enhanced electrical signal; the ADC acquisition unit is used to convert the enhanced electrical signal into a 16-bit binary number and store the 16-bit binary number in a preset register.

[0010] Preferably, the preset input keyboard includes a first button, a second button, a third button, a fourth button, a fifth button and a sixth button;

[0011] The first button to the sixth button are respectively used to send the opening degree instruction, the light adjustment instruction, the speed adjustment instruction, the alarm instruction, the curtain switch instruction and the mode switching instruction.

[0012] Preferably, the intelligent control subsystem further comprises: an automatic response scheme module;

[0013] The automatic response scheme module is used to match the air quality data, the indoor light intensity data and the outdoor light intensity data with a preset scheme library to obtain an automatic response strategy, and send the automatic response strategy to the air purification module, the over-limit alarm module, the light adjustment module and the curtain adjustment module.

[0014] Preferably, the preset window is provided with a steering gear; the preset curtain is provided with a stepping motor;

[0015] The servo is used to provide a power source for changing the opening degree of the preset window; the stepper motor is used to provide a power source for changing the opening and closing state of the preset curtain.

[0016] Preferably, the preset lighting lamp is a common anode four-terminal LED; the common anode four-terminal LED includes: a first LED lamp connected to the first port and the first protection resistor respectively, a second LED lamp connected to the second port and the second protection resistor respectively, a third LED lamp connected to the third port and the third protection resistor respectively, and a fourth LED lamp connected to the fourth port and the fourth protection resistor respectively;

[0017] The first port to the fourth port are respectively used to control the lighting state of the first LED lamp to the fourth LED lamp by writing a high level or a low level; the first protection resistor to the fourth resistor are respectively used to prevent the first LED lamp to the fourth LED lamp from being overloaded.

[0018] Preferably, the intelligent control subsystem and the key control subsystem are both configured on a STM32F407 single chip microcomputer.

[0019] The present invention discloses the following technical effects:

[0020] The present invention provides an indoor environment intelligent monitoring and control system, which belongs to the field of intelligent monitoring and control systems, and includes: an intelligent control subsystem and a key control subsystem; the intelligent control subsystem includes: an air purification module, an over-limit alarm module, a light adjustment module and a curtain adjustment module; the key control subsystem includes: a mode selection module, a window switch module, a fan switch module, a lighting switch module, an alarm switch module, a curtain switch module, a digital display module and an LCD display module. The intelligent control mode provided by the present invention automatically adjusts the working state of indoor equipment according to the data collected by the sensor, realizing the whole process without manual intervention, and the key mode provided is relatively simple, which is more suitable for use by the elderly and children. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0022] Figure 1 A module diagram of an intelligent monitoring and control system provided by an embodiment of the present invention;

[0023] Figure 2 A device distribution diagram provided for an embodiment of the present invention;

[0024] Figure 3 A schematic diagram of the hardware composition provided by an embodiment of the present invention;

[0025] Figure 4 A structural diagram of a stepping motor provided by an embodiment of the present invention;

[0026] Figure 5 A ZLG7290 package diagram provided in an embodiment of the present invention;

[0027] Figure 6 A schematic diagram of a light intensity sensor provided by an embodiment of the present invention;

[0028] Figure 7 A structural diagram of a gas sensor provided by an embodiment of the present invention;

[0029] Figure 8 A structural diagram of an LED lighting lamp provided by an embodiment of the present invention;

[0030] Fig. 9 A structural diagram of an input keyboard provided in an embodiment of the present invention;

[0031] Fig.10 A tree diagram of functional modules provided by an embodiment of the present invention;

[0032] Fig.11 The overall flow chart of the program provided by the embodiment of the present invention;

[0033] Fig.12 A key control flow chart provided by an embodiment of the present invention;

[0034] Fig.13 An intelligent control flow chart provided by an embodiment of the present invention;

[0035] Fig.14 LCD display flow chart provided for an embodiment of the present invention;

[0036] Fig.15 A flowchart of the LED task program provided by an embodiment of the present invention;

[0037] Fig.16 A flowchart of a stepper motor task program provided by an embodiment of the present invention;

[0038] Fig.17 A flow chart of a DC motor task program provided by an embodiment of the present invention;

[0039] Fig.18 A flowchart of a steering engine task program provided by an embodiment of the present invention;

[0040] Description of reference numerals:

[0041] 1-LCD display and input keyboard, 2-buzzer, 3-light sensor, 4-gas sensor, 5-stepping motor, 6-DC motor, 7-servo, 8-LED lighting. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] The purpose of the present invention is to provide an indoor environment intelligent monitoring and control system, which automatically adjusts the working status of indoor equipment according to data collected by sensors, realizes the whole process without human intervention, and provides a key mode that is more suitable for use by the elderly and children.

[0044] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0045] Figure 1 This is the module diagram of the intelligent monitoring and control system, such as Figure 1 As shown, the present invention provides an indoor environment intelligent monitoring and control system, including: an intelligent control subsystem and a key control subsystem; the intelligent control subsystem includes: an air purification module, an over-limit alarm module, a light adjustment module and a curtain adjustment module; the key control subsystem includes: a mode selection module, a window switch module, a fan switch module, a lighting switch module, an alarm switch module, a curtain switch module, a digital display module and an LCD display module;

[0046] The air purification module is used to control the on / off state of the preset fan and the opening degree of the preset window according to the air quality data collected by the preset gas sensor 4; the over-limit alarm module is used to control the working state of the preset buzzer 2 according to the air quality data; the light adjustment module is used to control the lighting power of the preset lighting lamp according to the indoor light intensity data collected by the preset light intensity sensor 3; the curtain adjustment module is used to control the opening and closing state of the preset curtain according to the outdoor light intensity data collected by the light intensity sensor 3; the mode selection module is used to receive the mode switching instruction of the preset input keyboard, and switch the automatic adjustment mode and the manual adjustment mode according to the mode switching instruction; the window switch module is used to receive the opening degree instruction of the preset input keyboard, and switch the automatic adjustment mode and the manual adjustment mode according to the opening degree instruction The fan switch mode is used to receive the speed adjustment command of the preset input keyboard, and control the rotation speed of the preset fan according to the speed adjustment command; the lighting switch mode is used to receive the light adjustment command of the preset input keyboard, and control the output light power of the preset lighting according to the light adjustment command; the alarm switch module is used to receive the alarm command of the preset input keyboard, and control the working state of the preset buzzer 2 according to the alarm command; the curtain switch module is used to receive the curtain switch command of the preset input keyboard, and control the opening and closing state of the preset curtain according to the curtain switch command; the digital display module is used to display the working data of the preset input keyboard; the LCD display module is used to display indoor environment information and equipment working state data.

[0047] Furthermore, the light intensity sensor 3 includes: a photosensitive diode, an operational amplifier and an ADC acquisition unit connected in sequence;

[0048] The photodiode is used to convert the optical signal into an electrical signal; the operational amplifier is used to amplify the electrical signal to obtain an enhanced electrical signal; the ADC acquisition unit is used to convert the enhanced electrical signal into a 16-bit binary number and store the 16-bit binary number in a preset register.

[0049] Specifically, the preset input keyboard includes a first button, a second button, a third button, a fourth button, a fifth button and a sixth button;

[0050] The first button to the sixth button are respectively used to send an opening degree instruction, a light adjustment instruction, a speed adjustment instruction, an alarm instruction, a curtain switch instruction and a mode switching instruction.

[0051] Furthermore, the intelligent control subsystem also includes: an automatic response scheme module;

[0052] The automatic response solution module is used to match the air quality data, indoor light intensity data and outdoor light intensity data with the preset solution library to obtain the automatic response strategy, and send the automatic response strategy to the air purification module, over-limit alarm module, lighting adjustment module and curtain adjustment module.

[0053] Further, the preset window is provided with a steering gear 7; the preset curtain is provided with a stepping motor 5;

[0054] The servo 7 is used to provide a power source for changing the opening degree of the preset window; the stepper motor 5 is used to provide a power source for changing the opening and closing state of the preset curtain.

[0055] Specifically, the preset lighting lamp is a common anode four-terminal LED; the common anode four-terminal LED includes: a first LED lamp connected to the first port and the first protection resistor respectively, a second LED lamp connected to the second port and the second protection resistor respectively, a third LED lamp connected to the third port and the third protection resistor respectively, and a fourth LED lamp connected to the fourth port and the fourth protection resistor respectively;

[0056] The first port to the fourth port are respectively used to control the lighting state of the first LED lamp to the fourth LED lamp by writing a high level or a low level; the first protection resistor to the fourth resistor are respectively used to prevent the first LED lamp to the fourth LED lamp from overloading.

[0057] Optionally, the intelligent control subsystem and the key control subsystem are both configured on a STM32F407 single chip microcomputer.

[0058] Optionally, elderly people with poor learning and acceptance abilities are prone to forget voice control command words. In addition, children who do not have decision-making abilities cannot use smart homes correctly. Therefore, the design of the automatic control part must meet the condition that no human intervention is required, that is, the data from the sensor is analyzed and response instructions are issued to the device. The button remote control design of the manual control part is in a form that is easy for the elderly to use.

[0059] Specifically, the device distribution diagram of the indoor environment intelligent monitoring and control system is as follows: Figure 2 As shown, it includes: LCD display screen and keyboard input, buzzer 2, light intensity sensor 3, gas sensor 4, stepper motor 5, DC motor 6, steering gear 7, LED light.

[0060] refer to Figure 3 The hardware of this embodiment is generally divided into three parts: input device (data acquisition part), output device (execution part) and main control. 2 C (full name Inter-Integrated Circuit, a two-wire serial communication protocol, mainly used for short-distance communication), serial port and other peripheral interfaces realize data transmission and complete related operations. The servo 7 is used to control the window, the DC motor 6 is used to control the fan, the stepper motor 5 is used to control the curtain, the LED is used to provide lighting, the LED display is used for data display, and the buzzer 2 is used for alarm.

[0061] Furthermore, the main control of this embodiment adopts STM32F407 single chip microcomputer. STM32F407 provides a Cortex with an operating frequency of 168MHz. TM -M4 core (an embedded processor specially developed by ARM with floating point, DSP, parallel computing and other functions). The STM32F407 has a dynamic power adjustment function, which can achieve a low current consumption of 238μA / MHz in the running mode. The STM32F407 has the following features:

[0062] 2 USB OTG (one of which supports HS); OTG stands for USB On-The-Go, which is used to connect various devices or mobile devices for data exchange; HS: stands for High-speed, supports a normal transmission rate of 25Mbps-400Mbps, and a maximum transmission rate of 480Mbps;

[0063] Dedicated audio PLL and 2 full-duplex I 2 S; PLL (Phase Locked Loop) is a phase-locked loop or phase-locked loop, which is used to unify and integrate clock signals to enable high-frequency devices to work normally, such as accessing data in memory; I 2 S stands for Inter-ICSound bus, also known as integrated circuit built-in audio bus, which is an audio data transmission bus standard;

[0064] 15 communication interfaces, including: 6 USART interfaces with a maximum speed of 11.25Mb / s, 3 SPI interfaces with a maximum speed of 45Mb / s, 3 I 2 C interface, 2 CAN interfaces and 1 SDIO interface;

[0065] 2 12-bit DACs (digital-to-analog converters), 3 12-bit ADCs (analog-to-digital converters) with speeds of 2.4MSPS or 7.2MSPS;

[0066] 17 timers; the maximum frequency of the timer is 168MHz;

[0067] Static memory controller supporting Compact Flash, SRAM, PSRAM, NOR and NAND memory for expanding storage capacity;

[0068] True random number generator;

[0069] 512KB~1MB Flash and 192KB SRAM;

[0070] Package pin size 10mm*10mm;

[0071] For specific configuration and usage, refer to the STM32F40X data sheet, STM32F4 HAL library configuration manual, and STM32CubeMx user manual.

[0072] Specifically, the buzzer 2 used in this embodiment is an electronic sounder with an integrated structure, which is powered by a DC voltage. The buzzer 2 is mainly divided into two types: a piezoelectric buzzer 2 and an electromagnetic buzzer 2. The maximum driving current of a single IO port of the STM32F407 single-chip microcomputer is 25mA. The driving current of the buzzer 2 of the FS-STM32F407 development board is 30mA, so this embodiment uses a transistor to drive the buzzer 2. In the FS-STM32F407 development board, the buzzer 2 is controlled by the PG6 pin of the STM32F407. When the PG6 pin outputs a fixed frequency, the buzzer 2 makes a sound.

[0073] Specifically, the main control microcontroller generates a PWM control signal according to the information input by the input device, and the control signal is input to the signal modulation chip built into the servo 7 to obtain a DC bias voltage. There is a reference circuit inside the signal modulation chip, which generates a reference signal with a period of 20ms and a width of 1.5ms. The DC bias voltage obtained is compared with the voltage of the potentiometer to obtain a voltage difference. The potentiometer is a device whose voltage value changes with the rotation angle of the servo 7. The reference signal is generated by the reference circuit inside the signal modulation chip and has a fixed period and pulse width. The voltage and reference signal of the potentiometer are both involved in the voltage comparison process to determine the control signal of the servo 7 motor. The main function of the potentiometer in the servo 7 is to provide a feedback mechanism for adjusting the position or state of the servo 7. When the voltage of the potentiometer matches the voltage of the reference signal, the motor stops rotating, so that the position or state of the servo 7 reaches the expected target value. This feedback mechanism ensures that the servo 7 can stably maintain the desired position or state after receiving the instruction. Finally, the voltage difference is output to the motor drive chip to determine the forward and reverse rotation of the motor. When the motor speed is constant, the potentiometer is driven to rotate through the cascade reduction gear, so that the voltage difference is 0 and the motor stops rotating. The control of the servo 7 requires a 20ms time base pulse, the high level part of the pulse is 0.5ms-2.5ms, and the total interval is 2ms. Taking the 180-degree angle servo as an example, the corresponding relationship is as follows: 0.5ms--------------0 degrees; 1.0ms------------45 degrees; 1.5ms------------90 degrees; 2.0ms----------135 degrees; 2.5ms-----------180 degrees. The timer of STM32F407 contains a 16-bit or 32-bit automatic reload counter (CNT), which can be used for input capture (used to measure the input PWM wave period and pulse width), output comparison and output PWM. Through the schematic diagram, the pin used by the servo 7 is PB14, and the STM32F4 data manual PB14 pin corresponds to the first channel of timer 12.

[0074] Furthermore, the servo 7 potentiometer is composed of three main parts: a resistor, a moving contact and a fixed contact. The resistor is composed of a conductor with a resistive material. The moving contact is connected to the motor output shaft and contacts the resistor through mechanical connection. The fixed contact is located at the other end of the potentiometer and is connected to the other end of the resistor. Its working method is to adjust the electric field strength between the moving contact and the fixed contact by changing the resistance value of the internal resistor, so as to achieve the position control effect. When the servo 7 motor rotates, the moving contact will rotate with the motor. When the moving contact contacts the resistor, the electric field strength between the moving contact and the resistor will change according to different positions. The position of the resistor determines the position of the output shaft of the servo 7. By controlling the position of the resistor, the servo 7 can accurately control the output under different circumstances.

[0075] refer to Figure 4 The stepper motor (model 28byj-48) used in this embodiment is an electromechanical element that converts an electrical pulse signal into an angular displacement or a linear displacement. The input quantity of the stepper motor is a pulse sequence, and the output quantity is the corresponding incremental displacement or stepping motion. Under normal motion, it has a fixed number of steps per revolution; when performing continuous stepping motion, its rotation speed maintains a strict correspondence with the frequency of the input pulse. Since the stepper motor is directly controlled by digital quantity, it is suitable for being controlled by a microcomputer. Therefore, this embodiment controls it through a main control microcontroller. The eight states of the stepper motor are: (1) A high level; (2) A and B high level; (3) B high level; (4) B and A- high level; (5) A- gives high level; (6) A- and B- give high level; (7) B- gives high level; (8) B- and A give high level; the main control microcontroller supplies power in turn according to the above eight states to control the pulse width (controlled by precise delay); the reversal state only needs to reverse the timing.

[0076] refer to Figure 5 This embodiment uses the ZLG7290 package chip to realize screen display and keyboard input, and its core is a ZLG7290B chip. The communication of the ZLG7290 package chip adopts I 2C bus mode, so it is connected to the main control through two signal lines. The ZLG7290 packaged chip can drive an 8-bit common cathode digital tube or 64 independent LEDs. In addition, it can manage up to 64 keys; it also has functions such as flashing, segment lighting, segment extinguishing, function keys, combo key counting, and jitter elimination. The ZLG7290B chip has a 10-digit and 21-bit letter decoding display function and the function of writing display data to the display cache. When the user presses a key, the INT pin of the ZLG7290 packaged chip will generate a low-level interrupt request signal. After reading the key value, the interrupt signal will be automatically revoked. Under normal circumstances, the main control microcontroller only needs to judge the INT pin to obtain the key information input by the keyboard. The method for the main control microcontroller of this embodiment to obtain the user's keyboard input information includes: interrupt mode and query mode; interrupt mode, the advantage of this method is strong anti-interference ability, and the disadvantage is that it occupies an external interrupt source of the main control microcontroller; query mode, that is, by continuously querying the INT pin to determine whether a key is pressed, this method can save one I / O interface of the main control microcontroller, but the cost is I 2 The C bus is in a frequently active state, consumes a lot of current and is not conducive to anti-interference.

[0077] Furthermore, the functions of the pins of the ZLG7290 package chip are as follows: Dig0~7: collect keyboard column signals 0~7; SegA~H: collect keyboard row signals 0~7; SDA: collect I 2 C bus data signal; Vcc: provides power; SCL: collects I 2 C bus clock signal; / INT: collect keyboard interrupt request signal (low level is valid); GND: ground; OSC1: crystal oscillator input signal; OSC2: crystal oscillator output signal; / RST: collect reset signal (low level is valid).

[0078] Specifically, the fan used in this embodiment has a built-in L9110S device, which is a two-channel push-pull power amplifier special integrated circuit device designed for controlling and driving motors; the fan integrates discrete circuits into a single IC chip, making the cost of peripheral devices lower and the reliability of the whole machine higher. The chip has two TTL / CMOS compatible level inputs and has good anti-interference performance; the two output ends of the chip have a large current driving capability and can directly drive the forward and reverse motion of the motor. Each channel can continuously transmit 750-800mA of current, with a peak current capability of 1.5-2.0A, and also has a low output saturation voltage drop and quiescent current.

[0079] Furthermore, the fan used in this embodiment also has a built-in DAC5571 TI digital-to-analog converter, which is an 8-bit DA with a voltage output and has 6 functional pins with an operating voltage of 2.7V to 5.5V; the main control microcontroller is connected to the I2 The C bus controls the converter to generate a driving voltage. The voltage generated by the RC oscillation circuit in the fan and the driving voltage generated by the DAC5571 are input to the LM393; the LM393 is a dual voltage comparator integrated circuit. When the NA+ terminal of the LM393 is greater than the INA- terminal, the OUTA terminal outputs a high level, and when the INA- terminal is greater than the INA+ terminal, the OUTA terminal outputs a low level. The driving voltage generated by the DAC5571 is input to the INA+ terminal, and the voltage generated by the NES55 control RC oscillation circuit in the fan is input to the INA- terminal. The OUTA terminal controls the fan by outputting a PWM waveform. In the process of changing the voltage value of the DAC5571, the duty cycle of the high and low levels of the LM393 will change, thereby changing the PWM wave to control the speed of the DC motor 6 in the fan.

[0080] refer to Figure 6 , the light intensity sensor 3 of this embodiment is a digital light intensity sensor 3 integrated chip BH1750FVI. BH1750FVI is composed of a photosensitive diode (PD diode), an operational amplifier, ADC, a crystal oscillator, etc. The PD diode converts the input light signal into an electrical signal through the photovoltaic effect. After amplification by the operational amplifier circuit, the voltage is collected by the ADC, and then converted into a 16-bit binary number through a logic circuit and stored in an internal register. The stronger the collected light, the greater the photocurrent and the greater the voltage generated. Therefore, the size of the light can be judged by the size of the voltage, but the voltage is not proportional to the light intensity, so it is also necessary to use BH1750FVI to perform linear processing on the generated voltage data. The single-chip microcomputer passes I 2 C bus communicates with the BH1750FVI module to select the working mode of the BH1750FVI and extract the illuminance data from the registers in the BH1750FVI. AD2: used to set the I 2 The address of the C interface. 2 C After setting the address, connect this pin to ground or Vcc; DC33V: used to provide 3.3V power supply; GND: ground; 0R: 0Ω resistor, which is a magnetic bead in the actual circuit; R5506: photoresistor.

[0081] Specifically, Figure 7This is the circuit schematic diagram of the gas sensor 4 used in this embodiment. SMOKE: gas sensor element; LED: light; DC33V: 3.3V power supply; the working process is: based on the indoor gas, a voltage is generated by the gas sensor element, and the voltage signal is input into the built-in single-chip microcomputer for linear processing to obtain air quality data. The gas sensor 4 used in this embodiment is specifically an MQ2 combustible gas sensor 4 and an alcohol sensor. The MQ2 combustible gas sensor 4 is a commonly used gas sensor 4, which is mainly used to detect combustible gas and some other gases. Therefore, the gas sensor 4 of this embodiment can specifically detect the following components: natural gas (methane), liquefied petroleum gas (propane, butane, etc.), smoke (MQ2 sensor is also quite sensitive to smoke detection. When smoke is generated, the resistance value of the sensor will change), and alcohol.

[0082] refer to Figure 8 The LED used in this embodiment can be lit by writing low level to the four ports A0, A5, D5, and D3, and extinguished otherwise. D1 to D4 are all LED lamps; PWM signals can be input to the D3 and D5 terminals.

[0083] Specifically, the LCD display screen used in this embodiment is ssd1963, which is a TFT (Thin Film Transistor) true color LCD display controller with an internal integrated 1215KB frame buffer. It supports the display of 24-bit true color images with 864*480 pixels and receives image data and commands from the main control microcontroller through the bus interface.

[0084] See also Fig. 9 The input keyboard has 7 keys: a, b, c, d, e, D and #. In key mode:

[0085] When button "a" is pressed, the steering gear 7 is controlled to open the window; when it is pressed again, the steering gear 7 is controlled to close the window;

[0086] When the button "b" is pressed, the LED lighting lamp 8 starts to work; when it is pressed again, the LED lighting lamp 8 is turned off;

[0087] When the button "c" is pressed, the fan starts to work; when it is pressed again, the fan stops working;

[0088] When the button "d" is pressed, the buzzer 2 will sound an alarm; when it is pressed again, the buzzer 2 will stop sounding.

[0089] When the button "e" is pressed, the stepper motor 5 is controlled to open the curtain; when it is pressed again, the stepper motor 5 is controlled to close the curtain;

[0090] When button "D" is pressed, it switches to automatic mode;

[0091] When the "#" key is pressed, it switches to key mode.

[0092] Specifically, in smart mode:

[0093] When the indoor smoke gas concentration exceeds the standard, the fan and windows are turned on to exhaust the air and the buzzer 2 is controlled to sound an alarm;

[0094] When the indoor alcohol concentration exceeds the standard, the fan is turned on to exhaust and the buzzer 2 is controlled to run an alarm;

[0095] The curtain opening and closing states are adjusted according to the light intensity and time (the light intensity sensor 3 is placed outdoors). The control strategies include: when the light intensity is weak and the time is close to sunset, the state is determined to be night, and the curtains are closed to protect privacy at night; when the light intensity gradually increases and the time is close to sunrise, the environmental state is determined to be early morning, and the curtains are opened; during daytime working hours (the specific range is 0.5 hours after sunrise to 0.5 hours before sunset), the degree of curtain opening and closing is adjusted according to the indoor light intensity. If the curtains have been opened to the maximum but the indoor light intensity is still at a low level, the LED lighting 8 is turned on;

[0096] The LCD display is used to display the working status of each device in smart mode.

[0097] refer to Fig.10 , the ventilation state, light intensity, etc. of the room are intelligently regulated through the indoor environment intelligent monitoring and control system to improve the safety and comfort of the room. The indoor environment intelligent monitoring and control system includes an intelligent control system and a key control system. The intelligent control system and the key control system can be selected according to user needs to improve the convenience and diversity of adjusting the room. The air purification module is used to judge the indoor air state through the detection parameters of the gas sensor 4. When the air quality is poor, the fan is controlled to run to accelerate the air circulation speed in the room, thereby ventilating the room. The over-limit alarm module is used to control the buzzer 2. The light adjustment module is used to regulate the on and off state and operating power of the LED lighting lamp 8. The curtain adjustment module is used to control the operating state of the stepper motor 5 to control the opening and closing state of the curtain. The mode selection module is used to select the intelligent control subsystem and the key control subsystem. The window switch module is used to control the operation of the servo 7 to control the opening and closing state of the window. The fan switch module is used to control the operation of the DC motor 6 to control the opening and closing state of the fan. The lighting switch module is used to control the on / off state and operating power of the LED lighting lamp 8. The alarm switch module is used to control the alarm of the buzzer 2. The curtain switch module is used to drive and control the stepper motor 5 to control the opening and closing state of the curtain.

[0098] refer to Fig.11The overall flow of the program is: system initialization; sensor parameter collection; determine whether it is in smart mode; if it is smart mode, the LCD display screen displays "intelligent control", then determines whether there are environmental indicators that exceed the limit, if so, the corresponding components are controlled to operate, if not, it returns to sensor parameter collection; if it is key mode, the LCD display screen displays "key control", then determines whether a key is pressed, if so, the corresponding operation of the key is executed, if not, it returns to sensor parameter collection; each time the intelligent control and key control operations are completed, it returns to sensor parameter collection.

[0099] refer to Fig.12 ,Key control process: detect whether a key is pressed; if so, scan the key value and display it on the digital tube, then determine whether it is manual mode (key mode), if so, perform the corresponding operation according to the key value, otherwise end.

[0100] refer to Fig.13 ,Intelligent control process: collect environmental data, determine whether it is automatic mode (intelligent mode), if so, set the flag according to the environmental data, and control the corresponding equipment based on the flag.

[0101] refer to Fig.14 , LCD display process: determine whether it is manual mode, if so, display "manual" on the LCD display screen, if not, detect whether it is automatic mode; if so, display "automatic" on the LCD display screen, otherwise end.

[0102] refer to Fig.15 The LED task program flow is: set the on and off status of D0 and D1 according to the mode (manual mode, automatic mode), then control the on and off status of D3 according to the lighting flag sent by the main control microcontroller, and then control the on and off status of D4 and the working status of buzzer 2 according to the warning flag sent by the main control microcontroller.

[0103] refer to Fig.16 The task program flow of the stepper motor 5 is to determine the rotation signal (forward and reverse), determine whether to rotate forward or reverse under the rotation condition, and control the stepper motor 5 to perform the corresponding action.

[0104] refer to Fig.17 , the task program flow of DC motor 6 is to detect the rotation signal and execute the rotation action.

[0105] refer to Fig.18 The task program flow of the servo 7 is to detect the window opening and closing command. When the window opening command is detected, the servo 7 is controlled to rotate 180 degrees, otherwise no action is performed.

[0106] The beneficial effects of the present invention are as follows:

[0107] (1) The intelligent control mode provided by the present invention automatically adjusts the working status of indoor equipment according to the data collected by the sensor, realizing the whole process without human intervention.

[0108] (2) The key mode provided by the present invention is relatively simple and more suitable for use by the elderly and children.

[0109] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0110] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. An indoor environment intelligent monitoring and control system, It is characterized in that include: Intelligent control subsystem and key control subsystem; The intelligent control subsystem includes: an air purification module, an over-limit alarm module, a light adjustment module and a curtain adjustment module; the key control subsystem includes: a mode selection module, a window switch module, a fan switch module, a lighting switch module, an alarm switch module, a curtain switch module, a digital display module and an LCD display module; The air purification module is used to control the on / off state of the preset fan and the opening degree of the preset window according to the air quality data collected by the preset gas sensor; the over-limit alarm module is used to control the working state of the preset buzzer according to the air quality data; the light adjustment module is used to control the lighting power of the preset lighting lamp according to the indoor light intensity data collected by the preset light intensity sensor; the curtain adjustment module is used to control the opening and closing state of the preset curtain according to the outdoor light intensity data collected by the light intensity sensor; the mode selection module is used to receive the mode switching instruction of the preset input keyboard, and switch between the automatic adjustment mode and the manual adjustment mode according to the mode switching instruction; the window switch module is used to receive the opening degree instruction of the preset input keyboard, and control the opening of the preset window according to the opening degree instruction. The fan switch mode is used to receive the speed adjustment instruction of the preset input keyboard, and control the rotation speed of the preset fan according to the speed adjustment instruction; the lighting switch mode is used to receive the light adjustment instruction of the preset input keyboard, and control the output light power of the preset lighting according to the light adjustment instruction; the alarm switch module is used to receive the alarm instruction of the preset input keyboard, and control the working state of the preset buzzer according to the alarm instruction; the curtain switch module is used to receive the curtain switch instruction of the preset input keyboard, and control the opening and closing state of the preset curtain according to the curtain switch instruction; the digital display module is used to display the working data of the preset input keyboard; the LCD display module is used to display indoor environment information and equipment working state data.

2. According to claim 1, an indoor environment intelligent monitoring and control system, It is characterized in that The light intensity sensor comprises: a photosensitive diode, an operational amplifier and an ADC acquisition unit connected in sequence; The photodiode is used to convert the optical signal into an electrical signal; the operational amplifier is used to amplify the electrical signal to obtain an enhanced electrical signal; the ADC acquisition unit is used to convert the enhanced electrical signal into a 16-bit binary number and store the 16-bit binary number in a preset register.

3. According to claim 1, an indoor environment intelligent monitoring and control system, It is characterized in that The preset input keyboard includes a first button, a second button, a third button, a fourth button, a fifth button and a sixth button; The first button to the sixth button are respectively used to send the opening degree instruction, the light adjustment instruction, the speed adjustment instruction, the alarm instruction, the curtain switch instruction and the mode switching instruction.

4. According to claim 1, an indoor environment intelligent monitoring and control system, It is characterized in that The intelligent control subsystem also includes: an automatic response scheme module; The automatic response scheme module is used to match the air quality data, the indoor light intensity data and the outdoor light intensity data with a preset scheme library to obtain an automatic response strategy, and send the automatic response strategy to the air purification module, the over-limit alarm module, the light adjustment module and the curtain adjustment module.

5. According to claim 1, an indoor environment intelligent monitoring and control system, It is characterized in that The preset window is provided with a servo; the preset curtain is provided with a stepping motor; The servo is used to provide a power source for changing the opening degree of the preset window; the stepper motor is used to provide a power source for changing the opening and closing state of the preset curtain.

6. According to claim 1, an indoor environment intelligent monitoring and control system, It is characterized in that The preset lighting lamp is a common anode four-terminal LED; The common anode four-terminal LED comprises: a first LED lamp connected to the first port and the first protection resistor respectively, a second LED lamp connected to the second port and the second protection resistor respectively, a third LED lamp connected to the third port and the third protection resistor respectively, and a fourth LED lamp connected to the fourth port and the fourth protection resistor respectively; The first port to the fourth port are respectively used to control the lighting state of the first LED lamp to the fourth LED lamp by writing a high level or a low level; the first protection resistor to the fourth resistor are respectively used to prevent the first LED lamp to the fourth LED lamp from being overloaded.

7. The indoor environment intelligent monitoring and control system according to claim 1, It is characterized in that The intelligent control subsystem and the key control subsystem are both configured on a STM32F407 single chip microcomputer.

Citation Information

Patent Citations

  • Intelligent home control system based on deep learning and method thereof

    CN110376918A

  • Intelligent equipment control method and electronic equipment

    CN116804854A

  • Scene setting method and device of smart home system

    CN117724351A

  • Household equipment control terminal

    CN201589946U

  • Smart curtain control system and smart control method therefor

    WO2023216094A1