Chapter 4: Sensors in Robotics

The Class 10 robotics club at a school in Jaipur built a small four-wheeled robot for the annual exhibition. It ran on batteries, had two motors, and was programmed to drive straight down the corridor and then turn left at the end. On the first test run it worked beautifully. On the second run, a visitor left a school bag in the corridor. The robot drove straight into it, spun its wheels against the bag, and kept trying to move forward until the batteries ran low.

The robot was not badly built. It simply had no way of knowing that the corridor had changed. It could move, but it could not look. A machine that only follows fixed instructions will keep following them even when the world in front of it is different.

That is the gap this chapter is about. Before a robot can decide anything, it has to gather information about its surroundings and about itself — and that job belongs to sensors.

Diagram

Fig. 4.0-1 – a simple four-wheeled classroom robot in a school corridor, moving towards a school bag lying on the floor; show a dotted arrow marking the robot’s straight path and a question mark above the robot to suggest it has no way of detecting the obstacle

NoteCuriosity Corner

Q1. How does a robot know that something is in front of it before it bumps into it? Q2. What is inside a sensor that turns heat, light or sound into something a computer can use? Q3. How does a robot arm know how far it has already turned? Q4. Some sensors must touch an object and others do not. Which kind is better? Q5. Two different sensors can often do the same job, so how do you pick one?

This chapter answers each of these questions as you go through it.

4.1 Why a Robot Needs to Sense

Think about a ceiling fan with a regulator. You set the regulator to speed 3 and the fan runs at speed 3. It will keep running at that speed whether the room is hot or cold, empty or crowded. The fan does exactly what it was told, and nothing more.

Now think about an air conditioner. You set it to 26 °C. The air conditioner does not simply run at a fixed setting. It keeps measuring how warm the room actually is, compares that with 26 °C, and cools more or cools less depending on the answer. Its behaviour changes because the room changes.

That is the difference between a machine that follows fixed instructions and a machine that responds to the world. A robot belongs to the second kind. It has to keep checking what is happening around it while it works, not just once at the start.

The sense, decide, act loop

The classroom robot in the corridor failed for exactly this reason. It had motors, so it could act. It had a program, so it could decide. What it did not have was any way to find out that a bag had appeared in its path. With that step missing, its decisions were based on a corridor that no longer existed.

A working robot runs the same three steps over and over, many times a second, as shown in Fig. 4.1-1.

Diagram

Fig. 4.1-1 – a closed loop of three labelled blocks arranged in a circle with arrows: “Sense — measure what is happening”, “Decide — compare with the goal”, “Act — move a motor or a joint”; a dotted arrow labelled “the world changes” feeds back from Act into Sense

Break the loop at the first step and the rest of the loop is working on stale information. This is why sensing is not an extra feature added at the end of a robot’s design. It is where every action begins.

Q. What would the corridor robot have done if it could measure the distance to whatever was in front of it?

A. It would have found the distance shrinking as it approached the bag, and its program could then have stopped the motors or steered around the bag.

Two kinds of information

A robot needs two different kinds of information, and it is worth separating them early.

The first is information about the world outside — how far away the wall is, how hot the oven is, whether a gripper is touching a glass or crushing it. The second is information about the robot itself — how far a joint has turned, how fast a wheel is spinning, how much force an arm is pushing with.

Both are equally necessary. A robot arm that can see a cup on the table but has no idea where its own elbow is cannot reach the cup. The devices that supply both kinds of information are the subject of this chapter, and the next section looks at what they are and what they do.

4.2 What a Sensor Is

A small night lamp sold in most electrical shops switches itself on when the room gets dark and switches off at sunrise. Nobody presses a switch. Something inside the lamp is measuring how much light is falling on it and turning that measurement into an electrical signal the lamp’s circuit can act on.

That “something” is a sensor — a device that detects a physical condition such as light, heat, sound, motion, pressure or distance, and converts it into an electrical signal that a circuit or a computer can use.

The word convert is the important one. A robot’s controller is an electronic circuit. It cannot handle heat or pressure or brightness directly; it can only work with electrical signals, and finally with numbers. The world outside, on the other hand, offers nothing but heat, pressure, brightness and movement. A sensor sits between the two and translates one into the other, as shown in Fig. 4.2-1.

Diagram

Fig. 4.2-1 – a left-to-right flow: a box labelled “Physical quantity (light, heat, sound, force, distance)” → an arrow into a box labelled “Sensor” → an arrow labelled “electrical signal” into a box labelled “Controller”; a small arrow from the controller onwards labelled “decision”

NoteDefinition

(A sensor is a device that detects a physical quantity in its surroundings or inside a machine and converts it into an electrical signal that can be measured and used.)

Notice that a sensor by itself decides nothing. A temperature sensor in an air conditioner does not choose to cool the room. It only reports how warm the room is. The choosing happens later, in the controller. Keeping this straight will save you a lot of confusion in the chapters ahead.

Q. Is a switch on a wall a sensor?

A. No. A wall switch changes an electrical circuit because a person pushed it. A sensor responds to a physical condition on its own, without anyone operating it.

Sensors are not unique to robots. Your phone dims its screen in a dark room, a car sounds an alarm when a seat belt is not fastened, and a washing machine stops when the drum lid is opened. Each of these depends on a sensor doing quietly the same job: measure something real, hand over a signal.

4.2.1 Functions of Sensors

Once a sensor is fitted to a robot, it goes on doing several jobs at the same time. Listing them separately makes it easier to see what a designer is buying when he or she picks a sensor.

  1. Detecting a change. The first job is to notice that something in the surroundings, or inside the machine, is not what it was a moment ago — a wall coming closer, a surface getting hotter, a wheel starting to turn.

  2. Measuring how much. Noticing is not enough. A robot that only knows “something is near” cannot judge whether to slow down or stop. Most sensors give a value, not just a yes or a no.

  3. Converting the quantity into an electrical signal. This is the translation step described in the previous section, and it is what makes the measurement usable by a circuit.

  4. Supplying feedback to the controller. Feedback means information about the result of an action, sent back to the part that ordered the action. A wheel sensor tells the controller how fast the wheel is actually turning, so the controller can see whether its last command worked.

  5. Keeping the system safe. Many sensors exist only to stop something bad from happening — a gripper that senses too much force before it cracks a glass, or a robot that halts when a person steps into its working area.

  6. Monitoring the robot’s own condition. Position, speed and force inside the machine are measured continuously so that the robot always knows the state of its own body.

Q. Why does a robot need to measure a wheel’s actual speed when the program already told the wheel how fast to turn?

A. Because the command and the result can differ. A heavy load, a worn motor or a slope can make the wheel turn slower than ordered, and only a measurement will reveal it.

No sensor does these jobs perfectly. Readings drift over time, dust and heat affect them, and most sensors need calibration — checking the sensor against a known correct value and adjusting it — before their numbers can be trusted. A sensor is a reliable helper, not an infallible one.

