Intelligent temperature and humidity intelligent control system and method

文档序号:1888477 发布日期:2021-11-26 浏览:6次 中文

阅读说明:本技术 一种智能化的温湿度智能控制系统及方法 (Intelligent temperature and humidity intelligent control system and method ) 是由 杨庆生 于 2021-09-26 设计创作,主要内容包括:本发明公开了一种智能化的温湿度智能控制系统及方法,属于温湿度智能控制技术领域,包括下位机控制器和上位机监控系统,下位机控制器的输出端分别与LCD显示模块、温度控制模块、湿度控制模块、报警模块和备用控制接口连接,下位机控制器的输入端分别与温度检测模块、湿度检测模块、键盘输入模块和扩展通用接口连接。本发明提出的一种智能化的温湿度智能控制系统及方法,采用节省能源的模糊控制算法,结合AT89S51单片机技术研制了一种稳定性高、成本低的温、湿度智能控制方式,大大提高了生产率及设备系统的稳定性,实现全方位智能化的管理控制系统。(The invention discloses an intelligent temperature and humidity intelligent control system and method, belonging to the technical field of temperature and humidity intelligent control. According to the intelligent temperature and humidity intelligent control system and method provided by the invention, an energy-saving fuzzy control algorithm is adopted, and an AT89S51 singlechip technology is combined to develop a temperature and humidity intelligent control mode with high stability and low cost, so that the productivity and the stability of an equipment system are greatly improved, and an omnibearing intelligent management control system is realized.)

1. An intelligent temperature and humidity intelligent control system comprises a lower computer controller (1) and an upper computer monitoring system (10), and is characterized in that the output end of the lower computer controller (1) is respectively connected with an LCD display module (2), a temperature control module (3), a humidity control module (4), an alarm module (5) and a standby control interface (11), and the input end of the lower computer controller (1) is respectively connected with a temperature detection module (6), a humidity detection module (7), a keyboard input module (8) and an extended universal interface (9);

the lower computer controller (1) is connected with the RS485 communication module (12), and the RS485 communication module (12) is connected to the upper computer control system (10).

2. The intelligent temperature and humidity control system as claimed in claim 1, wherein DQ pins of a DS18B20 chip in the temperature detection module (6) are connected in parallel with other DS18B20 sensors and a resistor R1 to the lower computer controller (1), a plurality of DS18B20 are connected in parallel to a single three-wire, the temperature measurement range is-55 to +125, the intrinsic temperature measurement resolution is 0.5, the working power supply is DC3 to 5V, and the measurement results are serially transmitted in a 9 to 12-bit digital quantity manner.

3. The intelligent temperature and humidity control system as claimed in claim 1, wherein pin 1 of the shi 1 chip of the humidity detection module (7) is grounded to one end of a capacitor C1, the other end of the capacitor C1 is connected to pin 4 of the shi 1 chip through a parallel connection port of a resistor R2 and +5V, the other end of the resistor R2 is connected to a parallel connection port of pin 2 of the shi 1 chip and a port P1.1, and pin 3 of the shi 1 chip is connected to a parallel connection port P1.2.

4. An intelligent temperature and humidity control system as claimed in claim 3, wherein the SHIT1 chip is used for the non-linear compensation of the humidity sensor, and the following formula is adopted:

in the formula: RH (relative humidity)linearThe humidity value is subjected to linear compensation; SO (SO)RHIs a relative humidity measurement; c1, C2 and C3 are linear compensation coefficients;

the temperature compensation formula for the linearly compensated humidity value is as follows:

RHtrue=(T-25)×(t1+t2×SORH)+RHlinear

in the formula: RH (relative humidity)trueThe humidity value is subjected to linear compensation and temperature compensation; t is the temperature at which the humidity value is measured, and T1 and T2 are temperature compensation coefficients.

5. The control method of the intelligent temperature and humidity control system according to any one of claims 1 to 4, comprising the following steps:

s1: the single chip microcomputer of the lower computer controller (1) is started and initialized, and the LCD display module (2), the temperature detection module (6), the humidity detection module (7) and the clock chip DS1302 are also initialized;

