Notes on sensors: presence, position, distance, and temperature

Notes on sensors: presence, position, distance, and temperature

Technical tutorial · GUEMISA

45 pagesVersion 1.5, June 2009Internal and external sensorsTemperature and Pt100Digital and analog outputs
Quick response45-page notes (version 1.5, June 2009, Creative Commons license) that classify sensors into internal (presence, position, speed, force, acceleration, orientation) and external (distance and positioning), and continue with temperature sensors, characteristics, and output types. They conclude with a measurement example using a Pt100: 100 Ω at 0 ºC and 138.5 Ω at 100 ºC.

Presence sensors

A sensor converts a physical variable to be measured into an electrical signal, modulated in voltage, current, or frequency. It is usually coupled to a signal conditioning circuit that amplifies, filters, matches impedances, and modulates or demodulates the signal.

GuyPrincipleDocument data
Mechanical end of lifeMechanical switching; detects presence by contactEconomical, but with maintenance and wear and tear.
Reed relaySwitch operated by the proximity of a magnetic field; two ferromagnetic sheets in a glass bulbNormally open: ON (low impedance) to external magnetic flux
Hall effectA current in a semiconductor bar with a transverse magnetic field generates a proportional transverse voltageThat voltage is called Hall voltage
MagnetoresistiveSome materials increase their resistance under an external magnetic field.It is used for small angular and linear displacements and for current measurement.
InductiveMagnetic field of 100 kHz to 1 MHz that induces eddy currents in metallic objectsApproximate distance: the diameter of the sensor coil; on/off output
CapacitiveIt measures the change in capacity that an object causes in its environment.Detects metallic and non-metallic objects at a distance of approximately half the sensor's diameter
OptoelectronicPhotocell that detects light from a source; polarized light to avoid interferenceThree types: photoelectric barrier, mirror reflection, and object reflection

Position, speed, force, and acceleration sensors

Potentiometers were widely used because of their simplicity and low cost, but they have been relegated due to their reduced lifespan caused by wear, electrical noise, and limited operating speed.

SensorMagnitudePrinciple according to the document
Incremental encoderAngular displacementDisc with two concentric tracks offset by half a mark; determines the direction of rotation; zero crossing signal at each revolution
Absolute encoderAngular displacementBinary code based on position using n concentric tracks; Gray code is used, with a single bit difference between consecutive positions
SolveAngular displacementPrimary moving coil and two fixed coils offset by 90º; infinite resolution, of an analog nature
LVDTLinear displacementFerromagnetic core between a primary winding and two secondary windings; voltages proportional to displacement; frictionless
Optical ruleLinear displacementIt works like an optical encoder, with a ruler instead of a disk.
Magnetic rule (Inductosyn)Linear displacementScreen printing on a rectangular wave fed with a sinusoidal signal; the variations between maximum and minimum coupling are counted.
MagnetostrictiveLinear displacementA magnet on a stem; the time between emission and reception of the wave is proportional to the distance to the magnet
Tacodynamo and alternatorSpeedThe main speed sensors; normally position sensors are used
Strain gauge and load cellForceVariation of resistance to deformation (piezoresistivity); they are mounted on a Wheatstone bridge to compensate for temperature errors
AccelerometerLinear accelerationIts biggest drawback is calibration.
Electronic and optical gyroscopeAngular velocityThe electronic system is based on Coriolis acceleration; the optical system uses a coil of optical fiber with two laser beams; important characteristic: drift
Magnetic compass, magnetic valve, and flux gateOrientationThey measure the orientation with respect to the Earth's magnetic North Pole.

Metallic strain gauges have low sensitivity, withstand large deformation, and are more robust. Semiconductor strain gauges are more sensitive and smaller, but more delicate, with a nonlinear response and strong temperature dependence.

Distance and positioning sensors

