Design and Realization of Temperature Measurement
Design and Realization of Temperature Measurement
Abstract—Computer aided design is an important method in register(FPEROM-Flash Programmable and Erasable Read
industrial design. The process of single chip micro-controller unit Only Memory).
(MCU) based on Proteus simulation software is ocular, rapid, easy
debugging, with low cost and high efficiency. DS18B20 DS18B20 Is a Tiny Temperature Sensor. Its range is
temperature sensor has high accuracy, wide range and -55°C~+125°C. In the range of -10~+85°C , the accuracy is
anti-interference properties. Hardware design, software editing, ±0.5°C . The field temperature is transmitted directly by way of
component welding and system debugging are involved in circuit “first bus line” digit mode, thus the anti-interference of the
design. Under the environment of Proteus, the hardware design system is greatly enhanced. This tiny temperature sensor is
and software debugging of single chip micro-controller and digital suitable for the measurement of field temperature in
circuit can be completed easily. This can shorten the cycle of abominable environment. DS18B20 only need to be connected
product development and enhance design efficiency. It can be with micro-processor by way of one port line to achieve
applied to the t range of temperature occasions from -55°C to bi-directional communication. It communicates with the MCU
+125°C. of AT89C51 through single bus protocol. The AT89C51 port of
P3.3 connects the DQ end of DS18B20 chip. LCD1602 links
Keywords-temperature; proteus software; simulation; the SCM P0. P2 port of AT89C51 .The main function of MCU
microcontroller; design AT89C51 is to control and complete the collection of
I. INTRODUCTION temperature and display information. The schematic diagram
drawn by the Proteus software interface is shown in figure 1[1,
With the development of computer technology, all kinds of 2].
computer-aided design and production increase daily.
Man-machine dialogue is a kind of work mode which is used in Liquid crystal 1602LCD refers to liquid crystal module
industrial design. The computer has interactive, rapid access (displays characters and numbers) which displays the content of
and automatic processing and other functions. It can not only 16X2, i.e. display two lines and each line has 16 characters.
show the design effect and high efficiency, but also can do Most character liquid crystal is based on 16X2 liquid crystal
further simulation of the design content, show even 3D virtual chip [3]. Liquid crystal LCD1602 monitor is connected with the
component, device or product. The production of temperature P0 and P2 ports of single chip micro-controller. The single chip
measurement system is based on Proteus simulation software, micro-controller controls and completes the temperature
combined with the microcontroller circuit principle. The circuit collection and information display.
design process involves the hardware design, software
programming, component and system for welding debugging.
The design of hardware and software, the single-chip
microcomputer and digital electronic circuit and convenient
debugging can be completed in the Proteus environment. The
product development cycle can be shortened and the design
efficiency improved.
The purpose of this paper is to demonstrate the temperature
measurement system which is designed under the Proteus
software. First it shows the circuit, then programming, finally
simulates the virtual system.
II. CIRCUIT OF PRINCIPLE
Temperature measurement system is mainly composed of FIGURE I. PRINCIPLE CIRCUIT.
single chip AT89C51 control chip, DS18B20 temperature
sensor, liquid crystal monitor LCD1602 components. III. SOURCE PROGRAM DESIGN
AT89C51 is a kind of lower voltage, high performance The editing of source program mainly includes the
CMOS 8 bit micro-processor with 4kbit flash realization of temperature acquisition, its display and control
module. They are the temperature sensor DS18B20 reading and
241
FIGURE III. 8051 CPU SFR MEMORY. FIGURE VI. 3D SIMULATION.
VI. SUMMARY
Proteus circuit simulation fully reflects the ideas of circuit
design, software design, circuit simulation, PCB circuit board
design, the circuit welding and system debugging. The full
understanding of the principle of the circuit is achieved from
qualitative analysis to quantitative analysis; the achievement is
realized from pure theory to the analysis of circuit design,
circuit simulation experiment; the realization is achieved of the
PCB circuit board design to the actual hardware installation and
FIGURE IV. 8051 CPU REGISTERS. debugging. The simulation analysis and fabrication become the
bridge from pure theory to practice. The design process is
intuitive and quick to the comprehensive development of new
products effectively. According to different applications, one
can put the module package in other equipments, such as the
realization of cable trench, water circulation system, air
conditioning temperature control, agricultural greenhouse
environment control temperature occasions.
ACKNOWLEDGMENT
This Project has been supported by Xingtai University.
FIGURE V. INTERNAL MEMORY. REFERENCES
[1] He Jingkai. SCM System Design, Simulation and Application -- Based on
V. PCB CIRCUIT BOARD DESIGN the Keil and Proteus Simulation Platform [M]. Xi'an: Xi’an Electronic
Science and Technology University Press, 2011.2 (in Chinese)
(1) Click the ‘toolbox’ of ‘ARES’ interface. Search
‘component placement and editing’ icon, select the elements in [2] Li Quanli. The SCM Theory and Interface Technology [M]. Beijing:
Higher Education Press, 2013.12
the list and click the left mouse button in a frame, put the
[3] Yu chengbo. Sensor and Automatic Detection Technology [M]. Beijing:
selected element. (2) After placed element, click ‘Tools’- ‘Auto Higher Education Press, 2009.7 (in Chinese)
Router’ from the menu. Dialog box, click the ‘Begin Routing’ [4] Ding Xiangrong. C language Program Design and Keil C [M].
button in the presence dialog box, it can be automatically Guangdong: Guangdong Higher Education Press, 2013.9 (in Chinese)
complete the wiring. (3) Set level,set the rules, inspect wiring, [5] Geng Zhaoying.C, Application Programming Tutorial [M]. Beijing:
check cyclic redundancy, check the design planning. (4) Click People's Posts and Telecommunications Press, 2010.11 (in Chinese)
‘output’ on the menu bar, and then click ‘Gerber and Excellon [6] Xu Aijun. Keil C51 Microcontroller High-level Language Application
output’, open the dialog box, start to design. Generate Gerber Programming and Practice [M]. Beijing: Publishing House of electronics
file. Click ‘output’ on the menu bar again, then click ‘Gerber industry, 2013.12
view’, pop up ‘Gerber view’, and check the selected optical [7] Zhang Yigang. Principle and Application of Single Chip Microcomputer
drawing layer. Finish the final circuit PCB board. (5)When the --C51 Programming +Proteus Simulation [M]. Beijing: Higher Education
Press, 2012.11 (in Chinese)
wiring is completed, the 3D simulation effect is shown as figure
[8] Du Shuqing. Based on Proteus and Keil C51 Microcontroller Design and
6. Simulation [M]. Beijing: Publishing House of Electronics Industry,
2012.2
[9] Zhu Qinghui.Proteus Tutorial - electronic Circuit Design, Plate Making
and Simulation [M]. Beijing: Tsinghua University Press, 2011.6
242