4.2.2 Inside a Sensor: The Three Main Parts

From outside, a sensor looks like a single small component. Inside, the translation from a physical quantity to a usable signal happens in three stages, shown in Fig. 4.2-2.

Diagram

Fig. 4.2-2 – three boxes in a row inside a dotted outline labelled “Sensor”: “Sensing element” → “Transducer” → “Signal conditioner”; an arrow labelled “heat, light, force, sound” enters the first box from the left and an arrow labelled “clean, usable signal” leaves the last box to the right towards a small box labelled “Controller”

The sensing element

The sensing element is the part that actually meets the physical quantity. It is the only part of the sensor that touches the outside world, and everything after it depends on how well it responds.

The sensing element is chosen to suit the quantity being measured. A temperature sensor may use a thermocouple, a pressure sensor a piezoelectric crystal, and a light sensor a photodiode. Each of these reacts in some measurable way when the quantity it is built for changes.

The transducer

Reacting is not the same as producing a signal. The transducer converts the change picked up by the sensing element into a measurable electrical quantity, usually a voltage or a current. It is also built so that the electrical output rises or falls in step with the strength of the physical quantity — a bigger push gives a bigger voltage.

In many small sensors the sensing element and the transducer are the same piece of material doing both jobs at once. A piezoelectric crystal, for example, feels the pressure and generates the charge itself. The three stages are still a useful way to think, even when you cannot point to three separate parts.

The signal conditioner

The raw signal from a transducer is often too weak, too noisy, or in the wrong form for a controller to read. The signal conditioner cleans it up. It may amplify a small voltage so it can be measured, filter out unwanted electrical noise, or perform analogue-to-digital conversion — turning a smoothly varying voltage into a number, because a controller can only work with numbers.

treating the signal conditioner as an optional extra What goes wrong: Students often assume that if the sensing element works, the sensor works. A weak or noisy signal that has not been conditioned can make a perfectly good sensing element useless, and the readings will jump about for no visible reason. The fix: Treat all three stages as one chain. The sensor is only as good as its weakest stage, so a sensor is judged by the signal that finally leaves it, not by the part that felt the change.

Q2. What is inside a sensor that turns heat, light or sound into something a computer can use?

A. Three stages working in a chain. The sensing element meets the physical quantity and reacts to it; the transducer converts that reaction into an electrical voltage or current whose size matches the strength of the quantity; and the signal conditioner amplifies, filters and, where needed, converts that signal into a number the controller can read.

4.3 Types of Sensors Based on Application

There are hundreds of different sensors on the market, and no useful list can be made by naming them one by one. A better question to ask is what job a sensor has been fitted to do. Grouping sensors by application means grouping them by the job, not by the physics inside them.

Take a delivery robot moving through a warehouse. It has to see the aisle markings, judge how far the shelf is, notice when its gripper has touched a carton, know which way it is facing, and stop if a motor is running hot. Five different jobs, five different groups of sensors — and the robot needs all of them at once, as suggested in Fig. 4.3-1.

Diagram

Fig. 4.3-1 – a simple wheeled robot with an arm and gripper, with labelled callout lines pointing to different positions on the body: camera at the top, a microphone beside it, touch pads on the gripper fingers, a distance sensor on the front panel, a temperature sensor near the motor, a motion sensing board inside the body, and a navigation receiver on the roof

The rest of this section takes the groups one at a time, in this order:

  1. Vision sensors — for anything the robot must look at.

  2. Tactile sensors — for anything it must touch, hold or press.

  3. Temperature sensors — for how hot or cold something is.

  4. Range and proximity detection sensors — for how far away an object is, or whether it is there at all.

  5. Motion sensors — for movement, tilt and rotation of the robot itself.

  6. Navigation sensors — for where the robot is and which way it should go.

  7. Speech recognition sensors — for spoken instructions from a person.

One warning before you start. These groups describe purposes, and a single device can serve more than one purpose. An infrared sensor can measure temperature without touching an object, and a different infrared sensor can measure distance to a wall. The name of the group tells you what the sensor is being used for, not what is inside it.

4.3.1 Vision Sensors

A fruit-packing unit has to separate ripe mangoes from unripe ones before they are boxed. No amount of measuring weight or distance will settle the question; the difference is in the colour and the surface of the fruit. The machine has to look.

A vision sensor is a sensor that captures visual information from the surroundings and processes it so that the robot can act on what is in the picture. A plain camera only records an image. A vision sensor records and then examines it — checking a colour, counting objects, finding an edge — and passes on a result.

Diagram

Fig. 4.3-2 – photo of a compact industrial vision camera mounted on a bracket above a conveyor belt, with its lens pointing down at items passing below

What a vision sensor is made of

Four parts work together in a vision sensor:

  1. An image acquisition device — the camera itself, which captures the image.

  2. Illumination — a lamp, LED or laser that lights the object, so the image does not depend on whatever light happens to be around.

  3. An image processing unit — the processor, memory and algorithms that examine the captured image.

  4. A communication interface — the Ethernet, USB or wireless link that carries the result to the rest of the system.

Common types

Vision sensors differ mainly in what kind of information they pull out of a scene.

2D vision sensors capture a flat image, with height and width but no depth. They commonly use CCD (charge-coupled device) or CMOS (complementary metal oxide semiconductor) cameras, are simple and low in cost, and are used in security, surveillance and monitoring.

3D vision sensors capture depth as well, using methods such as laser triangulation and time of flight. Robot navigation, obstacle avoidance and 3D modelling need this extra dimension.

Colour vision sensors use RGB (red, green and blue) channels to record colour information. Sorting products by colour and checking colour consistency are typical uses — the mango problem above is one of them.

Time-of-flight sensors measure how long a pulse of light takes to travel to an object and return, and work out depth from that time. They are used in gesture recognition, robot navigation and object scanning.

Multispectral and hyperspectral vision sensors go beyond the colours the eye can see. Multispectral sensors capture a few chosen wavelengths, hyperspectral sensors capture a continuous band. They are used to study surface features, landscape patterns and the material an object is made of.

Q. Why does a vision sensor carry its own lamp when the room already has lights?

A. Because room lighting changes through the day. Its own lamp gives the same brightness on every image, so a colour or an edge measured at 9 a.m. means the same thing at 5 p.m.

The honest limitation of vision is light. A vision sensor sees nothing useful in darkness, glare or thick dust, and a shiny surface can throw its readings off completely. This is why robots that must work in the dark rarely depend on vision alone.

A camera on a robot records whoever walks past it, not only the object it was pointed at. Recorded faces are personal information, and people in a school or workplace have a right to know a camera is running. Point the camera only at the task, tell people it is there, and delete images that the job does not need.

4.3.2 Tactile Sensors

Pick up an egg. Your fingers close until they meet resistance, and then they stop. You did not measure anything consciously; your skin reported the pressure and your hand held back. Now imagine a robot gripper closing on that egg with no such report. It would keep closing until the program told it to stop, and the egg would be gone.

