Download as pdf or txt
Download as pdf or txt
You are on page 1of 34

MIIE2468

Sensors and Actuator

Analog Vs Digital

1
Krissanapong Nandhasri
nandhasri.k@mut.ac.th 2
Analog
• Analog information is made up of a continuum
of values

3
Analog Example
• phonograph

4
Analog
Obsolete devices

5
Analog Voice

Video

6
Analog Circuit

7
Digital?
• Digital information can assume only one or two possible
values: 0/1, one/Zero, on/off, high/low, true,false, etc
Digital Example
CD Player

10
Digital Circuit

11
Analog Vs Digital
Parameter Analog Signal Digital Signal
Definition A signal for conveying A signal which is a discrete
information which is a function of time, i.e. non-
continuous function of continuous signal, is
time is known as analog known as digital signal.
signal.
An analog signal is typically The typical representation
represented by a sine wave of a signal is given by a
Typical representation function. There are many square wave function.
more representations for
the analog signals also.
Analog signals use a Digital signals use discrete
continuous range of values values (or discontinuous
Signal values to represent the data and values), i.e. discrete 0 and
information. 1, to represent the data and
information.

12
Analog Vs Digital
Parameter Analog Signal Digital Signal
The analog signals are more The digital signals are
suitable for transmission of suitable for computing and
Suitability audio, video and other digital electronic operations
information through the such as data storage, etc.
communication channels.
Analog signals get affected The digital signals are more
by the electronic noise stable and less susceptible
Effect of electronic noise
easily. to noise than the analog
signals.
Due to more susceptibility The digital signals have high
Accuracy to the noise, the accuracy accuracy because they are
of analog signals is less. immune from the noise.
Analog signals use more Digital signals use less
power for data power than analog signals
Power consumption
transmission. for conveying the same
amount of information.
13
Analog Vs Digital
Parameter Analog Signal Digital Signal
Analog signals are Digital circuits are required
processed by analog circuits for processing of digital
Circuit components whose major components signals whose main circuit
are resistors, capacitors, components are transistors,
inductors, etc. logic gates, ICs, etc.
The analog signals give The digital signals do not
Observational errors
observational errors. given observational errors.
The common examples of The common example of
analog signals are digital signal is the data
Examples temperature, current, store in a computer
voltage, voice, pressure, memory.
speed, etc.
The analog signals are used The digital signals are used
in land line phones, in computers, keyboards,
Applications
thermometer, electric fan, digital watches,
volume knob of a radio, etc. smartphones, etc.
14
Definition of DSP: Digital filtering
Digital Signal Processing Video compression
Audio compression
Speech processing
Image processing
Radar and Sonar processing

15
ADC
Analog to Digital Converter

•CD Audio = 16-bit


•DVD Audio = 24-bit
3-bits Resolution

16
Sampling Rate Sampling Rate

The sampling rate (SR) is the rate at
whichamplitude values are digitized
from the originalwaveform.

CD sampling rate (high-quality):SR =
44,100 samples/second

medium-quality sampling rate:SR =
•CD Audio = 44.1 kHz 22,050 samples/second
•DVD Audio = 192 kHz •
phone sampling rate (low-quality):SR =
8,192 samples/second 17
Nyquist Frequency = SR/2
Nyquist Theorem
Sampling Rate
•Higher sampling rates allow
the waveform to be more
accurately represented
Nyquist Theorem and Aliasing
•Nyquist Theorem:We can digitally
represent only frequencies up to
half the sampling rate.
•Example:CD: SR=44,100
Hz Nyquist Frequency = SR/2 =
22,050 Hz
•Example:SR=22,050 Hz Nyquist
Frequency = SR/2 = 11,025 Hz 18
ADC Operation

S/H = Sampling and Hold


19
ADC Circuit Basic
1-bits ADC 2-bits ADC

Comparator Circuit parallel or flash A/D


20
2-Bits ADC Circuit 22=4 possible outputs

Priority Encoder such as


Where: “X” is a “don’t care”, that is either a
74LS148 logic “0” or a logic “1” condition. 21
3-Bits ADC Circuit 23=8 possible outputs

22
Parallel or flash A/D

4-bit resolution requires 15 (24– 1) comparators, an 8-bit


resolution requires 255 (28– 1) comparators, while a 10-
bit analogue-to-digital converter would require 1023
comparators, etc. So for this type of Analogue-to-Digital
Converter circuit, the higher the number of output bits
required, the more complex becomes the circuit.

However, the advantage of this type of parallel or flash


A/D converter is that its real-time conversion rate is
relatively fast and can be easily built as part of a project if
only a few binary bits are required 23
Successive approximation ADC

6-bits = 26 =64 possible outputs 24


DAC Binary weighted digital-to-analogue converters

25
Binary weighted DAC

26
R-2R DAC

4-bit R-2R Resistive Ladder Network

Generalised R-2R DAC Equation

27
R-2R DAC

4-bit R-2R Resistive Ladder Network

28
R-2R DAC example

29
ADC

30
Ads1115

ADS1115 is an analog-to-digital converter module with a 16-bit resolution. It is a


low-power device and operates at a voltage range of 2.0-5.5V. The ADS1115 IC
oscillator and communicated to a microcontroller using the I2C communication
protocol. It also includes a programmable gain amplifier up to x16, which helps to
scale up small/differential signals to the full range.
31
DAC

32
DAC

MCP4725. This IC provides 12 bit resolution and on board Board Non-Volatile


Memory (EEPROM). It can be addressed by external A0 address pin, and
operates in Normal or Power-Down Mode. It takes wide range of input supply
voltage as 2.7V to 5.5V from single supply source. This IC provides eight
address through I2C and have Extended Temperature Range: -40°C to +125°C.

33
World of 010101

You might also like