Design of Digital Voltmeter for Microcontrollers

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

Design of the Control System for Step Motor Based on MCU

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

Design of Bicycle mileage Speed Meter

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

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

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

Human heart rate detector based on photoelectric volume

CHAPTER 1 MICROCOMPUTER SYSTEMS. 1.1 Introduction. 1.2 Microcontroller Evolution

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

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

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

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

International Power, Electronics and Materials Engineering Conference (IPEMEC 2015)

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

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

Intelligent Pressure Measuring System

EtherCAT Data Acquisition System Based on DMA Mode

The Design of the Embedded WEB Server Based on ENC28J60

Experiment 10 Fall 2012

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

CEIBO FE-5111 Development System

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

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar

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

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

8051 Microcontroller

C H A P T E R 1 INTRODUCTION

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

Research and Design of Universal Proportional Valve Controller

Agriculture Wireless Temperature and Humidity Sensor Network Based on ZigBee Technology

Design of New Oscillograph based on FPGA

Keywords Digital IC tester, Microcontroller AT89S52

Bachelor of Engineering in Computer and Electronic Engineering

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Design of Temperature and Humidity Data Acquisition System. Based on ARM

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

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

The Design of Embedded MCU Network Measure and Control System

Microcontroller Based Data Acquisition System

Design of Intelligent System for Watering Flowers Based on IOT

1. Pin diagram of 8051 and ports

The Atmel ATmega328P Microcontroller

SH69P55A EVB. Application Note for SH69P55A EVB SH69P55A EVB SH69V55A

Three criteria in Choosing a Microcontroller

Research on Image Sensor System Acquisition Based on ARM

ED1021 I/O Expander with UART interface & analog inputs

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

Design of Soybean Milk Machine Control System based on STC89C52. Ya-gang SUN, Yue ZHANG, Zhi-gang YANG, Rui-cheng ZHANG and Xiao-wei SHEN

PVK40. User's manual. Feature Rich Development and Educational Kit for 40-pin Microchip PIC microcontrollers

Embedded Systems and Software

3. The MC6802 MICROPROCESSOR

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

USB-4303 Specifications

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

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

Energy Efficient Hybrid Digital Weighing Scale

Design of a virtual logic analyzer based on FPGA

The Atmel ATmega168A Microcontroller

Temperature Control System of Cold Storage

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

ED1021 I/O Expander with UART interface & analog inputs

Embedded World Television, Radio, CD player, Washing Machine Microwave Oven Card readers, Palm devices

Design of the Storage Battery Online Monitoring System

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

8051 Microcontroller Interrupts

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

High-Performance 32-bit

Microcontrollers. Fig. 1 gives a comparison of a microprocessor system and a microcontroller system.

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

Temperature Measurement and Control System Based on Embedded WEB

ARDUINO LEONARDO WITH HEADERS Code: A000057

POD 51EH C541U 12 EA ALE PSEN XH0 XH1 XH2 XH3 XH4 XH5 XH6 XH7 XL7 XL6 XL5 XL4 XL3 XL2 XL1 XL0. Figure 1. POD 51EH C541U 12

DTMF BASED INDUSTRIAL AUTOMATION

USB 1608G Series USB Multifunction Devices

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT DC BIT MICROPOWER NO LATENCY DELTA SIGMA ADC LTC2400 DESCRIPTION

RTC Interface 89C51 DS M. Krishna Kumar MAM/M7/LU17/V1/ Vcc VCC 5 SDA P1.0 6 SCL P KHz 3 BAT 3.

1. Attempt any three of the following: 15

DS1306. Serial Alarm Real Time Clock (RTC)

POWER SAVER METER USING MICROCONTROLLER TO SAVE ELECTRICITY UPTO 30-40%

MODERN SYSTEM TO PROTECTION AN ELECTRICAL TRANSFORMER

Exercise 4-1. DSP Peripherals EXERCISE OBJECTIVES

Bolero3M Nexus Emulation Adapter 256BGA 176TQ

MICROCONTROLLER BASED SMART FAN SYSTEM

ericssonz LBI-38616B MAINTENANCE MANUAL FOR MTD TM SERIES AND DATA RADIO LOGIC BOARD 19D902151G3 DESCRIPTION CIRCUIT ANALYSIS TABLE OF CONTENTS

LED Knight Rider. Yanbu College of Applied Technology. Project Description