A tactile sensor is a sensor that detects and measures information produced by physical contact — force, pressure, texture, or the temperature of the surface being touched. It gives a robot the equivalent of a sense of touch.

Diagram

Fig. 4.3-3 – photo of a thin, flexible film pressure sensing pad connected by a ribbon lead, with a fingertip pressing on its round sensing area

resistive tactile sensor What it is: A thin pad made of a conductive elastomer or a flexible sheet whose electrical resistance depends on how hard it is pressed. How it works: Pressing the pad squeezes its material, the resistance across it changes, and the circuit measures that change as a voltage. A harder press gives a larger change. Used for: Touchscreens, touch pads, robotic grippers handling objects of unknown strength, and wearable devices. Watch out: The pad has to be pressed to report anything, so it wears out with use and tells you nothing about an object hovering just above it.

The common types

Tactile sensors differ in the physical change they measure.

Resistive tactile sensors measure a change in resistance when pressure is applied, as described above.

Capacitive tactile sensors are built from layers of conducting and insulating material. A touch deforms the insulating layer and changes the capacitance between the layers. Phone touchscreens and wearable health monitors use them.

Piezoelectric tactile sensors use materials such as quartz, or specially made polymers, that generate an electrical charge when they are squeezed. They pick up very small changes in pressure, which suits vibration sensing in industry and robotic fingertips that must grip precisely.

Optical tactile sensors send light through a fibre or across a surface and watch how the light changes when something presses on it. They give high-resolution touch sensing and can detect the shape and contour of an object.

Magnetic tactile sensors detect changes in a magnetic field caused by movement or deformation of magnetic material, using Hall effect sensors or magneto-resistive elements. They are used to detect speed, direction of rotation, and whether a rotating part is standing still.

Flexible and stretchable tactile sensors combine the resistive, capacitive or piezoelectric principle with a bendable base, so the sensor can wrap around a curved surface. They are used in wearable health monitors and in the electronic skins being developed for robots.

Q. A gripper closes on a glass tumbler and its tactile sensor reads a steadily rising force. What should the controller do?

A. Stop closing as soon as the force reaches the value needed to hold the tumbler. Any further closing only adds force that the glass must absorb.

A gripper being tested can close on a finger as easily as on an object. Keep hands clear while a gripper is powered, and disconnect the power supply before adjusting or rewiring a tactile pad on the fingers.

4.3.3 Temperature Sensors

A soldering station in a school lab has to hold its tip at a steady temperature. Too cool and the solder will not melt; too hot and the tip is ruined. Something in the station must keep reporting how hot the tip actually is, many times a minute, all through the lesson.

A temperature sensor is a sensor that measures how hot or cold an object or an environment is, and converts that into an electrical signal. Robots use them to watch motors that heat up under load, to protect battery packs, and to handle hot material safely.

Five kinds are commonly used, and they differ in how they turn heat into electricity.

Thermocouple

A thermocouple is made of two different metal wires joined at one end to form a junction. When the junction is at a different temperature from the free ends of the wires, a voltage appears across those free ends, and the voltage depends on the temperature difference. This behaviour is called the Seebeck effect. Fig. 4.3-4 shows the arrangement.

Diagram

Fig. 4.3-4 – two wires of different metals, drawn in two shades, joined at a point on the left labelled “measuring junction (hot end)”; the two free ends on the right go to a box labelled “voltmeter”, with a label “voltage depends on the temperature difference”

Common thermocouples are Type K (Chromel–Alumel), Type J (Iron–Constantan) and Type T (Copper–Constantan). Typical thermocouples cover a very wide span, from about −200 °C to over 1700 °C depending on the type, which is why they are used in furnaces, kilns and exhaust gas measurement.

Resistance temperature detector (RTD)

A resistance temperature detector (RTD) measures temperature from the change in electrical resistance of a metal, typically platinum, as it heats up. The resistance rises almost in a straight line with temperature, which makes the reading easy to trust. PT100 and PT1000 are common examples, named for their resistance of 100 Ω and 1000 Ω at 0 °C. RTDs are chosen for laboratory and industrial measurement where accuracy and stability matter.

Thermistor

A thermistor is made of semiconductor material whose resistance changes sharply with temperature. In an NTC (negative temperature coefficient) thermistor the resistance falls as the temperature rises; in a PTC (positive temperature coefficient) thermistor it rises. Thermistors are very sensitive and inexpensive, which suits digital thermometers, battery management and consumer electronics — but their resistance does not change in a straight line, so the reading needs correcting in software.

Table 4.1 – Thermistor vs RTD

Feature Thermistor RTD
Sensing material Semiconductor (ceramic or polymer based) Metal, typically platinum
Resistance–temperature relation Non-linear, changes sharply Nearly linear over a wide range
Sensitivity to small changes Very high Moderate
Usual choice for Low-cost devices, narrow temperature ranges Precise laboratory and industrial measurement
Cost Low Higher
Infrared (IR) temperature sensor

Every object gives off infrared radiation, and the amount depends on its temperature. An infrared (IR) temperature sensor measures that radiation and works out the temperature without touching the object at all. It responds very fast and can read high temperatures, so it suits moving objects and thermal imaging in medical work.

Semiconductor temperature sensor

A semiconductor temperature sensor is a small integrated circuit in which the voltage or current changes with temperature. It is tiny, cheap, gives an output that varies in a straight line with temperature, and drops straight into a circuit board — but it only covers a modest range, typically about −55 °C to 150 °C, so it is used for electronics and battery monitoring rather than furnaces.

calling a thermostat a temperature sensor What goes wrong: A thermostat and a temperature sensor are often treated as the same thing. A thermostat switches a heater or cooler on and off at a set temperature; it acts on the reading. The fix: The sensor only measures and reports. The thermostat contains a sensor and adds the switching decision on top of it.

4.3.4 Range and Proximity Detection Sensors

Come back to the robot in the school corridor. To avoid the bag it needed the answer to two slightly different questions: is anything in front of me? and how far away is it? The first question needs only a yes or a no. The second needs a number.

Range and proximity detection sensors are the sensors that answer both. A proximity measurement reports whether an object is present within a certain distance; a range measurement reports how far the object actually is. Many devices do both, which is why the syllabus treats them as one family.

Five kinds are widely used in robotics.

Ultrasonic sensor

An ultrasonic sensor sends out a burst of high-frequency sound, too high for people to hear, and listens for the echo that comes back from an object. The longer the echo takes, the further away the object is. Fig. 4.3-5 shows the idea.

Diagram

Fig. 4.3-5 – a small two-eyed ultrasonic sensor on the left facing a wall on the right; an arrow labelled “sound burst sent out” travels from the transmitter eye to the wall, and a second arrow labelled “echo returns” travels from the wall back to the receiver eye; the gap between sensor and wall is marked “distance d”

