Introduction to the automatic temperature and humidity monitoring system based on AT89C51/55

Publisher:知识智慧Latest update time:2012-11-14 Source: 21ic Keywords:AT89C51 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
1 System hardware design
The system structure is shown in Figure 1. The 51 series single-chip microcomputers AT89C55 and AT89C51 produced by ATMEL are used as the core, of which the host uses AT89C55 and the slave uses AT89C51. The slave is responsible for 64-point data detection. The temperature and humidity of each detection point are converted into voltage signals through temperature and humidity sensors and their conversion circuits; the signal is selected through the matrix network, and the obtained signal is sent to the corresponding signal amplification and sorting circuit for amplification, and then enters the A/D converter for analog-to-digital conversion, and the digital quantity is sent to the slave, and then processed by the slave, sent to the LED for display, and transmitted to the host AT89C55 at regular intervals; the host is responsible for collecting data in each granary (50~100 granaries can be monitored), realizing data storage, printing and calling historical data, and can display the timely temperature, humidity and alarm status of each granary on a roving basis.
AT89C55/51 chip is a 51 series 8-bit single-chip microcomputer launched by ATMEL. The AT89C55 chip mainly has 20KB Flash memory, 256 bytes of on-chip RAM, 4 8-bit bidirectional addressable I/O ports, 1 full-duplex UART (universal asynchronous receiver transmitter) serial interface, 3 16-bit timers/counters, multiple priority nested interrupt structures, and an on-chip oscillator and clock circuit.
In this system, the host uses the rich 20KB flash memory resources of AT89C55 to permanently save real-time measurement information, historical measurement data and other key results, and the slave completes data collection and transmission. The host is located in the monitoring room, and the slave is located in each granary. There is a certain distance between the master and the slave. The signal transmission adopts serial asynchronous communication. The UART module integrated in the AT89C55/51 single-chip microcomputer is suitable for communicating with other computer systems and external peripheral chips of the single-chip microcomputer, and can realize three working modes: full-duplex asynchronous, half-duplex synchronous master control and half-duplex synchronous slave control. In this system, the UART module is used to work in full-duplex asynchronous communication mode, where TX is the transmit line and RC is the receive line. RS-422 drivers and receivers, such as MC3487 and MC3486 chips, are used to achieve stable signal transmission.

The measurement circuit is composed of sensors, matrix measurement networks, multi-channel analog switches and amplifier circuits. Temperature measurement range: -45~+45℃, ±0.5℃; humidity measurement range: 0~99%RH, ±0.8%RH. The temperature sensor uses the integrated temperature sensor AD590M, which has the characteristics of linear current output 1μA/K; temperature range -55~150℃; voltage input/current output; laser correction to ±0.5℃ calibration accuracy (AD590M), and linearity can reach ±0.3℃/FS. When in use, the AD590M can be inserted into the granary pile. In view of the humidity measurement range and accuracy requirements, the humidity sensor uses the humidity-sensitive integrated sensor IH-3602. This is a capacitive humidity sensor, which contains a conditioning circuit and a temperature compensation circuit, and outputs a DC voltage of 0.8~4V, which can be directly input into the A/D converter through a multi-way switch.
The matrix measurement network is composed of multi-way analog switches CD4051, CD4052, temperature sensor AD590, and humidity sensor IH-3602, and its connection is shown in Figure 2. The temperature (humidity) measurement matrix is ​​composed of 8 analog switches of CD4051, 4 analog switches of CD4052 and 32 AD590 (32 IH-36021). The selection of each measuring element is controlled by the address code. In the matrix network composed of CD4051, CD4052, AD590, and IH-3602, the 4 input lines A and B of the two CD4052 and the 3 input lines A, B, and C of CD4051, a total of 7-bit address codes, are provided by the P0 port of AT89C51. The INH of CD4052 is directly connected to the high level, while the INH of CD4051 is provided by the P2 port. The temperature and humidity output signals, i.e., the OUT of CD4052, are respectively connected to the temperature and humidity amplifier circuits.

