Dedan Kimathi University of technology. Department of Electrical and Electronic Engineering. EEE2406: Instrumentation. Lab 2

Similar documents
EEE312: Electrical measurement & instrumentation

A-D and D-A Converters

Lab Exercise 6: Digital/Analog conversion

Lecture 6: Digital/Analog Techniques

Linear Integrated Circuits

CHAPTER 6 DIGITAL INSTRUMENTS

Analog I/O. ECE 153B Sensor & Peripheral Interface Design Winter 2016

ANALOG TO DIGITAL CONVERTER

Analog-to-Digital Conversion

Analog to Digital Conversion

EEE3410 Microcontroller Applications Department of Electrical Engineering. Lecture 10. Analogue Interfacing. Vocational Training Council, Hong Kong.

University of Pennsylvania. Department of Electrical and Systems Engineering. ESE Undergraduate Laboratory. Analog to Digital Converter

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS

ADC Bit A/D Converter

Lab 7: DELTA AND SIGMA-DELTA A/D CONVERTERS

ANALOG TO DIGITAL (ADC) and DIGITAL TO ANALOG CONVERTERS (DAC)

Outline. Analog/Digital Conversion

CHAPTER ELEVEN - Interfacing With the Analog World

Assoc. Prof. Dr. Burak Kelleci

Advantages of Analog Representation. Varies continuously, like the property being measured. Represents continuous values. See Figure 12.

Data Converters. Dr.Trushit Upadhyaya EC Department, CSPIT, CHARUSAT

Chapter 2 Signal Conditioning, Propagation, and Conversion

Electronic Instrumentation & Automation. ET-7th semester. By : Rahul Sharma ET & TC Deptt. RCET, Bhilai

Digital to Analog Conversion. Data Acquisition

Winter 14 EXAMINATION Subject Code: Model Answer P a g e 1/28

Analogue to Digital Conversion

I hope you have completed Part 2 of the Experiment and is ready for Part 3.

Electronics II Physics 3620 / 6620

ALD500RAU/ALD500RA/ALD500R PRECISION INTEGRATING ANALOG PROCESSOR WITH PRECISION VOLTAGE REFERENCE

Quad 12-Bit Digital-to-Analog Converter (Serial Interface)

Lab Experiments. Boost converter (Experiment 2) Control circuit (Experiment 1) Power diode. + V g. C Power MOSFET. Load.

Dual 16-Bit DIGITAL-TO-ANALOG CONVERTER

New Current-Sense Amplifiers Aid Measurement and Control

Analog to Digital (ADC) and Digital to Analog (DAC) Converters

Learning Objectives:

Lab 6. Binary Counter

Octal Sample-and-Hold with Multiplexed Input SMP18

Chapter 5: Signal conversion

PRECISION INTEGRATING ANALOG PROCESSOR

University of California at Berkeley Donald A. Glaser Physics 111A Instrumentation Laboratory

Data Conversion and Lab Lab 1 Fall Operational Amplifiers

2.7 V to 5.5 V, 350 ksps, 10-Bit 4-/8-Channel Sampling ADCs AD7811/AD7812

arxiv:physics/ v1 [physics.ed-ph] 19 Oct 2004

BINARY AMPLITUDE SHIFT KEYING

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

ANALOG AND DIGITAL INSTRUMENTS

Fan in: The number of inputs of a logic gate can handle.

CONTENTS Sl. No. Experiment Page No

1 Second Time Base From Crystal Oscillator

Analog CMOS Interface Circuits for UMSI Chip of Environmental Monitoring Microsystem

INTEGRATED CIRCUITS. AN109 Microprocessor-compatible DACs Dec

8-Bit, high-speed, µp-compatible A/D converter with track/hold function ADC0820

Tuesday, March 1st, 9:15 11:00. Snorre Aunet Nanoelectronics group Department of Informatics University of Oslo.

16.2 DIGITAL-TO-ANALOG CONVERSION

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ

Digital multimeter IENGINEERS- CONSULTANTS LECTURE NOTES SERIES ELECTRONICS ENGINEERING 1 YEAR UPTU. Page 1

6-Bit A/D converter (parallel outputs)

EE ELECTRICAL ENGINEERING AND INSTRUMENTATION

Analytical Chemistry II

Lab 2 Operational Amplifier

ML4818 Phase Modulation/Soft Switching Controller

4. Digital Measurement of Electrical Quantities

Analogue to Digital Conversion

16-Bit ANALOG-TO-DIGITAL CONVERTER