ultrasonic distance sensor What it is: A sensor with a transmitter that emits an ultrasonic pulse and a receiver that detects the returning echo. How it works: The sensor starts a timer when the pulse leaves and stops it when the echo arrives. Since the speed of sound in air is known, the distance follows from the time. Used for: Obstacle avoidance in mobile robots and distance measurement in industrial automation. Watch out: Soft materials such as cloth or foam absorb sound instead of reflecting it, and a surface at a slant sends the echo away from the receiver, so the object seems to vanish.

The sound travels to the object and back, so it covers the distance twice. That gives

\[d = \dfrac{v \times t}{2}\]

where \(d\) is the distance to the object, \(v\) is the speed of sound in air, and \(t\) is the total time from sending the pulse to receiving the echo.

distance to a wall from an echo time

Given: Echo returns after \(t = 3\) ms \(= 0.003\) s. Speed of sound in air, \(v = 343\) m/s (a typical value at about 20 °C).

Find: The distance \(d\) from the sensor to the wall.

Working:

Total path travelled by the sound \(= v \times t = 343 \times 0.003 = 1.029\) m.

This path is to the wall and back, so the one-way distance is half of it.

\(d = 1.029 \div 2 = 0.5145\) m \(= 51.45\) cm.

The wall is about 51.5 cm from the sensor.

Infrared (IR) sensor

An infrared (IR) sensor used for distance shines infrared light at an object and measures the intensity or the angle of the light reflected back. It is cheap and responds quickly, which makes it common in short-range obstacle detection and in proximity sensing inside consumer electronics. Its weakness is the surface itself: a dark, dull object reflects very little infrared light and can be missed, and strong sunlight can confuse the reading.

Light detection and ranging (LIDAR)

Light detection and ranging (LIDAR) emits a laser beam and measures the time the reflected light takes to return, using phase shift or triangulation methods. It offers very high accuracy and resolution over a long range and a wide field of view, and it is used for 3D mapping, environment scanning and autonomous vehicle navigation. The cost is the catch: LIDAR units are far more expensive than the other sensors here.

Capacitive proximity sensor

A capacitive proximity sensor generates an electric field in front of itself and detects the change in capacitance when any object enters that field. It works on metallic and non-metallic objects alike, is not troubled by dust and dirt, and is used for level sensing in containers and in touch-sensitive interfaces. Its sensing distance is short, and humidity affects it.

Inductive proximity sensor

An inductive proximity sensor generates an electromagnetic field and detects the disturbance caused by a metal object entering it. It detects conductive materials only — a plastic box passes by unnoticed — but it is rugged, reliable and largely unaffected by environmental conditions, so it is used for metal detection and position sensing on production lines.

Q. A robot must detect a glass bottle on a conveyor. Would an infrared sensor be a safe choice?

A. No. Infrared light passes through clear glass, so the bottle may not be detected. An ultrasonic or capacitive sensor is a better fit, since both respond to transparent objects.

Q1. How does a robot know that something is in front of it before it bumps into it?

A. It uses a range or proximity detection sensor. The sensor sends out sound, infrared light or a laser beam, or sets up an electric or electromagnetic field, and watches what comes back or what changes. From the returning echo or reflection, the robot works out that an object is present and how far away it is, and its program can then slow down, stop or steer aside before contact.

4.3.5 Motion Sensors

Hold a phone flat and turn it on its side. The picture on the screen rotates to match. Nothing outside the phone changed — the phone worked out that it had moved. A robot needs the same ability. A two-wheeled robot that cannot tell it is tipping over will keep driving until it falls.

Motion sensors detect and measure movement — how fast something speeds up, how it turns, and which way it is facing. Three of them are used together so often that they are worth learning as a set, as shown in Fig. 4.3-6.

Diagram

Fig. 4.3-6 – a small rectangular robot body drawn in three dimensions, with three straight arrows labelled x, y and z showing directions of linear acceleration, and three curved arrows around those same axes labelled “rotation”, with a compass needle drawn beside the body labelled “direction of the magnetic field”

Accelerometer

An accelerometer measures acceleration — how quickly the speed of the sensor is changing, and in which direction. It responds to two things: dynamic acceleration from movement, shaking or a knock, and static acceleration from gravity, which never stops pulling downwards.

That second point is the useful trick. Because gravity always acts downwards, an accelerometer sitting still can work out which way is down, and therefore how far the robot is tilted. Accelerometers are small and light and measure linear acceleration precisely, but they are easily upset by vibration, and they need calibration before their numbers can be relied on.

Gyroscope

A gyroscope measures the rate of rotation about an axis — how fast the body is turning, in degrees per second. Where an accelerometer answers “which way am I leaning?”, a gyroscope answers “how quickly am I spinning?”. Drones use gyroscopes to hold themselves steady, and camera stabilisers use them to cancel out a shaking hand.

Its honest limitation is drift. Small errors in each reading pile up as the readings are added over time, so a gyroscope’s estimate of the total angle turned slowly wanders away from the truth unless another sensor corrects it.

Magnetometer

A magnetometer measures the strength and direction of the magnetic field around it. Since the Earth has a magnetic field, a magnetometer can work as a compass and give the robot an absolute direction that does not drift. It is usually paired with the other two for this reason. The catch is that the Earth’s field is weak; a motor, a steel table leg or a speaker nearby can pull the reading well off course.

Q. Why fit all three sensors when each one already reports motion?

A. Each covers the others’ weakness. The gyroscope is quick but drifts, the accelerometer is steady but noisy while the robot moves, and the magnetometer gives a fixed reference direction. Combined in one unit, called an inertial measurement unit (IMU), they give a more trustworthy picture than any of them alone.

Open the compass or level app on a phone that has one. Lay the phone flat and note the reading, then bring a steel scale or a pair of scissors close to it and note the reading again. Explain which of the three motion sensors caused the change.

4.3.7 Speech Recognition Sensors

Every sensor so far reports something about the physical world. This last group reports something quite different: an instruction from a person. A hospital assistant robot carrying a tray cannot stop to have buttons pressed, and a worker with both hands occupied cannot type. Speaking is the only channel left.

The sensing part of this arrangement is a microphone — a sensor that detects the pressure waves of sound in the air and converts them into an electrical signal. What happens after that is where the interesting work lies, as Fig. 4.3-8 shows.

Diagram

Fig. 4.3-8 – a left-to-right chain: a person speaking → a microphone symbol labelled “sound converted to an electrical signal” → a box labelled “analogue-to-digital conversion” → a box labelled “recognition software: pattern matched against stored word patterns” → a box labelled “command sent to the robot”

Speech recognition is the process of converting spoken words into text or into a command a machine can act on. It is worth being clear about the division of labour here. The microphone measures sound and nothing more. The recognition is done afterwards by software, which breaks the digitised signal into small pieces, compares the pattern of each piece against patterns it has stored for known sounds, and produces the most likely sequence of words.

The software does not understand the sentence in the way you do. It computes which stored pattern the incoming sound most closely matches, and a robot programmed to respond to “stop” will stop when that match is made.