s2: the clock chip DS1302 operates to determine time/date;

s3: the temperature detection module (6) and the humidity detection module (7) read and process temperature and humidity values measured by the sensors, real-time temperature and humidity displayed by the LCD display module (2) are compared with the temperature and humidity values detected by the temperature detection module (6) and the humidity detection module (7), if the detected temperature and humidity values are consistent with the real-time temperature and humidity displayed by the LCD display module (2), the waiting is continued, otherwise, the real-time temperature and humidity of the LCD display module (2) are continuously checked;

6. the method of claim 5, wherein the step of detecting the temperature and humidity by the temperature detection module (6) and the humidity detection module (7) in step S3 comprises the steps of:

s31: initializing chips of the temperature detection module (6) and the humidity detection module (7), and starting the chips of the temperature detection module (6) and the humidity detection module (7) at the same time;

s32: waiting for the upper computer monitoring system (10) or the keys to send instructions to measure the temperature and the humidity to the singlechip of the lower computer controller (1);

s33: the temperature and the humidity are calculated by a single chip microcomputer;

s34: and the calculation result is sent to an upper computer monitoring system (10) through an RS485 communication module (12).

Technical Field

The invention relates to the technical field of intelligent temperature and humidity control, in particular to an intelligent temperature and humidity intelligent control system and method.

Background

The temperature and humidity control is widely applied to production and life of people, and has strict requirements on the environmental temperature and humidity for agricultural product seeds. People usually use a thermometer and a hygrometer to measure the temperature and the humidity, and the temperature and the humidity are controlled by methods of manual heating, humidification, ventilation, cooling and the like, so that the method is low in control precision, poor in real-time performance and high in labor intensity of operators. Because the temperature and humidity change regularity is not strong, the temperature and humidity of the detected object have the characteristics of nonlinearity, thermal inertia, time-varying property and the like, and an accurate mathematical model is difficult to establish.

Disclosure of Invention

The invention aims to provide an intelligent temperature and humidity intelligent control system and method to solve the problems in the background technology.

In order to achieve the purpose, the invention provides the following technical scheme: an intelligent temperature and humidity intelligent control system comprises a lower computer controller and an upper computer monitoring system, wherein the output end of the lower computer controller is respectively connected with an LCD display module, a temperature control module, a humidity control module, an alarm module and a standby control interface, and the input end of the lower computer controller is respectively connected with a temperature detection module, a humidity detection module, a keyboard input module and an expansion general interface;

the lower computer controller is connected with the RS485 communication module, and the RS485 communication module is connected to the upper computer control system.

Furthermore, DQ pins of a DS18B20 chip in the temperature detection module are connected with other DS18B20 sensors in parallel and a resistor R1 are connected on the lower computer controller 1, a plurality of DS18B20 are connected on a single three-wire in parallel, multi-point temperature detection is achieved, the temperature measurement range is-55 to +125, the inherent temperature measurement resolution is 0.5, the working power supply is DC3 to 5V, and measurement results are transmitted in series in a 9-12-bit digital quantity mode.

Further, the SHIT1 chip can obtain a more accurate humidity value after linear compensation and temperature compensation. Since the relative humidity digital output characteristic has a certain nonlinearity, in order to compensate for the nonlinearity of the humidity sensor, the humidity value can be corrected according to the following formula:

in the formula: RH (relative humidity)linearThe humidity value is subjected to linear compensation; SO (SO)RHIs a relative humidity measurement; c1, C2 and C3 are linear compensation coefficients;

therefore, it is necessary to perform temperature compensation on the linearly compensated humidity value, and the compensation formula is as follows:

RHtrue=(T-25)×(t1+t2×SORH)+RHlinear

in the formula: RH (relative humidity)trueThe humidity value is subjected to linear compensation and temperature compensation; t is the temperature at which the humidity value is measured, and T1 and T2 are temperature compensation coefficients.

