CN109883022B - Intelligent detection humidification device based on i.MX RT1052 - Google Patents

Intelligent detection humidification device based on i.MX RT1052 Download PDF

Info

Publication number
CN109883022B
CN109883022B CN201910170390.XA CN201910170390A CN109883022B CN 109883022 B CN109883022 B CN 109883022B CN 201910170390 A CN201910170390 A CN 201910170390A CN 109883022 B CN109883022 B CN 109883022B
Authority
CN
China
Prior art keywords
client
data
processor
lower computer
voltage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910170390.XA
Other languages
Chinese (zh)
Other versions
CN109883022A (en
Inventor
王俊彬
贺晨煜
黄彧
苗润怡
杨亿
陈子洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Institute of Technology
Original Assignee
Nanjing Institute of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Institute of Technology filed Critical Nanjing Institute of Technology
Priority to CN201910170390.XA priority Critical patent/CN109883022B/en
Publication of CN109883022A publication Critical patent/CN109883022A/en
Application granted granted Critical
Publication of CN109883022B publication Critical patent/CN109883022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

An intelligent detection humidifying device based on i.MX RT1052 comprises a lower computer and a client; the lower computer and the client realize data interaction through a WiFi wireless communication technology to achieve data transmission. The device takes a 32-bit processor i.MX RT1052 based on a Cortex-M7 framework as a platform, environmental information is collected through a sensor, the information collected by the sensor is displayed on an LCD (liquid crystal display) screen in the form of numerical values and charts, an internal 2D (two-dimensional) graphic processing engine PXP can be used for rapidly processing an LCD display image, and meanwhile, the humidifier autonomously works through the environmental numerical values. The invention can measure various environmental information, observe indoor relevant environmental information in real time through the client, can adaptively adjust the ambient humidity according to the acquired environmental data, can rapidly process image information and has short interrupt response time.

Description

Intelligent detection humidification device based on i.MX RT1052
Technical Field
The invention belongs to the field of environmental monitoring, and particularly relates to an intelligent detection and humidification device based on i.MX RT 1052.
Background
The general structure of humidifier on the existing market does: atomizing device, water tank and control module, atomizing device are located the water tank below, and control module is located atomizing device below, and atomizing device is connected with the power. The ordinary humidifier has the function simplification, can not be according to the humidity automatic switch humidifier of environment, need to rely on the manual mode, and once open the humidifier and just must artificially close the power, otherwise can open always and consequently cause a large amount of resources to waste. The traditional singlechip temperature control system has the following defects: the single chip microcomputer has slow interrupt response, long time for processing image information and low resolution for supporting LCD liquid crystal display.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides the intelligent detection humidifying device based on i.MX RT1052 based on the technical innovation fund project (project number: TB201904034) of Nanjing engineering college and the challenge cup fund project (project number: TP20180009, TZ20190029) of Nanjing engineering college.
In order to achieve the purpose, the invention adopts the following technical scheme:
the utility model provides an intellectual detection system humidification device based on i.MX RT1052 which characterized in that includes: the system comprises a lower computer and a client, wherein the lower computer and the client realize data interaction through a WiFi wireless communication technology, the lower computer is used for collecting ambient temperature and humidity and combustible gas concentration and sending the data to the client, and meanwhile, the lower computer receives control information from the client, adjusts the ambient temperature according to the control information and displays the collected ambient data.
In order to optimize the technical scheme, the specific measures adopted further comprise:
further, the lower computer comprises an i.MX RT1052 central processing unit, a sensor module, an LCD display module, a WiFi communication module and an execution module; the processor is used for responding and processing the measurement data of the receiving sensor module and sending the processed data to the WiFi communication module, the power supply of the processor is input through an external direct current 12V power supply, then 12V is converted into 5V through the voltage reduction circuit, the output of the voltage reduction circuit is connected to the input of the DC switching regulator, the voltage is converted into 3.3V, and the output of the regulator is connected with the power supply input of the processor; the sensor module comprises a temperature sensor, a humidity sensor and a smoke gas sensor, the temperature and humidity sensor is connected with an IO port of the processor, and the smoke gas sensor is connected with an ADC conversion pin of the processor; the LCD display module comprises an LCD liquid crystal screen, an eLCDIF liquid crystal controller and a GT9157 touch chip, the LCD liquid crystal screen is connected with the eLCDIF liquid crystal controller and the GT9157 touch chip in the processor, and the GT9157 touch chip is connected with the processor through an I2C bidirectional two-wire system synchronous serial bus; the WiFi communication module comprises an ESP8266 chip and an antenna, data collected from the sensor module are packaged and transmitted to the client, control information from the client is received at the same time, and the WiFi communication module is connected with the processor through an SPI serial peripheral interface; the execution module comprises an MOS tube switch circuit, a humidifier and a buzzer, the output of the voltage reduction circuit is connected to a power supply input port of the MOS tube switch circuit, a control signal output by the processor is input to a signal control port of the MOS tube switch circuit, and the output of the MOS tube switch circuit is connected with a power supply port of the humidifier.
Furthermore, the LCD is used for displaying a welcome interface, a control menu, the working state of the humidifier and data detected by the sensor module, and is displayed on the screen in the form of data and icons; the eLCDIF liquid crystal controller is used for driving an LCD (liquid crystal display) screen, is integrated in the i.MX RT1052 and controls the content displayed by the LCD screen, and firstly performs buffering processing on an image before sending image data to the LCD screen by using a 2D graphics processing engine PXP in the i.MX RT1052 so as to optimize a system based on an SRAM (static random access memory); the GT9157 touch chip is used for receiving touch signals on the LCD screen, when fingers touch the LCD screen, the GT9157 touch chip detects the touch position, sends interrupt signals to the processor through an I2C bus, indicates that the touch signals arrive, and sends electric shock position information to the processor.
Further, the MOS tube switching circuit consists of a 74HC00 four-channel two-input NAND gate, an optical coupler U4, an L6385D bridge driver and an enhanced NMOS; input ports IN1A and IN1B of 74HC00 are connected to an IO port of a processor, IN1A and IN1B are respectively connected with input ports 1 and 5 of 74HC00, an external PWM input port IN _ PWM is respectively connected with a PWM waveform output port of the processor and an input port of an optical coupler U4, an output port of the optical coupler U4 is connected with PWM input ports 2 and 4 of the 74HC00, and the optical coupler U4 is used for isolating signals from a power supply and enabling the signals not to be distorted;
the 3 end and 11 end outputs of 74HC00 are connected with the input end of an L6385D bridge driver, the HVG and LVG ends of L6385D are respectively connected with a protection circuit consisting of a current-limiting resistor R1, a voltage-stabilizing tube D1, a current-limiting resistor R6 and a voltage-stabilizing tube D3, the protection circuit is used for protection and isolation, the current-limiting resistors R1 and R6 are respectively connected in series in the circuit, when the current is too large, the voltage-stabilizing tubes D1 and D3 break down the circuit, and when the current does not exceed an allowable value after the voltage-stabilizing tubes break down, the voltage-stabilizing tubes can be in a breakdown state for a long time and cannot be damaged; the outputs of the two protection circuits are respectively connected with the grids of enhancement NMOS transistors Q1 and Q3, the drain of a field effect transistor Q1 is connected with a 12V direct-current power supply, and the source is connected with an output port OUT1A of an L6385D; the drain electrode of the field effect transistor Q3 is connected with the output port OUT1A, and the source electrode is grounded;
the 6 end and 8 end of 74HC00 output connect another L6385D bridge input end of driver, HVG and LVG end of L6385D connect the protective circuit formed by current-limiting resistance R2, stabilivolt D2 and current-limiting resistance R7, stabilivolt D4 separately, when the current is too big, stabilivolt D2, D4 breaks down the disconnect circuit; the outputs of the two protection circuits are respectively connected with the grids of enhancement type NMOS transistors Q2 and Q4, the drain of a field effect transistor Q2 is connected with an output port OUT1B of L6385D, and the source is grounded; the drain electrode of the field effect transistor Q4 is connected with a 12V direct current power supply, and the source electrode is connected with an output port OUT 1B;
when the HVG pin of the L6385D outputs a high level, the voltage between the grid and the source of the field effect transistor Q1 is greater than the conduction voltage, and the field effect transistor Q1 is conducted; meanwhile, the LVG pin of the L6385D outputs low level, the voltage between the grid and the source of the field effect transistor Q3 is smaller than the turn-on voltage, and the field effect transistor Q3 is cut off; and the field effect transistor Q4 at the other end is turned off, and the Q2 is turned on, so that a loop is formed among VCC _12V, Q1, Q2 and GND, and a voltage difference is generated between the output ends OUT1A and OUT1B of L6385D, so that the humidifier is powered on to work.
Further, the lower computer has the following working process:
after the lower computer is electrified to initialize each peripheral, firstly, a processor reads a humidity threshold value set by a client from an internal Flash and stores the humidity threshold value into a variable, current environment information is collected through each sensor, whether the current humidity is lower than the threshold value or not is judged, if not, the input end of an MOS tube switching circuit keeps an initial state, field effect tubes Q1 and Q3 are cut off, and the humidifier does not work; if the output voltage is lower than the threshold value, the processor outputs high level to the input end of the MOS tube switching circuit, so that the field effect tubes Q1 and Q3 are conducted, and the humidifier starts to work; refreshing the LCD screen and displaying the latest acquired data;
judging whether the lower computer is connected with the client or not, if not, not sending information to the client by the lower computer; if the connection is established, sending a data packet to the client through the WiFi communication module, and meanwhile judging whether a response signal from the client is received or not; if the response signal is not received, the data packet is sent again, the system continues to enter the detection environment, judges whether the environment humidity is lower than a threshold value or not and refreshes the normal running state of the LCD, judges whether the time interval of uploading the data packet last time reaches 5s or not after running for one time, and if the time interval of uploading the data packet last time reaches 5s, the connection with the client side is disconnected and needs to be reconnected; if not, judging whether the response signal is received again, and entering the circulation until the response signal is received or jumping out of the circulation after overtime; if receiving the response signal, judging whether the client has new data to send, and if receiving, sending the response signal; if not, not sending;
monitoring whether the smoke sensor detects combustible gas, if so, continuously sending a prompt tone through a buzzer and sending an alarm signal to a client for notification at the same time until the alarm signal is manually cut off;
judging whether the set humidity threshold value is changed or not, and if the set humidity threshold value is changed, storing a new humidity threshold value into Flash by the processor; and if the environment information is not updated, acquiring the environment information again to perform cycle work.
Furthermore, the client can display the environmental data measured by the sensor module, the working state of the system and the operation log of the user in real time, set the working humidity threshold of the humidifier, display the running states of all controllers of the system and provide an operation interface for remote control; the lower computer uses a WiFi communication module to package and upload collected data to a client through a custom protocol, the client analyzes the data package after receiving the data package sent from the lower computer, analyzed environment information is displayed on an interface, meanwhile, historical data are stored in a Sqlite database, modification and storage of the data are achieved through a function interface provided by the Sqlite, database backup is exported, the backed-up database is sent to a remote server through an HTTP protocol to be processed, and a user sends a request to a server through a remote procedure call protocol (RPC) to access the historical data.
Further, the custom protocol is composed of a frame header, a control bit, a data length bit, data, a check bit and a frame tail.
Further, the workflow of the client is as follows:
the client firstly judges whether the lower computer is connected or not, and if the lower computer is not connected, no program is executed; if the connection is made, firstly receiving a data packet sent by the lower computer, and sending a response signal after receiving the data packet; analyzing the data packet, displaying the analyzed environment information on an interface, storing historical data into a Sqlite database through a function interface provided by Sqlite, simultaneously exporting a database backup, and sending the database after backup to a remote server through an HTTP (hyper text transport protocol);
judging whether a new humidity threshold value is manually reset or not, and if not, judging whether a lower computer is connected for circulation or not again; if a new numerical value is set, the new numerical value is issued;
judging whether a response signal from the lower computer is received or not, and returning to receive a new data packet for circulation if the response signal is received; if not, retransmitting the data and judging whether the time is overtime for 5 s; if yes, judging that the connection is disconnected and needs to be reconnected; if not, whether the response signal is received is judged again.
The invention has the beneficial effects that: the temperature, humidity and combustible gas concentration data can be acquired, and indoor relevant environmental information can be observed in real time through the client; the automatic humidity adjusting function is set, and the optimal comfort corresponding to the human body can be automatically kept according to the currently set humidity threshold; a database management system is arranged for information storage, so that data modification and historical data query are facilitated; the WiFi communication module is arranged, data collected from various sensors can be packaged and transmitted to the mobile phone client, and meanwhile control information from the mobile phone client can be received; the image information can be processed quickly, and the interrupt response time is short.
Drawings
Fig. 1 is an overall schematic diagram of the intelligent detection humidifying device of the invention.
FIG. 2 is a schematic circuit diagram of a MOS transistor switch circuit according to the present invention.
FIG. 3 is an appearance style diagram of the lower computer of the present invention.
FIG. 4 is a control flow chart of the lower computer of the present invention.
Fig. 5 is a control flow chart of the client according to the present invention.
Detailed Description
The present invention will now be described in further detail with reference to the accompanying drawings.
As shown in fig. 1, the device takes a 32-bit processor i.mx RT1052 based on Cortex-M7 architecture as a platform, and comprises a lower computer and a client. The lower computer and the client realize communication through WiFi, so that data transmission is achieved, and an ESP8266 chip is mainly controlled to realize functions. In the lower computer, the power supply of the processor is input through an external direct current 24V power supply, 24V is converted into 5V through a voltage reduction circuit, the output of the voltage reduction circuit is connected to the input of a DC switching regulator (MP2144GJ) to convert the voltage into 3.3V, and the input of the regulator is connected with the power supply input of the processor; the LCD display screen is connected with an eLCDIF liquid crystal controller and a touch chip (GT9157) in the processor; the touch control chip is connected with the processor through an I2C bidirectional two-wire system synchronous serial bus; the WiFi communication module is connected with the processor through the SPI serial peripheral interface; the temperature and humidity sensor is connected with an IO port of the processor; the smoke gas sensor is connected with an ADC (analog to digital converter) conversion pin of the processor; the load unit consists of an MOS tube switch circuit and a humidifier, the voltage reduction circuit outputs direct current 5V to be connected to a power supply input port of the MOS tube switch circuit, and a control signal output by the processor is input to a signal control port of the MOS tube switch circuit to control the working state of the humidifier; the output of the MOS tube switching circuit is connected with a power supply port of the humidifier.
The lower computer is composed of an i.MX RT1052 central processing unit, a sensor module, an LCD display module, a WiFi communication module and an execution module.
The processor is used for responding and processing the received measurement data and sending the processed data to the WiFi communication module. The WiFi communication module comprises an ESP8266 chip and an antenna, and is used for transmitting the data collected by the sensor to the mobile phone client in a packaging mode and receiving control information from the mobile phone client.
The sensor module comprises a temperature sensor, a humidity sensor and a smoke gas sensor, and is connected with the processor and used for sending acquired data to the processor; the humidity sensor is responsible for recording the humidity information of the current environment, the humidity information monitoring is carried out on the current environment condition in real time, the temperature sensor is responsible for recording the temperature information of the current environment, the temperature information monitoring is carried out on the current environment condition in real time, and the smoke sensor realizes fire prevention through detecting the concentration of combustible gas in a room.
The LCD display module comprises an LCD liquid crystal screen, an eLCDIF liquid crystal controller and a GT9157 touch control chip. The LCD is mainly used for displaying a welcome interface, displaying a control menu and the working state of the humidifier and data detected by the detection module, and displaying the data and the data in the form of icons on the screen. The eLCDIF liquid crystal controller is used for driving the LCD liquid crystal screen, is integrated in the i.MX RT1052 and controls the content displayed by the LCD liquid crystal screen. Mx RT1052 is used internally by the 2D graphics processing engine PXP to buffer an image first before sending the image data to the LCD panel. SRAM-based systems are optimized. The GT9157 touch chip is used for receiving touch signals on the LCD screen, when fingers touch the LCD screen, the touch chip detects the touch position, sends interrupt signals to the central processing unit through the I2C bus, indicates that the touch signals arrive, and sends electric shock position information to the processor.
The execution module consists of an MOS tube switching circuit, a humidifier, a buzzer and an LED lamp.
As shown in fig. 2, the MOS transistor switching circuit is composed of a 74HC00 four-channel two-input nand gate, an optocoupler U4, an L6385D bridge driver, and an enhancement NMOS; input ports IN1A and IN1B of 74HC00 are connected to an IO port of a processor, IN1A and IN1B are respectively connected with input ports 1 and 5 of 74HC00, an external PWM input port IN _ PWM is respectively connected with a PWM waveform output port of the processor and an input port of an optical coupler U4, an output port of the optical coupler U4 is connected with PWM input ports 2 and 4 of the 74HC00, and the optical coupler U4 is used for isolating signals from a power supply and enabling the signals not to be distorted.
The 3 end and 11 end outputs of 74HC00 are connected with the input end of an L6385D bridge driver, the HVG and LVG ends of L6385D are respectively connected with a protection circuit consisting of a current-limiting resistor R1, a voltage-stabilizing tube D1, a current-limiting resistor R6 and a voltage-stabilizing tube D3, the protection circuit is used for protection and isolation, the current-limiting resistors R1 and R6 are respectively connected in series in the circuit, when the current is too large, the voltage-stabilizing tubes D1 and D3 break down the circuit, and when the current does not exceed an allowable value after the voltage-stabilizing tubes break down, the voltage-stabilizing tubes can be in a breakdown state for a long time and cannot be damaged; the outputs of the two protection circuits are respectively connected with the grids of enhancement NMOS transistors Q1 and Q3, the drain of a field effect transistor Q1 is connected with a 12V direct-current power supply, and the source is connected with an output port OUT1A of an L6385D; the drain of the field effect transistor Q3 is connected to the output port OUT1A, and the source is grounded.
The 6 end and 8 end of 74HC00 output connect another L6385D bridge input end of driver, HVG and LVG end of L6385D connect the protective circuit formed by current-limiting resistance R2, stabilivolt D2 and current-limiting resistance R7, stabilivolt D4 separately, when the current is too big, stabilivolt D2, D4 breaks down the disconnect circuit; the outputs of the two protection circuits are respectively connected with the grids of enhancement type NMOS transistors Q2 and Q4, the drain of a field effect transistor Q2 is connected with an output port OUT1B of L6385D, and the source is grounded; the drain of the field effect transistor Q4 is connected with a 12V direct current power supply, and the source is connected with the output port OUT 1B.
When the HVG pin of the L6385D outputs a high level, the voltage between the grid and the source of the field effect transistor Q1 is greater than the conduction voltage, and the field effect transistor Q1 is conducted; meanwhile, the LVG pin of the L6385D outputs low level, the voltage between the grid and the source of the field effect transistor Q3 is smaller than the turn-on voltage, and the field effect transistor Q3 is cut off; and the field effect transistor Q4 at the other end is turned off, and the Q2 is turned on, so that a loop is formed among VCC _12V, Q1, Q2 and GND, and a voltage difference is generated between the output ends OUT1A and OUT1B of L6385D, so that the humidifier is powered on to work.
IN summary, when the input terminals IN1A and IN1B are respectively applied with a low level, the output terminal voltage is 0; the output terminal supplies power to the load when the high level and the low level are applied, respectively.
Fig. 3 shows a design model of the product, and the WiFi antenna 1 is arranged at the top end of the product, so that the transmission gain of signals is improved; the front surfaces of the humidifier are respectively provided with an LCD (liquid crystal display) 7 for displaying a welcome interface, measured environment information, network connection information and running state information of the humidifier; and the LED indicator lamp 2 is used for indicating different working states. Wherein the LED1 indicates the working state of the system, green indicates normal operation; yellow indicates standby red indicates abnormal operation; LED2 indicates an alarm condition: the LED lamp is turned off during normal work, and when the LED lamp flashes a red light, the humidifier indicates that the water tank is low in water level and cannot work normally; LED3 indicates the connection status of the mobile terminal APP with the system: the green light flickers to indicate that the connection is normal, and the non-connection state is not lighted. A key 6 is arranged below the LED indicator lamp 2, when the key 1 is pressed down, a main power switch is turned on, and the equipment is powered on; the key 2 is used for releasing the alarm state in the alarm state; the right side of the antenna 1 is provided with a water filling port 3 of the humidifier, water is filled into the water bottle 5 through the water filling port 3, and the humidifying port 4 is arranged on the side surface of the water bottle 5. The power is supplied through the charging port 8 on the left, and the port 9 is acquired for the detection module in the grid above the charging port 8.
After the lower computer and the client are connected in the threshold synchronization state, the lower computer uses the WiFi communication module to package and upload the acquired data to the client through a user-defined protocol. The custom protocol consists of a frame header, a control bit, a data length bit, data, a check bit and a frame tail. The client can display the measured environmental data, the working state of the system and the operation log of the user in real time, set the threshold value of the working humidity of the humidifier, display the running states of all controllers of the control system, provide an operation interface and carry out remote control. After receiving a data packet sent from a lower computer, a client analyzes the data packet, displays the analyzed environment information on an interface, simultaneously stores historical data into a Sqlite database, and realizes modification and storage of the data by using a function interface provided by the Sqlite; and meanwhile, the database backup is exported, the backed-up database is sent to a remote server end through an HTTP (hyper text transport protocol) for data processing, and a user sends a request to the server through a Remote Procedure Call (RPC) protocol and can access historical data.
The working principle of the lower computer is briefly described as follows: as shown in fig. 4, after the lower computer is powered on to initialize each peripheral, the set humidity threshold is read from the internal Flash and stored in the variable. The current environment information is collected through each sensor, whether the current humidity is lower than a threshold value or not is judged, if not, the input end of the MOS tube switching circuit keeps an initial state, the field effect tubes Q1 and Q3 are cut off, and the humidifier does not work; if the output voltage is lower than the threshold value, the processor outputs high level to the input end of the MOS tube switching circuit, so that the field effect tubes Q1 and Q3 are conducted, and the humidifier starts to work; and refreshing the LCD screen to display the latest acquired data. Judging whether the lower computer is connected with the client or not, if not, not sending information to the client by the lower computer; if the connection is made, sending a data packet to the client, simultaneously judging whether a response signal from the client is received or not, if the response signal is not received, resending the data packet, continuously entering a detection environment by the system, judging whether the time interval is lower than a threshold value or not and refreshing the normal running state of the LCD, judging whether the time interval of uploading the data packet for the first time reaches 5s or not after running for one time, and if the time interval reaches 5s, judging that the connection with the client is disconnected and the reconnection is needed; if not, judging whether the response signal is received again, and entering the circulation until the response signal is received or jumping out of the circulation after time out. If receiving the response signal, judging whether the client has new data to send, and if receiving, sending the response signal; if not, not sending. Monitoring whether the smoke sensor detects combustible gas, if so, continuously sending prompt sound and sending an alarm signal to a mobile phone end through an alarm system, namely a buzzer, so as to inform the mobile phone end until the alarm signal is manually cut off. Judging whether the set humidity threshold value is changed or not, and if so, storing a new humidity threshold value into Flash; and if the environment information is not updated, acquiring the environment information again to perform cycle work.
The working principle of the client is briefly described as follows: as shown in fig. 5, the client first determines whether a lower computer is connected, and if not, does not execute any program; if the connection is made, firstly, a data packet sent by the lower computer is received, and a response signal is sent after the data packet is received. Analyzing the data packet, displaying the analyzed environment information on an interface, storing historical data into a Sqlite database through a function interface provided by Sqlite, simultaneously exporting the database backup, and sending the backup database to a remote server through an HTTP (hyper text transport protocol). Judging whether a new humidity threshold value is manually reset or not, and if not, judging whether a lower computer is connected for circulation or not again; and if the new numerical value is set, issuing the new numerical value. Judging whether a response signal from the lower computer is received or not, and returning to receive a new data packet for circulation if the response signal is received; if not, retransmitting the data and judging whether the time is overtime for 5 s; if yes, judging that the connection is disconnected and needs to be reconnected; if not, whether the response signal is received is judged again.
It should be noted that the terms "upper", "lower", "left", "right", "front", "back", etc. used in the present invention are for clarity of description only, and are not intended to limit the scope of the present invention, and the relative relationship between the terms and the terms is not limited by the technical contents of the essential changes.
The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above-mentioned embodiments, and all technical solutions belonging to the idea of the present invention belong to the protection scope of the present invention. It should be noted that modifications and embellishments within the scope of the invention may be made by those skilled in the art without departing from the principle of the invention.

Claims (6)

1. The utility model provides an intellectual detection system humidification device based on i.MX RT1052 which characterized in that includes: the system comprises a lower computer and a client, wherein the lower computer and the client realize data interaction through a WiFi wireless communication technology, the lower computer is used for collecting ambient temperature and humidity and combustible gas concentration and sending the data to the client, and meanwhile, the lower computer receives control information from the client, adjusts the ambient humidity according to the control information and displays the collected ambient data;
the lower computer comprises an i.MX RT1052 central processing unit, a sensor module, an LCD display module, a WiFi communication module and an execution module; the processor is used for responding and processing the measurement data of the receiving sensor module and sending the processed data to the WiFi communication module, the power supply of the processor is input through an external direct current 12V power supply, then 12V is converted into 5V through the voltage reduction circuit, the output of the voltage reduction circuit is connected to the input of the DC switching regulator, the voltage is converted into 3.3V, and the output of the regulator is connected with the power supply input of the processor; the sensor module comprises a temperature sensor, a humidity sensor and a smoke gas sensor, the temperature and humidity sensor is connected with an IO port of the processor, and the smoke gas sensor is connected with an ADC conversion pin of the processor; the LCD display module comprises an LCD liquid crystal screen, an eLCDIF liquid crystal controller and a GT9157 touch chip, the LCD liquid crystal screen is connected with the eLCDIF liquid crystal controller and the GT9157 touch chip in the processor, and the GT9157 touch chip is connected with the processor through an I2C bidirectional two-wire system synchronous serial bus; the WiFi communication module comprises an ESP8266 chip and an antenna, data collected from the sensor module are packaged and transmitted to the client, control information from the client is received at the same time, and the WiFi communication module is connected with the processor through an SPI serial peripheral interface; the execution module comprises an MOS tube switch circuit, a humidifier and a buzzer, the output of the voltage reduction circuit is connected to a power supply input port of the MOS tube switch circuit, a control signal output by the processor is input to a signal control port of the MOS tube switch circuit, and the output of the MOS tube switch circuit is connected with a power supply port of the humidifier;
the MOS tube switching circuit consists of a 74HC00 four-channel two-input NAND gate, an optocoupler U4, an L6385D bridge driver and an enhanced NMOS; input ports IN1A and IN1B of 74HC00 are connected to an IO port of a processor, IN1A and IN1B are respectively connected with input ports 1 and 5 of 74HC00, an external PWM input port IN _ PWM is respectively connected with a PWM waveform output port of the processor and an input port of an optical coupler U4, an output port of the optical coupler U4 is connected with PWM input ports 2 and 4 of the 74HC00, and the optical coupler U4 is used for isolating signals from a power supply and enabling the signals not to be distorted;
the 3 end and 11 end outputs of 74HC00 are connected with the input end of an L6385D bridge driver, the HVG and LVG ends of L6385D are respectively connected with a protection circuit consisting of a current-limiting resistor R1, a voltage-stabilizing tube D1, a current-limiting resistor R6 and a voltage-stabilizing tube D3, the protection circuit is used for protection and isolation, the current-limiting resistors R1 and R6 are respectively connected in series in the circuit, when the current is too large, the voltage-stabilizing tubes D1 and D3 break down the circuit, and when the current does not exceed an allowable value after the voltage-stabilizing tubes break down, the voltage-stabilizing tubes can be in a breakdown state for a long time and cannot be damaged; the outputs of the two protection circuits are respectively connected with the grids of enhancement NMOS transistors Q1 and Q3, the drain of a field effect transistor Q1 is connected with a 12V direct-current power supply, and the source is connected with an output port OUT1A of an L6385D; the drain electrode of the field effect transistor Q3 is connected with the output port OUT1A, and the source electrode is grounded;
the 6 end and 8 end of 74HC00 output connect another L6385D bridge input end of driver, HVG and LVG end of L6385D connect the protective circuit formed by current-limiting resistance R2, stabilivolt D2 and current-limiting resistance R7, stabilivolt D4 separately, when the current is too big, stabilivolt D2, D4 breaks down the disconnect circuit; the outputs of the two protection circuits are respectively connected with the grids of enhancement type NMOS transistors Q2 and Q4, the drain of a field effect transistor Q2 is connected with an output port OUT1B of L6385D, and the source is grounded; the drain electrode of the field effect transistor Q4 is connected with a 12V direct current power supply, and the source electrode is connected with an output port OUT 1B;
when the HVG pin of the L6385D outputs a high level, the voltage between the grid and the source of the field effect transistor Q1 is greater than the conduction voltage, and the field effect transistor Q1 is conducted; meanwhile, the LVG pin of the L6385D outputs low level, the voltage between the grid and the source of the field effect transistor Q3 is smaller than the turn-on voltage, and the field effect transistor Q3 is cut off; and the field effect transistor Q4 at the other end is turned off, and the Q2 is turned on, so that a loop is formed among VCC _12V, Q1, Q2 and GND, and a voltage difference is generated between the output ends OUT1A and OUT1B of L6385D, so that the humidifier is powered on to work.
2. An intelligent detection humidifying device based on i.MX RT1052 as claimed in claim 1, characterized in that: the LCD is used for displaying a welcome interface, a control menu, the working state of the humidifier and data detected by the sensor module, and is displayed on the screen in the form of data and icons; the eLCDIF liquid crystal controller is used for driving an LCD (liquid crystal display) screen, is integrated in the i.MX RT1052 and controls the content displayed by the LCD screen, and firstly performs buffering processing on an image before sending image data to the LCD screen by using a 2D graphics processing engine PXP in the i.MX RT1052 so as to optimize a system based on an SRAM (static random access memory); the GT9157 touch chip is used for receiving touch signals on the LCD screen, when fingers touch the LCD screen, the GT9157 touch chip detects the touch position, sends interrupt signals to the processor through an I2C bus, indicates that the touch signals arrive, and sends electric shock position information to the processor.
3. An intelligent detection humidifying device based on i.MX RT1052 as claimed in claim 1, characterized in that: the working process of the lower computer is as follows:
after the lower computer is electrified to initialize each peripheral, firstly, a processor reads a humidity threshold value set by a client from an internal Flash and stores the humidity threshold value into a variable, current environment information is collected through each sensor, whether the current humidity is lower than the threshold value or not is judged, if not, the input end of an MOS tube switching circuit keeps an initial state, field effect tubes Q1 and Q3 are cut off, and the humidifier does not work; if the output voltage is lower than the threshold value, the processor outputs high level to the input end of the MOS tube switching circuit, so that the field effect tubes Q1 and Q3 are conducted, and the humidifier starts to work; refreshing the LCD screen and displaying the latest acquired data;
judging whether the lower computer is connected with the client or not, if not, not sending information to the client by the lower computer; if the connection is established, sending a data packet to the client through the WiFi communication module, and meanwhile judging whether a response signal from the client is received or not; if the response signal is not received, the data packet is sent again, the system continues to enter the detection environment, judges whether the environment humidity is lower than a threshold value or not and refreshes the normal running state of the LCD, judges whether the time interval of uploading the data packet last time reaches 5s or not after running for one time, and if the time interval of uploading the data packet last time reaches 5s, the connection with the client side is disconnected and needs to be reconnected; if not, judging whether the response signal is received again, and entering the circulation until the response signal is received or jumping out of the circulation after overtime; if receiving the response signal, judging whether the client has new data to send, and if receiving, sending the response signal; if not, not sending;
monitoring whether the smoke sensor detects combustible gas, if so, continuously sending a prompt tone through a buzzer and sending an alarm signal to a client for notification at the same time until the alarm signal is manually cut off;
judging whether the set humidity threshold value is changed or not, and if the set humidity threshold value is changed, storing a new humidity threshold value into Flash by the processor; and if the environment information is not updated, acquiring the environment information again to perform cycle work.
4. An intelligent detection humidifying device based on i.MX RT1052 as claimed in claim 1, characterized in that: the client can display the environmental data measured by the sensor module, the working state of the system and the operation log of a user in real time, set the working humidity threshold of the humidifier, display the running states of all controllers of the system and provide an operation interface for remote control; the lower computer uses a WiFi communication module to package and upload collected data to a client through a custom protocol, the client analyzes the data package after receiving the data package sent from the lower computer, analyzed environment information is displayed on an interface, meanwhile, historical data are stored in a Sqlite database, modification and storage of the data are achieved through a function interface provided by the Sqlite, database backup is exported, the backed-up database is sent to a remote server through an HTTP protocol to be processed, and a user sends a request to a server through a remote procedure call protocol (RPC) to access the historical data.
5. The intelligent detection humidifying device based on i.MX RT1052 as claimed in claim 4, characterized in that: the self-defined protocol is composed of a frame header, a control bit, a data length bit, data, a check bit and a frame tail.
6. The intelligent detection humidifying device based on i.MX RT1052 as claimed in claim 4, characterized in that: the working process of the client is as follows:
the client firstly judges whether the lower computer is connected or not, and if the lower computer is not connected, no program is executed; if the connection is made, firstly receiving a data packet sent by the lower computer, and sending a response signal after receiving the data packet; analyzing the data packet, displaying the analyzed environment information on an interface, storing historical data into a Sqlite database through a function interface provided by Sqlite, simultaneously exporting a database backup, and sending the database after backup to a remote server through an HTTP (hyper text transport protocol);
judging whether a new humidity threshold value is manually reset or not, and if not, judging whether a lower computer is connected for circulation or not again; if a new numerical value is set, the new numerical value is issued;
judging whether a response signal from the lower computer is received or not, and returning to receive a new data packet for circulation if the response signal is received; if not, retransmitting the data and judging whether the time is overtime for 5 s; if yes, judging that the connection is disconnected and needs to be reconnected; if not, whether the response signal is received is judged again.
CN201910170390.XA 2019-03-07 2019-03-07 Intelligent detection humidification device based on i.MX RT1052 Active CN109883022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910170390.XA CN109883022B (en) 2019-03-07 2019-03-07 Intelligent detection humidification device based on i.MX RT1052

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910170390.XA CN109883022B (en) 2019-03-07 2019-03-07 Intelligent detection humidification device based on i.MX RT1052

Publications (2)

Publication Number Publication Date
CN109883022A CN109883022A (en) 2019-06-14
CN109883022B true CN109883022B (en) 2020-12-15

Family

ID=66931125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910170390.XA Active CN109883022B (en) 2019-03-07 2019-03-07 Intelligent detection humidification device based on i.MX RT1052

Country Status (1)

Country Link
CN (1) CN109883022B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8626344B2 (en) * 2009-08-21 2014-01-07 Allure Energy, Inc. Energy management system and method
CN204206143U (en) * 2013-12-09 2015-03-11 深圳市双翼科技有限公司 A kind of touch-switch power-supply controller of electric
CN104317325A (en) * 2014-10-24 2015-01-28 小米科技有限责任公司 Intelligent humidifying method and device, associated equipment and humidification managing device
CN204229255U (en) * 2014-11-19 2015-03-25 国家电网公司 Wi-Fi Ware Intelligent Humidity Controller
CN106482789A (en) * 2016-11-07 2017-03-08 广东技术师范学院 SCM Based wireless environment monitoring system and method

Also Published As

Publication number Publication date
CN109883022A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN103530997B (en) Fire alarm control system and control method thereof
CN104143244B (en) Automatic fire alarm system communication modes and fire alarm automatic alarm system
CN109883022B (en) Intelligent detection humidification device based on i.MX RT1052
CN207967608U (en) Distribution terminal based on NFC function
CN109794031B (en) Internet of things intelligent identification and alarm system and method for fire-fighting water pressure meter
CN201069551Y (en) Wireless mouse with energy-saving display
CN212229020U (en) Three-phase safety electric meter
CN208043951U (en) Phase checking device based on car switch
CN106406114A (en) Intelligent home monitoring device
CN203272187U (en) Time controller system of electric fan
CN207833305U (en) A kind of computer network automatic control device
CN102353498A (en) Low-power intelligent monitor for hydraulic pressure of pipeline and monitoring method thereof
CN207182600U (en) Fire-fighting SMS alarming device and system
CN210039032U (en) Remote control intelligent monitoring alarm electric control cabinet
CN217211154U (en) Fresh-keeping storehouse temperature detection alarm system
CN215814133U (en) Multi-screen indicating system
CN219868383U (en) LCD display circuit of air conditioner
CN203191343U (en) Building block water content testing equipment
CN216562033U (en) Two-wire system display alarm system
CN112833551B (en) Control method of bidirectional radio frequency water heater and water heater
CN212626548U (en) Power distribution cabinet power-off detection system with short message automatic alarm function
CN214154121U (en) Automatic many power equalizers of discernment power supply type energy-conserving collection equipment
CN205910545U (en) Online measurement and control terminal of intelligence
CN220473872U (en) MCU-based small relay protection measurement and control device
CN212486626U (en) Solar video and sensor information transmission system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant