bulletSensor

Sensor Terminology
by Joseph J. Carr John M. Brown
Introduction to Biomedical Equipment Technology, Third Edition, Prentice Hall PTR

 Print this Page

Sensors, like other areas of technology, have a specific terminology that must be understood before they can be properly applied. Some of the most common terms are discussed below.

 
  Sensitivity
 


The sensitivity of the sensor is defined as the slope of the output characteristic curve (DY/DX in Figure 6-1) or, more generally, the minimum input of physical parameter that will create a detectable output change. In some sensors, the sensitivity is defined as the input parameter change required to produce a standardized output change. In others, it is defined as an output voltage change for a given change in input parameter. For example, a typical blood pressure transducer may have a sensitivity rating of
10 mV/V/mm Hg; that is, there will be a 10-mV output voltage for each volt of excitation potential and each mm Hg of applied pressure.

 
  Sensitivity error
 


The sensitivity error (shown as a dotted curve in Figure 6-1) is a departure from the ideal slope of the characteristic curve. For example, the pressure transducer discussed above may have an actual sensitivity of 7.8 mV/V/mm Hg instead of 10 mV/V/mm Hg.

 
  Range
 


The range of the sensor is the maximum and minimum values of applied parameter that can be measured. For example, a given pressure sensor may have a range of -400 to +400 mm Hg. Alternatively, the positive and negative ranges often are unequal. For example, a certain medical blood pressure transducer is specified to have a minimum (vacuum) limit of -50 mm Hg (Ymin in Figure 6-1) and a maximum (pressure) limit of +450 mm Hg (Ymax in Figure 6-1). This specification is common, incidentally, and is one reason doctors and nurses sometimes destroy blood pressure sensors when attempting to draw blood through an arterial line without being mindful of the position of the fluid stopcocks in the system. A small syringe can exert a tremendous vacuum on a closed system.

 


Figure 6-1 Ideal curve and sensitivity error. Source: J.J. Carr, Sensors and Circuits Prentice Hall.
  Dynamic range
 


The dynamic range is the total range of the sensor from minimum to maximum. That is, in terms of Figure 6-1, Rdyn = Ymax - l -Yminl.

 
  Precision
 


The concept of precision refers to the degree of reproducibility of a measurement. In other words, if exactly the same value were measured a number of times, an ideal sensor would output exactly the same value every time. But real sensors output a range of values distributed in some manner relative to the actual correct value. For example, suppose a pressure of exactly 150 mm Hg is applied to a sensor. Even if the applied pressure never changes, the output values from the sensor will vary considerably. Some subtle problems arise in the matter of precision when the true value and the sensor's mean value are not within a certain distance of each other

 

(e.g., the 1-s range of the normal distribution curve).

 
  Resolution
 


This specification is the smallest detectable incremental change of input parameter that can be detected in the output signal. Resolution can be expressed either as a proportion of the reading (or the full-scale reading) or in absolute terms.

 
  Accuracy
 


The accuracy of the sensor is the maximum difference that will exist between the actual value (which must be measured by a primary or good secondary standard) and the indicated value at the output of the sensor. Again, the accuracy can be expressed either as a percentage of full scale or in absolute terms.

 
  Offset
 


The offset error of a transducer is defined as the output that will exist when it should be zero or, alternatively, the difference between the actual output value and the specified output value under some particular set of conditions. An example of the first situation in terms of Figure 6-1 would exist if the characteristic curve had the same sensitivity slope as the ideal but crossed the Y-axis (output) at b instead of zero. An example of the other form of offset is seen in the characteristic curve of a pH electrode shown in Figure 6-2. The ideal curve will exist only at one temperature (usually 25°C), while the actual curve will be between the minimum temperature and maximum temperature limits depending on the temperature of the sample and electrode.

 


Figure 6-2 Typical pH electrode characteristic curve showing temperature sensitivity. Source: J.J. Carr, Sensors and Circuits Prentice Hall.
  Linearity
 


The linearity of the transducer is an expression of the extent to which the actual measured curve of a sensor departs from the ideal curve. Figure 6-3 shows a somewhat exaggerated relationship between the ideal, or least squares fit, line and the actual measured or calibration line (Note in most cases, the static curve is used to determine linearity, and this may deviate somewhat from a dynamic linearity) Linearity is often specified in terms of percentage of nonlinearity, which is defined as:

 


where

Nonlinearity (%) is the percentage of nonlinearity
Din(max) is the maximum input deviation
INf.s. is the maximum, full-scale input

