Skip to content
Tech Interview Prep
Technical interview guide

Sensors & Actuators

How a robot perceives its environment and acts on it: the hardware interface between software and the physical world.

Minutes to read
4
Practice MCQs
25
Interview Q&A
25
Edition
v5
Editorial status
Reviewed

Scope: Current NIST SP 800-82 Rev. 3, Arduino, Texas Instruments, Analog Devices, NXP I2C, OSHA, and IEC functional-safety guidance reviewed 2026-09-04.

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

LSB=Vref2N,3.34096=806 μV\text{LSB} = \frac{V_{ref}}{2^{N}}, \quad \frac{3.3}{4096} = 806\,\mu\text{V} falias=∣fin−k fs∣,11 kHz sampled at 8 kSPS folds to ∣11−8∣=3 kHzf_{alias} = \left|f_{in} - k\,f_s\right|, \quad \text{11 kHz sampled at 8 kSPS folds to } |11 - 8| = 3\text{ kHz} tr=0.8473 Rp Cb,4.7 kΩ×200 pF⇒797 nst_r = 0.8473\, R_p\, C_b, \quad 4.7\,\text{k}\Omega \times 200\,\text{pF} \Rightarrow 797\text{ ns} RSS=∑ei2(independent terms; linear sum for correlated ones)\text{RSS} = \sqrt{\textstyle\sum e_i^{2}}\quad \text{(independent terms; linear sum for correlated ones)} τ=−Δtln⁡α,α=0.98, Δt=10 ms⇒τ≈0.495 s\tau = \frac{-\Delta t}{\ln \alpha}, \quad \alpha = 0.98,\ \Delta t = 10\,\text{ms} \Rightarrow \tau \approx 0.495\text{ s}

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.

Measurand Transducer and conditioning Anti-alias filter and ADC Calibration: offset, gain, temperature Plausibility checks Control decision Driver and power stage Actuator and mechanism

When to use and when not to

ChoiceUse whenAvoid when
Open-loop actuationCommand maps reliably to outcome and the load is stableDisturbances or overshoot are costly
Closed-loop actuationDisturbances exist and you must measure the real outputThe sensor cannot be trusted or feedback latency threatens stability
Incremental encoderCheap, relative motion, and a homing step existsThe machine must know position at power-up
Absolute encoderThe machine needs true position immediatelyCost and complexity exceed the requirement
I2CFew devices on a short busFast mode with long wiring or many devices (check rise time)
SPIHigh rate, point-to-point, pin budget allowsMany devices and few spare chip selects
UARTSimple point-to-point linkYou need addressing or high-rate clock agreement

Traps interviewers probe

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

  1. Requirement in physical units, with conditions and the cost of a wrong reading.
  2. Sensor choice against that requirement, with one rejected alternative and why.
  3. Signal chain: conditioning, anti-alias filter, ADC, calibration.
  4. The fault a range check misses, and the structural defence against it.
  5. 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.