Overview
Curated: · Written: · Reviewed:
Sensors & Actuators
In one line
A sensor turns a physical quantity into a trusted number, and an actuator turns a command into controlled physical action. Reach for this framing whenever a design must answer what the machine actually sees and does, and how you would know if either lied.
Key definitions
- Resolution: the smallest representable change, set by the converter. It is not accuracy.
- Accuracy vs precision: accuracy is closeness to truth; precision is repeatability.
- Offset error: a constant shift at every point. Span (gain) error: a slope error that grows with the measured value.
- Aliasing: an out-of-band tone that folds into the band of interest after sampling.
- Plausibility check: a range, rate-of-change or variance test that tells a real value from a dead or lying channel.
Formulas and complexity
Fixed-I2C limits: 1000 ns rise time in standard mode, 300 ns in fast mode.
How it works
The chain is measurand, transducer, conditioning, anti-alias filter, ADC, calibration, plausibility checks, control decision, driver, power stage, mechanism, and back to the measurand through feedback. Each stage adds error or delay, and the design is judged on the sum. Calibration maps codes to physical units. Plausibility checks sit in the measurement path, not after it, because the dangerous faults produce plausible numbers.
When to use and when not to
| Choice | Use when | Avoid when |
|---|---|---|
| Open-loop actuation | Command maps reliably to outcome and the load is stable | Disturbances or overshoot are costly |
| Closed-loop actuation | Disturbances exist and you must measure the real output | The sensor cannot be trusted or feedback latency threatens stability |
| Incremental encoder | Cheap, relative motion, and a homing step exists | The machine must know position at power-up |
| Absolute encoder | The machine needs true position immediately | Cost and complexity exceed the requirement |
| I2C | Few devices on a short bus | Fast mode with long wiring or many devices (check rise time) |
| SPI | High rate, point-to-point, pin budget allows | Many devices and few spare chip selects |
| UART | Simple point-to-point link | You need addressing or high-rate clock agreement |
Traps interviewers probe
- Treating resolution as accuracy. A 12-bit ADC on 3.3 V gives an 806 microvolt LSB, but a 0.5% sensor term dominates the budget. Build the error budget table, name the dominant term, and say that more bits do not help until that term moves.
- Fixing aliasing in software. Digital filtering cannot remove a tone that has already folded into the band. Put an analog anti-alias filter ahead of the ADC and sample fast enough for the signal bandwidth.
- Trusting a range check. An open thermocouple reads ambient, an unexcited pressure transducer reads mid-scale, and a stuck ADC repeats its last value, and all three pass a range check. Use band placement so opens and shorts fall outside the sensing band, rate-of-change limits, variance checks, and an independent cross-check where the consequence justifies it.
- Assuming de-energised is safe. The safe state comes from hazard analysis. Brakes and cooling may need energy to be safe, and a shorted driver can leave a heater permanently on or off.
- Pairing the newest sample from each sensor. Two newest readings can describe two different instants. Stamp at capture, resample to a common time base, and carry the timestamp uncertainty with the value. At 2 m/s, 10 ms of unaccounted latency is 20 mm of systematic position error that no filter removes.
Interview tips
Opening. State the operating requirement in physical units and conditions (range, accuracy, update rate, environment, failure consequence) before naming any part. Then eliminate candidates against it, and name one rejected alternative with its reason.
Expect these follow-ups.
- What is your accuracy budget, and which term dominates?
- Can you fix aliasing in software? (No: the folded frequency is already in band.)
- What happens if this wire breaks, and how do you find out?
- Why did you sample at that rate?
- What does the machine do before it homes?
- Why is the bus flaky at 400 kHz? (Check t_r = 0.8473 R_p C_b against the 300 ns limit.)
- Your repeatability is excellent but every unit reads 3 °C high. What is that, and how do you fix it? (Offset error; calibrate it out at a traceable reference, then verify at independent points.)
30-second outline.
- Requirement in physical units, with conditions and the cost of a wrong reading.
- Sensor choice against that requirement, with one rejected alternative and why.
- Signal chain: conditioning, anti-alias filter, ADC, calibration.
- The fault a range check misses, and the structural defence against it.
- The safe state, and what the control layer does when the channel is declared bad.
Feedback on this overview
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.