Design of an Intelligent PH Sensor for Aquaculture Industry

256 channel readout board for 10x10 GEM detector. User s manual

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

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Advanced NI-DAQmx Programming Techniques with LabVIEW

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

CSE 466 Exam 1 Winter, 2010

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

XC2000 Family AP Application Note. Microcontrollers. XC2236N Drive Card Description V1.0,

Key Technology of Monitoring and Control for Coal Shearer Supporting Network Convergence

Design of Intelligent Garbage Bin

Freescale Semiconductor, I

USB 1608G Series USB Multifunction Devices

Implementing the Teridian 73S8024RN in NDS Applications

Transcription:

Design of Digital Voltmeter for Microcontrollers Kaikai Liu a, Enpeng Fu b, Ying Wang c and Shaoxin Feng d Shandong University of Science and Technology, Qingdao 266590, China. a17171689507@163.com, b 974428442@qq.com, c 1015561580@163.com, d961885798@qq.com Abstract This paper which introduces a kind of Digital Voltmeter is based on Microcontrollers design. The circuit of the voltage meter is mainly consisted of three mould pieces: A/D converting mould piece, A/D converting is mainly completed by the ADC0808, it converts the collected analog data into the digital data and transmits the outcome to the manifestation controlling mould piece. Data processing is mainly completed by the AT89C51 chip, it processes the data produced by the ADC0808 chip and generates the right manifestation codes, also transmits the codes to the manifestation controlling mould piece. Also, the AT89C51 chip controls the ADC0808 chip to work. The voltmeter features in simple electrical circuit, lower use of elements, low cost, moreover, its measuring precision and reliability. The voltmeter is capable of measuring voltage inputs from 1 route ranging from 0 to 5 volt, and displaying the measurements though a digital code tube of 7 pieces of LED. Keywords Microcontroller; Digital voltmeter; A/D converter; AT89C51; ADC0808. 1. Introduction This paper is based on the design of simple DC digital voltage meter, which mainly includes three modules: conversion module, data processing module and display module.in which, A/D Convert adopts ADC0808 to transform the analog signal input, and control the core AT89C51 to perform operation on the result of the conversion, and finally the output device LED displays the digital voltage signal [1]. 2. Design Scheme The hardware circuit design consists of 6 parts:a/d conversion circuit,microcontroller of AT89C51 system, LED display system, clock circuit, reset circuit and measurement voltage input circuit.the block diagram of hardware circuit is shown in figure 2.1. 3. Hardware Circuit Design 3.1 A/D Conversion Module The successive approximation type A/D converter consists of A comparator, A/D converter, memory and control circuit.it takes advantage of the internal registers to start from the high to low levels to start the bitwise comparison. The conversion process is as follows: Started, register your reset, the transformation, the highest position 1 first, to transform the data into A/D converter, convert the results compared with the input analog, if the conversion of the analog input analog quantity is small, the 1, if the conversion of analog quantity is greater than input analog, 1 don't keep, and then from the second, in turn, repeat the process until the lowest, and finally the contents of the register is the binary digital quantity input analog corresponding [2]. 80

The principle block diagram is shown in figure 3.1: The clock circuit AT89C51 P1 P2 P2 a/d Measuring input voltage Reset circuit P0 Display system Figure 1. Hardware design block diagram of Digital Voltmeter system. Input digital quantity Input Voltage Sequence Timer Successive Approximation Register ADC voltage comparator FIG 2. Schematic diagram of successive approximation A/D converter. 3.2 Reset Circuit Design The Microcontroller needs to be reset at startup, so that the CPU and other parts of the system are in a defined initial state and start working from that state.microcontroller of McS-51 has a reset pin RST, which USES schmidt to trigger the input.when the vibrator vibrates, the device will be reset as long as the high level of two machine cycles is present on the pin, and the device is reset [3].After the restoration, if the RST continues to maintain a high level, the McS-51 will remain in the reset state, so long as the RST recovers low level, the single chip will be able to enter other working conditions.on microcontroller reset means has two kinds of electric automatic reset and manual reset, figure 3.2 is 51 series microcontroller system commonly used in electric reset and manual reset circuit, as long as the Vcc rise time is less than 1 ms, they all can be a very good job [3]. 81