Furthermore, pin 1 of the shi 1 chip of the humidity detection module and one end of the capacitor C1 are grounded in common, the other end of the capacitor C1 and pin 4 of the shi 1 chip are connected with a parallel port of a resistor R2 and +5V voltage, the other end of the resistor R2 is connected with a parallel port of pin 2 and port P1.1 of the shi 1 chip, and pin 3 of the shi 1 chip is connected with a parallel port of port P1.2.

The invention provides another technology, which comprises a method of an intelligent temperature and humidity intelligent control system, and comprises the following steps:

s1: the single chip microcomputer of the lower computer controller is started and initialized, and the LCD display module, the temperature detection module, the humidity detection module and the clock chip DS1302 are also initialized;

s2: the clock chip DS1302 operates to determine time/date;

s3: the temperature detection module and the humidity detection module read and process temperature and humidity values measured by the sensor, real-time temperature and humidity displayed by the LCD display module are compared with the temperature and humidity values detected by the temperature detection module and the humidity detection module, if the detected temperature and humidity values are consistent with real-time temperature and humidity displayed by the LCD display module, the LCD display module continues to wait, otherwise, the real-time temperature and humidity of the LCD display module continues to be checked;

further, for step S3, the detecting by the temperature detecting module and the humidity detecting module includes the following steps:

s31: initializing chips of the temperature detection module and the humidity detection module, and starting the chips of the temperature detection module and the humidity detection module at the same time;

s32: waiting for the upper computer monitoring system or the key to send an instruction to measure the temperature and the humidity to the singlechip of the lower computer controller;

s33: the temperature and the humidity are calculated by a single chip microcomputer;

s34: and the calculation result is sent to an upper computer monitoring system through an RS485 communication module.

Compared with the prior art, the invention has the beneficial effects that:

according to the intelligent temperature and humidity intelligent control system and method provided by the invention, an energy-saving fuzzy control algorithm is adopted, and an AT89S51 singlechip technology is combined to develop a temperature and humidity intelligent control mode with high stability and low cost, so that the productivity and the stability of an equipment system are greatly improved, and an omnibearing intelligent management control system is realized.

Drawings

FIG. 1 is a block diagram of the system of the present invention;

FIG. 2 is a block diagram of the temperature sensing module of the present invention;

FIG. 3 is a block diagram of the temperature sensing module of the present invention;

FIG. 4 is a flowchart of a main process of the present invention;

FIG. 5 is a block diagram of temperature and humidity acquisition processing according to the present invention.

In the figure: 1. a lower computer controller; 2. an LCD display module; 3. a temperature control module; 4. a humidity control module; 5. an alarm module; 6. a temperature detection module; 7. a humidity detection module; 8. a keyboard input module; 9. expanding a general interface; 10. an upper computer monitoring system; 11. a standby control interface; 12. and an RS485 communication module.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Referring to fig. 1, an intelligent temperature and humidity intelligent control system includes a lower computer controller 1 and an upper computer monitoring system 10, wherein an output end of the lower computer controller 1 is connected to an LCD display module 2, a temperature control module 3, a humidity control module 4, an alarm module 5 and a standby control interface 11, and an input end of the lower computer controller 1 is connected to a temperature detection module 6, a humidity detection module 7, a keyboard input module 8 and an extended universal interface 9.

The temperature and humidity control range of the closed space is adjusted through setting of a fixed value, the temperature control module 3 and the humidity control module 4 transmit temperature and humidity information in the closed space to the lower computer controller 1, the lower computer controller 1 sends out control signals according to actual conditions to drive the control module to perform corresponding operation, and meanwhile, current information is stored in a corresponding memory unit of a single chip microcomputer of the lower computer controller 1 and data is uploaded to an upper computer monitoring system 10 and stored. When the temperature or the humidity exceeds the upper limit and the lower limit of the set range, the lower computer controller 1 starts or stops corresponding equipment to adjust the environment humidity and the temperature, and simultaneously displays various adjustment information on the LCD display module 2 and gives an alarm signal to the alarm module 5. And establishing a control log for storage. In addition, some expansion universal interfaces 9 can be designed to provide convenience for the expansion of the functions of the equipment in the future.