The static nonlinearity defined by Equation 6-1 is often subject to environmental factors, including temperature, vibration, acoustic noise level, and humidity. It is important to know under what conditions the specification is valid and departures from those conditions may not yield linear changes of linearity.

 
  Hysteresis
 


A transducer should be capable of following the changes of the input parameter regardless of which direction the change is made; hysteresis is the measure of this property. Figure 6-4 shows a typical hysteresis curve. Note that it matters from which direction the change is made. Approaching a fixed input value (point B in Figure 6-4) from a higher value (point P) will result in a different indication than approaching the same value from a lesser value (point Q or zero). Note that input value B can be represented by F(X)1, F(X)2, or F(X)3 depending on the immediate previous value—clearly an error due to hysteresis.

 


Figure 6-3 Ideal versus measured curve showing linearity error. Source: J J Carr, Sensors and Circuits Prentice Hall



Figure 6-4 Hysteresis curve. Source: J.J. Carr, Sensors and Circuits Prentice Hall.


Response time
Sensors do not change output state immediately when an input parameter change occurs. Rather, it will change to the new state over a period of time, called the response time (Tr in Figure 6-5). The response time can be defined as the time required for a sensor output to change from its previous state to a final settled value within a tolerance band of the correct new value. This concept is somewhat different from the notion of the time constant (T) of the system. This term can be defined in a manner similar to that for a capacitor charging through a resistance and is usually less than the response time.

The curves in Figure 6-5 show two types of response time. In Figure 6-5a the curve represents the response time following an abrupt positive going step-function change of the input parameter. The form shown in Figure 6-5b is a decay time (Td to distinguish from Tr, for they are not always the same) in response to a negative going step-function change of the input parameter.

 




Figure 6-5 (a) Rise-time definition; (b) fall-time definition. Source: J.J. Carr, Sensors and Circuits Prentice Hall.
 


Dynamic linearity
The dynamic linearity of the sensor is a measure of its ability to follow rapid changes in the input parameter. Amplitude distortion characteristics, phase distortion characteristics, and response time are important in determining dynamic linearity. Given a system of low hysteresis (always desirable), the amplitude response is represented by:
 

F(X) = aX + bX2 + cX3
+ dX4 + ••• + K (6-2)


In Equation 6-2, the term F(X) is the output signal, while the X terms represent the input parameter and its harmonics, and K is an offset constant (if any). The harmonics become especially important when the error harmonics generated by the sensor action fall into the same frequency bands as the natural harmonics produced by the dynamic action of the input parameter. All continuous waveforms are represented by a Fourier series of a fundamental sinewave and its harmonics. In any nonsinusoidal waveform (including time-varying changes of a physical parameter). Harmonics present will be that can be affected by the action of the sensor.

 




Figure 6-6 Output versus input signal curves showing (a) quadratic error; (b) cubic error. Source: J.J. Carr, Sensors and Circuits Prentice Hall.


The nature of the nonlinearity of the calibration curve (Figure 6-6) tell something about which harmonics are present. In Figure 6-6a, the calibration curve (shown as a dotted line) is asymmetrical, so only odd harmonic terms exist. Assuming a form for the ideal curve of F(x) = mx + K, Equation 6-2 becomes for the symmetrical case:
 

F(X) = aX + bX2 + cX4 + ••• + K (6-3)
 


In the other type of calibration curve (Figure 6-6b), the indicated values are symmetrical about the ideal mx + K curve. In this case, F(X) = -F(-X), and the form of Equation 6-2 is:
 

F(X) = aX + bX3 + cX5 + ••• + K (6-4)


Now we will take a look at some of the tactics and signals processing criteria that can be adapted to biomedical applications to improve the nature of the data collected from the sensor.

 


 

 

 

 
 

 
 



 

 

 

Temperature Sensor - Collecting Temperature Data and Sending it to a PC

This tutorial shows how to use a microcontroller to interface to a Dallas 1620 temperature sensor IC. This value can be used by the microcontroller directly or, as in this tutorial, sent to the PC. It uses the AT89C2051 microcontroller to collect data and send it to the PC.  A MAX232CPE chip is used to convert the signals from and to RS232 levels for sending and receiving through the serial port.  For more details on some aspects of the hardware, refer to the Data Collection tutorial.

The Temperature Sensor

To get a temperature reading we use the Dallas DS1620 integrated circuit. It is an 8 pin chip that has a built in system that measures the temperature and converts the reading into a 9 bit binary value. It has an accuracy of 0.5 degrees C and a range of -55 to 125 C.  The temperature reading is updated about once per second. A digital interface is included in the chip that allows us to connect a microcontroller to the chip and send it commands and receive the temperature data back from the chip.

