Data Acquisition and Interfacing (Section 4.5) Lecture 18.

Slides:



Advertisements
Similar presentations
Interfacing to the Analog World
Advertisements

Programmable Interval Timer
Analog-to-Digital Converter (ADC) And
Lecture 17: Analog to Digital Converters Lecturers: Professor John Devlin Mr Robert Ross.
PPT 206 Instrumentation, Measurement and Control SEM 2 (2012/2013) Dr. Hayder Kh. Q. Ali 1.
ECE 265 – LECTURE 14 Analog Signal Acquisition The A/D converters 5/14/ ECE265.
Digital to Analog and Analog to Digital Conversion
Data Acquisition Risanuri Hidayat.
Data Acquisition Concepts Data Translation, Inc. Basics of Data Acquisition.
Analog to Digital Conversion. 12 bit vs 16 bit A/D Card Input Volts = A/D 12 bit 2 12 = Volts = Volts = 2048 −10 Volts = 0 Input Volts.
Shuvra Das University of Detroit Mercy
Presented by- Md. Bashir Uddin Roll: Dept. of BME KUET, Khulna-9203.
Instrumentation - Introduction 10/9/2013Ohio University - Dr. Cyders1 Engineering measurements are usually taken by some form of transducer. A transducer.
Analogue to Digital Conversion
Unit 4 Sensors and Actuators
Storey: Electrical & Electronic Systems © Pearson Education Limited 2004 OHT 26.1 Data Acquisition and Conversion  Introduction  Sampling  Signal Reconstruction.
Introduction to Data Conversion
ASPPRATECH.
Data Acquisition. Data Acquisition System Analog Signal Signal Conditioner ADC Digital Processing Communication.
Computer-Based Instrumentation 11/12/01 ISAT 300.
Digital to Analog Converters (DAC) 1
1 Sensors and Measurements Penderia & Pengukuran ENT 164 Signal Processing Elements Hema C.R. School of Mechatronics Engineering Northern Malaysia University.
DATA ACQUISITION Today’s Topics Define DAQ and DAQ systems Signals (digital and analogue types) Transducers Signal Conditioning - Importance of grounding.
COMPUTER SYSTEM ARCHITECTURE By Sohaib.  The digital computer is a digital system that performs various computational tasks.  The word digital implies.
ACOE2551 Microprocessors Data Converters Analog to Digital Converters (ADC) –Convert an analog quantity (voltage, current) into a digital code Digital.
©2008 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
Data Acquisition Data acquisition (DAQ) basics Connecting Signals Simple DAQ application Computer DAQ Device Terminal Block Cable Sensors.
Analog to Digital Data Conversion
Basics of data acquisition systems
Digital to Analogue Converter
Data Acquisition Systems
LabVIEW and MatLab E80 Teaching Team February 5, 2008.
Digital Electronics and Computer Interfacing
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
Digitization When data acquisition hardware receives an analog signal it converts it to a voltage. An A/D (analog-to-digital) converter then digitizes.
Instrumentation Overview Spring 2012 The laboratory is a controlled environment where we can measure isolated physical phenomena with a view to eventual.
V. Rouillard  Introduction to measurement and statistical analysis DIGITAL SAMPLING - DIGITISATION Digital sampling is mainly used in data acquisition.
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lab 1P. 1Winter Quarter Data Acquisition System Fundamentals Lab 1.
Analog Capture- Port E. Digital to Analog and Analog to Digital Conversion D/A or DAC and A/D or ADC.
Digital Control CSE 421.
Data acquisition is the process of sampling signals that measure real world physical conditions and converting the resulting samples into digital numeric.
Chapter 11 Data Acquisition and Manipulation The aims of this chapter are to introduce: the main features of a data acquisition system; the characteristics.
Digital to Analog Converter (DAC)
Digital Data-Acquisition Systems Since the late 1950s, computers have been used to monitor, and in many cases to control, the performance of large process.
16722 Mo: data acquisition150+1 data acquisition.
A Presentation on Mr. SAJID NAEEM M.SC – Electronics (UOP) PG-DEP (C-DAC)
Submitted by:.  Project overview  Block diagram  Power supply  Microcontroller  MAX232 & DB9 Connector  Relay  Relay driver  Software requirements.
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
AGROFARM WEATHER MONITOR USING LabVIEW. INTRODUCTION Innovation in agriculture field Implementing instrumentation tech. in agricultural field The quantity.
EKT 314/4 WEEK 9 : CHAPTER 4 DATA ACQUISITION AND CONVERSION ELECTRONIC INSTRUMENTATION.
Lecture Notes / PPT UNIT III
1 Summary Lecture: Part 1 Sensor Readout Electronics and Data Conversion Discovering Sensor Networks: Applications in Structural Health Monitoring.
Components of Mechatronic Systems AUE 425 Week 2 Kerem ALTUN October 3, 2016.
Digital to analog converter [DAC]
MECH 373 Instrumentation and Measurements
EET 2259 Unit 12 Data Acquisition
Digital Control CSE 421.
SCADA for Remote Industrial Plant
Data Acquisition Systems
Lecture 15 Computer Data Acquisition Systems
Introduction to Microprocessors and Microcontrollers
EET 2259 Unit 12 Data Acquisition
Chapter 7 Features and Interfacing of Programmable Devices for 8085 based systems.
INSTRUMENTASI INDUSTRI
Analog to Digital Data Conversion
MicroLogix Packaged Controllers
Universiti Malaysia Perlis
Conversation between Analogue and Digital System
Data Acquisition (DAQ)
Chapter 7 Converters.
Presentation transcript:

Data Acquisition and Interfacing (Section 4.5) Lecture 18

5-axis teaching robot – Chan Hian Full

System Set-up Interfacing card installed in CPU

PCL-812PG PCL-839

drivers Mechanical parts – transmission, stepper motors

PC-based Process Control Monitoring System - Chai Song Ling

System Set-up PC and Data Acquisition System

Data Acquisition system – sensor and signal conditioner

Introduction A data acquisition system consists of many components that are integrated to: Sense physical variables (use of transducers) Condition the electrical signal to make it readable by an A/D board Convert the signal into a digital format acceptable by a computer Process, analyze, store, and display the acquired data with the help of software

Data Acquisition System Block Diagram

Flow of information in DAQ 1.Input transducer – measure physical quantity 2.Output from transducer – conditioned i.e. amplify, filter, conversion 3.Conditioned analog signal – digitized using ADC 4.Digital information – acquired, process and record by computer 5.Modify physical signal, digital output converted to analog by DAC 6.Analog signals are conditioned 7.Output transducer interact with physical variables

Transducers Sense physical phenomena and translate it into electric signals. Examples: Temperature Pressure Light Force Displacement Level Electric signals ON/OFF switch

Signal Conditioning Electrical signals are conditioned so they can be used by an analog input board. Types of signal conditioner: –Amplification – Isolation –Filtering –Linearization

Analog to Digital (A/D) Converter Input signal Sampling rate Throughput Resolution Range Gain

Graph humidity inside rain shelter house versus time start from 12 am on March 22, 2009 until 12 am on March 23, 2009 Graph temperature inside rain shelter house versus time start from 12 am on March 22, 2009 until 12 am on March 23, 2009

A/D Converter: Input Signal Analog –Signal is continuous – Example: strain gage. Most transducers produce analog signals Digital –Signal is either ON or OFF – Example: light switch.

The data is acquired by an ADC using a process called sampling. Sampling a analog signal - taking a sample of the signal at discrete times. A/D Converter: Sampling

A/D Converter: Sampling Rate Determines how often conversions take place. The higher the sampling rate, the better. Analog Input 4 Samples/cycle 8 Samples/cycle 16 Samples/cycle

This rate at which the signal is sampled - sampling frequency. Sampling frequency - determines the quality of the analog signal that is converted. Higher sampling frequency achieves better conversion of the analog signals A signal of lower frequency is generated from such a process (this is called aliasing). Shannon theorem: Sampling rate is at least twice the highest frequency so that the sample gives the original form of the signal

A/D Converter: Sampling Rate Aliasing –Acquired signal gets distorted if sampling rate is too small.

Analog-to-Digital Conversion An ADC converts an analog voltage to a digital number. The digital number represents the input voltage in discrete steps with finite resolution. ADC resolution is determined by the number of bits that represent the digital number.

Analog to Digital Conversion for a 3-bit ADC

A/D Converter: Resolution

Resolution The resolution = is a function of number of bits ADC uses to represents digital data The higher the resolution, the higher voltage range is broken into, and therefore, the smaller the detectable voltage change. A 8 bit ADC gives 256 levels (2^8) compared to a 12 bit ADC that has 4096 levels (2^12). Hence, 12 bit ADC will be able to detect smaller increments of the input signals then a 8 bit ADC. LSB or least significant bit is defined as the minimum increment of the voltage that a ADC can convert E.g. - For full scale input signal of 10V, the LSB for a 3-bit ADC corresponds to 10/2^3=1.25V. However, for a 12 bit ADC, LSB = 10/2^12=10/4096=2.44mV.

Exercise 1 An ADC with word length of 10 bits. If the input analogue signal range is 10 V, what is the resolution of this ADC?

Answer The resolution:

LSB varies with the operating input voltage range of the ADC. If the full scale of the input signal is 10V than the LSB for a 3-bit ADC corresponds to 10/2^3=1.25V For a 12 bit ADC, LSB= 10/2^12 =10/4096 =2.44mV. Resolution of ADC, X axis is analog input