The lower computer controller 1 is connected with an RS485 communication module 12, and the RS485 communication module 12 is connected with the upper computer monitoring system 10.

Referring to fig. 2, DQ pins of a DS18B20 chip in the temperature detection module 6 are connected in parallel with other DS18B20 sensors and a resistor R1 to the lower-level computer controller 1, the temperature detection module of the system can increase a plurality of detection points according to the size of the space area, the DS18B20 chip has a function of supporting multi-point networking, a plurality of DS18B20 chips can be connected in parallel to a single three-wire to achieve multi-point temperature detection, the temperature measurement range is-55 to +125, the inherent temperature measurement resolution is 0.5, the working power supply is DC3 to 5V, and the measurement results are serially transmitted in a 9 to 12-bit digital quantity manner. The detection circuit is shown in fig. 2.

The temperature of the space is measured by using a digital temperature sensor DS18B20, a control signal is provided by a singlechip controller, a signal is transmitted to a relay through a photoelectric isolator to control each execution heating fan to act so as to adjust the temperature and the humidity of the space, and P2.0-P2.4 interfaces of an AT89S51 singlechip are respectively used as I/O interfaces for driving air doors of an air conditioner heating refrigeration, a circulating fan and a dehumidifying window.

When the output level of the I/O interface is 0, the K1 switch is switched off, and the corresponding execution motor does not work; when the output level of the I/O interface is 1, the photoelectric isolator outputs a signal to close the K1 switch, and accordingly the motor is executed to work. The keyboard input module 8 and the RS485 communication module 12 realize the setting of the control system by adopting a query mode, thereby achieving the timely adjustment of the temperature and humidity values of the system and the limited range thereof. If abnormal conditions occur, the device immediately transmits the events to the upper computer monitoring system 10 through the RS485 communication module 12, and sends out alarm signals.

The sensor is highly integrated, functions of temperature sensing, humidity sensing, signal conversion, A/D conversion, a heater and the like are integrated on one chip, two-line digital serial interfaces SCK and DATA are provided, the interfaces are simple, CRC transmission verification is supported, transmission reliability is high, measurement accuracy is high, temperature-compensated humidity measurement values and high-quality dew point calculation functions can be provided due to the fact that the temperature sensor and the humidity sensor are integrated at the same time, and the SHT11 chip can directly output digital humidity values through a DATA DATA bus. This humidity value is called relative humidity! The accurate humidity value can be obtained only after linear compensation and temperature compensation. Since the relative humidity digital output characteristic has a certain nonlinearity, in order to compensate for the nonlinearity of the humidity sensor, the humidity value can be corrected according to the following formula:

in the formula: RLinear is the humidity value after linear compensation; SORH is relative humidity measurement; c1, C2 and C3 are linear compensation coefficients and take the values listed in table 1.

TABLE 1 humidity Linear Compensation coefficient

Therefore, it is necessary to perform temperature compensation on the linearly compensated humidity value, and the compensation formula is as follows:

RHtrue=(T-25)×(t1+t2×SORH)+RHlinear

in the formula: RH (relative humidity)trueThe humidity value is subjected to linear compensation and temperature compensation; t is the temperature at which the humidity value is measured, and T1 and T2 are temperature compensation coefficients.

TABLE 2 humidity value temperature compensation coefficient

Referring to fig. 3, pin 1 of the shi 1 chip of the humidity detection module 7 is grounded to one end of a capacitor C1, the other end of the capacitor C1 is connected to pin 4 of the shi 1 chip through a parallel connection port of a resistor R2 and +5V, the other end of the resistor R2 is connected to a parallel connection port of pin 2 and a port P1.1 of the shi 1 chip, and pin 3 of the shi 1 chip is connected to a parallel connection port of the port P1.2.

The output driving control module generates an electric signal through the control chip to control the corresponding equipment to operate or stop, and the automatic adjustment of the space temperature and humidity can be realized. When the detected temperature and humidity values are larger than or smaller than the set values, the alarm module 5 generates an alarm signal to inform the user to pay attention to the current condition at the same time, and corresponding manual measures are required to be taken if necessary.