The temperature is received in the microcontroller as 2 bytes. The second byte only contains a sign bit to signify whether the temperature is above or below 0 degrees Celsius. For this project we are ignoring the sign bit and just using the first byte. We will assume the temperature is above 0 degrees C (32 F). The value in the first byte is the number of 0.5 degree increments. For example, if we get a 1 then the temperature is 0.5 degrees C. If we get a 10 then the temperature is 5 degrees C. The range of possible values is 0 to 250 which is 0 to 125 degrees C. (The DS1620 can also measure down to -55 degrees C).

For this project we are only using the serial interface pins, 1, 2, and 3. The pins 5, 6, and 7 have other functions that are used in thermostats. They change from 0 to 1 when a certain temperature is reached (for example, to turn a heater on and off). For more details about this and the details of the DS1620, click here to get the data sheet.

Refer to the diagram below to build the circuit. The Data Collection Tutorial has more detailed instructions on using the MAX232 chip.

The Software

The basic process of compiling an assembly language program and loading it into the microcontroller was covered in the first microcontroller project. The 2051 assembly language program for this project is temp.asm.  It is included on the software CD that comes with the kit. You will need a device programmer such as the PG302 to download the program into the 2051.

The temp.asm program demonstrates a serial interface with another chip. This is a fairly common situation. The serial interface can be created with only 2 or 3 pins. There is usually a clock line and a data line. In this case there is also a control line called Reset that acts as a control signal, signaling the begin and end of each communication sequence. The clock is generated by the microcontroller, giving the microcontroller complete control over the bit by bit transmission. In this case the microcontroller is responsible for initiating each exchange of data over the serial link. Another possible configuration (for example, 2 microcontrollers linked together) could allow the device on either end to initiate an exchange.

Make sure the power is off to the circuit you have built.  Connect the circuit to the PC's serial port, Comm1. Connect the power to the breadboard.  The circuit should send a continuous stream of values to the PC.  To see the values on the PC, try this sample program.  After downloading, double click it to extract the files and then run setup.exe to install it. The sample program receives the original value and displays it on the screen. It also converts the value to Celsius and Fahrenheit and displays those.  The source code for the sample program (written in VB 5.0) is on the CD included with the kit.

The parts for this project are included in the Sensor Kit. The Sensor Kit also includes the parts needed to do the temperature sensor project and the data collection project. The kit includes:

1 - AT89C2051-24PC Microcontroller (unprogrammed)
1 - 11.0592 MHz Crystal
2 - 33pF Capacitors
1 - 150pF Capacitor
1 - 10 uF Capacitor
1 - 220 uF Capacitor
1 - 8.2k Resistor
5 - 240 Ohm Resistors
5 - 510 Ohm Resistors
5 - 1k Resistors
5 - 2.2k Resistors
5 - 5.1k Resistors
5 - 10k Resistors
5 - 15k Resistors
1 - MAX232
1 - ADC0804 (Analog to Digital Converter IC)
5 - 1 uF capacitors
1 - DB9 connector
1 - CDS Photocell Light Sensor
1 - DS1620 Temperature Sensor
Jumper Wires
1 - CD with source code (click here to see full contents of CD)

To see the tutorial for the Light Sensor, click here.
To see the tutorial for the LCD Module, click here.

Alarm Systems

      All blood refrigerator temperature alarm systems consist of some type of temperature
sensor, signal-processing circuitry, and usually have a display device, typically a digital
temperature readout. The most common type of temperature sensor in use today on alarm
systems for refrigerators is the Resistance Temperature Detector, or R.T.D. Frequently, the
sensor is encased in a much larger stainless steel immersible probe. All temperature sensors
have a characteristic response time to changes in temperature. This response time is primarily a
function of the mass of the sensor and sensor material. In order to compare one sensor to
another, the response times MUST be similar or the temperature must be kept stable long
enough for both sensors to equilibrate. The larger the sensor probe, the longer the response
time, in general.

Rule #1:  Only use sensors (or thermometers) with similar response times to
 verify temperature alarms
.

      The relative response times of two sensors, (or a sensor and thermometer), can be checked
by placing the sensors in a container of liquid at a stable temperature and letting them equilibrate
for 10 minutes. Then place both of the sensors in a cup of ice water and measure the time it
takes for each to reach 0 degrees C. (If the sensor is connected to a display, the time will also
include the response time of the display circuit).
      Alarm circuitry has changed over the years from fairly straightforward analog to