A New, Low-Cost, Sampled-Data, 10-Bit CMOS A/D Converter

ADC Bit µp Compatible A/D Converter

Data Conversion and Lab Lab 3 Spring Analog to Digital Converter

Lab 5. Binary Counter

Electronics A/D and D/A converters

University of Pittsburgh

Energy Metering IC with SPI Interface and Active Power Pulse Output. 24-Lead SSOP HPF HPF1. Serial Control And Output Buffers HPF1

SCLK 4 CS 1. Maxim Integrated Products 1

Applying the New CMOS MICRO-DAC

MCP3909. Energy Metering IC with SPI Interface and Active Power Pulse Output. Features. Description. Package Type. Functional Block Diagram

Experiment EB2: IC Multivibrator Circuits

LC 2 MOS Signal Conditioning ADC with RTD Current Source AD7711A *

Operational Amplifiers

Data Conversion and Lab Lab 4 Fall Digital to Analog Conversions

12-Bit Successive-Approximation Integrated Circuit A/D Converter AD ADC80

EE 210 Lab Exercise #4 D/A & A/D Converters

Multiplexer Options, Voltage Reference, and Track/Hold Function

A radiation tolerant, low-power cryogenic capable CCD readout system:

PART 1: DESCRIPTION OF THE DIGITAL CONTROL SYSTEM

Introduction to the Op-Amp

Specifying A D and D A Converters

AERO2705 Space Engineering 1 Week 7 The University of Sydney

The Allen-Bradley Servo Interface Module (Cat. No SF1) when used with the Micro Controller (Cat. No UC1) can control single axis

16-Bit, 135ksps, Single-Supply ADCs with Bipolar Analog Input Range

12-Bit, Low-Power, Dual, Voltage-Output DAC with Serial Interface

SKY3000. Data Sheet TRIPLE-TRACK MAGNETIC STRIPE F2F DECODER IC. For More Information. Solution Way Co., Ltd

An Analog Phase-Locked Loop

Mechatronics. Analog and Digital Electronics: Studio Exercises 1 & 2

2.7 V to 5.5 V, 400 ksps 8-/10-Bit Sampling ADC AD7813

CMOS 12-Bit Multiplying DIGITAL-TO-ANALOG CONVERTER Microprocessor Compatible

LC 2 MOS Signal Conditioning ADC AD7712

Process Components. Process component

IES Digital Mock Test

SMP04 SPECIFICATIONS ELECTRICAL CHARACTERISTICS

ES /2 DMM. Features. General Description. Absolute Maximum Ratings

L10: Analog Building Blocks (OpAmps,, A/D, D/A)

Transcription:

Dedan Kimathi University of technology Department of Electrical and Electronic Engineering EEE2406: Instrumentation Lab 2 Title: Analogue to Digital Conversion October 2, 2015