Q. Why does a voice-controlled robot work well in a quiet lab and badly in a school corridor?

A. The microphone picks up every sound reaching it, not only the speaker’s voice. In a noisy corridor the spoken words arrive mixed with other sounds, so the pattern the software has to match is no longer clean.

Background noise is the main limitation, and there are others. A speaker standing too far from the microphone gives a weak signal, an unfamiliar accent or an unusual pronunciation produces a pattern the software matches poorly, and words that sound alike are easily swapped. This is why safety-critical machines are almost never controlled by voice alone: a misheard command on a moving robot is a hazard, so a physical stop button always remains.

A microphone that is always listening for its command word is also always hearing everything else said in the room. Recorded speech may include private conversations of people who never agreed to be recorded. Keep the microphone off until it is needed, tell people when it is live, and store only the command, not the surrounding conversation.

4.4 Internal and External Sensors

Grouping sensors by application, as the last section did, answers the question “what is this sensor for?”. There is a second way of grouping them that answers a different question: “where is the thing being measured?”

A robot arm reaching for a cup on a table needs both answers. It has to know where the cup is — that is outside the robot. It also has to know how far its own elbow joint has already turned — that is inside the robot. Fig. 4.4-1 shows the two directions of measurement on one machine.

Diagram

Fig. 4.4-1 – a robot arm on a table beside a cup; arrows pointing inwards at the arm’s joints and motor labelled “internal: joint angle, motor speed, gripping force”; arrows pointing outwards from a camera and a distance sensor on the arm labelled “external: where the cup is, how far away it is”

An internal sensor measures a quantity inside the robot itself — the state of its own body, such as the position of a joint, the speed of a wheel or the force in a gripper.

An external sensor measures a quantity in the world outside the robot — the distance to a wall, the temperature of an oven, the colour of a fruit.

NoteDefinition

(Internal sensors measure the robot’s own condition; external sensors measure conditions in the environment around the robot.)

Table 4.2 – Internal sensors vs external sensors

Feature Internal sensors External sensors
What is measured The robot’s own state The surroundings
Fitted at Joints, motors, wheels, links Outer body, gripper, front panel
Typical examples Position, velocity, acceleration and force sensors Contact type and non-contact type sensors
Question answered What is my body doing right now? What is out there?
If it fails The robot loses track of its own movement The robot keeps moving but is blind to changes around it

The same device can appear in either group, depending on the job it has been given. A force sensor in a robot’s wrist that measures how hard the arm is pushing is an internal sensor. The same type of sensor placed under a conveyor to weigh a passing box is an external one. What decides the group is not the component, but what it has been asked to measure.

4.4.1 Internal Sensors

Switch off a robot arm halfway through a job and switch it on again. Unless something inside it has been keeping track, the arm has no idea whether its elbow is straight or bent. Internal sensors exist to prevent exactly this kind of blindness. Four kinds are used.

Position sensors

A position sensor measures how far a part of the robot has moved from a reference point — the angle of a joint, or the distance a sliding link has travelled.

The common device on a rotating joint is a rotary encoder. A disc with evenly spaced slots is fixed to the motor shaft, and a light source shines through it onto a detector on the other side, as in Fig. 4.4-2. Each slot passing by produces one electrical pulse. Counting pulses gives the angle turned.

Diagram

Fig. 4.4-2 – a motor shaft carrying a disc with evenly spaced slots around its rim; an LED on one side of the disc and a light detector on the other; the detector output drawn to the right as a train of square pulses labelled “one pulse per slot”

Another simple position sensor is a potentiometer fixed to the joint. Its electrical resistance changes as the shaft turns, so the voltage across it becomes a direct measure of the angle.

joint angle and speed from encoder pulses

Given: A rotary encoder produces 500 pulses for one full revolution of the joint. The controller counted 125 pulses, and the count took 0.2 s.

Find: (a) the angle the joint turned through, and (b) its speed in revolutions per minute.

Working:

One pulse corresponds to \(360° \div 500 = 0.72°\).

Angle turned \(= 125 \times 0.72° = 90°\).

Fraction of a revolution \(= 125 \div 500 = 0.25\) revolution.

Speed \(= 0.25 \div 0.2 = 1.25\) revolutions per second.

In one minute, \(1.25 \times 60 = 75\) revolutions.

  1. The joint turned through 90°. (b) It was turning at 75 revolutions per minute.

Q. A robot’s encoder counts pulses from zero every time the power is switched on. What problem does that cause?

A. The count tells the robot how far the joint has moved since switch-on, not where the joint actually is. The arm must first be driven to a known starting position, or an absolute encoder used, which reports the true angle straight away.

Velocity sensors

A velocity sensor measures how fast a part is moving — the rotational speed of a motor shaft or the linear speed of a sliding link. A tachometer fitted to the shaft is one way. More often the same encoder does the work, as in the worked example above: the controller counts pulses over a fixed short time, and the count gives the speed.

Speed matters because a robot that only knows position arrives at the right place too fast. Slowing down before a target needs a speed measurement.

Acceleration sensors

An acceleration sensor measures how quickly the speed of a part is changing. The accelerometer described earlier in this chapter is the device used, and inside a robot it reports the shocks, vibrations and sudden starts that the machine’s own movement produces. Sharp acceleration means sharp force on the joints, so this reading is used to keep movement smooth and to protect the mechanism.

Force sensors

A force sensor measures the force or torque acting on a part of the robot. Most are built around a strain gauge — a thin element bonded to a metal part whose electrical resistance changes very slightly when the metal flexes under load. The circuit reads that change and works back to the force.

Force sensors are placed in wrists, joints and gripper fingers. They tell the robot how hard it is pushing against a surface, and they are the reason an arm can press a component into place firmly without crushing it.

Q3. How does a robot arm know how far it has already turned?

A. From a position sensor at the joint. A rotary encoder on the motor shaft produces one pulse for every slot on its disc, and the controller counts those pulses — 125 pulses on a 500-pulse encoder means the joint has turned 90°. A potentiometer at the joint does the same job by changing its resistance as the shaft rotates.

4.4.2 External Sensors: Contact Type

External sensors split into two kinds, and the dividing line is simple: does the sensor have to touch the thing it is measuring?

A contact sensor is an external sensor that must be in physical contact with the object or medium it measures. It interacts with the object directly and detects a change in some physical property at the point of contact.

The simplest example on a mobile robot is a bump switch, shown in Fig. 4.4-3. A spring-loaded bar across the front closes a switch when the robot runs into something. There is no ambiguity in its reading — if the switch is closed, contact has happened.

Diagram

Fig. 4.4-3 – top view of a small wheeled robot with a spring-loaded bumper bar across its front edge; the bumper is shown pressed back against a wall, closing a small switch behind it, with a wire running from the switch to the robot’s controller