Referring to fig. 4, a control method of an intelligent temperature and humidity intelligent control system includes the following steps:

the method comprises the following steps: the single chip microcomputer of the lower computer controller 1 is started and initialized, and the LCD display module 2, the temperature detection module 6, the humidity detection module 7 and the clock chip DS1302 are also initialized;

step two: the clock chip DS1302 operates to determine time/date;

step three: the temperature detection module 6 and the humidity detection module 7 read and process temperature and humidity values measured by the sensors, real-time temperature and humidity displayed by the LCD display module 2 are compared with the temperature and humidity values detected by the temperature detection module 6 and the humidity detection module 7, if the detected temperature and humidity values are consistent with the real-time temperature and humidity displayed by the LCD display module 2, the waiting is continued, otherwise, the real-time temperature and humidity of the LCD display module 2 are continuously checked;

referring to fig. 5, the detection by the temperature detection module 6 and the humidity detection module 7 includes the following steps:

a first section: initializing chips of the temperature detection module 6 and the humidity detection module 7, and starting the chips of the temperature detection module 6 and the humidity detection module 7 at the same time;

a second section: waiting for the upper computer monitoring system 10 or the key to send an instruction to measure the temperature and the humidity to the singlechip of the lower computer controller 1;

third stage: the temperature and the humidity are calculated by a single chip microcomputer;

and a fourth section: and the calculation result is sent to the upper computer monitoring system 10 through the RS485 communication module 12.

Because the temperature and humidity change regularity is not strong, the temperature and humidity of the detected object have the characteristics of nonlinearity, thermal inertia, time-varying property and the like, and an accurate mathematical model is difficult to establish. The fuzzy control algorithm does not need to establish an accurate mathematical model, can be abstracted into a series of control algorithms according to manual actual operation experience and then completes the control process through a computer, and has the characteristics of good control dynamic response, small overshoot, strong stability and the like.

The controller can automatically detect the changes of temperature and humidity values of the environment in day and night, seasons and space, and realizes the automatic control process by utilizing a fuzzy algorithm.

In the temperature and humidity control program, the temperature and the humidity respectively have 2 input data and 1 output data. e is temperature and humidity deviation; delta e is the rate of change of temperature and humidity; u is an output control variable, and the values are respectively as follows:

e={PL,MM,PS,O,NS,NM,NL}

Λe={PL,PM,PS,O,NS,NM,NL}

u={PL,PM,PS,O,NS,NM,NL

wherein: PL denotes negative Large; PM represents minus; PS means minus is small; NS represents positive or small; NM denotes median; NL denotes positive. Then, based on expert knowledge and experience of operators, a fuzzy control table is established. Its fuzzy relationship can be represented by a plurality of conditional statements, for example: IFe ═ NLand Δ e ═ NLthenu ═ SM; and (5) carrying out operation according to the fuzzy inference, and then deducing a control result.

In the main program, the main program is mainly responsible for real-time display of temperature and humidity in the space, reading and processing the temperature and humidity values measured by the sensors, and when the actual values are different from the preset upper and lower limits of temperature and humidity, sending out a control signal to drive the output control unit to start or stop the execution control motor, and simultaneously sending out an alarm signal to inform a user of the current occurrence condition and make a corresponding control log record.

The device has certain universality, can be applied to real-time monitoring of various devices in the wharf through simple improvement, effectively improves the operation efficiency of the wharf and greatly reduces the failure rate of the devices during operation.

In conclusion; the intelligent temperature and humidity intelligent control system provided by the invention adopts an energy-saving fuzzy control algorithm and combines an AT89S51 singlechip technology to develop a temperature and humidity intelligent control mode with high stability and low cost, thereby greatly improving the productivity and the stability of an equipment system and realizing an all-round intelligent management control system.

The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and inventive concepts of the present invention are equivalent or changed and shall be covered by the scope of the present invention.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种建筑材料生产车间环境控制调节方法及系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!