Sensing & Perception
Sensors and Transducers
How a physical thing, whether a temperature, a force or an angle, becomes a number a robot can use, and what the words sensor and transducer actually mean.
beginner · 12 min read
Lesson content
A robot cannot feel heat. It cannot feel a push. All it can read is numbers.
So something has to turn the real world into numbers. A temperature has to become a number. A force has to become a number. An angle has to become a number.
That chain, running from a physical thing to a number sitting in memory, is what this lesson is about. Every link in it has a name, and knowing the names makes the rest of this path much easier.
Definition
Measurand
The thing you actually want to know: the temperature, the angle, the weight.
Formal definition
The particular quantity subject to measurement.
Definition
Sensor
The part that reacts to the world. Something about it physically changes when the measurand changes.
Formal definition
The sensing element itself, meaning the part whose own physical property changes in response to the measurand.
Definition
Transducer
The sensor plus the circuit around it, so that the change comes out as an electrical signal you can actually read.
Formal definition
The sensing element together with any associated circuitry required to produce an output in a different energy domain from the input.
So are a sensor and a transducer the same thing or not?
Take a thermistor. Heat it and its resistance goes up. That makes it a sensor, because something about it changed.
But a resistance is not a signal. Nothing can read it directly. Wire the thermistor into a small bridge circuit and now the resistance change comes out as a voltage change. That whole assembly is a transducer, because it moved the information out of the heat world and into the electrical one.
A solar cell is both at once: shine light on it and a voltage appears, no circuit needed.
Short version: every transducer contains a sensor, but not every sensor is a transducer. In everyday robotics talk people say "sensor" for both, and that is fine right up until something breaks and you need to know which part to blame.
Now step back. Every sensor you will ever use, from a robot's joint encoder to a gripper's force pad to a room thermometer, does the same four jobs in the same order.
The four stages of any measurement
1 · Sense
Something touches the world and changes. A strain gauge stretches and its resistance shifts. A thermocouple gets hot and produces a tiny voltage. This is the only stage that touches reality.
2 · Condition
The raw change is usually far too small or the wrong shape to use. This stage cleans it up: a bridge turns a resistance change into a voltage, an amplifier turns microvolts into volts, a filter removes noise.
3 · Process
Now the signal becomes a number. An analog-to-digital converter samples the voltage; software applies a calibration so the number means newtons or degrees, not counts.
4 · Present
The number goes where it is needed: onto a screen, into a log file, or out onto a ROS 2 topic for the rest of the robot to read.
Example
One gripper force reading, all four stages
A robot gripper has a strain gauge glued to its finger. Squeeze the finger and the gauge's resistance changes by roughly 0.1 %, which is far too small to read directly.
Sense: the gauge stretches with the finger.
Condition: a Wheatstone bridge turns that tiny resistance change into a few millivolts, and an amplifier lifts it to a few volts.
Process: a 16-bit converter turns the volts into a number, and firmware multiplies by a calibration factor to get newtons.
Present: "4.2 N" appears on /gripper/force.
Here is why this matters: when that number looks wrong, any of the four stages could be the culprit. A loose gauge, a drifting amplifier, a wrong calibration constant and a bad wire all look identical from the outside.
Sensors get sorted into a few families. You will see these words on every datasheet, so they are worth ten seconds each.
| Question | One answer | The other answer |
|---|---|---|
| Where does the output energy come from? | Passive: the measurand itself provides it. A thermocouple makes its own voltage from heat. No power supply needed, but the signal is tiny. | Active: an external supply provides it and the measurand changes it. A strain gauge bridge needs an excitation voltage. Bigger, cleaner signal, but it needs power. |
| What does the output look like? | Analog: a smoothly varying voltage or resistance. A potentiometer, a thermistor. | Digital: a number, already converted. An optical encoder, an IMU on an I²C bus. |
| Does it have to touch? | Contact: it must physically touch what it measures. A bump switch, a strain gauge, a thermocouple. | Non-contact: it measures from a distance. Ultrasonic, infrared, LiDAR, camera. |
Where does the output energy come from?
- One answer
- Passive: the measurand itself provides it. A thermocouple makes its own voltage from heat. No power supply needed, but the signal is tiny.
- The other answer
- Active: an external supply provides it and the measurand changes it. A strain gauge bridge needs an excitation voltage. Bigger, cleaner signal, but it needs power.
What does the output look like?
- One answer
- Analog: a smoothly varying voltage or resistance. A potentiometer, a thermistor.
- The other answer
- Digital: a number, already converted. An optical encoder, an IMU on an I²C bus.
Does it have to touch?
- One answer
- Contact: it must physically touch what it measures. A bump switch, a strain gauge, a thermocouple.
- The other answer
- Non-contact: it measures from a distance. Ultrasonic, infrared, LiDAR, camera.
Why does almost every robot sensor need calibrating?
Because almost none of them measure the thing you asked for.
You want force; the gauge gives you a resistance. You want distance; the sensor gives you a flight time. You want an angle; the encoder gives you a count of pulses. In every case a number stands in for the real quantity, and something has to convert it.
That conversion is calibration. It is not an optional polish step at the end. It is the part that makes the reading mean anything at all.
Blaming the sensor whenever a reading looks wrong.
Four stages can fail. A drifting amplifier, a mis-scaled converter and a stale calibration constant all look exactly like a bad sensor from the outside. Check the whole chain, not just the tip.
Treating a passive sensor's output as ready to use.
A thermocouple gives you microvolts. A strain gauge gives you a fraction of a percent of resistance change. Without conditioning, both are indistinguishable from noise.
Assuming a digital output means an accurate one.
Digital only means somebody already did the converting. The analog chain in front of that converter still sets how good the number is.
Key takeaway
- Sensor = the part that changes. Transducer = that part plus the circuit that turns the change into an electrical signal.
- Every measurement goes through four stages: sense, condition, process, present.
- Passive sensors are powered by the thing they measure; active ones need an external supply.
- Almost all robot sensing measures something else and then converts, which is why calibration is never optional.
- When a number looks wrong, suspect the whole chain, not just the sensor.
Finished this lesson?
Guest progress is saved on this device.