Three more contact sensors appear regularly:

  1. A thermocouple has to sit against the hot object, because it is the temperature difference at its own junction that produces the voltage.

  2. A pressure sensor usually uses a diaphragm that is in direct contact with the gas or liquid being measured. The diaphragm flexes as the pressure changes, and that flexing is converted into a signal.

  3. A humidity sensor measures moisture in air or soil. A moisture-absorbing insulating material is held between two conducting plates; as it takes up moisture from its surroundings, the capacitance between the plates changes, and the circuit reads that change.

Contact sensors have two real strengths. Their design is simple, which keeps them cheap, and a contact reading is direct — nothing is being inferred from a reflection or an echo.

The weakness follows from the same fact. Anything that must touch will rub, bend and wear out, so contact sensors need replacing more often than sensors that stay clear of the object. For obstacle detection there is a second problem, and it is the more serious one: by the time a bump switch reports a wall, the robot has already hit the wall.

Q. If a bump switch reports the collision only after it happens, why fit one at all?

A. As a last line of defence. Distance sensors can miss a soft, dark or oddly angled object, and the bump switch catches what they miss so the robot stops instead of pushing on.

4.4.3 External Sensors: Non-contact Type

A steel plant needs the temperature of molten metal. Nothing can be pressed against it and survive. The measurement still has to be made, and it has to be made from a distance.

A non-contact sensor is an external sensor that measures an object without touching it. It works by sending out or receiving some form of energy — infrared radiation, light, sound or an electric or magnetic field — and reading what comes back or what changes.

Several non-contact sensors have already appeared in this chapter, and it is worth seeing them together in this new light. An infrared sensor detects heat given off by an object, or measures distance from reflected infrared light. LIDAR uses a laser to measure distance and build a map of a space. An ultrasonic sensor times the echo of a sound burst. A capacitive or inductive proximity sensor detects an object entering the field it sets up in front of itself.

The advantages come straight from the absence of touch. Nothing rubs, so there is very little wear and the sensor lasts. The sensor can be kept away from heat, pressure or moving machinery that would destroy it. And it reports an object before the robot reaches it, which is the whole basis of obstacle avoidance.

Table 4.3 – Contact sensors vs non-contact sensors

Feature Contact sensors Non-contact sensors
Physical touch Required Not required
Wear and tear High, parts rub and bend Low
Use in harsh conditions Limited, the sensor is exposed to it Suitable, the sensor stays clear
Warning before contact None, the reading comes on touch Yes, the object is detected in advance
Reading affected by Wear of the contacting part Surface colour, shape, dust, light or noise
Examples Thermocouple, pressure sensor, humidity sensor Infrared sensor, LIDAR, ultrasonic sensor

There is a price for all this. A non-contact sensor never touches the object, so it never measures it directly — it measures a reflection, an echo or a field, and then infers the answer. That makes it vulnerable in ways a contact sensor is not: a dark surface absorbs infrared light, a soft surface swallows sound, dust scatters a laser beam, and a wet or humid environment shifts a capacitive reading.

Q4. Some sensors must touch an object and others do not. Which kind is better?

A. Neither, on its own. A contact sensor gives a direct, unambiguous reading and costs little, but it wears out and reports an obstacle only after the robot has hit it. A non-contact sensor warns in advance and survives harsh conditions, but it reads a reflection rather than the object itself, so surface colour, shape, dust and noise can mislead it. Robots normally carry both — non-contact sensors to see trouble coming, contact sensors to catch what those miss.

4.5 Where Sensors Are Used

Sensors are easy to miss because they are almost never the visible part of a machine. Once you know what to look for, they turn up everywhere.

In industry

Factories run on measurement. Sensors sit inside control systems on the production line, checking that a temperature, a pressure or a flow stays where it should. They also watch the machines themselves: a temperature sensor on a bearing or a vibration reading from a motor can show that a part is wearing out, so it is replaced during a planned shutdown rather than in the middle of a shift.

In healthcare

Medical instruments depend on sensors to turn something happening in the body into a number a doctor can read. Blood pressure monitors, pulse rate monitors and the wearable bands that track heart rate all work this way.

In vehicles

A modern car carries sensors that watch engine and vehicle performance continuously. Safety systems depend on them too. An airbag has to decide within a few thousandths of a second whether a sudden change in motion is a crash or a pothole, and anti-lock brakes need to know when a wheel has stopped turning while the car is still moving.

In consumer electronics

Your phone is a small box of sensors. A touchscreen registers where a finger presses, an ambient light sensor dims the display in a dark room, and an accelerometer rotates the picture when you turn the phone on its side. Smart home devices add more — a thermostat measuring room temperature, a motion sensor switching on a corridor light.

In robotics

Robots use nearly all of these, which is why they are the natural subject of a chapter like this. Cameras, LIDAR units, ultrasonic sensors and infrared sensors give a robot its picture of the world, while encoders and force sensors keep it aware of its own body.

The Pragyan rover, part of the Indian Space Research Organisation’s Chandrayaan-3 mission, is a solar-powered rover that studied the surface near the Moon’s south pole. It carried scientific instruments to examine the elements present in the lunar soil and rock around its landing site.

Choose one appliance in your home — a washing machine, a microwave oven, a refrigerator or a phone. List the things it must measure in order to work, and name the type of sensor from this chapter that would suit each measurement.

4.6 Choosing the Right Sensor for a Task

By now you have met several sensors that could answer the same question. An ultrasonic sensor, an infrared sensor, a LIDAR unit and a capacitive proximity sensor will all tell a robot that a crate is in front of it. That does not make them interchangeable. The right choice depends on the task, the surroundings and the budget.

The factors that decide

Type of physical quantity to be measured. This is the first filter and it settles most of the choice. Temperature, pressure, humidity, light, motion and sound each need a sensor built for that quantity.

Accuracy and precision. Accuracy is how close a reading is to the true value. Precision is how close repeated readings of the same thing are to each other. They are not the same, as Fig. 4.6-1 shows, and a sensor can have one without the other.

Diagram

Fig. 4.6-1 – three dartboards side by side, each with four marks; the first labelled “accurate but not precise” with marks spread around the centre, the second labelled “precise but not accurate” with marks tightly grouped away from the centre, the third labelled “accurate and precise” with marks tightly grouped on the centre

Environmental conditions. The sensor has to survive where it is fitted. Extreme temperature, high pressure, vibration and dust rule out many otherwise suitable devices.

Response time. This is the time a sensor takes to react to a change in the quantity it measures. It decides whether the sensor is fast enough for the job. An airbag system must react within a few thousandths of a second, so a slow sensor there is worthless however accurate it is.

Range. This is the span over which the sensor measures correctly. A proximity sensor on a small robot may need only a few centimetres, while a LIDAR unit on a self-driving vehicle needs tens of metres.

Sensitivity. This is how much the sensor’s output changes for a given change in the measured quantity. High sensitivity means small changes are still detected — necessary for a microphone that must pick up a quiet voice.

