← All articles

12 November 2026

How Does a Delivery Robot Find Its Way Around Your Home?

Illustration of an indoor delivery robot: a small robot carrying a tray follows a black line across a living room floor, its sensor looking down at the line

Have you ever asked your child to carry a glass of water from the kitchen to the living room? They have to remember the way: through the kitchen door, turn left at the hallway, stop before the sofa. For a person, that is effortless — they walk without even thinking. But for a machine, "go from the kitchen to the living room" is a genuinely hard problem. And yet delivery robots already run through hospitals, hotels, and warehouses, and even deliver food on sidewalks. How do they do it? The answer turns out to be much simpler than most parents expect: they do not need to understand the whole house — they just need a line to follow.

Where delivery robots work

Before looking at how they move, consider where they already work. In hospitals, delivery robots carry medicine and lab samples between departments, so nurses do not have to walk back and forth all day. In hotels, robots bring towels and snacks right to the guest's room. In large warehouses, hundreds of small robots carry shelves to the packing staff, instead of people walking dozens of kilometres a day. And on sidewalks in some cities, six-wheeled food delivery carts already roll along and stop at customers' doors to hand over pizza.

All these robots share one thing: they do one job, and they do it very well — carry something from point A to point B, on time, to the right place, without complaining. To do that, they must solve three problems: know where they are, know the route, and avoid obstacles in the way.

The first secret: follow the line

The simplest way for a robot to know the route is to draw the route for it. People stick a strip of black tape on the floor — from the kitchen to the living room, for example — and the robot just follows that line. It sounds simple, but how does the robot "see" the line?

Under the robot's body sits an infrared sensor, the same kind of sensor used in line-following robots. It shines infrared light down at the floor and measures how much light bounces back. A light-coloured floor reflects a lot; black tape reflects very little. When the robot drifts off the line, the sensor on the left or right reports "I am seeing white floor," and the Arduino tells the wheel on that side to spin faster so the robot turns back onto the line. Over and over, the robot glides along the line, even though it understands nothing about the house.

This is the line-follower principle — one of the first projects kids build with Arduino. With just two infrared sensors and two wheels, your child can build a robot that drives itself around the living room following a taped line. That small project contains the whole big idea behind real delivery robots: no map of the entire world is needed, just a reliable path and a sensor that can stick to it.

Knowing where to stop

Following a line is one thing; knowing where to stop is another. A hospital delivery robot cannot just run along the line forever — it must stop exactly in front of room 12, not room 11 or 13. The solution is to mark the stopping points along the route: a crosswise strip of tape, a barcode sticker on the floor, or a small tag mounted at the door. When the robot's sensor reads that mark, the Arduino understands "we have arrived" and orders a stop, opens the tray, waits for someone to take the delivery, and only then moves on.

At a higher level, modern delivery robots use ultrasonic and laser distance sensors to "look" around, measure the distance to walls and objects, and draw a simple map of the house in their memory. But the principle stays the same: the robot always needs a way to know where it is relative to its destination, whether that is a black line on the floor or a map it drew itself.

Avoiding obstacles: when something blocks the way

A living room is rarely empty: a cat napping in the middle of the path, a pair of slippers someone left behind, a little sibling playing with blocks right on the route. A delivery robot cannot simply drive through them. An ultrasonic sensor on the front of the robot constantly measures the distance to the nearest object. If something is within the safe range, the Arduino orders a stop and waits — or, with a smarter robot, finds a way around.

You can picture the ultrasonic sensor like a bat flying at night: the bat calls out and listens for the echo coming back, and from that echo it knows what is ahead and how far away. A robot does the same thing, except it uses ultrasound that human ears cannot hear. When your child builds an obstacle-avoiding robot, they are using exactly the technology real delivery robots use every day.

Try it at home tonight: the family delivery robot game

No kit is needed — you can play delivery robot with your child tonight. Stick a line of black tape on the floor from the kitchen to the living room, put a plastic cup on a tray, and ask your child to play the robot: they may only look down at the line, never up, and they must carry the cup along the line to the finish without spilling it. After a few rounds, your child will understand how hard it is for a robot to "walk" when it has only one line as its guide.

For a harder round, add obstacles to the route: a pillow, a pair of slippers. This time the "robot" must stop when it meets an obstacle, wait for you to clear the path, and only then continue. Those are the two biggest problems a real delivery robot has to solve — stay on the route and avoid obstacles — and your child just experienced both with their own feet.

How your child learns this at ManuStem

On stem.manusignal.com, your child builds a line-following robot circuit right in the browser — no kit to buy, no delivery to wait for. The 3D preview shows how the robot follows the line, how the infrared sensor reacts when it drifts off, and if the circuit is wired wrong, the AI coach points out the mistake and suggests a fix in Vietnamese or English, like a teacher sitting beside them.

The course has 28 lessons — 8 in the Component Lab and 20 in the Competition Robot track — for ages 8 and up, in Vietnamese and English, with 4 free trial lessons. The line-following robot is one of the projects your child builds after getting comfortable with ultrasonic sensors and motors, and later they upgrade that same robot: adding a laser distance sensor for more precise measurement, and programming the robot in C++ on the ESP32 kit for ages 13 and up.

The next time your child watches a robot vacuum drive around the house, they will know what it is doing: it is not "smart" in the sense of understanding the whole house — it is just sticking to a path and avoiding whatever is in front of it — and now your child knows how to teach a machine to do exactly that.


Let your child build their very own delivery robot today — no kit needed, try 4 free lessons at stem.manusignal.com.

Read the Vietnamese version:

Robot giao hàng trong nhà: làm sao một cỗ máy biết đường đi?