Technique or sensorDescriptionDocument data
TriangulationAn array of photodetectors measures the deflection of the reflected beamAccuracy decreases with distance
Flight timeTime between transmission and reception of the reflected signalD = v · t / 2
Phase shiftTime lag between the emitted signal and the received echoThe maximum phase shift for a single measurement is 180º; range from a few centimeters to several tens of meters
UltrasoundsTime-of-flight pulse trainRange from 10 cm to 5 m; low accuracy; crosstalk problems
InfraredEmission and detection of reflected infrared lightRange of a few centimeters; color and surface reflection have an influence
LaserPhase at medium distances; flight time at long distances (> 50 m)High accuracy and range; does not detect non-reflective objects
RadarDistance by phase shift and velocity by Doppler effectIt emits a frequency-modulated electromagnetic wave
GPSPositioning by trilateration with a satellite network; minimum of four satellitesDifferential GPS reduces the error to less than one meter
OdometryRelative position based on wheel rotationThe error grows indefinitely with the distance traveled.
Inertial techniquesGyroscopes and accelerometersThe integral used to obtain the position generates a cumulative error over time
Distance measurement by triangulation: similarity of triangles
Distance measurement by triangulation: similarity of triangles

Temperature sensors

GuyFeatures according to the document
Metallic resistance thermometer (RTD)Platinum, nickel, or copper in a ceramic capsule; high operating temperature and good linearity; low sensitivity, higher cost, and slow response; 3- or 4-wire connection
NTC thermistorPowdered metal oxides; high sensitivity and fast response; non-linear and with a narrow temperature range
PTC PositionBarium and strontium titanates; high coefficient within a very narrow range; thermal protection of motors and current limiting
Silicon sensorPositive coefficient higher than that of metallic materials; low cost; narrow margin, worse linearity and slow response
ThermocoupleDifferential measurement with respect to a reference temperature; Seebeck effect
LDR (photoresistor)Conductivity increases with radiation intensity; typical response time of 200 ms

Features and output types

  • Resolution: the smallest variation in the measurement range that the sensor perceives as a change in its output.
  • Precision: measurement tolerance.
  • Repeatability: degree of accuracy when repeating a consecutive measurement under the same conditions.
  • Sensitivity: the rate of change of output in response to changes in input.
  • Accuracy: difference between the actual output and the theoretical value.
  • IPxy protection rating: x, protection against solids from 0 (no protection) to 6 (total protection); y, protection against liquids from 0 to 8 (indefinite immersion).
  • Drift: variation of the expected output due to changes in temperature, humidity, aging, etc.
ExitWhen to useDocument data
Digital relay typeSensor-controlled switchWith mechanical parts
Solid-state digitalTwo, three, or four-wire outputsNo moving parts; virtually unlimited number of operations
Analog under tensionShort transmission distances, less than 10 mThe load impedance must be much higher than the sensor's output impedance.
Analog currentGreater transmission distancesHighly immune to noise; load impedance much lower than output impedance
Analog frequencyWhen noise immunity is critical–

Temperature measurement with Pt100

The Pt100 is a platinum resistor with a resistance of 100 Ω at 0 °C; hence its name. It is a resistive temperature sensor (RTD) with linear variation: at 100 °C, its resistance is 138.5 Ω. Among the most commonly used sensors for near-ambient temperatures, thermocouples are used for differential measurements, while Pt100s are used for absolute measurements. A common thermocouple is the type J (iron-constantan), with a measurement range of -184 °C to 760 °C.

  • Conditioning: power supply, amplification and filtering.
  • Wheatstone bridge powered by a current source; in the example, a reference voltage of 5 V and a current of 8 mA, with a resistance of about 625 Ω.
  • Variable gain instrumentation amplifier, from 41 for R2 = 500 Ω up to more than 400; accepts signals up to 250 mV without exceeding 10 V output.
Wheatstone bridge with current source and Pt100
Wheatstone bridge with current source and Pt100

Frequently Asked Questions

What is the difference between internal and external sensors?

Internal (proprioceptive) sensors allow the robot's state to be known; external (perceptive) sensors detect and recognize the environment.

What is the range of ultrasonic sensors?

Between 10 cm and 5 m, with low accuracy due to the different reflection characteristics of each object and the speed of sound.

When is an analog current output appropriate?

When the transmission distance is greater than the voltage output (less than 10 m), because it is highly immune to noise.

What is a Pt100?

A platinum resistance of 100 Ω at 0 ºC and 138.5 Ω at 100 ºC, which is measured with a Wheatstone bridge circuit.

What does IPxy mean?

x indicates protection against solids, from 0 (no protection) to 6 (total protection); and, against liquids, from 0 to 8 (indefinite immersion).

How many satellites does a GPS need?

A minimum of four. Differential GPS uses ground stations and reduces the error to less than one meter.

Related

Below, the original PDF document is available for viewing or downloading.

Shopping Basket