Design and Simulation of Temperature Data Acquisition System based on Proteus. Jinghui Su

Similar documents
Study of Smart Home System based on Zigbee Wireless Sensor System. Jie Huang 1

Study of LED Electronic Writing Screen based on Single Chip Dengjin Wu 1

The engine temperature real-time monitoring instrument based on Microcontroller. Wang Jiayue, Yue Yuntao, Luan Ru, Zhang Jianghui Qin Xin

Design of Digital Voltmeter for Microcontrollers

Based on a Single Chip Microcomputer to Realize Electronic Clock Design and Analysis

Design of Bicycle mileage Speed Meter

Design of the Storage Battery Online Monitoring System

Research on Mine Gas Monitoring System Based on Single-chip Microcomputer

Design of Greenhouse Temperature and Humidity Monitoring System Based on ZIGBEE Technique Ming Xin 1,a, Wei Zhongshan 1,b,*

Microcontrollers. Principles and Applications. Ajit Pal +5 V 2K 8. 8 bit dip switch. P2 8 Reset switch Microcontroller AT89S52 100E +5 V. 2.

World Scientific Research Journal (WSRJ) ISSN: Design and Implementation of Stepper Motor Control System

EMBEDDED SYSTEMS: Jonathan W. Valvano INTRODUCTION TO THE MSP432 MICROCONTROLLER. Volume 1 First Edition June 2015

Research of digital temperature measurement system in vacuum thermal test based on DS18B20

Design of Desert Plant Monitoring System Based on SI446X Wireless Radio Frequency Communication

Temperature Control System of Cold Storage

Applied mechanics and applied technology in fuel injection pump bench. Rotational speed measurement system design based on CPLD

International Conference on Information Sciences, Machinery, Materials and Energy (ICISMME 2015)

Temperature Measurement and Control System Based on Embedded WEB

Claus Kuhnel BASCOM. Programming of Microcontrollers with Ease. An Introduction by Program Examples

Research on Device Control System Design Based on Stepping Motor. Zhongyong Tian

Research of tooling test signal collection and analysis Guozhuang Liang 1, a, Xuan Chen 1,b,Yufeng Yao 2,c

Design of analog acquisition and storage system about airborne flight data recorder

The Design of Electronic Color Screen Based on Proteus Visual Designer Ting-Yu HOU 1,a, Hao LIU 2,b,*

Research and Design of Universal Proportional Valve Controller

Human heart rate detector based on photoelectric volume

Design and Implementation of Aquarium Remote Automation Monitoring and Control System

The Integrated Design for Micro - environment Monitoring System of Showcase in Museum

Research on Device Control System Design Based on Stepping Motor Wu Dongyan 1, Xu Wen 1, Wang Mingge 2, Jiang Ruochong 1, Jiang Lifeng 1

A Design of Remote Monitoring System based on 3G and Internet Technology

Improvement of the Communication Protocol Conversion Equipment Based on Embedded Multi-MCU and μc/os-ii

Department of Electronics and Instrumentation Engineering Question Bank

Wireless Multipoint Temperature Detection System Design

The IIC interface based on ATmega8 realizes the applications of PS/2 keyboard/mouse in the system

An intelligent LED landscape lighting system

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Design of a virtual logic analyzer based on FPGA

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

A Tentative Study on Ward Monitoring System based on Zigbee Technology Jifeng Liang

The Design of Embedded Remote Intelligent Automotive Monitoring System based on GSM. Lijun Gao

Agriculture Wireless Temperature and Humidity Sensor Network Based on ZigBee Technology

The Design of CAN Bus Communication System Based on MCP2515 and S3C2440 Jinmei Liu, Junhong Wang, Donghui Sun

The Design of Embedded MCU Network Measure and Control System

Design and Research of Intelligent Remote Control Fan Based on Single Chip Microcomputer and Bluetooth Technology

Research on function and design of virtual instrument based on LabVIEW Technology

LabVIEW Core 1. What You Need To Get Started. File Locations. The course installer places the course files in the following location: ni.