Size and form factor. The sensor has to physically fit. A wearable band needs a miniature sensor; a factory floor can house a large one.

Cost. The price of the sensor, and of maintaining it, has to suit the product. This is often what settles a choice between two sensors that would both work.

Durability and reliability. A sensor must keep performing over months and years, especially where replacing it is difficult or where a failure is dangerous.

Working through a choice

choosing a sensor for a task Input: The quantity to be measured, the conditions where the sensor will work, and the limits on space, speed and cost. Output: The sensor type that suits the task. Steps:

1. Write down exactly what must be measured, and whether a
   yes/no answer is enough or a value is needed.
2. Note the smallest and largest values expected, and check
   that the sensor's range covers both.
3. Note the conditions: dust, moisture, heat, vibration,
   darkness, background noise.
4. Decide how quickly the reading must arrive, and how close
   to the true value it must be.
5. List the sensors that survive steps 2 to 4.
6. From that list, pick the one that fits the available space
   and costs the least.

Why it works: Each step removes sensors that cannot do the job, so cost is applied last — to sensors that are already known to work — instead of first.

Try the method on a real case. A robot on a warehouse conveyor must detect plastic crates about 30 cm away, in a dusty aisle. Step 1 says presence detection is enough. Step 2 rules out short-range devices that cannot reach 30 cm. Step 3 rules out an inductive proximity sensor, since a plastic crate is not metal, and warns against a vision sensor in dust. That leaves an ultrasonic sensor, which reaches the distance, ignores colour and transparency, and costs far less than a LIDAR unit.

Q5. Two different sensors can often do the same job, so how do you pick one?

A. By checking the task against each sensor’s properties in turn — what quantity is being measured, the range needed, the conditions the sensor must survive, the response time, the accuracy and sensitivity required, the space available, and finally the cost. The sensor that clears every requirement at the lowest cost is the right one, and that answer changes when the task changes.

4.7 Summary

  1. A robot works by repeating a loop: sense what is happening, decide what to do, act. Without the sensing step, its decisions are based on a world that may already have changed.

  2. A sensor is a device that detects a physical quantity and converts it into an electrical signal that a circuit or computer can use. A sensor measures and reports; it does not decide.

  3. The functions of sensors are to detect a change, measure how large it is, convert it into an electrical signal, supply feedback to the controller, keep the system safe, and monitor the robot’s own condition.

  4. A sensor works in three stages: the sensing element meets the physical quantity, the transducer converts the change into a voltage or current, and the signal conditioner amplifies, filters and digitises the signal.

  5. Sensors grouped by application include vision, tactile, temperature, range and proximity detection, motion, navigation, and speech recognition sensors.

  6. Vision sensors capture and examine images. Their common types are 2D, 3D, colour, time-of-flight, and multispectral and hyperspectral sensors. They depend on good lighting.

  7. Tactile sensors measure force, pressure and texture on contact. Resistive, capacitive, piezoelectric, optical, magnetic, and flexible and stretchable types are used.

  8. Temperature sensors include the thermocouple, which works by the Seebeck effect, the RTD, the thermistor, the infrared temperature sensor, which measures without touching, and the semiconductor temperature sensor.

  9. Range and proximity detection sensors report whether an object is present and how far away it is. Ultrasonic sensors, infrared sensors, LIDAR, and capacitive and inductive proximity sensors are the common kinds.

  10. For an ultrasonic sensor, the sound travels to the object and back, so the distance is half the product of the speed of sound and the total echo time.

  11. Motion sensors measure movement. An accelerometer measures acceleration and can sense tilt from gravity, a gyroscope measures rate of rotation, and a magnetometer measures the direction of the magnetic field. Together they form an inertial measurement unit.

  12. Navigation sensors let a robot find its position and plan a path. GPS is the common example, but its signal is weak indoors and accurate only to a few metres.

  13. Speech recognition begins with a microphone, which converts sound into an electrical signal. The words are then identified by software matching the digitised sound against stored patterns.

  14. Sensors are also classified by where the measured quantity lies. Internal sensors measure the robot’s own state and include position, velocity, acceleration and force sensors. External sensors measure the surroundings.

  15. External sensors are of two kinds. Contact sensors must touch the object; they are simple and direct but wear out and give no warning before contact. Non-contact sensors measure from a distance; they last longer and warn in advance, but read a reflection rather than the object itself.

  16. Sensors are used in industry, healthcare, vehicles, consumer electronics and robotics.

  17. The choice of a sensor depends on the physical quantity to be measured, accuracy and precision, environmental conditions, response time, range, sensitivity, size and form factor, cost, and durability and reliability.

  18. No sensor is perfect. Every one of them has conditions in which its reading cannot be trusted, which is why robots usually carry several sensors that cover each other’s weaknesses.

