Upload
shiwam-isrie
View
218
Download
0
Embed Size (px)
Citation preview
8/13/2019 tempmeasurement-120713052607-phpapp01
1/88
Characterization &Optimization
ofTemperature Sensor Using
LABVIEW
Completed By :
Shabnam Niknezhad
Samreen Shaikh
Guide :
Prof. SAJID NAEEMMSc Electronic Science
Department of Electronic Science
Poona College of Arts , Science & Commerce
8/13/2019 tempmeasurement-120713052607-phpapp01
2/88
AIM & OBJECTIVESAim:
To study of LabVIEW and its application.
Objectives:
Characterization and Optimization of temperature sensors.
To interface DAQ card with LabVIEW. To design ON/OFF controller to control Heater.
To develop basic programming architectures.
To develop Lab VIEW software for data acquisition, display
and/or control purpose. To create application that use plug in DAQ device
To develop necessary interface hard ware so as to accumulate
variety of test and measurement procedure.
To study different transducers under the control of virtual lab.
8/13/2019 tempmeasurement-120713052607-phpapp01
3/88
INTRODUCTION The primary objective of process control is to control physical
parameter such as temperature, pressure, flow rate, level, force, lightintensity and so on. As these parameter can change either
spontaneously or because of external influences, we must constantly
provide corrective action to keep these parameters constant or within
the specified range.
To control process parameter, we must know the value of that
parameter and hence it is necessary to measure that parameter.
8/13/2019 tempmeasurement-120713052607-phpapp01
4/88
An instrumentation system consists of three majorelements :
1. input device2. signal conditioning circuit
3. output device.
The input quantity for most instrumentation system
is non electrical in order to use electrical methods and
techniques for measurement the non electrical quantity is
converted into proportional electrical signal by a device
called transducer.
8/13/2019 tempmeasurement-120713052607-phpapp01
5/88
Transducer A transduceris a device that converts one form of energy to another.
Energy types include electrical,mechanical,
electromagnetic (including light), chemical, acoustic
or thermalenergy.
While the term transducercommonly implies the use of a sensor/detector,
any device which converts energy can be considered a transducer.
Transducers are widely used in measuring instruments.
Bioelectrical TechnologyAt the heart of this system a wireless
microelectromechanical system (MEMS)
sensor in the contact lens that acts as
a transducer, antenna, and mechanical
support for read-out electronics.
8/13/2019 tempmeasurement-120713052607-phpapp01
6/88
Temperature sensor - overview In many systems, temperature control is fundamental.
There are a number of passive and active temperaturesensors that can be used to measure system
temperature, including:
1. thermocouple,
2. resistive temperature detector,3. thermistor,
4. silicon temperature sensors.
These sensors provide temperature feedback to the
system controller to make decisions such as, over-
temperature shutdown, turn-on/off cooling fan,
temperature compensation or general purpose
temperature monitor.
8/13/2019 tempmeasurement-120713052607-phpapp01
7/88
8/13/2019 tempmeasurement-120713052607-phpapp01
8/88
Block Diagram
Signals are input to a sensor, conditioned, converted
into bits that a computer can read, and analyzed to
extract meaningful information.
8/13/2019 tempmeasurement-120713052607-phpapp01
9/88
Study of LabVIEW
8/13/2019 tempmeasurement-120713052607-phpapp01
10/88
(Laboratory Virtual Instrument EngineeringWorkbench.)
Lab VIEW is a graphical programming
language that uses icons instead of lines oftext to create programs.
Lab VIEWis a platform and development
environment for a visual programminglanguage from National Instruments.
8/13/2019 tempmeasurement-120713052607-phpapp01
11/88
virtual instruments
Lab VIEWprograms are called virtualinstruments, or VIs, because their
appearance and operation imitate physical
instruments, such as oscilloscopes andmultimeters.
After build the user interface, add code using
VIs and structures to control the front panelobjects. The block diagram contains this
code.
8/13/2019 tempmeasurement-120713052607-phpapp01
12/88
LABVIEW INTRODUCTION
Two sets for development Front Panel
Block Diagram
Wiring connections
LabVIEW Conventions
Running LabVIEW programs
8/13/2019 tempmeasurement-120713052607-phpapp01
13/88
LABVIEW Front Panel
It is the user interface for the VI.
Used to display Controls or Indicators.
It contains the Controls palette.
Highly customizable.
8/13/2019 tempmeasurement-120713052607-phpapp01
14/88
LABVIEW Block Diagram
Actual program.
Invisible to user.
Read left to right, like a book.
The block diagram provides the area for the graphical code
The
Functions
Palette
8/13/2019 tempmeasurement-120713052607-phpapp01
15/88
LabVIEW Palettes
1- The Front panel contains:
The Controls Palette
2- The Block Diagram panel contains:
The Functions Palette
8/13/2019 tempmeasurement-120713052607-phpapp01
16/88
8/13/2019 tempmeasurement-120713052607-phpapp01
17/88
The Controlspalette contains the controls and
indicators that used to create the front panel.
ControlsIndicators
8/13/2019 tempmeasurement-120713052607-phpapp01
18/88
Some Controls & Indicators
8/13/2019 tempmeasurement-120713052607-phpapp01
19/88
2- Functions Palette
To open the Functions palette from the blockdiagram window :
Or click the mouse right button.
8/13/2019 tempmeasurement-120713052607-phpapp01
20/88
Some Functions
8/13/2019 tempmeasurement-120713052607-phpapp01
21/88
Terminals:
When you place a control(or indicator) on the
FRONT PANEL
LabVIEW automatically
creates a corresponding
control(or indicator)
terminalon the
BLOCK DIAGRAM
B i i d i bl k di
8/13/2019 tempmeasurement-120713052607-phpapp01
22/88
Basic wires used in block diagrams
and corresponding types:
Each wire has different styleor color, depending on
the data type that flows through the wire:
8/13/2019 tempmeasurement-120713052607-phpapp01
23/88
LabVIEW Conventions
Front panel itemsControls and indicators
Block diagram items
Program structures (loops, case structures, math, etc.)
Controls vs. Indicators
Wires attach to controls on the right (give values)
Wires attach to indicators on the left (receive values)
Wiring colors
Wires are color coded to correspond to data types
8/13/2019 tempmeasurement-120713052607-phpapp01
24/88
Controls and Functions Palettes
Graphical, floating palettesused to place controls andindicators on the front panel,or to build the block diagram.
Controls Palette
(Front Panel)
Functions Palette
(Block Diagram)
8/13/2019 tempmeasurement-120713052607-phpapp01
25/88
Creating afront panel
Right click to selectthe controls palette
Drag and dropthe components
As you placecomponents acorrespondingterminal will appearin the diagramwindow
8/13/2019 tempmeasurement-120713052607-phpapp01
26/88
Wiring the diagram
Right click toselect thefunctions palette
Drag and dropfunctions
Select the wiring tool
Drag the wirebetween terminals
8/13/2019 tempmeasurement-120713052607-phpapp01
27/88
8/13/2019 tempmeasurement-120713052607-phpapp01
28/88
Basic Examples :
LabVIEW is written on graphical structure.
While in LabVIEW summationis a function and it is represent
by following symbol.
In LabVIEW, such mathematical and logical functions are
represented graphically.
8/13/2019 tempmeasurement-120713052607-phpapp01
29/88
Addand multiplytwo given numbers anddisplay the results
8/13/2019 tempmeasurement-120713052607-phpapp01
30/88
Converting C to F
F = (1.8 * C) + 32
Control
Indicator
8/13/2019 tempmeasurement-120713052607-phpapp01
31/88
Introduction of DAQ card
8/13/2019 tempmeasurement-120713052607-phpapp01
32/88
What is DAQ System
DAQ systems capture, measure, and analyze physicalphenomena from the real world.
Light, temperature and pressure are examples of the
different types of signals that a DAQ system can measure.
Data acquisition is the process of collecting and measuringelectrical signals and sending them to a computer forprocessing.
Electrical signals comes from Transducers.
The building blocks of a DAQ system includes:
8/13/2019 tempmeasurement-120713052607-phpapp01
33/88
The building blocks of a DAQ system includes:
1. Transducer: A device that converts a physicalphenomenon such as light, temperature, pressure, orsound into a measurable electrical signal such as voltageor current.
2. Signal: The output of the transducer.3. Signal conditioning: Hardware that you can connect to the
DAQ device to make the signal suitable for measurementor to improve accuracy or reduce noise.
4. DAQ hardware: Hardware you use to acquire, measure,and analyze data.
5. Software: NI application software is designed to help youeasily design and program your measurement and controlapplication (LABVIEW).
8/13/2019 tempmeasurement-120713052607-phpapp01
34/88
Why Signal Conditioning
To measure signals from transducers, you must convert them
into a form a measurement device can accept. Common types of signal conditioning include amplification,
linearization, transducer excitation, and isolation.
8/13/2019 tempmeasurement-120713052607-phpapp01
35/88
What type of device to use
The trade-off usually falls between :
1- Resolution (bits) & Code Width
2- Sampling rate (samples/second)
3- Number of channels, and data transfer rate(usually limited by bus type: USB, PCI, PXI, etc.).
8/13/2019 tempmeasurement-120713052607-phpapp01
36/88
Types of Data Acquisition and Control
Devices
8/13/2019 tempmeasurement-120713052607-phpapp01
37/88
DAQ Device Properties
DAQ devices have four standard
elements:
1. Analog input (AI)
2. Analog output (AO)
3. Digital I/O (DIO)4. Counter/Timers
8/13/2019 tempmeasurement-120713052607-phpapp01
38/88
USB DAQ : USB -6008 & USB -6009 LowCost USB DAQ.
The National Instruments USB-6009 provides basic data
acqusition
functionality for applications such as simple data logging,
portable measurements , and academic lab experiments.
The NI USB _6008 and NI USB 6009 are ideal for students.
Create measurement application
by programing the NI USB-6009
using LabVIEW and NI_DAQmx
driver software for Windows.
8/13/2019 tempmeasurement-120713052607-phpapp01
39/88
Feature of DAQ 6009
Eight 14-bit analog inputs.
12 digital I/O lines.
2 analog outputs.
1 counter.
Analog Digital
1
32
17
16
8/13/2019 tempmeasurement-120713052607-phpapp01
40/88
DAQ6009 Details
Overlay Label with Pin Orientation Guide
Comb icon Jack
Screw Terminal Blocks
Signal Labels
8/13/2019 tempmeasurement-120713052607-phpapp01
41/88
NI USB-6009 Pins
How to Select DAQ Device &
8/13/2019 tempmeasurement-120713052607-phpapp01
42/88
How to Select DAQ Device &
Accessories
Open the Labview program, in the Block Diagram
select functions, express input then select the
DAQ Assistanticon.
8/13/2019 tempmeasurement-120713052607-phpapp01
43/88
(Input & Output Channels)
Select Analog Input so as to input your
analog data to the computer and Labview.
How to Select DAQ Device
8/13/2019 tempmeasurement-120713052607-phpapp01
44/88
How to Select DAQ Device(Input & Output Channels)
We have 16 physical input channels from ai0
to ai15, select a channel like ai0.
8/13/2019 tempmeasurement-120713052607-phpapp01
45/88
ow o e ec ev ce
8/13/2019 tempmeasurement-120713052607-phpapp01
46/88
ow o e ec ev ce(Input & Output Channels)
Now make the connections and select test
then Run to see the input voltage.
How to Select DAQ Device
8/13/2019 tempmeasurement-120713052607-phpapp01
47/88
How to Select DAQ Device(Input & Output Channels)
Example
8/13/2019 tempmeasurement-120713052607-phpapp01
48/88
Introduction of Sensors
LM35
8/13/2019 tempmeasurement-120713052607-phpapp01
49/88
LM35
The LM35 is an integrated circuit sensor
that can be used to measure
temperature with an electrical output
proportional to the temperature (in oC).
What Can Expect When
8/13/2019 tempmeasurement-120713052607-phpapp01
50/88
What Can Expect When
Use An LM35? The output voltage is converted to temperature by a simple
conversion factor. The sensor has a sensitivity of 10mV / oC.
Use a conversion factor that is the reciprocal, that is 100 oC/V.
The general equation used to convert output voltage to
temperature is:
Temperature ( oC) = Vout * (100 oC/V)
So if Vout is 1V , then, Temperature = 100
o
C
The output voltage varies linearly with temperature.
Why Use LM35s To Measure
8/13/2019 tempmeasurement-120713052607-phpapp01
51/88
Why Use LM35s To Measure
Temperature?
Measure temperature more accurately than a
using a thermistor.
The sensor circuitry is sealed and not subject
to oxidation, etc.
The LM35 generates a higher output voltage
thanthermocouples and may not require that
the output voltage be amplified.
8/13/2019 tempmeasurement-120713052607-phpapp01
52/88
How does LM35 work?
It has an output voltage that is proportional
to the Celsius temperature.
The scale factor is 10mV/oC .
The LM35 does not require any external
calibration or trimming and maintains an
accuracy of +/-0.4 oC at room temperature
and +/- 0.8o
C over a range of 0o
C to +100o
C. Vc= 4 to 30v
5v or 12 v are typical values used.
Photo of the LM 35 wired on a
8/13/2019 tempmeasurement-120713052607-phpapp01
53/88
Photo of the LM 35 wired on a
circuit board.
The white wire in the photo goes to thepower supply.
Both the resistor and the black wire go to
ground. The output voltage is measured from the
middle pin into ground .
Power supply
Output voltage Ground
R l Pi t
8/13/2019 tempmeasurement-120713052607-phpapp01
54/88
Real Picture
LM35
Result in Block Diagram
8/13/2019 tempmeasurement-120713052607-phpapp01
55/88
Result in Block Diagram
Temperature ( oC)= Vout * (100 oC/V)
Convertfrom
Dynamic Data
R lt i F t P l (h ti )
8/13/2019 tempmeasurement-120713052607-phpapp01
56/88
Result in Front Panel (heating)
XY Graph
R lt i F t P l ( li )
8/13/2019 tempmeasurement-120713052607-phpapp01
57/88
Result in Front Panel (cooling)
XY Graph
8/13/2019 tempmeasurement-120713052607-phpapp01
58/88
Thermistor
Thermistors are built with semiconductor
materialsand can have either a positive (PTC)
or negative (NTC) temperature coefficient.
However, the NTC is typically used fortemperature sensing.
NTC
Ad f h i i l d
8/13/2019 tempmeasurement-120713052607-phpapp01
59/88
Advantagesof thermistorsinclude a very
high sensitivity to changes in temperature
(having a thermal response of up to -100/C at 25C),fast response time and
low cost.
The main drawback of thermistors is that
the change in resistance with temperature
is highly non-linear at temperatures below
0C and greater than 70C.
8/13/2019 tempmeasurement-120713052607-phpapp01
60/88
Electrical Connections of Thermistor
A simple voltage divider is
created with a reference
resistor (R1) and the
thermistor (RT).
A constant voltage source
is supplied (VREF) with the
output of the voltage
divider (Vout)directly
correlating to temperature.
8/13/2019 tempmeasurement-120713052607-phpapp01
61/88
The responseis shown in the graph of
temperature vs. output voltage to the right
of the circuit. It is fairly linear in the range of
0-70C.LINEAR
Why Use Thermistors To
8/13/2019 tempmeasurement-120713052607-phpapp01
62/88
Why Use Thermistors ToMeasure Temperature?
They are inexpensive, rugged and reliable.
They respond quickly.
Thermistor Block diagram
8/13/2019 tempmeasurement-120713052607-phpapp01
63/88
ThermistorBlock diagram
(Heating & Cooling)
Convert
temp(F) to (C)
T= ((1/298) +(1/4038)*ln(v/(5-v)))**(-1)*1.8-460 of
8/13/2019 tempmeasurement-120713052607-phpapp01
64/88
Thermistor Front panel
8/13/2019 tempmeasurement-120713052607-phpapp01
65/88
ThermistorFront panel
(Cooling)
8/13/2019 tempmeasurement-120713052607-phpapp01
66/88
Real Picture
Thermistor
8/13/2019 tempmeasurement-120713052607-phpapp01
67/88
AD590 Circuit
Solid State Temperature Sensor
8/13/2019 tempmeasurement-120713052607-phpapp01
68/88
Solid State Temperature Sensor
(Linear 1 Microamp per Kelvin Output)
Solid state' temperature sensor has an easy to use linearvoltage output, unlike conventional resistive sensors.
TheAD590 is a small temperature transducer that converts a
temperature input into a proportional current output.
The advanced technology in the AD590is especially suited forspecial temperature measurement and control applications
between -55 and 150C (-67 to 302F) when solid statereliability, linearity and accuracy are required.
The sizeand responsiveness of the AD590 make it perfect foruses where size is a consideration, such as on PC boards or
heat sinks.
8/13/2019 tempmeasurement-120713052607-phpapp01
69/88
Specifications
Absolute Maximum Ratings
Forward Voltage (E+ to E-): +44V
Reverse Voltage (E+ to E-): -20V
Breakdown Voltage
(case to E+ or E-): 200V Lead Temperature: 300C
Voltage Range: 4 to 30 Vdc
Nominal Current Output at 25C
(298.2 K): 298.2 A
Nominal Temperature Coefficient:
1 A/K
Calibration Error: J: 5.0C
maximum (K: 2.5C)
Absolute Error: Without external
Calibration Adjustment:
J: 10.0C max (K: 5.5C);
W/25C error set to zero J: 3.0Cmax (K: 2.0C)
Repeatability: 0.1C max
Long-Term Drift:
0.1C/month max
8/13/2019 tempmeasurement-120713052607-phpapp01
70/88
AD590
The AD590 solid-state temperature sensor
produces an output of 100mV per degree
Celsius :
Temperature = Voltage * 100
For example we have 0.35(v) in 35(degree
Celsius).
8/13/2019 tempmeasurement-120713052607-phpapp01
71/88
AD590- Front Panel
8/13/2019 tempmeasurement-120713052607-phpapp01
72/88
AD590 Front Panel
(Heating)
AD590- Front Panel
8/13/2019 tempmeasurement-120713052607-phpapp01
73/88
AD590 Front Panel
(Cooling)
Response temperature vs voltage
8/13/2019 tempmeasurement-120713052607-phpapp01
74/88
Response temperature vs voltage
(Heating)
R t t lt
8/13/2019 tempmeasurement-120713052607-phpapp01
75/88
Response temperature vs voltage
(Cooling)
Real Picture
8/13/2019 tempmeasurement-120713052607-phpapp01
76/88
Real Picture
AD590
PT100
8/13/2019 tempmeasurement-120713052607-phpapp01
77/88
PT100
The principle of operation is to measure the
resistance of a platinum element. The most common
type (PT100) has a resistance of 100 at 0 C and
138.4 ohms at 100 C. There are also PT1000 sensors
that have a resistance of 1000 ohms at 0 C.
The relationship between temperature and resistance
is approximately linear over a small temperature
range: for example, if you assume that it is linear overthe 0 to 100 C range, the error at 50 C is 0.4 C.
8/13/2019 tempmeasurement-120713052607-phpapp01
78/88
8/13/2019 tempmeasurement-120713052607-phpapp01
79/88
Features
1. Extremely accurate.
2. Fairly good linearity.
3. Variety of packages.4. Wire wound or thin film.
l
8/13/2019 tempmeasurement-120713052607-phpapp01
80/88
Applications
1. Industrial instrumentation.
2. Hot wire anemometers.
3. Laboratory quality measurements.4. Air , gas and liquid monitoring.
5. Petrochemical.
Real picture
8/13/2019 tempmeasurement-120713052607-phpapp01
81/88
p
PT100
PT100-Block Diagram
8/13/2019 tempmeasurement-120713052607-phpapp01
82/88
g
(Heating)
R=100(1+(t*0.00385))
PT100-Block Diagram
8/13/2019 tempmeasurement-120713052607-phpapp01
83/88
g
(Cooling)
R=100(1+(t*0.00385))
PT100-Front Panel
8/13/2019 tempmeasurement-120713052607-phpapp01
84/88
PT100 Front Panel
(Heating)
PT100-Front Panel
8/13/2019 tempmeasurement-120713052607-phpapp01
85/88
PT100 Front Panel
(Cooling)
temperature vs. output voltage
8/13/2019 tempmeasurement-120713052607-phpapp01
86/88
temperature vs. output voltage
(Heating)
Temperature vs. output Voltage(C li )
8/13/2019 tempmeasurement-120713052607-phpapp01
87/88
(Cooling)
8/13/2019 tempmeasurement-120713052607-phpapp01
88/88