Bits The smallest unit in digital signal is the bit, a contraction of the more descriptive phase of binary digit. indicating 1 indicating 0 A bit is a single element in digital signal, having only two possible states: on (indicating 1) or off (indicating 0). Off0On1

Bytes Bits are organized into larger units called bytes, the basic unit of information in a computer system. 2 8 A basic byte contains 8 bits. The total amount of information it can convey is 2 8 (=256) possible combinations. Off0On1Off0Off0Off0Off0On1Off0 1 byte = 8 bit = 2 nibble 2-byte = 16 bit, 4-byte = 32bit 1 Kbyte = 1×2 10 byte = 1024 byte 1 Mbyte = 1×2 10 ×2 10 = 1,018,576byte 1GB = TB = 2 40

Analog-to-Digital Converter Theory N-bit ADC Analog Input N-bit Digital Output Analog Input Signal 0 Volt 1 Volt Digital Output Code. 5 V. 25 V. 75 Volt bit ADC Scale Step Size = = V

Example of Encoding (8-bit system)

Encoding (8-bit Bus, 0-5 V Input)

Exercise 2 Consider a thermocouple giving an output of 0.5 mV/ 0 C. What will be the word length required when its output passes through an ADC if temperatures from 0 0 to C are to be measured with resolution of C?

Answer The full scale output from sensor: 200  0.5= 100 mV With word length n, this voltage is divided into 100/2 n mV steps For a resolution of C, we must be able to detect a signal from sensor 0.5  0.5=0.25mV Thus, the word length: 0.25 = 100/2 n ;n = bit word length is required

Numbering system – binary, decimal, hexadecimal DecimalHexadecimalBinary A B C D E F1111

Numbering system – binary, decimal, hexadecimal = = Compare this to the conversion to hexadecimal, where each group of four digits can be considered independently, and converted directly: = 5 E B = 5EB52 16

Elementary Bus Structure Micro- processor Monitor ROM Optional User ROM System & User RAM User Input/Output Address Bus Data Bus Keyboard System Input/Output Display Addr bus – which addr to go Data bus – data from CPU to addr Control bus – command from CPU

plans.com/PDF/T4I_Reference_ Manual.pdf

A schematic diagram of Data Acquisition System

Example of Computer DAQ System Computer Timer Digital Control Circuit Trigger Interrupt Parallel/Series Input Port Parallel/Series Output Port A/D D/A Filter + - S/H Sensor Bridge Instrumentation Amplifier Input Strobe Display Control Output Strobe DAQ Board

Multiplexer Device where computer reads information from various channel one at a time Electronic switch Computer instruct MUX select particular channel and the data are read and processed E.G. electronic MUX – DG508ACJ – 8 i/p channel each ahs 3 bit address for selection

Sample and hold Take the snapshot of the sensor signal and hold the value Switch connect the capacitor and the capacitor hold the value until the new sample is acquired

Data Acquisition Software It can be the most critical factor in obtaining reliable, high performance operation. Transforms the PC and DAQ hardware into a complete DAQ, analysis, and display system. Different alternatives: –Programmable software. –Data acquisition software packages.

Programmable Software Involves the use of a programming language, such as: –C++, Visual C++ –BASIC, Visual Basic + Add-on tools (such as VisuaLab with VTX) –Fortran –C# Advantage: flexibility Disadvantages: complexity and steep learning curve

Data Acquisition Software Does not require programming. Enables developers to design the custom instrument best suited to their application. Examples: TestPoint, SnapMaster, LabView, DADISP, DASYLAB, etc.

48 Induction Motor Data Acquisition – Wong Kien Fatt To acquire input-output data for the model structure Figure 1: Actual photo of the whole experiment setup

LabVIEW 8.0 (Software) Analog input Block Diagram Figure 7: Analog input part of the block diagram

50 LabVIEW 8.0 (Software) Analog and Digital Output Block Diagram Figure 8: Analog and Digital output part of the block diagram

12/16/ LabVIEW 8.0 (Software) VI (Virtual Instrument) front panel

PREPARED BY: MOHD RAZIMAN BIN MUHAMMAD SUPERVISOR: DR. ROBIAH AHMAD

Figure 7: DIY anemometer Figure 8: Irradiance sensor Figure 6: Temperature and humidity sensor

PLACING SENSOR Figure 9: Sensor placing on rain shelter house

Figure 10: Block diagram for data collection Figure 11: Front panel for data collection COLLECTING DATA

Figure 33: Alarm on when humidity inside rain shelter exceed limit Figure 34: Alarm on when temperature inside rain shelter exceed limit Alarm on when humidity exceed 50% Alarm on when temperature exceed 31°C PROGRAM: ALARM ALARM

KPCI-3108

End of Lecture 18