microprocessor-based alarms. Most alarm circuits still transmit the sensor signal to the alarm
without much delay, however some microprocessor-based alarms introduce a delay between the
time the sensor senses the alarm condition and the alarm activation.
      On alarm systems with display devices, many manufacturers have intentionally slowed the
rate at which the temperature display updates the temperature information. Slowing the sample
rate provides a stable display free of insignificant fluctuations that can generate unnecessary
warranty service.
      The thermal response time of the sensor, added to the display response, equals the total
response time of the alarm system. It is the total thermal response time that makes alarm
verification so difficult.
      Most blood banks use a method of verifying the alarm set points that involves cooling the
sensor with an ice bath and comparing the alarm display to a mercury thermometer. The sensor
is then placed in a water bath that is slightly above the high set point and the alarm activation
temperature is checked against the mercury thermometer. Different response times of sensors
and slow responding displays, cause problems when trying to verify  alarm set points, allowing
staff to believe that the alarms are functioning correctly, when they may not be.

Rule #2:  Use a heating /cooling device that changes the alarm sensor
temperature slowly enough to cause the digital display to change by
one tenth of a degree Celsius each time the display updates.
In other words, the temperature display should increase or decrease
by
0.1 C, i.e. 4.0, 3.9, 3.8, 3.7 etc, not 4.0, 4.7, 4.5
.

      It is extremely difficult, if not impossible to accurately control the rate of temperature
change using a water bath. Lack of adequate temperature control is the most common problem
associated with alarm Q.C. Using a reference thermometer with a different response time than
that of the alarm system is the second most common problem.

Rule #3:  Making adjustments to alarm set points or display calibration based on Q.C.      
   results from a test using a thermometer with a different response time than that of      
   the alarm system, or with a change in temperature too fast for the display, will result   
   in the system being calibrated incorrectly and it
WILL NOT display correctly and / or    
   alarm at the desired temperature.

 

Humidity and Moisture Sensors
Relative Humidity/Temperature and Relative Humidity sensors are configured with integrated circuitry to provide on-chip signal conditioning. These sensors contain a capacitive sensing die set in thermoset polymers that interacts with platinum electrodes. The laser trimmed sensors have an interchangeability of + 5%RH, with stable, low drift performance.

Best Used For:
Absorption based humidity sensors provide both temperature and %RH (Relative Humidity) outputs. On-chip signal processing ensures linear voltage output versus %RH. Sensor laser trimming offers + 5%RH accuracy, and achieves 2%RH accuracy with calibration. Packages are chemically resistant and operate in ranges of -40 °C to 85 °C (-40 °F to 185 °F) to accommodate harsh environments.
 
Typical Applications:
bulletRefrigeration
bulletDrying
bulletMeteorology
bulletBattery-powered systems
bulletOEM assemblies

Temperature Sensor

The LM35 series are precision integrated-circuit temperature sensors, whose output voltage is linearly proportional to the Celsius (Centigrade) temperature. The LM35 thus has an advantage over linear temperature sensors calibrated in ° Kelvin, as the user is not required to subtract a large constant voltage from its output to obtain convenient Centigrade scaling. The LM35 does not require any external calibration or trimming to provide typical accuracies of ±¼°C at room temperature and ±¾°C over a full -55 to +150°C temperature range. Low cost is assured by trimming and calibration at the wafer level. The LM35's low output impedance, linear output, and precise inherent calibration make interfacing to readout or control circuitry especially easy. It can be used with single power supplies, or with plus and minus supplies. As it draws only 60 µA from its supply, it has very low self-heating, less than 0.1°C in still air. The LM35 is rated to operate over a -55° to +150°C temperature range, while the LM35C is rated for a -40° to +110°C range (-10° with improved accuracy). The LM35 series is available packaged in hermetic TO-46 transistor packages, while the LM35C, LM35CA, and LM35D are also available in the plastic TO-92 transistor package. The LM35D is also available in an 8-lead surface mount small outline package and a plastic TO-220 package.

Features

bulletCalibrated directly in ° Celsius (Centigrade)
bulletLinear + 10.0 mV/°C scale factor
bullet0.5°C accuracy guaranteeable (at +25°C)
bulletRated for full -55° to +150°C range
bulletSuitable for remote applications
bulletLow cost due to wafer-level trimming
bulletOperates from 4 to 30 volts
bulletLess than 60 µA current drain
bulletLow self-heating, 0.08°C in still air
bulletNonlinearity only ±¼°C typical
bulletLow impedance output, 0.1 Ohm for 1 mA load