4.8 Key Terms

  1. 2D vision sensor – A vision sensor that captures a flat image with width and height but no depth.

  2. 3D vision sensor – A vision sensor that captures depth as well as width and height, using methods such as laser triangulation and time of flight.

  3. Acceleration sensor – An internal sensor that measures how quickly the speed of a part of the robot is changing.

  4. Accelerometer – A motion sensor that measures acceleration, including the constant pull of gravity, which lets it sense tilt.

  5. Accuracy – How close a sensor’s reading is to the true value of the quantity being measured.

  6. Calibration – Checking a sensor against a known correct value and adjusting it so its readings can be trusted.

  7. Capacitive proximity sensor – A sensor that detects metallic and non-metallic objects from the change in capacitance when they enter the electric field it generates.

  8. Capacitive tactile sensor – A tactile sensor built from conducting and insulating layers that measures touch as a change in capacitance.

  9. Colour vision sensor – A vision sensor that records colour using red, green and blue channels.

  10. Contact sensor – An external sensor that must physically touch the object or medium it measures.

  11. External sensor – A sensor that measures a condition in the world outside the robot.

  12. Feedback – Information about the result of an action, sent back to the part that ordered the action.

  13. Flexible and stretchable tactile sensor – A tactile sensor on a bendable base that can wrap around a curved surface while measuring pressure and touch.

  14. Force sensor – An internal sensor that measures the force or torque acting on a part of the robot, usually using a strain gauge.

  15. Global positioning system (GPS) – A navigation system in which a receiver calculates its position on the Earth from the travel times of signals sent by satellites.

  16. Gyroscope – A motion sensor that measures the rate of rotation about an axis.

  17. Humidity sensor – A contact sensor that measures moisture in air or soil from the change in capacitance of a moisture-absorbing material.

  18. Inductive proximity sensor – A sensor that detects metal objects from the disturbance they cause in the electromagnetic field it generates.

  19. Inertial measurement unit (IMU) – A single unit combining an accelerometer, a gyroscope and a magnetometer so that each covers the others’ weaknesses.

  20. Infrared (IR) sensor – A non-contact sensor that emits infrared light and measures distance from the intensity or angle of the light reflected back.

  21. Infrared (IR) temperature sensor – A non-contact temperature sensor that works out an object’s temperature from the infrared radiation it gives off.

  22. Internal sensor – A sensor that measures a quantity inside the robot itself, such as joint position, speed or force.

  23. Light detection and ranging (LIDAR) – A non-contact sensor that emits a laser beam and measures distance from the time the reflected light takes to return.

  24. Magnetic tactile sensor – A tactile sensor that detects touch from changes in a magnetic field, using Hall effect or magneto-resistive elements.

  25. Magnetometer – A motion sensor that measures the strength and direction of the magnetic field, allowing it to act as a compass.

  26. Microphone – A sensor that converts the pressure waves of sound in the air into an electrical signal.

  27. Motion sensor – A sensor that detects and measures movement, tilt or rotation.

  28. Multispectral and hyperspectral vision sensor – A vision sensor that captures wavelengths of light beyond those the eye can see, either at chosen wavelengths or across a continuous band.

  29. Navigation sensor – A sensor that helps a robot find its position, map its surroundings and plan a path.

  30. Non-contact sensor – An external sensor that measures an object without touching it, using light, sound, radiation or a field.

  31. Optical tactile sensor – A tactile sensor that detects contact and pressure from changes in transmitted or reflected light.

  32. Piezoelectric tactile sensor – A tactile sensor made of a material that generates an electrical charge when it is squeezed.

  33. Position sensor – An internal sensor that measures how far a joint or link has moved from a reference point.

  34. Precision – How close repeated readings of the same quantity are to each other.

  35. Pressure sensor – A contact sensor that measures the pressure of a gas or liquid, usually through a flexing diaphragm.

  36. Range – The span of values over which a sensor measures correctly.

  37. Range and proximity detection sensor – A sensor that reports whether an object is present nearby and how far away it is.

  38. Resistance temperature detector (RTD) – A temperature sensor that measures temperature from the nearly linear change in the resistance of a metal, typically platinum.

  39. Resistive tactile sensor – A tactile sensor whose electrical resistance changes with the pressure applied to it.

  40. Response time – The time a sensor takes to react to a change in the quantity it is measuring.

  41. Semiconductor temperature sensor – A small integrated circuit whose voltage or current changes in step with temperature.

  42. Sensing element – The part of a sensor that directly meets the physical quantity being measured.

  43. Sensitivity – How much a sensor’s output changes for a given change in the measured quantity.

  44. Sensor – A device that detects a physical quantity in its surroundings or inside a machine and converts it into an electrical signal that can be measured and used.

  45. Signal conditioner – The part of a sensor that amplifies, filters and, where needed, digitises the signal so a controller can read it.

  46. Speech recognition – The process of converting spoken words into text or into a command a machine can act on.

  47. Tactile sensor – A sensor that detects and measures force, pressure, texture or temperature arising from physical contact.

  48. Temperature sensor – A sensor that measures how hot or cold an object or an environment is.

  49. Thermistor – A temperature sensor made of semiconductor material whose resistance changes sharply, but not in a straight line, with temperature.

  50. Thermocouple – A temperature sensor made of two different metal wires joined at one end, which produces a voltage depending on the temperature difference, by the Seebeck effect.

  51. Time-of-flight sensor – A sensor that measures depth or distance from the time a pulse of light takes to travel to an object and return.

  52. Transducer – The part of a sensor that converts the change picked up by the sensing element into a measurable electrical quantity.

  53. Ultrasonic sensor – A non-contact sensor that measures distance from the time taken by an emitted burst of high-frequency sound to echo back.

  54. Velocity sensor – An internal sensor that measures how fast a part of the robot is moving or rotating.

  55. Vision sensor – A sensor that captures visual information and processes it so the robot can act on what is in the image.

4.9 Objective Questions

  1. Which temperature sensor produces a voltage because of the Seebeck effect?

    1. Thermistor
    2. Thermocouple
    3. Resistance temperature detector
    4. Semiconductor temperature sensor
  2. Fill in the blank: The part of a sensor that converts the change picked up by the sensing element into a measurable voltage or current is called the ____________.

  3. State whether true or false: A sensor measures a quantity and also decides what action the robot should take.

  4. Which sensor measures the rate at which a body is rotating about an axis?

    1. Accelerometer
    2. Gyroscope
    3. Magnetometer
    4. Humidity sensor
  5. Fill in the blank: Sensors that measure the robot’s own state, such as the angle of a joint or the speed of a wheel, are called ____________ sensors.

  6. Match each sensor in List A with the quantity it measures in List B.

List A List B
a. Magnetometer i. Distance to an object
b. Force sensor ii. Moisture in air or soil
c. Ultrasonic sensor iii. Direction of the magnetic field
d. Humidity sensor iv. Load acting on a joint
  1. State whether true or false: An inductive proximity sensor will detect a plastic crate placed in front of it.

  2. An ultrasonic sensor sends out a pulse and receives its echo 2 ms later. Taking the speed of sound in air as 343 m/s, how far away is the object? Show the working.

4.10 Concept Questions

  1. Define a sensor, and state any three functions it performs in a robotic system.

  2. Name the three stages inside a sensor and state what each one does. Why is a sensor with a good sensing element still useless if the last stage is missing?

  3. Differentiate between contact and non-contact sensors on any three points, giving one example of each.

  4. A robot arm has to pick up a cup from a table. Explain why it needs both internal and external sensors to do this, naming one sensor of each kind and the job it does here.

  5. A rotary encoder on a robot joint produces 400 pulses for one full revolution. The controller counts 100 pulses, and the count takes 0.5 s. Calculate the angle through which the joint has turned, and its speed in revolutions per minute.

  6. A team plans to use a vision sensor to detect crates in an unlit, dusty storeroom. Explain what would go wrong, suggest a more suitable sensor, and give the reason for your choice.

4.11 Case-Based Questions

  1. A Class 10 team builds a small wheeled robot that runs on a long table during a school exhibition. It must stop before it reaches the edge of the table, and it must also stop if a visitor holds a hand about 15 cm in front of it. The table stands beside a window through which bright sunlight falls for most of the day.
    1. Which type of sensor would you fit facing downwards to detect the edge of the table, and why?
    2. Which sensor would you fit facing forwards to detect the visitor’s hand at 15 cm, and give one reason for preferring it to the alternatives?
    3. State one condition in this exhibition hall under which your forward-facing sensor could give a wrong reading.
  2. A small workshop fills clear glass jars on a moving conveyor. A sensor beside the belt must count every jar that passes, and a robot gripper must lift each filled jar off the belt without cracking it. The workshop air carries fine dust from the packing area.
    1. Which range or proximity sensor would you choose to count the jars, and why would an infrared sensor be a poor choice here?
    2. Which sensor should be fitted in the gripper fingers to stop the jars from being crushed, what does it measure, and is it an internal or an external sensor?
    3. Name two of the factors listed in this chapter that the workshop must check before finalising its choice of sensor, and explain why each one matters in these conditions.