Documente Academic
Documente Profesional
Documente Cultură
dz
Sensors actuators
Camera Hydrolic
Acclerometer Analog sensors Pneumatic
Strain gauge - Continously varing output Electric
Microphone, loudspeaker Digital sensors Thermal or magnetic
Chemical sensors - On/off mechanic
Light sensors - pulse trains (convert in freq)
Exemple : Photoresistor
Sampler: the conversion rate must be at least twice the highest signal frequency ( Nyquist
sampling criterion)
ADC
Elements of a data acquisition system
Signal conditioning
.
Signal conditioning circuits improve the quality of signals generated by sensors before they are
converted into digital signals by the PC's data-acquisition hardware.
For example, a x10 amplifier maps sensor signals which range from 0 to 1 V into the range 0 to
10 V before they go into the A/D converter.
Sample and hold, and acquisition time
If the switch is closed, the capacitor is charged to the potential Vs (sample). When the switch
opens, the capacitor (holds) its charge, so the follower op amp has an output potential of
what potential was on the capacitor at the moment the switch opened.
11
Sample and hold, and acquisition time
12
Example
VC = Vs {1 exp(t/RC)}
0.9995Vs = Vs {1 exp(t/RC)}
exp(t/RC) = 1 0.9995
t = RC ln(0.0005)
t = 7.6RC
13
A/D conversion
15
Typical application of data acquisition by PIC C
- A C program was written using MikroC IDE for proper ADC conversion
and sending the digitized data to the PC through the USB. The program
was compiled and generate a hex file. The hex file so generated was
downloaded to the PIC18F4550 microcontroller using PICkit2
programmer.
- For proper acquisition of the data by the PC, graphical display and saving
into a file an application program was developed in Visual Basic.
- Since it has 10 bit resolution it can read a value from 0 to 5 volt in 1023
steps for a channel. Thus, it has an accuracy of 4.88mV.
- For the temperature, the range is set between 0 to 500C. This is converted
into voltage from 0 to 5 volt, by the signal conditioning circuit.
- The range of the relative humidity is from 10 to 90 % RH. Then the signal
conditioning circuit converted this voltage range to 1 - 5 volt.
Data acquisition in the microcontroller
environment
To operate to a good level of accuracy, an ADC
needs a clean power supply and ground and no
electromagnetic interference.
When an ADC is integrated inside a
microcontroller, it will be affected by the noisy
internal power sources.
So, integrated ADCs are not very accurate, typically
8- or 10-bit.
17
Data acquisition card
- analog input,
- analog output,
- digital input,
- digital output and
- counter/timer functions.
A/D converter
Themost
The mostsignificant
significantcriteria
criteriawhen
whenselecting
selectingA/D
A/Dhardware
hardware
are:
are:
1. Number of input channels
1.
2.Number of input
Single-ended orchannels
differential input signals
3.Single-ended
2. Sampling rateor(in samples per
differential inputsecond)
signals
4. Resolution (usually measured in bits of resolution)
3.
5.Sampling rate
Input range (in samples
(specified per second)
in full-scale volts)
6.Resolution
4. Noise and (usually
nonlinearity
measured in bits of resolution)
5. Input range (specified in full-scale volts)
6. Noise and nonlinearity
A/D Converter:
Sampling Rate
Analog 16
8
4 Samples/cycle
Samples/cycle
Input
A/D Converter:
Sampling Rate
Aliasing.
Acquired signal gets distorted if sampling rate
is too small.
A/D Converter:
Throughput *
* Throughput : dbit
A/D Converter:
Range