Anda di halaman 1dari 24

Elements of Mechatronics System

Mechanical
System

Sensors

Data Acquisition
System

Actuators

Amplifying
Electronics

01/28/15

Amplifying
Electronics

Data Acquisition
System

Control System
Micro-controller or
Computer

DAQ (Construction)

Transducer

01/28/15

Filter

ADC

Computer

DAC

Amplification

Actuator

Binary numbers

MSB

01/28/15

LSB

What is Analog / Digital Signal ?


Analog Control System

Digital Control
System

01/28/15

Analog to Digital Conversion

01/28/15

Quantisation

01/28/15

Effect of Sampling Frequency

01/28/15

Sampling Rate
The data is acquired by an ADC using a process called
sampling.
Sampling an analog signal occurs at discrete time
intervals.
The rate at which the signal is sampled is known as the
sampling frequency.

Sampling

01/28/15

Sampling Theorem
The sampling theorem, or more correctly Shannon's
sampling theorem, states that we need to sample a
signal at a rate at least twice the maximum frequency
component in order to retain all frequency components in
the signal.

fs > 2 fmax

where fs is the sampling rate (frequency),


fmax is the highest frequency in the input signal,
and the minimum required rate (2 fmax) is called the

Nyquist frequency.
01/28/15

Effect of Sampling Frequency in signal reconstruction


Sampling the waveform

1000 Hz

100 Hz

20 Hz

10 Hz

01/28/15

10

A/D Converter: Sampling Rate


Aliasing
Acquired signal gets distorted if sampling rate is
too small.

01/28/15

11

Aliasing

Actual Signal

Reconstructed
Signal
01/28/15

12

Example of ADC Conversion

01/28/15

13

DAC & ADC


Physical System

(may be mechanical System, chemical


system, etc)
Variable
to sense

Analog
Signal

Current
Amplifier
Analog
Signal

ADC

DAC
Digital
Signal

01/28/15

Actuator
Signal

Analog
Signal

Digital
Signal

Micro-controller, DAQ System

14

Sensor Signal

Sampling

Quantizing

Digitization

Digital to Analog Conversion

01/28/15

Output

15

1-bit analog to
digital
conversion
2-bit analog to
digital
conversion

3-bit analog to
digital
conversion

01/28/15

16

SAMPLE & HOLD CIRCUIT


S&H circuit takes a
'snapshot' of a signal
level at a particular
time in readiness for
digitization.
To take a sample, the analog
switch is closed for a period of
time long enough for the
capacitor to charge up
to Vin; then the switch is opened
The signal voltage is trapped on
the capacitor because
(theoretically) it cant discharge
through either the op-amp or
analog switch.

The voltage can be read


anytime via the output of
the voltage follower.
The switch must be closed
long enough for the
capacitor to charge up to
the full value of Vin.
17

Succesive Approximation ADC

01/28/15

18

R-2R Ladder DAC


Each bit corresponds
to a switch:

Vref

If the bit is high,


the corresponding
switch is connected to
the inverting input of
the op-amp.

Bit: 0

4-Bit Converter

Vout

If the bit is low, the


corresponding switch
is connected to ground.

R-2R Ladder DAC


Advantages
Only two resistor values (R and 2R)
Does not require high precision resistors

Disadvantage
Lower conversion speed than binary weighted DAC

Voltage to Current converter

01/28/15

21

Current to Voltage converter

01/28/15

22

Multiplexer

01/28/15

23

Data Acquisition System

01/28/15

24