Medium⏱ time2.5 hr$ cost24
Wall-Following Robot
One side sensor keeps a robot a fixed distance from a wall as it cruises a corridor.
Start building ↓
Result first
The build
Step 01
Mount a side sensor
Point one distance sensor at the wall.
Step 02
Set a target gap
Choose the distance to hold.
Step 03
Steer to correct
Turn toward or away to keep the gap.
Step 04
Cruise
It follows the wall around corners.
Working Principle
The robot continuously measures its distance to the wall and steers to keep that distance constant, hugging the wall as it drives.
The science behind it
A closer look
Holding a setpoint with feedback is proportional control; too strong a correction makes it weave.
Take it further
Variables to test
- 1 Tune the correction strength — stop the weaving.
- 2 Add a front sensor for inside corners.
More Robotics
Robotics
Obstacle-Avoiding Robot
An Arduino car reads distance with ultrasonic sound and steers itself away from walls.
Hard⏱3 hr$28
Robotics
Line-Following Robot
Infrared sensors keep a small robot glued to a black track as it races a loop.
Hard⏱3 hr$26
Robotics
Bristlebot
A toothbrush head, a coin motor and a battery make a buzzing bug that scurries across the table.
Easy⏱20 min$5