Temperature sensor design based on single chip microcomputer

Through the analysis of the principle of AT89C2051 single-chip microcomputer, a design scheme for environmental temperature measurement and control is studied, which realizes the purpose of using AT89C2051 single-chip programming to achieve control temperature and accurate measurement.

In modern industrial production, temperature measurement and control are extremely common. The advantages of single-chip microcomputer are very detailed. It has many advantages such as small size, powerful function, low power consumption, high cost performance, etc. It is widely used in the field of automatic control, and the application of single-chip microcomputer can effectively improve The control quality and automation level of the product, and the technology of measuring and controlling the temperature by using the single chip microcomputer are increasingly widely used.

1 AT89C2051 component technical parameters

The AT89C2051 is a model of the 51 series MCU. It is a low voltage, high performance CMOS 8-bit MCU that is compatible with the MCS-51 instruction system. The MCU has an 8-bit CPU and flash memory unit, which makes the MCU powerful. . Can provide users with more complex control functions and implementation methods.

2 hardware design

(1) overall design

The system uses the AT89C2051 model single-chip microcomputer as the processor to realize its temperature control. The system has added the serial port, which can conveniently convert the data collected by the single-chip microcomputer and send it to the computer through the RS422 serial port to carry out real-time monitoring work. At the same time, our system uses a seven-segment digital tube to display the collected temperature values ​​in real time, so that the actual temperature can be conveniently displayed.

(2) Design of human-machine communication

The man-machine interface control panel in the man-machine communication system is composed of three parts: display screen, keyboard and alarm circuit. The display part is the decimal digital display of the LED, which can be easily monitored by manual means; the main functions of the keyboard part are used for starting, stopping, resetting, and temperature setting of the system.

(3) Design of communication interface

The data communication between the human-machine communication system and the computer is realized by level conversion through the data interface RS485. This level shifting is implemented using a more common level shifting chip that includes a chip of two receivers and drivers as an interface. This article uses the ADM2490EBRWZ chip produced by MAXIM.

3 software design and development

(1) Development tools used

After selecting the hardware, we will start the software development work. This system uses assembly language as the development tool. After the source program is written, it must be compiled into the machine language that the microcontroller can execute to perform related operations. We can There are two ways to write assembly statements. One is based on the 51 single-chip assembly language. The second is to write in a high-level language. With the continuous development and development of microcontroller development technology, we have gradually used high-level languages ​​to replace assembly language to develop microcontroller applications.

(2) overall system design

The overall design of the system is actually software design. We can make the corresponding changes according to the different requirements put forward by software development. At present, the research and development of related technologies of MCU has become increasingly mature, and the corresponding color design changes are relatively convenient. For example, we can design several or more temperature sensors to collect related data according to the needs of the system.

1.50mm Wire To Board Connectors

1.50mm Wire To Board Connectors:Line to board has rubber shell, terminal and needle holder.

The wire to board connector connects the wires to the printed circuit board (PCB) to realize the connection between circuits. Our line to board connectors focus on flexibility and reliability, suitable for small size plug-in and safe termination, and are equipped with friction locking mechanism or full locking mechanism. Our lcedi connectors provide excellent performance in both low voltage differential signaling (LVDS) and embedded DisplayPort (EDP) applications. Our economical power supply (EP) connectors have up to 12 locations, so your product can reliably deliver power to circuit boards when space is limited. We offer PCB male terminals with multiple or single connection types, including bolt mounting, printed circuit mounting, wire crimping, testing, soldering, and mounting frames for quick disconnect applications.

1.50mm Wire To Board Connectors

ShenZhen Antenk Electronics Co,Ltd , https://www.atkconnectors.com