HomeExperiments
Seeing Without Touching — Time-of-Flight Obstacle Avoidance
Robotics

Seeing Without Touching — Time-of-Flight Obstacle Avoidance

Explore Alvik's multizone laser distance sensor, measure how accurately it reads different surfaces, and program the robot to explore a room without hitting anything.

55 min (set-up 15 min)
Sensors

What students learn

Students learn how a time-of-flight sensor measures distance from the travel time of light, why a multizone sensor sees a scene rather than a single point, and how to turn distance readings into a safe navigation behaviour.

The science behind this experiment

  • Alvik carries a VL53L7CX time-of-flight sensor: it emits an invisible laser pulse and measures how long the reflection takes to return.
  • Light travels at about 3 × 10⁸ m/s, so a 30 cm round trip of 60 cm takes only about 2 nanoseconds — the sensor times this internally.
  • The VL53L7CX is multizone: the chip senses an 8×8 grid over a 90° field of view, and Alvik's firmware condenses that into five readings — left, centre-left, centre, centre-right and right — so the robot sees a shape ahead rather than a single point.
  • Mirrors reflect the pulse away at an angle and glass lets it pass through, so both are effectively invisible to this kind of sensor.
  • Dark matte surfaces absorb much of the pulse, returning a weaker signal, which shortens the reliable range and makes readings noisier.

Key relation: d = (c × t) ÷ 2, where c ≈ 3 × 10⁸ m/s and t is the round-trip time. The division by 2 accounts for the pulse travelling out and back.

Equipment used

  • Arduino® Alvik robot
  • Cardboard sheet as a flat target
  • 2 m tape measure
  • Small mirror and a piece of glass or clear plastic
  • Black cloth and white card
  • Masking tape to mark out an arena

Questions for students

  • Your robot drives straight into a glass door. Describe two different sensors you could add so that this failure is caught, and explain why using two different physical principles matters.
  • Stop-and-turn eventually covers a room but wastes a lot of time. What information would the robot need to explore systematically instead of randomly?

What to expect

Reported distances match the tape measure closely on matte white surfaces, read short or fail on mirrors and glass, and become noisier on black cloth. The stop-and-turn robot avoids most obstacles; wall following produces a much more purposeful path. A time-of-flight sensor converts the travel time of light into distance, and a multizone version gives the robot a coarse view of the scene ahead. It is fast and accurate on ordinary surfaces but blind to glass and mirrors — which is why safe robots never rely on a single sensing principle.

Run this experiment in your classroom

This experiment is part of ATP Volta — a self-contained mobile science lab that turns an ordinary classroom into a working STEM laboratory, with over 200 experiments in physics, chemistry, biology, robotics and engineering. Gali, the AI tutor built into ATP Connect, guides students through each step and answers their questions at the bench.

See the ATP Volta mobile science labTalk to our team

The full experiment library

Eighty-six guided experiments across physics, chemistry and biology — each with learning goals, equipment, background theory and questions for students. Browse the library

Physics 42
Chemistry and biology 44