Research on Image Sensor System Acquisition Based on ARM

Design and Implementation of LED Display Screen Controller based on STM32 and FPGA Chi Zhang 1,a, Xiaoguang Wu 1,b and Chengjun Zhang 1,c

The Application of CAN Bus in Intelligent Substation Automation System Yuehua HUANG 1, a, Ruiyong LIU 2, b, Peipei YANG 3, C, Dongxu XIANG 4,D

Automatic Test And Diagnosis System for Amplitude And Phase Calibration Circuit Board Based on VXI Bus

Design and Implementation of Intelligent Home Control System under the Concept of IoT

MPLAB SIM. MPLAB IDE Software Simulation Engine Microchip Technology Incorporated MPLAB SIM Software Simulation Engine

Jacquard Control System of Warp Knitting Machine Based on Embedded System

Research on Technologies in Smart Substation

Wireless Remote Water Meter Design of Automatic Meter Reading System

Design of Smart Home System Based on ZigBee Technology and R&D for Application

The Design of the Embedded WEB Server Based on ENC28J60

Design of Coal Mine Power Supply Monitoring System

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

EEE394 Microprocessor and Microcontroller Laboratory Lab #6

Smart Street Light Using 8052 Micro Controller

Design of a Novel Circuit for Chinese Art Colored Lantern Based on Proteus Simulation Environment

World Scientific Research Journal (WSRJ) ISSN: Design and Implementation of Stepper Motor Control System Based on 52 MCU

Research on Approach of Equipment Status and Operation Information Acquisition Based on Equipment Control Bus

Serial Communication Based on LabVIEW for the Development of an ECG Monitor

The Research about Embedded Soft PLC Running System Based on ARM

INTERRUPTS in microprocessor systems

DEVELOPMENT OF USER FRIENDLY DATA ACQUISITION AND ACTUATION SYSTEM ON EMBEDDED PLATFORM

The Design and Development of the Precision Planter Sowing Depth Control System

Research on Sine Dynamic Torque Measuring System

Design and Research of Virtual Instrument Development Board

Hardware design of a submerged buoy system based on electromagnetic inductive coupling

Design of Switching System Based on FC-AE-1553 Bus

Application and Research of Man-Machine Interface and Communication Technique of Mobile Information Acquisition Terminal in Facility Production

PROGRAMMING AND CUSTOMIZING

The Design of Wireless Data Collector based on WIA-PA Ligang Li 1,2,a, Zhongfeng Wang 1,2,b, Jianlong Huang 1,2,c

IMPROVING PROCESS CONTROL APPLICATIONS BY USING IP COMMUNICATIONS

Design of Underground Current Detection Nodes Based on ZigBee

F 2 MC-8FX Family. 8-bit Microcontroller. MB95200 Series

The Analysis and Research of IPTV Set-top Box System. Fangyan Bai 1, Qi Sun 2

The Design of Wireless Communication System Based on STC12+CC1101 Zhijian Yin 1, a, Kun Xiang 2,b,Wang Fan 3,c

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

Design of Intelligent System for Watering Flowers Based on IOT

Digital X-ray Pulse Signal Processor XBDPP60300

Microprocessors/Microcontrollers

Design of Environment Monitoring System in Hatcheries Based on WSN

Embedded Systems Design (630414) Lecture 1 Introduction to Embedded Systems Prof. Kasim M. Al-Aubidy Computer Eng. Dept.

Getting Started with the HCS12 IDE

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

GIE 8051 Professional Kit. User Manual

GUJARAT TECHNOLOGICAL UNIVERSITY

Keil uvision development story (Adapted from (Valvano, 2014a))

Research on the Application of Digital Images Based on the Computer Graphics. Jing Li 1, Bin Hu 2

Wireless Smart Home Security System Based on Android

MAKING PIC MICROCONTROLLER INSTRUMENTS AND CONTROLLERS

MSP430 Microcontroller Basics

Microcontroller & Interfacing

Design of Centralized Remote-reading Meter System and Intelligent Network Water Meter

