Skip to content
Tactiverge

School/◇ Explorer/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 · Checked by automated tests; not yet reviewed by an educator

1.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.

  • ◇ Describe what a sensor does: turn something in the world into a reading.
  • ◇ Match common sensors to what they measure.
  • ◇ Sort a machine's parts into sensing, thinking and acting.

2.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?

Guess first. Being wrong here is how the surprise works.

3.Discover

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

Sense, think or act?

Every intelligent machine has parts that sense the world, a part that thinks, and parts that act on the world. Sort each part.

  • Ultrasonic distance sensor
  • DC motor
  • Microcontroller
  • Bump switch
  • Buzzer
  • Thermometer
  • Servo motor
  • Wheel encoder
  • Heater

9 parts to sort.

Can't use the interactive? Read a description instead

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.

4.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

  • Distance: ultrasonic (sound echoes) or infrared (light).
  • Touch: bump switches, pressure pads.
  • Light: light sensors, cameras.
  • Temperature: thermometers.
  • Movement: wheel encoders count turns; accelerometers feel tilt and shaking.

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

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.

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

  • A camera is the best sensor for everything.
    ✓ Cameras are powerful but need lots of processing and struggle in the dark. Often a simple sensor does the job better.
  • An ultrasonic sensor's echo time is the time to reach the object.
    ✓ It's the time there and back, so halve it.

5.Practice

Practice, not a test. Wrong answers get a hint and another try.

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?

Practice 4

Sound travels 340 m/s. An echo comes back after 0.01 s. How far away is the object, in metres? (Remember: there and back.)

m

6.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.

7.Reflect

Concepts: How sensors measure · The sense–think–act loop