Figure 3. Reset Circuit. 3.3 Clock circuit design Microcomputer CPU each execution of an instruction that must be unified under the control of the clock pulse of strictly according to time to the beat, and the clock is a sequential circuits of Microcomputer control.the time sequence of each microoperation of the CPU executing one instruction is called the time sequence of the single chip.microcontroller of McS-51 chip inside a high-gain Inverting Amplifier, is used to form oscillators, XTAL1 as the input of the amplifier, XTAL2 for the amplifier output, but also need to attach other clock circuit formed circuit [3].The design system adopts the internal clock mode, and use the high gain inverter amplifier inside the Microcomputer, and the external circuit is simple. Only one crystal oscillator and two capacitors are required, as shown in figure 3.3. Figure 4. Clock Circuit. Device selection in the circuit may be determined by calculation and experiment, also can refer to some typical parameters of the circuit, the capacitor C1 and C2 have fine effect to the oscillation frequency, is usually the scope of 30±10 pf, chose 33 pf in the system; The maximum choice of quartz crystal vibration is 24MHz, which determines the oscillation frequency of clock signal generated by the Microcomputer circuit. the oscillation frequency of the clock signal is 12MHz. 3.4 LED display and single chip interface design As a result of the Microcomputer parallel port can't direct drive LED display, in general, must use a dedicated driver circuit chip, to produce enough current, can display normal work [4].If the driver circuit ability is poor, the load capacity is not enough, the display brightness is low, and drive circuit under overload operation for a long time easy to damage, therefore, the LED display driver circuit design is a very important problem.dc digital voltage meter is aimed to simplify the circuit design, on the design of the LED driver circuit, can take advantage of the Microcomputer P0 mouth on external pull-up resistors, the LED A - G segment display pin and DP decimal pins parallel to the P0 mouth and pull resistance between, such, can increase the P0 mouth DE as the output driving capability, in accordance with the normal brightness of LED can show Numbers, as shown in figure 3.4. 82

4. System subroutine design Figure 5. Design between LED and single chip interface. 4.1 General plan of program design According to the principle of module division, to divide the program initialization module, A/D conversion subroutine and display subroutine, the three program module of the system software of the main program, as shown in figure 4.1. Start Initialization Call A/D conversion Call the display subroutine over Figure 6. Main block diagram of digital dc voltmeter. 83

4.2 System subroutine design A/D conversion subroutine is used to control the acquisition and measurement of the input module voltage signal, and the corresponding values are stored in the corresponding memory unit. The conversion flow chart is shown in figure 4.2. START CONVST A/D conversion end? Output conversion result Output conversion result Display END Figure 7. A/D conversion flow chart. Dynamic scanning display subroutine are realize the value of four digital tube display, when using dynamic scanning display mode, to make the LED display is evener, and have enough brightness, you need to set up the proper scanning frequency, when scanning frequency at about 70 hz, can produce a good display effect, general interval of 10 ms can be used for the LED dynamic scanning time, each LED display time of 1 ms [5]. 5. Display results 1. When the input voltage value of IN0 is 0V, the display result is shown in figure 14, and the measurement error is 0V, as shown in figure 5.1. 2. When IN0 input voltage value is 1.50V, the display result is shown in figure 15. The measurement error is 0.01V, as shown in figure 5.2. 84

Figure 8. When the input voltage is 0V, the LED display results. 6. Conclusion Figure 9. Input voltage of 1.50V, LED display results. The digital voltmeter based on single chip microcomputer has strong usability, simple structure, low cost and few external components. The practical application should be good, the measurement voltage is accurate, and the precision is high. The system functions and indexes have reached the expected requirements of the project, and the system has fully considered the extensibility in hardware design. 85

After some modifications, the function can be added. In this paper, a simple digital voltmeter is designed to measure the voltage of the voltage, and the design of the schematic diagram is described in detail. References [1] Song fengjuan, sun jun, li guozhong. Design of digital voltmeter based on 89C51 single-chip microcomputer [J]. Industrial control computer, 2007 [2] Li Guangdi. Fundamentals of SCM. Beijing university of aeronautics and astronautics press, May 2007. [3] Hu Jian. Principle and interface technology of single chip microcomputer. Beijing: mechanical industry press, October 2004. [4] Wei lifeng. Single chip microcomputer principle and application technology. Beijing university press, 2005. [5] Miao hongxia. Software and hardware design of digital voltage meters for single-chip microcomputer [J]. Journal of changzhou university, hohai university, 2002. 86