The Design of Modularized Oil Tank Measurement and Control Intelligent Unit

Chapter 4. Enhancing ARM7 architecture by embedding RTOS

ELEG3923 Microprocessor Ch.0 & Ch.1 Introduction to Microcontroller

Transcription:

Design and Simulation of Temperature Data Acquisition System based on Proteus Jinghui Su Changchun University of Science and Technology, Changchun 130022, China Abstract. The design and simulation implementation methods of temperature data acquisition system are introduced in this paper, which takes a greenhouse as the research object.at the same time, the temperature measurement circuit, periphery circuit of single chip computer and software flow are described in detail in the paper. In addition, the virtual simulation debugging process is realized successfully by integrating the hardware and software in the Proteus and the Keil uvision2 environments. This method is proved to be an effective means which raised the development efficiency and saved costs. Results verify that it is possible to realize many functions of the system, such as temperature data acquisition, data processing, displaying on real time, optic alarm, and the keyboard operation and so on. The temperature control accuracy can be controlled in 0.1 ; it verifies that the system has met the requirements. Keywords: AT89S52; temperature; Proteus. 1. Design of general system plan The intelligent temperature measurement system is made up with AT89S52 as its control kernel and digital temperature sensor DS18B20 as its measuring element. The system design plan is as that shown in Fig 1. Fig. 1 Design plan based on SCM temperature data acquisition system 2. System hardware design The System hardware design includes mainly temperature sensing test and SCM peripheral circuit design, among which the latter includes clock circuit, reset circuit, power supply circuit, keyboard entry circuit, display circuit and light alarm circuit etc. 2.1 Design of temperature sensing test circuit DS18B20 is a high precision digital temperature sensor in 1-Wire series designed and manufactured by Dallas Company. It could be connected directly with SCM. For the measuring circuit thereof, see that shown in Fig. 2. The pin No.2 is for signal wire, the AT89S52 exercises control over DS18B20 via the port P2.7, reads the temperature measured thereby, and then display temperature value through 4-in-one LED. 113

Fig. 2 Temperature measurement circuit diagram 2.2 Design of SCM peripheral circuit By reason of that all of the clock circuit, reset circuit and power supply circuit are the circuits that are comparatively mature, so the designs of the keyboard entry circuit, display circuit and light alarm circuit are to be introduced principally here. Keyboard entry circuit. Independent-type keyboard is adopted for this system (See Fig. 3); for the various key functions, it's as that shown in Table 1. Key S1 S2 S3 S4 Fig. 3 Independent-type circuit Table 1 Key functions for system keyboard setup Function Give a low level to external interrupt 0 to make it enter key interrupt subroutine. The system keyboard setup function is started up when S1 key is pressed. Selection of set value channel number Set value plus 1 operation Set value minus 1 operation Design of display circuit. Two 4-in-one LED display nixie tubes in anode connection are adopted for the display circuit. The first nixie tube is used to display the temperature sampling value with decimal place; the second nixie tube is for displaying the set value within temperature upper and lower limits without decimal place, among which the first place is for displaying the channel value of the set value (1- upper temperature limit, 2- lower temperature limit), and the following two places are for displaying the set value. Dynamic scan mode is adopted for display, and P0 port is used for section control line to provide section input (font code); P2.0~P2.6 are used for position control line to realize the position control of display unit, among which the P2.0~P2.3 are used for driving the nixie tube that is for displaying the temperature sampling value, and the P2.4~P2.6 are used for driving the nixie tube that is for displaying temperature set value (as that shown in Fig. 4). 114

Fig. 4 Display circuit Design of light alarm circuit. Light alarm circuit consists of three LAMPS (See Fig. 5); for the execution actions of the light alarm circuit, refer to Table 2. Fig. 5 Light alarm output circuit Table 2 Light alarm circuit executing action table Execution condition Execution action Measured temperature value > Upper limit of set temperature L1 light is up and refrigerator is started up Measured temperature value < lower limit of set temperature L2 light is up and heater is started up Temperature upper limit < Temperature lower limit L3 light is up 3. Design of system software Modular structure design is adopted for the system, including mainly Main program modular and subroutine that is possessed of specific function modular. For the system software structure, see the block diagram shown in Fig. 6. 115

