Interfacing to Analog World Sensor Interfacing
|
|
- Rebecca Byrd
- 6 years ago
- Views:
Transcription
1 Interfacing to Analog World Sensor Interfacing Introduction to Analog to digital Conversion Why Analog to Digital? Basics of A/D Conversion. A/D converter inside PIC16F887 Related Problems Prepared By- Mohammed Abdul Kader Assistant Professor, EEE, IIUC
2 Introduction to Analog to digital Conversion Signals in the real world are analog: light, sound, temperature, pressure, acceleration or other phenomenon. So, real-world signals must be converted into digital, using a circuit called ADC (Analog-to-Digital Converter), before they can be manipulated by digital equipment. When you scan a picture with a scanner what the scanner is doing is an analog-to-digital conversion: it is taking the analog information provided by the picture (light) and converting into digital. When you record your voice on your computer, you are using an analog-to-digital converter to convert your voice, which is analog, into digital information. When an audio CD is recorded at a studio, once again analog-to-digital is taking place, converting sounds into digital numbers that will be stored on the disc. Whenever we need the analog signal back, the opposite conversion digital-to-analog, which is done by a circuit called DAC, Digital-to-Analog Converter is needed. When you play an audio CD, what the CD player is doing is reading digital information stored on the disc and converting it back to analog so you can hear the audio. 2
3 Why Analog to Digital? 1. Reducing Noise: Since analog signals can assume any value, noise is interpreted as being part of the original signal. Digital systems, on the other hand, can only understand two numbers, zero and one. Anything different from this is discarded. Noise is added with Signal Information is unchanged 3
4 Why Analog to Digital? (Continued) 2. Signal Processing: The most strong tool of processing or analyzing signal is microprocessor. Microprocessor is a digital device. It can understand only digital signal. So, we should convert the analog physical parameters into digital to process it by microprocessor. 3. Data compression capability: Another advantage of digital system against analog is the data compression capability. Since the digital counterpart of an analog signal is just a bunch of numbers, these numbers can be compressed, just like you would compress a Word file using WinZip to shrink down the file size, for example. The compression can be done to save storage space or bandwidth. 4
5 ADC (A/D Converter) in Embedded System The main use of ADC in embedded system is to measure the voltage outputs of sensors. Most electronic sensors produce a voltage that corresponds to temperature, pressure, acceleration or other phenomenon. Music, speech, or other signals can be converted to digital form by A/D converters for storage or additional processing. Gives a decision (output) according to user instruction Physical parameter Sensor A/D Converter Microprocessor Converts physical parameter to corresponding analog voltage Converts analog voltage to digital voltage Analyze or process the physical parameter 5
6 Related terms of A/D conversion Resolution: The resolution of an A/D converter is specified by number of bits and determines how many distinct output levels or codes (2^N) the converter is capable of producing. For example, an 8-bit A/D converter produces 2^8, or 256, output codes or levels. Mathematically the resolution for an A/D converter is Here, Reference means the conversion range and N is the no of bit in digital output. In other Words, Resolution is the smallest change or steps in the analog voltage for which output digital voltage (codes) remain unchanged. For an 3 bit A/D converter with conversion range (0-5V): Resolution= 5/2^3 = 5/ 8= V For an 8 bit A/D converter with conversion range (0-5V): Resolution= 5/2^8 = 5/ 256 = V For an 10 bit A/D converter with conversion range 0-5V: Resolution = 5/2^10 = 5/1024 = V 6
7 Related terms of A/D conversion (Cont.) Resolution of an 2-bit A/D converter is 1.25V Resolution of an 10-bit A/D converter is V Another definition,the resolution of the A/D converter is the voltage change that will result in the returned value (output digital value) changing by 1. This means that with an 3 bit A/D the returned value will change by 1 when the voltage changes by about 1.25V. With a 10 bit A/D, a change of only 4.88 mv will change the count by 1. 7
8 Related terms of A/D conversion (Cont.) Clearly an A/D converter with more bits will give better accuracy. But, for a higher bit A/D converter you need more storage memory to store the result and at the same time A/D converter circuit become more complex and conversion time will increase. Problem 1: A weight sensor changes its output voltage 0.1 mv for 1gm change in input and it s output varies from 0-5V. What should be the resolution and no of bits in the A/D converter if you want to get the weight in gram. The resolution should be 0.1mV = V 8
9 Related terms of A/D conversion (Cont.) Quantization Error : If an AC signal is applied to an ideal A/D converter, noise present in the digitized output due to quantization error. If the input to the quantizer is moved through its full range and subtracted from the discrete output levels the error signal will be a sawtooth waveform with a peak-to-peak value Q as shown in figure (b). The quantization error is dependent on the number of quantization level (discrete levels). The quantization levels are an index of the resolution. The output of a quantizer can be considered as a noise signal with an rms value of Which is the quantization error. Fig. (a) Fig. (b) 9
10 Related terms of A/D conversion (Cont.) Sampling: An analog signal is continuous and it has infinite number of samples. It is not possible to take the sample of analog signal at every instant of time. What the ADC circuit does is to take samples from the analog signal in a regular time interval. Each sample will be converted into a number, based on its voltage level. The frequency on which the sampling will occur is called sampling rate. If a sampling rate of 22,050 Hz is used, for example, this means that in one second 22,050 points will be sampled. Thus, the distance of each sampling point will be of 1 /22,050 second (45.35 µs, in this case). If a sampling rate of 44,100 Hz is used, it means that 44,100 points will be captured per second. In this case the distance of each point will be of 1 /44,100 second or µs. And so on. 10
11 3-bit A/D converter with sampling rate of 10 samples/sec Basic of A/D Conversion Sampling Rate= 10 samples/sec 3-bit A/D converter So, to store the signal of length 1.1 s we need (10*1.1*3) = 33 bit memory. 11
12 4-bit A/D converter with sampling rate of 20 samples/sec Basic of A/D Conversion Sampling Rate= 20 samples/sec 4-bit A/D converter So, to store the signal of length 1.1 s we need (20*1.1*4) = 88 bit memory. = 11 Byte 12
13 3-bit A/D converter with sampling rate of 10 samples/sec Basic of A/D Conversion: Performance analysis of two A/D converters 4-bit A/D converter with sampling rate of 20 samples/sec 4-bit A/D converter with sampling rate 20 sample/sec is better than 3-bit A/D converter with sampling rate 10 sample/sec because converter output of 2 nd one is more closer to original signal. But, 2 nd one need 88-bit memory to store the signal where 1 st one need only 33-bit memory. 13
14 Basic of A/D Conversion: Minimum Sampling Rate (Nyquist Rate) So, we have this dilemma: if the sampling rate is too high, the output quality will be close to perfection, but you will need a lot of storage space to hold the generated data (i.e., the generated file will be very big); if the sampling rate is too low, the output quality will be bad. How can you know the best sampling rate to be used during analog-to-digital conversions to have the best storage/quality balance? The answer is the Nyquist Theorem. This theorem states that the sampling rate on analog-to-digital conversions must be at least two times the value of the highest frequency you want to capture. In practice it is necessary to sample at least 5 times the value of the highest frequency in order to reduce the effect of noise and non-sinusoidal filters. Since the human ear listens to sounds up to the frequency of 20 khz, for music we need to use a sampling rate of at least 40,000 Hz. In fact, the CD uses a 44,100 Hz sampling rate, thus capturing more than our ears can hear (this value was arbitrated by Phillips and Sony when they created the CD). Some professional audio applications use an even higher sampling rate. The phone system, on the other hand, was created to transmit only human voice, which has a lower frequency range, up to 4 khz. So on the digital part of the phone system, an 8,000 Hz sampling rate is used. That s why if you try to transmit music through the phone the quality is bad: the phone circuitry cancels all frequencies above 4 khz. 14
15 Basic of A/D Conversion: Explanation of Nyquist Rate Problem 2: There is an embedded system which has an 16-bit A/D converter with 8KHz sampling rate. To store a signal of 1 minute length, how much memory you need? 15
16 ANALOG MODULES of PIC16F887 Features of Analog Modules: The A/D converter module has the following features: The converter generates a 10-bit binary result using the method of successive approximation and stores the conversion results into the ADC registers (ADRESL and ADRESH); There are 14 separate analog inputs; The A/D converter converts an analog input signal into a 10-bit binary number; The minimum resolution or quality of conversion may be adjusted to various needs by selecting voltage references Vref- and Vref+. 16
17 Control of A/D Converter inside PIC 16F The operation of A/D converter is in control of the bits of four registers: ADRESH Contains high byte of conversion result; ADRESL Contains low byte of conversion result; ADCON0 Control register 0; and ADCON1 Control register 1.
18 Control of A/D CONVERTER inside PIC 16F887 (Cont.) ADRESH and ADRESL Registers The result obtained after converting an analog value into digital is a10-bit number that is to be stored in the ADRESH and ADRESL registers. There are two ways of handling it - left and right justification which simplifies its use to a great extent. The format of conversion result depends on the ADFM bit of the ADCON1 register. In the event that the A/D converter is not used, these registers may be used as general-purpose registers. 18
19 ADCON0 Register Control of A/D CONVERTER inside PIC 16F887 (Cont.) ADCS1, ADCS0 - A/D Conversion Clock Select bits select clock frequency used for internal synchronization of A/D converter. It also affects duration of conversion. ADCS1 ADCS2 CLOCK 0 0 Fosc/2 0 1 Fosc/8 1 0 Fosc/ RC * GO/DONE - A/D Conversion Status bit determines current status of conversion: 1 - A/D conversion is in progress. 0 - A/D conversion is complete. This bit is automatically cleared by hardware when the A/D conversion is complete. ADON - A/D On bit enables A/D converter. 1 - A/D converter is enabled. 0 - A/D converter is disabled. 19
20 ADCON0 Register (cont.) Control of A/D CONVERTER inside PIC 16F887 (Cont.) CHS3-CHS0 - Analog Channel Select bits select a pin or an analog channel for A/D conversion, i.e. voltage measurement: 20
21 ADCON1 Register Control of A/D CONVERTER inside PIC 16F887 (Cont.) ADFM - A/D Result Format Select bit 1 - Conversion result is right justified. Six most significant bits of the ADRESH are not used. 0 - Conversion result is left justified. Six least significant bits of the ADRESL are not used. VCFG1 - Voltage Reference bit selects negative voltage reference source needed for the operation of A/D converter. 1 - Negative voltage reference is applied to the Vref- pin. 0 - Power supply voltage Vss is used as negative voltage reference source. VCFG0 - Voltage Reference bit selects positive voltage reference source needed for the operation of A/D converter. 1 - Positive voltage reference is applied to the Vref+ pin. 0 - Power supply voltage Vdd is used as positive voltage reference source. 21
22 A/D ACQUISITION REQUIREMENTS In order to enable the ADC to meet its specified accuracy, it is necessary to provide a certain time delay between selecting specific analog input and measurement itself. This time is called 'acquisition time' and mainly depends on the source impedance. There is an equation used to calculate this time accurately, which in the worst case amounts to approximately 20uS. So, if you want the conversion to be accurate, don t forget this important detail. The time needed to complete a one-bit conversion is defined as TAD. It is required to be at least 1-6 us depends on ADC clock frequency which is set by ADCS1 and ADCS0 bits. One full 10-bit A/D conversion is slightly longer than expected and amounts to 11 TAD periods. S 22
23 Steps of using A/D Module In order to measure voltage on an input pin by the A/D converter, the following should be done: Step 1 - Port configuration: Write a logic one (1) to a bit of the TRIS register, thus configuring the appropriate pin as an input. Write a logic one (1) to a bit of the ANSEL register, thus configuring the appropriate pin as an analog input. Step 2 - ADC module configuration: Configure voltage reference in the ADCON1 register. Select ADC conversion clock in the ADCON0 register. Select one of input channels CH0-CH13 of the ADCON0 register. Select data format using the ADFM bit of the ADCON1 register. Enable A/D converter by setting the ADON bit of the ADCON0 register. Step 3 - ADC interrupt configuration (optionally): Clear the ADIF bit. Set the ADIE, PEIE and GIE bits. 23
24 Steps of using A/D Module (Cont.) Step 4 - Wait for the required acquisition time to pass (approximately 20uS). Step 5 - Start conversion by setting the GO/DONE bit of the ADCON0 register. Step 6 - Wait for ADC conversion to complete. It is necessary to check in the program loop whether the GO/DONE pin is cleared or wait for an A/D interrupt (must be previously enabled). Step 7 - Read ADC results: Read the ADRESH and ADRESL registers. 24
25 Problem 3: Write codes to read analog value from channel 2 and displays it on PORTD and PORTB as 10-bit binary number. Use A/D converter reference voltage from external pin. 25
26 Solution of Problem 3 unsigned int temp_res; void main() { ANSEL = 0x0C; TRISA = 0xFF; ANSELH = 0; TRISB = 0x3F; TRISD = 0; ADCON1.F4 = 1 ; // Pins AN2 and AN3 are configured as analog // All port A pins are configured as inputs // Rest of pins is configured as digital // Port B pins RB7 and RB6 are configured as outputs // All port D pins are configured as outputs // Voltage reference is brought to the RA3 pin. } do { temp_res = ADC_Read(2); // Result of A/D conversion is copied to temp_res PORTD = temp_res; // 8 LSBs are moved to port D PORTB = temp_res >> 2; // 2 MSBs are moved to bits RB6 and RB7 } while(1); // Endless loop In order to make this example work properly, it is necessary to tick off the ADC library in the Library Manager prior to compiling: ADC 26
27 Problem 4: Lamp on street are used to lighten the street at night or cloudy time when day light becomes very dim. Design a circuit using PIC16F887 microcontroller for automatic control of street light, such that, lamp on street will lighten only at night or cloudy time, when there is not enough light. Use LDR to sense the light. Suppose, resistance of LDR is less than 1M when there is enough light and greater than 1M when light is not enough. Use internal A/D converter of microcontroller to measure the voltage across LDR. Solution of Problem 4 27
28 Program (Problem-4) unsigned int light; void main() { ANSEL = 0x04; TRISA = 0xFF; ANSELH = 0; TRISB.F0 =0; ADCON1.F4 = 0 ; ADCON.F5=0; while(1) { } } // Pins AN2 is configured as analog // All port A pins are configured as inputs // Rest of pins is configured as digital // Port B pin PB0 is configured as output // Power supply voltage Vdd is used as positive voltage reference source. // Power supply voltage Vss is used as negative voltage reference source. light= ADC_Read(2); // Result of A/D conversion is copied to light if(light>512) PORTB.F0=1; else PORTB.F0=0; 28
29 Problem 5: Gas content in the air is measured by ppm (parts per million) unit. Suppose, when 500 ppm CH4 gas is present in the air, it is harmful for health and when it exceeds 700 ppm, the situation is dangerous. Develop an embedded system for an industry to give- beef sound when CH4 content in the air is greater than 500 ppm and continuous alarm when CH4 content exceeds 700 ppm. The characteristics curve of the gas sensor and its pin diagram is given below. Use a buzzer to produce sound. 29
30 Solution of Problem 5 Circuit Diagram RB0 Out 30
31 Program (problem-5) unsigned int gas; void main() { ANSEL = 0x04; // Pins AN2 is configured as analog TRISA = 0xFF; // All port A pins are configured as inputs ANSELH = 0; // Rest of pins is configured as digital TRISB.F0 =0; // Port B pin PB0 is configured as output ADCON1.F4 = 0 ; // Power supply voltage Vdd is used as positive voltage reference source. ADCON.F5=0; // Power supply voltage Vss is used as negative voltage reference source. while(1) { gas= ADC_Read(2); // Result of A/D conversion is copied to gas if(gas>307 && gas<409) { PORTB.F0=1; delay_ms(300); PORTB.F0=0; delay_ms(300); } else if (gas>409) PORTB.F0=1; else PORTB.F0=0; } } 31
MICROPROCESSORS A (17.383) Fall Lecture Outline
MICROPROCESSORS A (17.383) Fall 2010 Lecture Outline Class # 07 October 26, 2010 Dohn Bowden 1 Today s Lecture Syllabus review Microcontroller Hardware and/or Interface Finish Analog to Digital Conversion
More informationThe University of Texas at Arlington Lecture 10 ADC and DAC
The University of Texas at Arlington Lecture 10 ADC and DAC CSE 3442/5442 Measuring Physical Quantities (Digital) computers use discrete values, and use these to emulate continuous values if needed. In
More informationEmbedded Systems. Interfacing PIC with external devices Analog to digital Converter. Eng. Anis Nazer Second Semester
Embedded Systems Interfacing PIC with external devices Analog to digital Converter Eng. Anis Nazer Second Semester 2016-2017 What is the time? What is the time? Definition Analog: can take any value Digital:
More informationPIC Analog Voltage to PWM Duty Cycle
Name Lab Section PIC Analog Voltage to PWM Duty Cycle Lab 5 Introduction: In this lab you will convert an analog voltage into a pulse width modulation (PWM) duty cycle. The source of the analog voltage
More informationMicroprocessors A Lab 4 Fall Analog to Digital Conversion Using the PIC16F684 Microcontroller
Objectives Materials 17.383 Microprocessors A Analog to Digital Conversion Using the PIC16F684 Microcontroller 1) To use MPLAB IDE software, PICC Compiler, and external hardware to demonstrate the following:
More informationPIC ADC to PWM and Mosfet Low-Side Driver
Name Lab Section PIC ADC to PWM and Mosfet Low-Side Driver Lab 6 Introduction: In this lab you will convert an analog voltage into a pulse width modulation (PWM) duty cycle. The source of the analog voltage
More informationBuilding an Analog Communications System
Building an Analog Communications System Communicate between two PICs with analog signals. Analog signals have continous range. Analog signals must be discretized. Digital signal converted to analog Digital
More informationSection 22. Basic 8-bit A/D Converter
M Section 22. A/D Converter HIGHLIGHTS This section of the manual contains the following major topics: 22.1 Introduction...22-2 22.2 Control Registers...22-3 22.3 A/D Acquisition Requirements...22-6 22.4
More informationChapter 5: Signal conversion
Chapter 5: Signal conversion Learning Objectives: At the end of this topic you will be able to: explain the need for signal conversion between analogue and digital form in communications and microprocessors
More informationMicrocomputers. Digital Signal Processing
Microcomputers Analog-to-Digital and Digital-to-Analog Conversion Lecture 7-1 Digital Signal Processing Analog-to-Digital Converter (ADC) converts an input analog value to an output digital representation.
More informationMusic 270a: Fundamentals of Digital Audio and Discrete-Time Signals
Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals Tamara Smyth, trsmyth@ucsd.edu Department of Music, University of California, San Diego October 3, 2016 1 Continuous vs. Discrete signals
More informationEXPERIMENT 6: Advanced I/O Programming
EXPERIMENT 6: Advanced I/O Programming Objectives: To familiarize students with DC Motor control and Stepper Motor Interfacing. To utilize MikroC and MPLAB for Input Output Interfacing and motor control.
More informationLab 10. Speed Control of a D.C. motor
Lab 10. Speed Control of a D.C. motor Speed Measurement: Tach Amplitude Method References: STM32L100 Data Sheet (pin definitions) STM32L100 Ref. Manual (ADC, GPIO, Clocks) Motor Speed Control Project 1.
More informationEXERCISE 4: A Simple Hi-Fi
EXERCISE 4: A Simple Hi-Fi EXERCISE OBJECTIVE When you have completed this exercise, you will be able to summarize the features of types of sensors that can be used with electronic control systems. You
More informationContinuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals
Continuous vs. Discrete signals CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 22,
More informationPIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232
PIC Functionality General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232 General I/O Logic Output light LEDs Trigger solenoids Transfer data Logic Input Monitor
More informationME 461 Laboratory #3 Analog-to-Digital Conversion
ME 461 Laboratory #3 Analog-to-Digital Conversion Goals: 1. Learn how to configure and use the MSP430 s 10-bit SAR ADC. 2. Measure the output voltage of your home-made DAC and compare it to the expected
More informationLab 12 Laboratory 12 Data Acquisition Required Special Equipment: 12.1 Objectives 12.2 Introduction 12.3 A/D basics
Laboratory 12 Data Acquisition Required Special Equipment: Computer with LabView Software National Instruments USB 6009 Data Acquisition Card 12.1 Objectives This lab demonstrates the basic principals
More informationDigitizing Color. Place Value in a Decimal Number. Place Value in a Binary Number. Chapter 11: Light, Sound, Magic: Representing Multimedia Digitally
Chapter 11: Light, Sound, Magic: Representing Multimedia Digitally Fluency with Information Technology Third Edition by Lawrence Snyder Digitizing Color RGB Colors: Binary Representation Giving the intensities
More informationDesigning with a Microcontroller (v6)
Designing with a Microcontroller (v6) Safety: In this lab, voltages are less than 15 volts and this is not normally dangerous to humans. However, you should assemble or modify a circuit when power is disconnected
More informationCMPT 318: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals
CMPT 318: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 16, 2006 1 Continuous vs. Discrete
More informationCyber-Physical Systems ADC / DAC
Cyber-Physical Systems ADC / DAC ICEN 553/453 Fall 2018 Prof. Dola Saha 1 Analog-to-Digital Converter (ADC) Ø ADC is important almost to all application fields Ø Converts a continuous-time voltage signal
More informationGCE A level 1145/01 ELECTRONICS ET5
Surname Centre Number Candidate Number Other Names 2 GCE A level 1145/01 ELECTRONICS ET5 S16-1145-01 A.M. FRIDAY, 17 June 2016 1 hour 30 minutes For s use ADDITIONAL MATERIALS In addition to this examination
More informationDigital Sampling. This Lecture. Engr325 Instrumentation. Dr Curtis Nelson. Digital sampling Sample rate. Bit depth. Other terms. Types of conversion.
Digital Sampling Engr325 Instrumentation Dr Curtis Nelson Digital sampling Sample rate. Bit depth. Other terms. Types of conversion. This Lecture 1 Data Acquisition and Control Computers are nearly always
More information5/17/2009. Digitizing Color. Place Value in a Binary Number. Place Value in a Decimal Number. Place Value in a Binary Number
Chapter 11: Light, Sound, Magic: Representing Multimedia Digitally Digitizing Color Fluency with Information Technology Third Edition by Lawrence Snyder RGB Colors: Binary Representation Giving the intensities
More informationAnalogue Signals. M J Brockway. February 5, 2018
Analogue Signals M J Brockway February 5, 2018 Digital vs Analogue Digital (electrical) inputs to a CPU register as logical values - true or false, 1 or 0, on or off. typically arise from switch contacts
More informationECE 556 BASICS OF DIGITAL SPEECH PROCESSING. Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2
ECE 556 BASICS OF DIGITAL SPEECH PROCESSING Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2 Analog Sound to Digital Sound Characteristics of Sound Amplitude Wavelength (w) Frequency ( ) Timbre
More informationA-D and D-A Converters
Chapter 5 A-D and D-A Converters (No mathematical derivations) 04 Hours 08 Marks When digital devices are to be interfaced with analog devices (or vice a versa), Digital to Analog converter and Analog
More informationAnalog to Digital Conversion
Analog to Digital Conversion Why It s Needed Embedded systems often need to measure values of physical parameters These parameters are usually continuous (analog) and not in a digital form which computers
More informationGCE A level 1145/01 ELECTRONICS ET5. P.M. THURSDAY, 31 May hours. Centre Number. Candidate Number. Surname. Other Names
Surname Other Names Centre Number 0 Candidate Number GCE A level 1145/01 ELECTRONICS ET5 P.M. THURSDAY, 31 May 2012 1 1 2 hours For s use Question Maximum Mark Mark Awarded 1. 6 2. 9 3. 8 4. 6 1145 010001
More informationIn this lecture. System Model Power Penalty Analog transmission Digital transmission
System Model Power Penalty Analog transmission Digital transmission In this lecture Analog Data Transmission vs. Digital Data Transmission Analog to Digital (A/D) Conversion Digital to Analog (D/A) Conversion
More informationChapter 8. Representing Multimedia Digitally
Chapter 8 Representing Multimedia Digitally Learning Objectives Explain how RGB color is represented in bytes Explain the difference between bits and binary numbers Change an RGB color by binary addition
More informationModule 13: Interfacing ADC. Introduction ADC Programming DAC Programming Sensor Interfacing
Module 13: Interfacing ADC Introduction ADC Programming DAC Programming Sensor Interfacing Introduction ADC Devices o Analog-to-digital converters (ADC) are among the most widely used devices for data
More informationCHAPTER 4. PULSE MODULATION Part 2
CHAPTER 4 PULSE MODULATION Part 2 Pulse Modulation Analog pulse modulation: Sampling, i.e., information is transmitted only at discrete time instants. e.g. PAM, PPM and PDM Digital pulse modulation: Sampling
More informationThree-Stage Coil Gun
Three-Stage Coil Gun Final Project Report December 8, 2006 E155 Dan Pivonka and Michael Pugh Abstract: A coil gun is an electronic gun that fires a projectile by means of the magnetic field generated when
More informationBased with permission on lectures by John Getty Laboratory Electronics II (PHSX262) Spring 2011 Lecture 9 Page 1
Today 3// Lecture 9 Analog Digital Conversion Sampled Data Acquisition Systems Discrete Sampling and Nyquist Digital to Analog Conversion Analog to Digital Conversion Homework Study for Exam next week
More informationP a g e 1. Introduction
P a g e 1 Introduction 1. Signals in digital form are more convenient than analog form for processing and control operation. 2. Real world signals originated from temperature, pressure, flow rate, force
More informationEE 109 Midterm Review
EE 109 Midterm Review 1 2 Number Systems Computer use base 2 (binary) 0 and 1 Humans use base 10 (decimal) 0 to 9 Humans using computers: Base 16 (hexadecimal) 0 to 15 (0 to 9,A,B,C,D,E,F) Base 8 (octal)
More informationEmbedded Hardware Design Lab4
Embedded Hardware Design Lab4 Objective: Controlling the speed of dc motor using light sensor (LDR). In this lab, we would want to control the speed of a DC motor with the help of light sensor. This would
More informationSection bit A/D Converter
Section. 12-bit A/D Converter HIGHLIGHTS This section of the manual contains the following major topics:.1 Introduction... -2.2 Control Registers... -4.3 A/D Result Buffer... -4.4 A/D Terminology and Conversion
More informationA NEW DECISION ALGORITHM FOR AUDIO VOTING SYSTEM
IAENG International Journal of Computer Science, 32:4, IJCS_32_4_3 A NEW DECISION ALGORITHM FOR AUDIO VOTING SYSTEM M. Carbajo, M.D. R-Moreno, A. Moreno and J. de Pedro Departamento de Automática. Universidad
More informationFollow this and additional works at: Part of the Engineering Commons
Trinity University Digital Commons @ Trinity Mechatronics Final Projects Engineering Science Department 5-2018 Pyramid of Disco Daniel Henkes Trinity University, dhenkes@trinity.edu Molly McCullough Trinity
More informationADC Resolution: Myth and Reality
ADC Resolution: Myth and Reality Mitch Ferguson, Applications Engineering Manager Class ID: CC19I Renesas Electronics America Inc. Mr. Mitch Ferguson Applications Engineering Manager Specializes support
More informationMicroToys Guide: Motors A. Danowitz, A. Adibi December A rotary shaft encoder is an electromechanical device that can be used to
Introduction A rotary shaft encoder is an electromechanical device that can be used to determine angular position of a shaft. Encoders have numerous applications, since angular position can be used to
More informationPC-based controller for Mechatronics System
Course Code: MDP 454, Course Name:, Second Semester 2014 PC-based controller for Mechatronics System Mechanical System PC Controller Controller in the Mechatronics System Configuration Actuators Power
More informationPololu TReX Jr Firmware Version 1.2: Configuration Parameter Documentation
Pololu TReX Jr Firmware Version 1.2: Configuration Parameter Documentation Quick Parameter List: 0x00: Device Number 0x01: Required Channels 0x02: Ignored Channels 0x03: Reversed Channels 0x04: Parabolic
More informationGCE A level 1145/01 ELECTRONICS ET5
Surname Other Names Centre Number 2 Candidate Number GCE A level 1145/01 ELECTRONICS ET5 A.M. WEDNESDAY, 12 June 2013 1½ hours ADDITIONAL MATERIALS In addition to this examination paper, you will need
More informationLaboratory 11. Pulse-Width-Modulation Motor Speed Control with a PIC
Laboratory 11 Pulse-Width-Modulation Motor Speed Control with a PIC Required Components: 1 PIC16F88 18P-DIP microcontroller 3 0.1 F capacitors 1 12-button numeric keypad 1 NO pushbutton switch 1 Radio
More informationDigital Signal Detector Interface IC PS202
General Description The detector Integrated circuit is designed for interfacing Passive sensors with microcontrollers or processors. A single wire Data Out, Clock In (DOCI) interface is provided for interfacing
More information2: Audio Basics. Audio Basics. Mark Handley
2: Audio Basics Mark Handley Audio Basics Analog to Digital Conversion Sampling Quantization Aliasing effects Filtering Companding PCM encoding Digital to Analog Conversion 1 Analog Audio Sound Waves (compression
More informationELCT 912: Advanced Embedded Systems
ELCT 912: Advanced Embedded Systems Lecture 5: PIC Peripherals on Chip Dr. Mohamed Abd El Ghany, Department of Electronics and Electrical Engineering The PIC Family: Peripherals Different PICs have different
More informationUNIT III Data Acquisition & Microcontroller System. Mr. Manoj Rajale
UNIT III Data Acquisition & Microcontroller System Mr. Manoj Rajale Syllabus Interfacing of Sensors / Actuators to DAQ system, Bit width, Sampling theorem, Sampling Frequency, Aliasing, Sample and hold
More informationCS101 Lecture 18: Audio Encoding. What You ll Learn Today
CS101 Lecture 18: Audio Encoding Sampling Quantizing Aaron Stevens (azs@bu.edu) with special guest Wayne Snyder (snyder@bu.edu) 16 October 2012 What You ll Learn Today How do we hear sounds? How can audio
More informationEEE3410 Microcontroller Applications Department of Electrical Engineering. Lecture 10. Analogue Interfacing. Vocational Training Council, Hong Kong.
Department of Electrical Engineering Lecture 10 Analogue Interfacing 1 In this Lecture. Interface 8051 with the following Input/Output Devices Transducer/Sensors Analogue-to-Digital Conversion (ADC) Digital-to-Analogue
More informationSIGMA-DELTA CONVERTER
SIGMA-DELTA CONVERTER (1995: Pacífico R. Concetti Western A. Geophysical-Argentina) The Sigma-Delta A/D Converter is not new in electronic engineering since it has been previously used as part of many
More informationAPPLICATION NOTE. Atmel AVR127: Understanding ADC Parameters. Atmel 8-bit Microcontroller. Features. Introduction
APPLICATION NOTE Atmel AVR127: Understanding ADC Parameters Atmel 8-bit Microcontroller Features Getting introduced to ADC concepts Understanding various ADC parameters Understanding the effect of ADC
More informationII Year (04 Semester) EE6403 Discrete Time Systems and Signal Processing
Class Subject Code Subject II Year (04 Semester) EE6403 Discrete Time Systems and Signal Processing 1.CONTENT LIST: Introduction to Unit I - Signals and Systems 2. SKILLS ADDRESSED: Listening 3. OBJECTIVE
More informationIntroduction. These two operations are performed by data converters : Analogue-to-digital converter (ADC) Digital-to-analogue converter (DAC)
Lezione 7 Conversione analogico digitale Introduzione Campionamento di segnali analogici e Aliasing Porte di campionamento e di mantenimento Quantizzazione segnali analogici Ricostruzione del segnale analogico
More informationAnalog to Digital Conversion
Analog to Digital Conversion 02534567998 6 4 2 3 4 5 6 ANALOG to DIGITAL CONVERSION Analog variation (Continuous, smooth variation) Digitized Variation (Discrete set of points) N2 N1 Digitization applied
More informationIn this lecture, we will look at how different electronic modules communicate with each other. We will consider the following topics:
In this lecture, we will look at how different electronic modules communicate with each other. We will consider the following topics: Links between Digital and Analogue Serial vs Parallel links Flow control
More informationANALOGUE AND DIGITAL COMMUNICATION
ANALOGUE AND DIGITAL COMMUNICATION Syed M. Zafi S. Shah Umair M. Qureshi Lecture xxx: Analogue to Digital Conversion Topics Pulse Modulation Systems Advantages & Disadvantages Pulse Code Modulation Pulse
More informationMicroprocessors & Interfacing
Lecture overview Microprocessors & Interfacing /Output output PMW Digital-to- (D/A) Conversion input -to-digital (A/D) Conversion Lecturer : Dr. Annie Guo S2, 2008 COMP9032 Week9 1 S2, 2008 COMP9032 Week9
More informationCSCI1600 Lab 4: Sound
CSCI1600 Lab 4: Sound November 1, 2017 1 Objectives By the end of this lab, you will: Connect a speaker and play a tone Use the speaker to play a simple melody Materials: We will be providing the parts
More informationDELTA MODULATION. PREPARATION principle of operation slope overload and granularity...124
DELTA MODULATION PREPARATION...122 principle of operation...122 block diagram...122 step size calculation...124 slope overload and granularity...124 slope overload...124 granular noise...125 noise and
More informationIST TSic Temperature Sensor IC. Technical Notes ZACwire Digital Output
IST TSic Temperature Sensor IC Technical Notes ZACwire Digital Output CONTENTS 1 ZACWIRE COMMUNICATION PROTOCOL FOR THE TSIC...2 1.1 TEMPERATURE TRANSMISSION PACKET FROM A TSIC TM...2 1.2 BIT ENCODING...3
More informationP89LPC935 ADC/DAC Tutorial
P89LPC935 ADC/DAC Tutorial The P89LPC935 microcontroller has 2 on-board analog to digital modules Each module contains a 4-channel 8-bit successive approximation ADC 89LPC935 ADC/DAC Tutorial 1 ADC Module
More informationHashemite University Faculty of Engineering Mechatronics Engineering Department. Microprocessors and Microcontrollers Laboratory
Hashemite University Faculty of Engineering Mechatronics Engineering Department Microprocessors and Microcontrollers Laboratory The Hashemite University Faculty of Engineering Department of Mechatronics
More information3 Design Lab III: An Electronic Governor for Electric Motor Speed Control
3 Design Lab III: An Electronic Governor for Electric Motor Speed Control (Denard Lynch, September 2008, revised Sept. 2009) 3.1 Safety Advisory: The activity prescribed in this laboratory will be conducted
More informationUNIT TEST I Digital Communication
Time: 1 Hour Class: T.E. I & II Max. Marks: 30 Q.1) (a) A compact disc (CD) records audio signals digitally by using PCM. Assume the audio signal B.W. to be 15 khz. (I) Find Nyquist rate. (II) If the Nyquist
More informationDigital Design Laboratory Lecture 7. A/D and D/A
ECE 280 / CSE 280 Digital Design Laboratory Lecture 7 A/D and D/A Analog/Digital Conversion A/D conversion is the process of sampling a continuous signal Two significant implications 1. The information
More informationEE 210 Lab Exercise #4 D/A & A/D Converters
EE 210 Lab Exercise #4 D/A & A/D Converters Introduction This lab deals with simple resistive circuits to perform Digital-to-Analog (D/A) conversion. We also introduce the use of a basic Analog-to-Digital
More informationCprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones
CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones 1 Announcements HW8: Due Sunday 10/29 (midnight) Exam 2: In class Thursday 11/9 This object detection lab
More informationSound/Audio. Slides courtesy of Tay Vaughan Making Multimedia Work
Sound/Audio Slides courtesy of Tay Vaughan Making Multimedia Work How computers process sound How computers synthesize sound The differences between the two major kinds of audio, namely digitised sound
More informationDebugging a Boundary-Scan I 2 C Script Test with the BusPro - I and I2C Exerciser Software: A Case Study
Debugging a Boundary-Scan I 2 C Script Test with the BusPro - I and I2C Exerciser Software: A Case Study Overview When developing and debugging I 2 C based hardware and software, it is extremely helpful
More informationLecture 7: Analog Signals and Conversion
ECE342 Introduction to Embedded Systems Lecture 7: Analog Signals and Conversion Ying Tang Electrical and Computer Engineering Rowan University 1 Analog Signals Everywhere Everything is an analogy in the
More informationChapter 2: Digitization of Sound
Chapter 2: Digitization of Sound Acoustics pressure waves are converted to electrical signals by use of a microphone. The output signal from the microphone is an analog signal, i.e., a continuous-valued
More informationAdvantages of Analog Representation. Varies continuously, like the property being measured. Represents continuous values. See Figure 12.
Analog Signals Signals that vary continuously throughout a defined range. Representative of many physical quantities, such as temperature and velocity. Usually a voltage or current level. Digital Signals
More informationTotal Hours Registration through Website or for further details please visit (Refer Upcoming Events Section)
Total Hours 110-150 Registration Q R Code Registration through Website or for further details please visit http://www.rknec.edu/ (Refer Upcoming Events Section) Module 1: Basics of Microprocessor & Microcontroller
More informationMeasuring Distance Using Sound
Measuring Distance Using Sound Distance can be measured in various ways: directly, using a ruler or measuring tape, or indirectly, using radio or sound waves. The indirect method measures another variable
More informationDigital Acquisition of Analog Signals A Practical Guide
Digital Acquisition of Analog Signals A Practical Guide Nathan M. Neihart Senior Design Presentation Motivation A common task for many senior design projects is to interface an analog signal with a digital
More informationData Converters. Dr.Trushit Upadhyaya EC Department, CSPIT, CHARUSAT
Data Converters Dr.Trushit Upadhyaya EC Department, CSPIT, CHARUSAT Purpose To convert digital values to analog voltages V OUT Digital Value Reference Voltage Digital Value DAC Analog Voltage Analog Quantity:
More informationChapter 7. Introduction. Analog Signal and Discrete Time Series. Sampling, Digital Devices, and Data Acquisition
Chapter 7 Sampling, Digital Devices, and Data Acquisition Material from Theory and Design for Mechanical Measurements; Figliola, Third Edition Introduction Integrating analog electrical transducers with
More informationUNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering
UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering EXPERIMENT 10 ANALOG-TO-DIGITAL AND DIGITAL-TO-ANALOG CONVERSION OBJECTIVES The purpose of this experiment is
More informationCounter/Timers in the Mega8
Counter/Timers in the Mega8 The mega8 incorporates three counter/timer devices. These can: Be used to count the number of events that have occurred (either external or internal) Act as a clock Trigger
More informationFRIDAY, 18 MAY 1.00 PM 4.00 PM. Where appropriate, you may use sketches to illustrate your answer.
X036/13/01 NATIONAL QUALIFICATIONS 2012 FRIDAY, 18 MAY 1.00 PM 4.00 PM TECHNOLOGICAL STUDIES ADVANCED HIGHER 200 marks are allocated to this paper. Answer all questions in Section A (120 marks). Answer
More informationTriple Stage Incubator
Triple Stage Incubator Author: OVERVIEW Brian Iehl Hoffman Estates IL brian@dls.net This project is a triple stage incubator. Three separate incubators are simultaneously controlled by one microcontroller.
More informationES /2 DMM. Features. General Description. Absolute Maximum Ratings
Features 22000 counts, adjustable PEAK Hold function with calibration mode Input signal full scale = 220 mv (sensitivity = 10 uv/count) X10 function (sensitivity = 1 uv/count) Conversion rate selectable
More informationUniversity of California at Berkeley Donald A. Glaser Physics 111A Instrumentation Laboratory
Published on Instrumentation LAB (http://instrumentationlab.berkeley.edu) Home > Lab Assignments > Digital Labs > Digital Circuits II Digital Circuits II Submitted by Nate.Physics on Tue, 07/08/2014-13:57
More informationML PCM Codec Filter Mono Circuit
PCM Codec Filter Mono Circuit Legacy Device: Motorola MC145506 The ML145506 is a per channel codec filter PCM mono circuit. This device performs the voice digitization and reconstruction, as well as the
More informationAnalog I/O. ECE 153B Sensor & Peripheral Interface Design Winter 2016
Analog I/O ECE 153B Sensor & Peripheral Interface Design Introduction Anytime we need to monitor or control analog signals with a digital system, we require analogto-digital (ADC) and digital-to-analog
More informationDigital-to-Analog Converter. Lab 3 Final Report
Digital-to-Analog Converter Lab 3 Final Report The Ion Cannons: Shrinand Aggarwal Cameron Francis Nicholas Polito Section 2 May 1, 2017 1 Table of Contents Introduction..3 Rationale..3 Theory of Operation.3
More informationLinear Integrated Circuits
Linear Integrated Circuits Single Slope ADC Comparator checks input voltage with integrated reference voltage, V REF At the same time the number of clock cycles is being counted. When the integrator output
More informationAnalog Input and Output. Lecturer: Sri Parameswaran Notes by: Annie Guo
Analog Input and Output Lecturer: Sri Parameswaran Notes by: Annie Guo 1 Analog output Lecture overview PMW Digital-to-Analog (D/A) Conversion Analog input Analog-to-Digital (A/D) Conversion 2 PWM Analog
More informationMicrocontroller: Timers, ADC
Microcontroller: Timers, ADC Amarjeet Singh February 1, 2013 Logistics Please share the JTAG and USB cables for your assignment Lecture tomorrow by Nipun 2 Revision from last class When servicing an interrupt,
More informationCh 5 Hardware Components for Automation
Ch 5 Hardware Components for Automation Sections: 1. Sensors 2. Actuators 3. Analog-to-Digital Conversion 4. Digital-to-Analog Conversion 5. Input/Output Devices for Discrete Data Computer-Process Interface
More informationHigh Efficiency AC Input 12A 12V Laser Driver
Figure. Front View of the Figure 2. Top View of the FEATURES High efficiency: 70 % Maximum output current: 2A Wide output voltage: 0V ~ 2V Wide input voltage: 00VAC ~ 240VAC High speed digital modulation:
More informationDSP Project. Reminder: Project proposal is due Friday, October 19, 2012 by 5pm in my office (Small 239).
DSP Project eminder: Project proposal is due Friday, October 19, 2012 by 5pm in my office (Small 239). Budget: $150 for project. Free parts: Surplus parts from previous year s project are available on
More informationThe counterpart to a DAC is the ADC, which is generally a more complicated circuit. One of the most popular ADC circuit is the successive
1 The counterpart to a DAC is the ADC, which is generally a more complicated circuit. One of the most popular ADC circuit is the successive approximation converter. 2 3 The idea of sampling is fully covered
More informationdspic Analogue to Digital Converter
dspic Analogue to Digital Converter The dspic30f4012 has a 10-bit successive approximation architecture ADC on board and provides maximum sampling rate of 1 Msps. The ADC module has 6 analogue inputs which
More informationAN3137 Application note
Application note Analog-to-digital converter on STM8L and STM8AL devices: description and precision improvement techniques Introduction This application note describes the 12-bit analog-to-digital converter
More information