introduction
Nowadays, intelligence has become a new development trend in the field of automation, and has promoted the rapid expansion of intelligent functions to instruments, meters, equipment and other industries. The measurement and control of temperature and humidity are widely used in industrial and agricultural production, meteorological observation, constant temperature and humidity air-conditioned rooms, scientific research and daily life. This design is based on the intelligent environmental temperature and humidity control system of the temperature and humidity sensor LTM8901, with AT89S52 as the controller. Through simulation experiments, the detection and control of the ambient greenhouse temperature and humidity can be realized.
System hardware design
The system detects the temperature and humidity of the environment through the integrated digital temperature and humidity sensor, converts the temperature and humidity of the environment into digital quantities, and transmits the results to the single-chip microcomputer, which is displayed through the digital tube. The single-chip microcomputer uses the keyboard to set the maximum and minimum values of the ambient temperature and humidity, and compares the current value detected with the preset maximum and minimum values. According to the comparison result, the single-chip microcomputer makes corresponding judgments to control the working state of the output relay and perform corresponding control operations, thereby realizing the detection and control of the ambient temperature and humidity. The system block diagram is shown in Figure 1.
Temperature and humidity detection circuit
The system uses Changying Technology's LTM8901 as the environmental temperature and humidity sensor. LTM8901 is a digital temperature and humidity probe specially provided for users to design their own products. It can be used at a single point or in a multi-point network with other ITU equipment. Its humidity measurement range is 1% to 99%RH, the resolution is 0.5%RH, and the measurement accuracy is ±3.0%RH (typical value); the temperature measurement range is -25℃ to +60℃, the resolution is 0.0625℃, and the measurement accuracy is ±0.5℃; the typical response time is 5 seconds; the operating voltage range is 4.5V to 5.5V. LTM8901 directly outputs the measurement results as digital signals, which are serially transmitted to the microcontroller through the "one-line bus". At the same time, it can transmit the check code, which has strong anti-interference and error correction capabilities. Its circuit connection is shown in Figure 2.
Keyboard input and digital display circuit
The main function of the keyboard input circuit is to allow users to set the temperature and humidity reference values, including the maximum and minimum values. The keyboard input circuit consists of 4×4 small keyboards, with a total of 16 function keys, including 0~9 numeric keys, temperature setting keys, humidity setting keys, maximum value keys, minimum value keys, confirmation keys and clear keys. When the temperature setting key is valid, the maximum and minimum values of the preset temperature can be changed. When the temperature setting key is valid, the maximum and minimum values of the preset humidity can be changed. The maximum value key is used to indicate that the input is the maximum limit, and the minimum value key is used to indicate that the input is the minimum limit. It can be used in conjunction with the confirmation key to set the preset limit of temperature and humidity. The clear key is used to clear the current setting value.
The digital display circuit consists of 6 digital tubes, which are divided into two groups, one for displaying temperature value and the other for displaying humidity value. When the user sets the temperature and humidity reference value, the maximum or minimum value is displayed; when the system is in monitoring control, the currently detected temperature and humidity value is displayed.
Output Circuit
The system uses relay output to control the ambient temperature and humidity by changing the working state of the temperature control system or humidity control system. The system temperature and humidity control equipment mainly includes heating devices, ventilation devices, dehumidification devices and humidification devices. ULN2803 is an 8-fold Darlington inverting driver, whose input end is connected to the output port of the microcontroller, and the output end is connected to the input end of the relay. The relay uses the domestic AC solid-state relay (AC-SSR) H220D15, which uses photoelectric isolation inside to effectively avoid electromagnetic interference. When the microcontroller detects that the temperature value or humidity value exceeds the preset range, the I/O port of the microcontroller outputs a control signal to drive the relay, start the electrical appliance, and realize the control of the temperature control system or humidity control system.
System software design
The system software design adopts a modular structure, and each functional sub-block is independent, which is convenient for debugging. The main flow chart of the system is shown in Figure 3. As can be seen from the figure, the entire software is structurally divided into the main program, keyboard scanning program, LTM8901 control program, display program and output control program. The main program implements the initialization of each module and then enters the interrupt waiting. The main task of the keyboard scanning program is to determine which key is pressed, so as to execute the corresponding functional subroutine. The LTM8901 control program mainly detects the temperature and humidity values of the environment and transmits the detection results to the microcontroller. The display program is used to display the user preset value or the detection value. The output control program mainly compares the detection value with the user preset value, and sets or resets the corresponding output port according to the comparison result, thereby controlling the working state of the relay.
The control program of LTM8901 mainly includes the following steps: send a start conversion command (negative pulse of 250~350μs); delay 850~1000ms for LTM01 conversion; send a host computer read command. When the microcontroller sends a read command 00H, read the humidity value, then delay 4.5~5 ms, send a read command 01H, and read the temperature value.
Conclusion
LTM8901 is a monolithic integrated digital temperature and humidity sensor. All signal processing is completed internally. It uses a "one-line bus" for communication and completes data transmission in digital form, saving the I/O port of the microcontroller and the A/D device, reducing costs. The system has a simple circuit structure, accurate detection, and good stability, and can achieve measurement and control of ambient temperature and humidity.
Previous article:Remote temperature and humidity measurement and control system for flue-cured tobacco room based on Labview
Next article:Design of Temperature Fuzzy Adaptive PID Controller Based on FPGA
Recommended ReadingLatest update time:2024-11-17 00:41
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Sincerely recruiting embedded software and hardware engineers
- The problem of sending 10 seconds of data through the network port
- What is the function of the forward connection of the op amp output to the voltage regulator diode here?
- Adjustable speed fan cooling system with temperature measurement feedback
- Wi-Fi Solutions for IoT Wireless Designs
- [TI recommended course] #TI? Application of interface chips in automotive products#
- 【GD32E231_DIY】-01: Schematic diagram & PCB
- Live broadcast at 10 am today [ST three-phase motor control solution for home appliances]
- Apply for free evaluation! ——ESP32-S2-Kaluga-1 new multimedia development board, flexible disassembly and assembly to meet various needs
- What is the difference between a multivibrator and a bistable trigger? Their circuits are similar. What are the categories of triggers?