Fig. 6 Block diagram of system software structure 3.1 Main program flow The primary function of the Main program is to precede with initialization setup for the system, including interrupt entry setup, stack area setup, setup for interrupt initialization and timer initialization etc. Temperature measurement is to be conducted once a second, and then it'll fulfill conversion processing, sending and display of temperature, as well as control output of switching value. For the flow diagram of the Main program, refer to Fig. 7. Fig. 7 Main program flow diagram 3.2 Temperature acquisition subroutine flow The following operations should be noticed during temperature acquisition: (1) Initialize DS18B20 (send out a low pulse signal that is no less than 480us); (2) Execute ROM command for positioning mainly; (3) Execute storage control command of DS18B20 for converting and reading data; (4) Conduct data processing. Only the value in binary system read out from DS18B20 is converted into that in decimal system, could it be used for display of characters. In order to improve conversion accuracy, 12 digits is adopted for this system, and the value in temperature register is stepping with 0.0625, i.e. the actual temperature value of decimal system is the value of binary system in temperature register multiplied by 0.0625. For the flow diagram of temperature acquisition subroutine, see Fig. 8. 116

Fig. 8 Flow diagram of temperature acquisition subroutine 3.3 Keyboard interrupts subroutine For the keyboard interrupt subroutine flow, see Fig. 9. Fig. 9 Keyboard interrupts subroutine 117

4. System debugging and emulation The system debugging should give priority to program debugging. The Proteus that is the EDA utility software developed by Labcenter Electronics Company, U.K. is to be adopted to realize emulation debugging. This software is designed with analog circuit digital circuit and A/D mixed circuits with emulation platform, as well as an advanced design of SCM and embedded system with an emulation platform. It's possessed of abundant library resources, such as manifold SCMs like ARM7, 805x, PIC, AVR and HC11 etc. more than 8,000 component and part models, more than 10 kinds of virtual instruments, like oscillograph, logic analyzer etc. different kinds of signal sources, and visualized ASF high class chart emulation that can be used for sophisticated analysis; meanwhile, it has provided the Keil combined emulation environment for editing source program, generating object code, combined real-time debugging and integrated development of environment with third party. The system hardware debugging is comparatively simple. Proteus software is adopted for inspecting electrics. The electrics could pass inspection smoothly when various junction points are correct and each pin of various components is free from error. For the system software debugging, display routine ought to be redacted in advance and hardware validity verification ought to proceed, and then conduct programming and debugging for each subroutine. Finally, load the compiled program on AT89S52 after Hex file is generated, and then real-time simulation outcome would be in view after clicking the "Operation" button. 5. Conclusion On the bases of that the temperature data acquisition system of SCM is a sort of comparatively intelligent, economic plan, and due to the fact that its installation is simple and convenient, its system is stable and reliable, and it's good at maintainability and anti-interference ability, it's in a position to satisfy the design requirements for greenhouse environment, and possessed of very strong practicability. In addition, this system can be popularized to the application in some other environmental temperature test systems or similar parameter test systems. The system is provided with favorable value for popularization and application. Reference documentation: [1] Li Zhaoqing. SCM theory & interface technology 3 rd edition. Beijing: Beijing Aerospace University Press, 2005. [2] Zhou Runjing, Zhang Lina. Design and emulation of the circuit and SCM system based on PROTEUS Beijing: Beijing Aerospace University Press, 2006. [3] Lou Ramiao, Li feihuang. SCM curriculum design & guidance Beijing: Beijing Aerospace University Press, 2007. [4] Zhang Jingwu, Zhou Lingbin. PROTEUS design and emulation for SCM system Beijing: Publishing House of Electronics Industry, 2007. [5] Li Yan. Multipoint temperature tour gauging & control system based on AT89C51 Instrumental Technique & Sensor, 2009 (4): p. 44-45. (Compliled & released by Xu Xuejun) 118