Sensors, Transmitters and Actuators for Control
A controller only ever sees its sensor and only ever moves its actuator. If the thermocouple sits in a thick steel pocket, the loop controls the pocket, half a minute behind the process. If the valve sticks or the heater is undersized, no tuning helps. Much of practical control engineering is choosing, placing and wiring these two ends of the loop. This lesson collects what a control engineer needs to know about them; how each sensor works and how to measure with it is in Measurements, which this lesson links to rather than repeats.
What the loop needs from a sensor
| Property | Why it matters to the loop |
|---|---|
| dynamics (time constant, delay) | adds phase lag inside the loop; often the slowest element after the process itself |
| resolution and quantisation | sets the smallest correctable error; a high-gain loop can limit-cycle by one count |
| noise | passes through the controller, especially the D term, to the actuator |
| accuracy (offset, gain error, drift) | the loop makes the measurement equal to the setpoint, so a sensor offset becomes a process error that feedback cannot see |
| range and failure behaviour | a broken sensor must not look like a valid reading |
Common sensors in control loops, with where to read more:
| Quantity | Sensors | Typical dynamics | See |
|---|---|---|---|
| temperature | thermocouple, RTD (Pt100), NTC thermistor, digital IC | seconds to minutes (mass of the probe and its pocket) | Temperature Sensors |
| position, angle | incremental or absolute encoder, resolver, potentiometer, LVDT | microseconds; resolution-limited | Position, Light and Hall Sensors |
| speed | encoder (count per period or period per count), tachogenerator | set by the counting window | Observers |
| current | shunt with amplifier, Hall sensor | microseconds | Current Measurement |
| pressure, force, level, flow | strain-gauge bridges, differential pressure, ultrasonic level, magnetic or Coriolis flowmeters | milliseconds to seconds | Strain and Pressure |
Transmitters and the 4–20 mA loop
In process plants a sensor usually feeds a transmitter that sends the value as a current from to over a two-wire loop. A current is not changed by the wire resistance, and the live zero ( at the bottom of the range) lets the receiver tell "zero" from "broken wire" (). The value is scaled linearly,
The NAMUR recommendation NE 43 (issue of February 2003, still the current one in 2026) reserves the band just outside the range for diagnostics: to carries measurement information (slightly under- and over-range readings of a working instrument), and or signals a device failure. Transmitters let you choose the failure level (fail-low or fail-high, e.g. or ): check the device manual. Digital fieldbuses (PROFIBUS PA, Foundation Fieldbus, IO-Link, HART on top of 4–20 mA) carry status bits as well as the value; see Interlocks, Safety PLCs, SCADA and Industrial Networks.
Actuators
| Actuator | Command | Control-relevant features |
|---|---|---|
| DC motor with H-bridge | PWM duty cycle, voltage | fast; current must be limited; dead zone from friction (Motor Control) |
| heater with MOSFET or solid-state relay | PWM, burst firing | one-sided (cannot cool), saturates at full power; slow process |
| solenoid valve, contactor | on/off | relay behaviour; limit cycles (Nonlinearities) |
| control valve with positioner | 4–20 mA | nonlinear flow characteristic, stiction, a few seconds of stroke time |
| servo, stepper | position command | its own internal loop; steppers lose steps if overloaded |
| fan, pump with drive | speed reference | quadratic or cubic load; minimum speed |
Size the actuator for the disturbances, not only the setpoint: the heater must cover the worst-case heat loss plus enough reserve to recover in a reasonable time. A loop that spends its time at 0 % or 100 % is a nonlinear, open-loop system.
How a sensor lag costs phase margin
A sensor with time constant adds a factor to the loop. At the crossover frequency it subtracts from the phase margin. When is small, that is about radians.
Given: the heater block (K/W) with the PI controller of the introduction (, ), measured by a probe with time constant of (bare thermistor), (sheathed probe) or (probe in a thick pocket).
Find: the phase margin and the step overshoot for each.
Solve: without the sensor the loop crosses over at (where ). A sensor costs there; a sensor about if the crossover stayed put. It moves a little, so the program computes it exactly.
Check:
import numpy as np
import control as ct
G = ct.tf([4], [300, 1])
C = ct.tf([2, 0.02], [1, 0]) # PI: Kp + Ki/s
t = np.linspace(0, 2000, 20001)
for tau_s in (0.0, 2.0, 20.0, 60.0):
H = ct.tf([1], [tau_s, 1]) # sensor
L = C * G * H
gm, pm, wpc, wgc = ct.margin(L)
T = ct.feedback(C * G, H) # y is the true temperature
info = ct.step_info(T, T=t)
print(f"sensor tau = {tau_s:4.0f} s: crossover {wgc:.4f} rad/s, phase margin {pm:5.1f} deg, "
f"overshoot {info['Overshoot']:5.1f} %")sensor tau = 0 s: crossover 0.0281 rad/s, phase margin 77.2 deg, overshoot 9.8 %
sensor tau = 2 s: crossover 0.0281 rad/s, phase margin 73.9 deg, overshoot 10.4 %
sensor tau = 20 s: crossover 0.0253 rad/s, phase margin 49.1 deg, overshoot 29.3 %
sensor tau = 60 s: crossover 0.0193 rad/s, phase margin 23.2 deg, overshoot 94.8 %
The process did not change, only the probe; yet the probe triples the overshoot of the true temperature and the probe brings the loop close to oscillation, while the measured temperature looks calmer than reality because the probe filters it. (Even with a perfect sensor the PI loop overshoots by despite a margin: that overshoot comes from the controller's zero, not from a lack of margin.) Put sensors where they respond quickly to the process, and model their lag when they cannot.
Signal conditioning is part of the loop
An RC filter in front of the ADC removes noise and prevents aliasing, but it is a first-order lag like a slow probe. A , filter has : harmless for a heater, fatal for a current loop that crosses over at ( of lag).
At the filtered signal has reached of a step (); it needs to settle. Choose the filter corner a decade or more above the loop's crossover, and the sample rate well above the corner (Sampled-Data Loops).
Guided lab: characterise a temperature probe
Hand calculation. For a first-order probe the reading after a step in true temperature reaches 63.2 % at . A bare NTC bead in still air might show of tens of seconds; in stirred water a few seconds.
Simulation. Change tau_s in the program to your measured value and read the phase margin your heater loop will have.
What you would measure. Move the probe from a cup of room-temperature water to a cup of warm water (about , from the tap or a kettle mixed with cold water, never boiling) and log its reading every with a microcontroller. Fit ; expect within between repeats, and a much larger if you repeat the test in air or inside a metal pocket. Also note the 4–20 mA or ADC resolution: one count of a 12-bit ADC across is .
Hazards and safe setup. Warm water only (no boiling water, no open flames); keep water away from the electronics and the USB-powered board; low voltage only.
Pitfalls
- Controlling the sensor instead of the process: a slow or badly placed sensor hides overshoot.
- A sensor offset of is a process error of that the loop cannot see; calibrate (Calibration and Traceability).
- An undersized actuator: the loop saturates on every disturbance and integral windup follows.
- Treating (broken wire) as the bottom of the range: use the live zero to detect faults and go to a safe state.
Practice
- A 4–20 mA pressure transmitter spans to . What pressure does mean, and what should the controller do at ?
- A loop crosses over at . How much phase does a sensor with cost?
Answer
- . is below the failure threshold: treat the measurement as invalid (alarm, hold or move the actuator to its safe position), never as .
- .
Test yourself
Why do process transmitters use 4 mA, not 0 mA, for the bottom of the range?
- it saves power
- a live zero lets the receiver detect a broken loop (0 mA) and powers two-wire transmitters
- it is more accurate
- 4 mA is the minimum the ADC can read
A sensor with time constant in a loop with crossover reduces the phase margin by about
- nothing
A temperature sensor reads 2 K low. With a perfect integral controller, the process ends
- at the setpoint
- 2 K above the setpoint
- 2 K below the setpoint
- oscillating
A 4–20 mA flow transmitter spans 0–50 L/min. The reading is 8 mA. The flow is