TactivergeLite

Lite / Discovering How the World Works / Week 24

Sensors: how machines feel the world

Bats find moths in the dark by shouting and listening. Which robot sensor copies them?

About 25 min · 3 goals · Reviewed by the founders' mentors · Full interactive version

Why should I care?

A machine is only as clever as what it can sense. Choosing the right sensor is one of the first and most important design decisions an engineer makes. Pick the wrong one and no amount of clever programming will help.

Predict

An ultrasonic sensor sends a click of sound and listens for the echo. If the echo comes back faster, is the object closer or further away?

  1. Closer
  2. Further away
  3. It can't tell
Guess first, then reveal

Closer. Sound travels at a steady speed (about 343 m/s in air), so a shorter trip there and back means a shorter distance. The sensor turns a time into a distance, exactly like a bat.

Discover

Sort each part into Sense, Think or Act. Read the explanation after each choice, especially for any you got wrong.

What the interactive shows (text version)

The sorting activity can be replaced by this list. Sense: ultrasonic distance sensor, bump switch, thermometer, wheel encoder. Think: microcontroller. Act: DC motor, buzzer, servo motor, heater.

You can also open the interactive on the full site when you have a faster connection.

Understand

A sensor turns the world into a number

A sensor measures something physical and reports it as a reading the controller can use: a distance in cm, a temperature in °C, pressed or not pressed. Without sensors, a machine is blind and deaf.

A sensor zoo

On/off or a number

Some sensors give just two answers (digital: pressed or not). Others give a whole range (analogue: 0 to 100 cm). A bump switch only tells you that you hit something; a distance sensor tells you how close it is before you hit it.

Explain it another way

Intuitive

Your senses are sensors: eyes for light, ears for sound, skin for touch and temperature. A robot just has different ones, and often only a few.

Technical

A sensor converts a physical quantity into an electrical signal, which is turned into a number. Each sensor has a range (what it can measure), a resolution (smallest change it notices) and some noise.

Mathematical

An ultrasonic sensor measures the echo time t. Sound goes there and back, so distance = speed × t ÷ 2. With t = 0.002 s: 343 × 0.002 ÷ 2 ≈ 0.34 m, about 34 cm.

Applied

Cars use ultrasonic sensors in the bumpers for parking beeps, cameras for lane-keeping, and wheel-speed sensors for anti-lock brakes. Each is chosen for the one job it does best.

Worked example 1

A robot must stop before touching a wall and also know if it has been bumped from behind. Choose sensors.

Front: a distance sensor (ultrasonic or infrared), because it warns before contact. Back: a bump switch is enough, because it only needs to know that a bump happened.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 1. A greenhouse needs to know when the soil is dry. Which sensor fits?
Practice 2. Which sensor gives only two possible answers?
Practice 3. Is a speaker a sensor or an actuator?

m

Apply it

Choose the sensors for a robot that follows a black line on a white floor and stops if someone stands in front of it. Name each sensor, what it measures, and whether its reading is digital or analogue.

Reflect

If you could give a robot one sense that people don't have, what would it be and why?

Write your answer on paper or in your own notes. Lite never stores what you write.

← The forever loop inside every robotSensors aren't perfect →