Overview
You cannot control what you cannot measure. This chapter follows a signal from the physical world through a sensor and a controller, and then back out to an actuator, and it explains why feedback is the single most powerful idea in engineering systems.
By the end of this chapter you can
- Describe the measurement chain from sensor to recorded value.
- Distinguish accuracy from precision, and resolution from uncertainty.
- Explain how proportional, integral, and derivative actions each affect a feedback loop.
The measurement chain
A measurement begins with a sensor that converts a physical quantity into an electrical one: a thermocouple produces a small voltage from a temperature difference, a strain gauge changes resistance as it stretches, an encoder emits pulses as a shaft turns. Signal conditioning then amplifies, filters, and linearizes that output before an analog-to-digital converter turns it into numbers.
Every link adds error. Accuracy describes how close the reading is to the true value; precision describes how repeatable it is. A scale can be precise and wrong, returning 50.02 kilograms every time for a 52-kilogram load. Calibration against a known reference is what connects the reading to reality, and it must be repeated because sensors drift.
Choosing and placing a sensor
Sensor selection is a requirements problem. Range, sensitivity, bandwidth, environmental tolerance, cost, and the physical intrusion of the instrument itself all matter. A flow meter inserted into a pipe changes the flow it is measuring; a thermowell changes the thermal response it is trying to observe.
Placement matters as much as selection. A temperature sensor on the outside of a tank measures the wall, not the contents. Averaging several sensors reduces the effect of local variation, and the sample rate must be fast enough for the dynamics being controlled, or the loop will act on stale information.
Open and closed loop
An open-loop system acts without checking the result: a timer that runs a pump for sixty seconds and assumes the tank filled. A closed-loop system measures the output, compares it with a setpoint, and acts on the difference. That difference is the error, and the controller's whole job is to drive it to zero.
Feedback buys robustness. A closed loop corrects for disturbances the designer never anticipated, such as a clogged filter or a colder day, and it reduces sensitivity to variation in the components themselves. It also introduces risk: a badly tuned loop can oscillate, and a sensor that fails can drive the system to a dangerous extreme.
Proportional, integral, derivative
Proportional action pushes in proportion to the error. It reacts immediately, but a purely proportional controller settles with a permanent offset, because it needs a nonzero error to produce any output at all. Integral action accumulates error over time and adds output until the offset disappears, at the cost of slower response and a tendency to overshoot.
Derivative action responds to the rate of change of error and acts as a brake as the system approaches its target. Combined as PID, the three terms handle most industrial loops, and tuning is the art of choosing their weights for the dynamics at hand. Too much gain produces oscillation, too little produces a sluggish loop that never quite arrives.
Key terms
- Accuracy
- How close a measurement is to the true value.
- Precision
- How repeatable a measurement is when the same input is applied.
- Calibration
- Comparing an instrument against a known reference and correcting its output.
- Setpoint
- The target value a control loop is asked to maintain.
- Steady-state error
- The persistent difference between setpoint and output once a loop has settled.
- Overshoot
- The amount by which a response exceeds its target before settling.