1 Analogue to Digital Conversion 1.1 Objectives The aim of this laboratory practice is to Introduce the student to the concept of analogue to digital conversion in instrumentation systems Introduce the student to microprocessor application in analogue to digital conversion in instrumentation systems. Develop an analogue to digital converter based on the Raspberry Pi 1.2 Requirements 1. 10 kω variable resistor 2. MCP3008 chip (analogue to digital converter) 3. Raspberry Pi with with necessary accessories 4. Breadboard and connectors 2 Theory 2.1 Introduction Modern design trends use the power and precision of the digital world of components to process analogue signals. However, the link between the digital/processing world and the analogue/real world is based on the analogue-to-digital and digital-to analogue converter ICs, which generally are grouped together as the data converters [1] An analogue to digital converter takes an analogue input voltage and produces a digital output code which represents the analogue input. There are many methods of analogue to digital conversion, the most common methods being [1]. 1. Digital Ramp ADC A digital ramp analog-to-digital converter is shown in Figure 1 (For the comparator shown in the gure, if V A > V B, EOC = HIGH, and V A < V B, EOC = LOW A START pulse is applied and this resets the counter to zero. When the START pulse is HIGH, it inhibits the AND gate so that no clock pulses get through to the counter. With the counter set to zero, V B = 0 so the comparator output is HIGH. When the START pulse returns LOW, the AND gate is enabled and pulses allowed into the counter. As the counter advances, the DAC s output V B increases in steps of voltage equal to its resolution. When V A reaches V B, the comparator output goes LOW, inhibiting pulses to the counter so that the counter stops and holds the desired digital code representing V A. The HIGH to LOW transition at the comparator output signals the End Of Conversion (EOC). This is illustrated by Figure 2. The conversion time is the interval between t 0 and t 1. 2

Figure 1: Digital Ramp ADC Figure 2: Digital Ramp ADC timing Note that the conversion time for this converter is not constant: the higher the analogue input, the higher the conversion time. 2. Successive Approximation Converter This method is essentially a binary search. It works by trying various binary codes and feeding them into a DAC and comparing the result with the analogue input via a comparator. This converter is illustrated in Figure 3. (For the comparator shown in the Figure, if V A > V B, COMP = HIGH, and if V A < V B, COMP = LOW.) The control logic sets the MSB of the register HIGH and all the other bits LOW. This produces a value of V B at the DAC output that is equal to the weight of the MSB. If V B is now greater than V A, the comparator output goes LOW and causes the control logic to clear the MSB back to LOW. Otherwise the MSB is kept HIGH. The control logic sets the next bit of the register to 1. This produces a new value 3

Figure 3: Successive Approximation Converter of V B. If the value of V B is greater than V A, the comparator output goes LOW to tell the control logic to clear the bit back to 0. Otherwise the bit is kept at 1. The process is repeated for each of the bits in the register. After all the bits have been tried, the register holds the digital equivalent of V A. 3. Dual Slope Integration Converter The block diagram of the dual-slope integration converter is shown in Figure 4. Figure 4: Dual Slope Integration Converter The conversion begins with the electronic switch in the T 1 position, with the counter reset to zero and the capacitor fully discharged. The input voltage causes the capacitor connected to the op-amp to charge at a rate dependent on the magnitude 4

of the input voltage. After T 1 seconds have elapsed, the switch is moved to T 2 by the control logic. The higher the input voltage V IN, the greater the charge stored in the capacitor during T 1. Because the reference voltage is of the opposite polarity to the analogue input, the capacitor now discharges. The control logic also starts the counter the moment the switch is moved to T 2. When the capacitor has fully discharged, the comparator output level switches and the counter is halted. The value in the counter is directly proportional to the input voltage V IN 2.2 MCP3008 Analogue to Digital Converter The Microchip Technology Inc. MCP3004/3008 devices are successive approximation 10-bit Analogue to-digital(a/d) converters with on-board sample and hold circuitry. single-ended inputs. The MCP3008 is programmable to provide four pseudo-differential input pairs or eight single-ended inputs. It comes as a 16 pin IC, see Figure 5. Figure 5: MCP3008 IC schematic The analogue input is fed to any of the input channels (pins 1-8, labelled CH0-CH7). MCP3008 being a 10 bit analogue to digital converter gives a decimal output of values between 0 and 1023 (2 10 = 1024) depending on the voltage supplied to the analogue reference pin (V REF pin 12). For complete operation of the chip, see attached data sheet. 3 Procedure The potentiometer is connected onto the breadboard as follows; The first pin is connected to 5 V from the Pi (pin 2 on Pi) while the last pin is grounded (connected to pin 39 on Pi). The output of the potentiometer (middle pin 6) is connected to channel 0 (pin 1) of the MCP3008 chip. The other pins of the MCP3008 are connected as follows V DD pin (pin 16) connected to 5 V (Raspberry Pi pin 1) V REF pin (pin 15) connected to 5 V (Raspberry Pi pin 1) 5

AGND pin (pin 14) connected to ground (Raspberry Pi pin 39) CLK pin (pin 13) connected to General Purpose Input Output GPIO pin 18 (Raspberry Pi pin 12) D OUT pin (pin 12) connected to General Purpose Input Output GPIO pin 23 (Raspberry Pi pin 16) D IN pin (pin 11) connected to General Purpose Input Output GPIO pin 24 (Raspberry Pi pin 18) CS pin (pin 10) connected to General Purpose Input Output GPIO pin 25 (Raspberry Pi pin 22) DGND pin (pin 9) connected to ground (Raspberry Pi pin 39) A program to read the digital equivalent of the output of the potentiometer is written in python. See attached Appendix I. The program is run and by adjusting the potentiometer, different readings are obtained for the analogue input from the potentiometer. The output voltage is measured using a multimeter and corresponding decimal value is displayed on the screen. This information is tabulated as shown below 4 Results SR. No Output Voltage Decimal Equivalent 1 2 3 4 5 Provide results for at least 10 different analogue inputs 5 Discussion Compare the actual outputs obtained with the expected outputs. Carry out error analysis 6

6 Conclusion Make conclusion based on the outcome of practical 7

References [1] N. Kularatna, Digital and Analogue Instrumentation. Institution of Engineering and Technology, 2003. 8