Introduction
Temperature controllers have been widely used in many fields such as industrial control. The intelligent temperature controller with computer communication function introduced in this article is a novel automatic instrument. It uses the single-chip microcomputer AT89C52 as the core, adopts voltage/frequency conversion technology and RS-485 communication interface chip MAX487, and has the advantages of high measurement accuracy, good reliability, strong anti-interference performance, and can realize computer network control. It can be widely used in metallurgy, textile, chemical industry, medical and other industries. It has the temperature measurement and automatic control in the range of -200 to +500°C, and is a substitute for the old temperature controller, with broad market prospects.
2 System hardware design
The system hardware block diagram is shown in Figure 1.
After the system is connected to the 220V AC power supply, the voltage stabilizing circuit (7805, 7905) generates a ±5V DC working power supply to meet the working needs of the integrated circuit in this system. The system's telemetry circuit starts to work: in places where personnel cannot enter or are difficult to enter, the temperature sensor platinum resistor PT100 and operational amplifier OP07 convert the change of the measured temperature into a voltage signal, which is converted into a pulse signal by LM331 for V/F conversion and input to the T0 port of 89C52 for frequency counting. The counting pulse frequency reflects the size of the measured temperature. The system enters
port, P2.0, and P2.1 are connected to 8155. The T0 input terminal of the counter at P3.4 port is connected to the frequency output terminal of LM331 for pulse counting. P1.7 port is the control terminal of the optocoupler TIL117.
The system data storage and fault protection part is composed of X25045, which is a 512-byte EEPROM with serial communication and has watchdog and power monitoring functions. X25045 has three programmable watchdog cycles. When power is on and VCC is lower than the detection threshold, it outputs a reset signal. The reset high level of X25045 output is valid, and its reset output terminal is directly connected to the reset terminal of 89C52.
X25045 pin functions:
: chip select input; SO: serial output; SI: serial input; SCK: serial clock input; WP: write protection input; RESET: : reset output. 2.4 Communication port (MAX487) This system uses RS-485 interface chip MAX487 as the communication port. MAX487 is a differential bus low-power transceiver produced by MAXIM for RS-485 and RS-422 communications. It contains a driver and a receiver, has a driver/receiver enable function, an input impedance of 1/4 load (≥48kW), and a node number of 128, that is, each MAX487 driver can drive 128 standard loads. The driver of MAX487 is designed to limit the slope so that the output signal edge is not too steep, so as to avoid generating too many high-frequency components in the transmission line, thereby effectively curbing interference. The receiving sensitivity of MAX487 is ±200MV, that is, when the differential voltage of the receiving end is ≥+200MV, the receiver output is high level, when it is ≤-200MV, the receiver output is low level, and when it is between ±200MV, the receiver output is uncertain. Therefore, once the receiver of a node generates a low level when the bus is idle, the transmission line is open or short-circuited, the serial receiver will not be able to find the start bit, thus causing communication abnormality. For this reason, this system has been processed in hardware: the A and B output terminals of MAX487 are connected with pull-up and pull-down resistors to ensure that all receivers can receive complete data when valid data is sent. The data transmission rate of MAX487 is 0.25Mbps, the static operating current is 120μA, and it works with a single 5V power supply. In this system, MAX487 adopts half-duplex communication mode, and the communication between nodes is through a pair of twisted pairs as the transmission medium. Because the characteristic impedance of the twisted pair is 120Ω, the system connects a 120Ω resistor at the beginning and end of MAX487 to reduce the reflection of the transmission signal on the line. Since the host and extension are far apart, and the extension system is often powered on or reset at different times, if a MAX487 is in the sending state at this time, it will occupy the communication bus and make other extensions unable to communicate with the host. This system adds an optocoupler TIL117 between the P1.6 port of 89C52 and the DE terminal of MAX487, ensuring that the DE terminal of MAX487 is "0" when the system is powered on and reset, effectively solving this problem.
The main pin functions of MAX487 are as follows:
RO: receiver output terminal; : receiver output enable terminal, RO is enabled when it is "0"; DE: driver output enable terminal; DI: driver input terminal; A: receiver in-phase input terminal and driver in-phase output terminal; B: receiver inverting input terminal and driver inverting output terminal.
3 Design of control software The system software adopts modular design and consists of main program, subprogram and interrupt service program. The main program flow chart is shown in Figure 2. The main subprograms include: display subprogram; keyboard scanning subprogram; PID operation subprogram. Due to space limitations, the specific program is omitted. 4 Conclusion The intelligent temperature control meter has high measurement accuracy and stable and reliable performance. It can not only replace the old temperature control meter, but also realize efficient data management of computer network. It is a practical intelligent instrument in the field of modern industrial control.
→参考文献CH(开始)
1 Cao Qiaoyuan. Principles and Applications of Single Chip Microcomputers. Beijing: Publishing House of Electronics Industry, 1997
Previous article:Design of AT88RF256 RFID Card Reader
Next article:Design of intelligent ultrasonic tooth cleaning machine
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- What are the wireless communication protocols?
- File transfer based on UART (zmodem protocol)
- Please help me look at this input 5V circuit design
- Live broadcast at 10 am today [Anshi's new generation of efficient gallium nitride (GaN) power supply design solution]
- Qorvo's 5th Anniversary: Share Your Story
- MSP430f5529——Dot Matrix LCD Test Applet
- MSP430 single chip microcomputer makes intelligent digital multimeter circuit diagram + program
- Design and implementation of a miniature real-time multi-eye stereo vision machine
- program
- [Today at 10:00 am] Keysight metrology experts talk about: Electronic instrument metrology calibration knowledge and calibration cycle