The software of the multi-channel temperature and humidity monitoring system is designed in a modular way, mainly including the host program and the slave program. The slave program design usually performs initialization first, such as setting interrupts, timers, serial ports, and initialization of external programmable devices, and then cyclically executes the main functions, such as timing, data acquisition, digital filtering, display, and timing data transmission to the host. The host receives the acquisition signal sent by the slave at a regular time, saves it and displays it in real time. The process is shown in Figure 3. After power-on reset, different granary position numbers, temperature and humidity values, and their measurement time are displayed, and the keyboard management program module and the receiving program module are called. In order to prevent the program from running away, the master and slave machines are respectively designed with watchdog circuits to ensure the normal operation of AT89C55 and AT89C51.

This design uses the AT89C51/55 single-chip microcomputer, which has reliable performance and simple circuits and is suitable for mass production. Moreover, the system can make full use of the unused software and hardware resources in the AT8951/55, making the system redevelopable.
Keywords:AT89C51 Reference address:Introduction to the automatic temperature and humidity monitoring system based on AT89C51/55

Previous article:Grating digital display system based on single chip microcomputer AT89S51
Next article:Design of touch screen controller based on AT89C2051 single chip microcomputer

Recommended ReadingLatest update time:2024-11-16 20:52

Design and Principle Analysis of Remote Control Alarm System Based on AT89c51 Single Chip Microcomputer
1 Introduction      Due to the rapid economic development, people's living standards have been greatly improved, and the pace of life is getting faster and faster. Therefore, home appliance remote control and family safety are also needed and valued by people. The remote control and alarm device of electrical applianc
[Microcontroller]
Design and Principle Analysis of Remote Control Alarm System Based on AT89c51 Single Chip Microcomputer
C source program of frequency meter based on AT89C51 single chip microcomputer and main functions of frequency meter
    This article is a C source program for a frequency meter based on the AT89C51 microcontroller. The main functions of this frequency meter are as follows:       1. Test functionality       It indicates all the test functions of the digital frequency meter, generally including frequency measurement, period , cumu
[Microcontroller]
C source program of frequency meter based on AT89C51 single chip microcomputer and main functions of frequency meter
AT89C51 instant water heater program
Instantaneous water heater program MCU AT89C51 XAL 12MHz //#pragma SRC  #include reg51.h   #include intrins.h   #include math.h   void delay(unsigned int); //Delay function void display(void); //display functionunsigned  char keysCAN(void); //key scan processing functionvoid  heatCTRl(void); //heating control function
[Microcontroller]
Design of a fast charger for electric bicycle based on AT89C51
1. Introduction Electric bicycles are favored by many users because of their pollution-free, noise-free, light and beautiful features. However, their limitations are also exposed in use, such as the battery running out halfway, and the battery life will gradually shorten as the use time increases. This paper a
[Power Management]
Design of a fast charger for electric bicycle based on AT89C51
Design of CAN Bus Intelligent Node Based on AT89C51 Single Chip Microcomputer
Controller Area Network (CAN) is a fieldbus with international standards and high cost performance. CAN was first introduced by Bosch in 1986 and is a multi-host local network originally used for communication of modern automotive microcontrollers to achieve information exchange between various electronic control de
[Microcontroller]
Design of CAN Bus Intelligent Node Based on AT89C51 Single Chip Microcomputer
How to modify the AT89C51 programmer with RTL8139
  I wanted to play with 89C51, but I didn’t have a programmer, so I wanted to make my own programmer. I found a lot of self-made information. Most of them used 89C51 for control logic, which required a programmer to make. The circuits are generally more complicated (the most ez ones also require 30 components), and th
[Microcontroller]
How to modify the AT89C51 programmer with RTL8139
AT89C51 single-chip microcomputer water lamp C language program and detailed explanation (literacy tutorial)
AT89C51 microcontroller is a microcontroller that we must learn when we study microcontrollers. It is also a textbook for microcontrollers. The following is a method for writing a running light that is suitable for beginners. First, draw a simulation diagram in proteus to facilitate the simulation program Let's wr
[Microcontroller]
AT89C51 single-chip microcomputer water lamp C language program and detailed explanation (literacy tutorial)
Design of MP3 Solution Based on Single Chip Microcomputer AT89C51SND1C
As people's requirements for portable music players increase, MP3 players have won the favor of music lovers with their small size and good sound quality. At first, MP3 files could only be played by computers. With the development of the Internet, MP3 players were produced. With people's further understanding of MP3
[Microcontroller]
Design of MP3 Solution Based on Single Chip Microcomputer AT89C51SND1C
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号