Body 101 · Special Lesson · Lesson 17 · Ages 10 to 13

AI and Robots One Team

In Lesson 15 we met a brain without a body: an AI that is great at talking but can’t pick up a glass of water. In Lesson 16 we built a body that follows the rules we write. This lesson joins the two together, with AI as the brain and the robot as the body. Once they are joined, they become a loop that never stops: sense, think, send the command, move, check the result, then go round again. Our nervous system works in a loop like this too, so this lesson uses our own body as a map to help us understand. Remember, this is only a comparison. It does not mean that robots have brains like people.

By the end of this lesson, you’ll be able to explain how an AI brain and a robot body pass the work along to each other in a loop, and why a good robot double-checks, stops by itself and asks a person. You’ll also be able to connect an AI you taught yourself to the car from Lesson 16 with your own hands.

Before you startReading Lesson 15 on AI and Lesson 16 on robots first will make this more fun, but you don’t have to. Whenever we need something from before, there will be a link back to it. At the end of Lesson 16 we suggested adding an AI that recognises pictures, so the robot follows the signs it sees. In this lesson we do it for real, but we use your computer’s camera instead of a single-board computer on the car.
A round white wheeled home-helper robot reaching for a red apple on a wooden kitchen table, with a woven basket nearby and golden arrows of light circling around the robot and the table
Level 0 · The big pictureBrain, body, loop

One team, one mission, one loop

A helper robot at home hears the command Put the apple in the basket which is very easy for us. But for a robot, this job needs many parts working together: one part listens, one looks, one plans the route, one picks up, and another checks whether the job is really done. In this level we will look at the whole loop first and do 5 short missions, then try to break it in the free lab.

Not one AI, but a team

A helper robot at home doesn’t have one single AI that does everything. Instead, it has many parts that pass the work along in a loop: listen to the command, look for the object, plan the route, pick it up, then check the result. When the world changes, for example once the apple has moved into the basket, the eyes come back to look again, round and round.

It’s like passing the ball in a football team. Each player is good at a different position, and each one has to trust the pass a teammate sends. If the first player makes a bad pass, the next player picks up that bad pass and carries on with it too.

Each part is a different kind of machine

The listening part and the looking part are AIs that learn from examples, like the ones we met in Lesson 15 while the route-planning part and the checking part are programs that calculate by rules. The picking part is a feedback loop like the one in Lesson 16 and a safety layer keeps watch underneath them all.

  • Listen 🧠 AI that learns from examples
    Turns speech into words, then breaks the command into a step-by-step plan
  • Look 🧠 AI that learns from examples
    Finds things in the camera picture, then says how many per cent sure it is
  • Plan the route 🧮 Program that calculates by rules
    Finds the shortest path on the room map. It just calculates, no guessing needed
  • Pick up ⚙ Feedback loop
    Squeezes its fingers, measures the force, then adjusts, going round this loop very fast
  • Check the result 🧮 Program that calculates by rules
    Checks the weight, looks in the basket, then decides whether the job is really done
  • Safety layer Separate from the AI
    Watches underneath every step and can order a slow-down or a stop at any time

HelperSim: a home helper robot

Made-up numbers for this simulation

Start with Mission 1. Press ▶ Start mission, then watch the strip of five boxes. Each box is one member of the team, and the symbol in the box shows what it is doing. The room picture is the room seen from the ceiling, and the dark picture is what the robot’s own camera sees. Finish all 5 missions and the free lab opens by itself, but you can skip ahead to it if you like.

Mission 1/5

First mission: Put the apple in the basket

Speed
Simulation time 0.0 seconds

🔁 Loop-back arrow: the world changes, so the eyes come back to check the result

🛡 Safety layer · always watching · can’t be switched off✓ Normal

Plan from the language AI No command received yet

🧠 AI brain thinks 5 times/second (simulated) ⚙ Motors adjust Hundreds of times/second (simulated)

○ Waiting · ◐ Working · ✓ Passed · ↻ Trying again · ? Asking a person · ✗ Mistake · ⊘ Can’t do it · 🧠 AI that learns from examples · 🧮 Program that calculates by rules · ⚙ Feedback loop

table shelf sofa basket start

The camera hasn’t looked yet

The robot brain’s log

    👀 marks things we can see from the outside but the robot doesn’t know

    Switch panel

    🔒 Locked for this mission

    Break it

    Protection layers all on by default

    On a real robot it must never be switched off, so our lesson doesn’t let you switch it off either

    Keyboard: Tab moves from button to button · Space or Enter presses a button or flips a switch · Left and right arrows choose the command, protection layer and speed · Press . (full stop) to go one step at a time · When the robot asks, press 1, 2 or 3 to answer

    Each step always trusts the step before

    The legs have no way of knowing that the eyes got it wrong. If the eyes say the apple is on the right, the route-planning part will plan a route to the right very precisely, and the hand will carefully pick up the thing on the right. In short: if the eyes get it wrong, the legs can walk to the wrong place very precisely.

    In Mission 4, the arrows in the strip turn into dashed lines with ✗ from the Look step onwards. That is a mistake being passed from hand to hand, without anyone in the team noticing.

    Confidence is not certainty

    When the AI says “apple 74%”, it doesn’t mean it is definitely an apple. It means the AI quite strongly believes it is one. That is why a good system sets a threshold it has to reach. In this simulation, it must be at least 80% confident and at least 15 points ahead of the second-best guess. That is why the box in the camera picture is a thick solid line when it is confident enough, and a dashed line when it isn’t sure yet.

    If it doesn’t reach the threshold, the robot takes a second, closer look, and if it still isn’t sure, it stops and asks a person. You’ll get to slide the threshold yourself in Level 2

    Being wrong without knowing it is the scariest

    A robot that makes a mistake and knows it can still put it right. But a robot that makes a mistake and reports success is far more dangerous, because nobody knows there is something to fix.

    Checking with a different kind of sensor (such as a scale) can catch the mistake, because the ball and the apple look alike but don’t weigh the same. But double-checking with the same camera usually makes the same mistake again, because eyes that got confused the first time get confused in the same way. It’s like checking your own homework straight after you finish it: you tend to miss the same mistakes.

    The safety layer outranks the AI

    The safety layer works separately from the AI and outranks it. In Mission 2, the AI brain is still saying “keep going”, but the safety layer can order a stop straight away, because it doesn’t have to wait for the AI to agree.

    In a real robot, this layer must never be switched off, so it is locked on our switch panel. You can read more about why in Level 7

    Some newer robots aren’t split into boxes

    Some newer robots aren’t split into boxes the way this simulation is. The vision-language-action brains you saw on the Lesson 16 card combine seeing, understanding instructions and moving in a single model. But underneath, they still need a fast control layer that keeps adjusting the motors very quickly, and a safety layer too, because the big brain thinks too slowly to control the motors in time on its own.

    This simulation is split into boxes to show how information is passed along and which way mistakes travel. It doesn’t mean every real robot has to be split up like this.

    The brain doctor’s cornerBoxes in a row make things easy to understand, but a real brain doesn’t work one box at a time, waiting in a queue. It does lots of things at once, overlapping each other. While your eyes are still looking, other parts of the brain are already getting ready to move. You can see a real brain compared with the diagram in Level 1

    Our loopThe brain and body pass the work around in a loop. Each step trusts the step before it, and 🛡 keeps watch underneath every step.

    Build stepFor now, just watch. At the end of the lesson we’ll build a loop like this ourselves, using the car from Lesson 16. See Level 9
    A see-through model of a brain and spinal cord beside a wheeled robot cut open to show its circuit boards and battery, both wrapped in four stacked rings of light at different heights, with threads of light linking each ring across the two
    Level 1 · Layer mapFast and smart: you need both

    Two bodies, four layers: our body and an AI robot

    In Level 0 we saw the whole loop: Sense, Think, Send the command, Move, Check the result. Now let’s look inside. We’ll find that neither our body nor a modern AI robot has just one controller. Instead, each has several layers stacked on top of each other. The lower layers are very fast but can only think about simple things. The upper layers are slower but understand what things mean. Tap one layer at a time to match our body with the robot, then press the button to see where a real brain is different from the diagram.

    🧠 AI on its own: it can think but can’t move

    The AI in Lesson 15 answers questions, writes stories and explains how to pour a glass of water step by step, all very smoothly. But if you asked it to pick up even one real glass, it couldn’t do it at all, because it has no hands, no body that is really there next to that glass, and no idea how heavy that glass is.

    🦾 A robot on its own: it can move but only follows fixed rules

    The car in Lesson 16 drives, turns and stops for real, but everything it does comes from rules we wrote in advance, such as “if the left sensor sees the black line, turn left”. If it meets something that isn’t in the rules, it doesn’t know what to do, and it doesn’t understand what any of it is for.

    Put them togetherAI on its own can think and talk but can’t move anything in the real world. A robot on its own can move but only follows fixed rules. Put them together and you get what researchers call embodied AI (the full meaning is in the Lesson 16 glossary). But as soon as it has a body, new problems appear straight away, because the real world doesn’t stop and wait for anyone to finish thinking. Things that are falling keep falling, and a car that is moving keeps moving. So both our body and robots solve this problem in a similar way: they split the work into several layers.

    Four layers in our nervous system (simplified)

    In a simple diagram, the nervous system has four layers that work at different speeds. Here they are from the bottom layer up to the top.

    1. Spinal cord handles reflexes, like when the doctor taps gently just below your knee and your leg kicks out by itself. The brain doesn’t have to decide.
    2. Cerebellum fine-tunes movements. Scientists think it helps predict in advance how a movement will turn out, so we can reach for a glass and get it just right, not too far and not too short.
    3. Basal ganglia and dopamine signals work deep in the middle of the brain. They help choose which movement to make, and learn from how things turn out.
    4. Frontal lobe sets goals and plans the steps, such as deciding to finish your homework first and then go and play.

    Four layers in a modern AI robot

    Modern AI robots are split into layers in a similar way: a safety layer, a very fast motor controller, skills learned in training, and a big AI that makes plans.

    1. Safety layer is made up of the emergency stop button, bumpers and a watchdog. It works separately from the AI and outranks it. If the button is pressed or a bumper detects a bump, the robot must stop, whatever the AI is telling it to do.
    2. Very fast motor controller measures and corrects the motor force again and again, very quickly: from about 50 to several thousand times a second, depending on the robot. It’s the same kind of feedback loop we played with in Lesson 16, Level 5
    3. Skills learned in training are short moves that have already been practised, such as picking up, putting down or opening a drawer. When it’s time to do real work, the robot pulls out these moves and uses them.
    4. Big planning AI understands language and images, then breaks long instructions down into small steps that the skills below it can do.

    Two bodies, four layers

    Tap a layer button, or tap a part of the body or the robot in the picture. The matching parts get a thick outline and diagonal stripes, with a line linking the human side to the robot side. Layer 1 is at the bottom and layer 4 is at the top. Then try switching the view to Real brain.

    View

    This is easy to read, like the diagram in Lesson 16

    No layer chosen yet. Tap a layer button or a part of the picture to see its match.

    The speed numbers are rough ranges taken from research and from many different robots. They vary depending on the robot and the year it was built, and they aren’t the numbers for any one particular robot.

    See a table comparing all four layers at once
    Layer(a) Human side(b) Robot side(c) Speed(d) Good at(e) If the robot didn’t have this layer(f) Find out more

    Keyboard: Tab moves through the buttons and the parts of the picture one at a time · Enter or Space selects · press 1 to 4 to choose a layer · 0 or Esc clears the selection · M switches between Diagram and Real brain · the left and right arrow keys change the view when you are on the view buttons · if your device is set to reduce motion, the real brain picture shows still arrows with no moving dots

    ⚡ Lower layers are fast, upper layers are smart: you need both

    The lower layers are fast but only think about simple things. The upper layers are slow but understand difficult things. Our body and robots need both kinds working at the same time. Imagine you are carrying a glass of water over to your mum and you trip. Your legs and arms rush to help you keep your balance before you’ve even had time to think about what happened. Your hand adjusts its grip on the glass so the water doesn’t spill, while your frontal lobe still remembers who you were taking the water to. If you only had the upper layers, you would fall over before you finished thinking. If you only had the lower layers, you would be great at balancing but wouldn’t know where you were going.

    Robots face the same problem. A big AI may only be able to think a few times a second. If every movement had to wait for it, the arm would jerk and the car would crash before the AI finished thinking. So engineers put faster controllers underneath it, and put the safety layer at the very bottom, so it can stop the robot by itself without asking the AI. Want to see how this difference in speed turns into extra distance the car travels while it waits? Try it in Level 4

    🧱 This idea has been around since 1986

    Some robot designers have been copying this idea since 1986 (Rodney Brooks), with a bottom layer called Don’t crash that is always running, and a smarter layer placed on top of it. The upper layer chooses which way to go, while the bottom layer keeps dodging things every single moment. Even if the upper layer gets stuck, the robot still won’t charge into a wall.

    The obstacle-avoiding car in Project 3 of Lesson 16 can also do the job of the Don’t crash layer in the same way: if something is very close, stop first and think afterwards.

    🏷 System 1 and System 2 are borrowed names

    The names System 1 and System 2, which some companies use for their fast and slow layers, are borrowed from psychology. They are not the names of parts of the brain. A psychologist called Daniel Kahneman made these names well known. He used them to describe two kinds of human thinking: a fast kind that happens by itself without you trying, and a slow kind where you have to think things through step by step.

    Robot companies borrowed these names as nicknames for their fast and slow layers, so they don’t mean any particular part of the human brain. You can find the real speed numbers for some robots in Level 4

    The brain doctor’s cornerIn Lesson 16, we said that robots work in three steps, one after another (sense, think, act), and that our body works the same way. Here I’d like to fix that and make it more precise. The sense, think, act diagram in Lesson 16 is a map to help you understand, not a photograph of the brain. In a real brain, sensing, choosing and moving overlap. Many loops work at the same time and talk to each other all the time, and the spinal cord can make some quick decisions by itself. It isn’t just a wire. Two neuroscientists, Paul Cisek and John Kalaska, wrote a summary of research in 2010 saying that the brain doesn’t finish thinking first and then move. Instead, it weighs up its choices and gets its movements ready at the same time. The four-layer diagram on this page is a map too. That’s why I always put the Real brain button right next to it, so you can see the map and the real thing side by side.
    This lesson’s ruleWhenever this lesson says “similar”, it means similar in principle only. Robots have no spinal cord, no cerebellum and not a single nerve cell. We borrow our own body as a map to help us remember what each layer does. It doesn’t mean that a robot is the same as a person on the inside.

    Our loopThe same loop has several layers stacked together: the lower layers are fast, the upper layers are smart, and the safety layer beats all the others.

    Build stepOur car at the end of the lesson will really have several layers. The top layer is the AI in the browser, which watches your hand signs and chooses one of the letters F L R S. The lower layer is the watchdog on the Arduino board, which stops the wheels by itself if it hasn’t heard a command for more than 1 second, without waiting for the AI. And at the very bottom are the STOP button and the battery switch, which a person can press or switch off straight away. We’ll connect these layers together in Level 8 and Level 9
    A robot's camera view of a kitchen table in dim evening light: a red apple inside a glowing gold box and a red toy ball inside a glowing blue box, side by side on a table runner
    Level 2 · SenseProbably, not definitely

    The robot’s eyes: training data, confidence and thresholds

    In this lesson’s project, the car’s eyes are the computer’s camera, and its brain is an image-sorting AI that you teach yourself with arrow cards or hand signs. But the AI never answers “yes, definitely”. It answers “probably this sign, and I’m this many percent sure”. In this level you’ll design the set of pictures used for teaching, test it on 12 scenes, then set a threshold for how sure the AI has to be before the car will move.

    What does the camera send to the AI?

    Remember how in Lesson 15 we saw that, to a computer, a picture is a grid of numbers? In our project, the camera picture is shrunk down to 224 × 224 dots, and each dot has 3 numbers for red, green and blue. So one picture becomes a row of 150,528 numbers, and the camera sends pictures like this to the AI many times every second.

    224 × 224
    Dots per picture
    3
    Numbers per dot: red, green, blue
    150,528
    Numbers the AI gets per picture

    The AI doesn’t see arrows or hands the way we do. It only sees this set of numbers, then works out which class that pattern of numbers belonged to when you taught it.

    What does the AI’s answer look like?

    The AI doesn’t answer with just one word. It answers with a list: every class we taught gets its own confidence percentage, and all the percentages always add up to 100%. For example, when you hold up the up-arrow card in a bright room:

    👍 Forward91%
    👈 Left4%
    👉 Right3%
    ✋ Stop2%

    Adding them up: 91 + 4 + 3 + 2 = 100. The car looks at the class with the highest percentage, then turns it into a single letter, F L R or S, and sends it down the cable. But before it is sent, it has to pass one more checkpoint, which you’ll set yourself in the second half of this level.

    Made-up numbers for this simulation

    The AI always has to choose

    An image-sorting AI has to choose one of the classes it has, every single time. It has no “I don’t know” answer. If we have never taught it what nothing looks like, it might look at an empty scene, with nobody holding up a card, and confidently answer “Forward”. Then the car shoots off by itself even though nobody told it to. The fix is to add a fifth class called Nothing and put pictures of empty scenes in it.

    Variety matters as much as quantity

    Take pictures in both bright and dim light, hold the card both close up and far away, ask several people at home to hold up their hands, and take pictures in the room where you will really drive the car. The AI can only learn from pictures it has seen. If during training it only ever saw your hand in a bright room, it will hesitate when it meets your younger brother’s or sister’s hand in the evening. A hundred pictures that all look the same may help less than fifty pictures that are all different.

    Flip it the same way

    When you train in Teachable Machine, the camera picture is flipped left to right like a mirror by default. So when you really drive, you have to flip it the same way, because the AI learns exactly what it sees. It doesn’t know what an arrow means. If the picture isn’t flipped when you drive, the way it was in training, a left arrow will look just like the right arrow it saw before.

    Four hand-drawn paper cards on a desk next to a laptop: an up arrow, a left arrow, a right arrow and an open hand with five fingers, with no writing
    Teach with cards, not facesAnyone who has the link to an uploaded model can use it, so only teach the AI with arrow cards or hand signs.

    Use hand signs or cards, never faces

    In this project, we teach the AI only with hand signs or arrow cards, and we never take pictures of people’s faces. The reason is that when you press Upload my model in Teachable Machine, anyone who has the link can use that model.

    1. While collecting pictures and training Google says the example pictures stay on your computer, unless you choose to save the project to Google Drive.
    2. When you press Upload my model the trained model is put online at a link, and anyone who has the link can use it.
    3. While driving the car our project page processes the camera pictures in the browser and doesn’t upload them anywhere.

    The arrow cards have one more advantage: anyone at home can hold them, so the AI gets to see many people’s hands without collecting a picture of anyone’s face.

    Try it: design the car’s dataset

    Choose one class at a time, set the number of pictures, then tap the kinds of picture you’ll collect. After that, press Test 12 scenes and the car will meet 12 different scenes. Some match what it was trained on and some don’t. See which letter the car gets in each scene. The car sends a class’s letter when the AI is 80% confident or more. If not, it sends S.

    Class you’re editing

    Class 👍 Forward

    Number of pictures in this class
    Kinds of picture you collect. Tap to choose or remove
    This lesson doesn’t use faces, because anyone can open the model link.

    The starter set is 4 classes with 50 pictures each, taken in bright light, held close, using only your own hand, and with no Nothing class yet. Try pressing Test first to see how many scenes it passes.

    Keyboard Tab moves from button to button · Left and right arrows choose the class and number of pictures · Space or Enter presses buttons and picture kinds · Press Enter on the Nothing tick box or on the Test button to test 12 scenes

    -
    ✓ Works
    -
    ⏸ Paused
    -
    ⚠ Dangerous

    Not tested yet

    A simulation, not a real AIMade-up numbers for this simulation
    Results for 12 test scenes
    Test sceneAI’s answerCarResult

    Tap the AI’s answer in the table to see its confidence for every class in that scene.

    Confident doesn’t mean correct

    Confidence is the AI telling us how similar this picture is to the pictures it has seen in each class. It doesn’t tell us whether it’s right. So before our car sends a command, it has a checkpoint called a threshold line. If the AI’s confidence reaches the line, the car sends that class’s letter. If it doesn’t, the car sends S so it stops and waits for now.

    AI says Right 62%→Does it reach the 80% line?→No, so send ■ S

    If the threshold is too low, the car trusts wrong guesses. If it’s too high, the car stops so often it never gets anywhere. And sometimes the AI is very confident but wrong, so the threshold can’t help at all.

    If it looks different from training, it can go wrong

    In one test done in a simulated world, researchers only moved the camera a little, or slightly changed the robot arm’s starting position. A robot that used to succeed almost every time started failing much more often, because what it saw was different from its training.

    Our car can run into this too. If you move it to another room, change a light bulb, or sunlight shines in, what the camera sees is no longer like it was in training. So always test in the room where you’ll really drive, and test with the wheels off the ground before putting the car on the floor.

    Try it: set the car’s threshold

    You hold up cards to make the car follow tape on the floor. The camera sees 30 frames in order. Some frames are from while you’re changing cards, some have glare, and in one frame a person walks past in the background. Try sliding the threshold and see how many times the car is correct, pauses, or goes wrong. While you’re changing cards, if the car stops and waits it counts as Paused, and if it moves it counts as Correct.

    30 frames the camera sees

      ↻ means changing cards · ▲ F forward · ◀ L turn left · ▶ R turn right · ■ S stop

      Path the car takes when it’s correct · ■ Where the car stopped and waited · Dashed line means a wrong turn · ▲ Cone

      Frame 0 of 30 · Press Drive or Next frame

      22
      ✓ Correct
      7
      ⏸ Paused
      1
      ⚠ Wrong

      Correct 22 · Paused 7 · Wrong 1

      Reached the finish, but nearly hit a cone

      Keyboard Left and right arrows move the line by 1 · PageUp PageDown by 5 · Home End jump to either end · Tab moves to the Drive, Next frame and Start again buttons

      Made-up numbers for this simulation
      Is stopping always safe?For a car on the floor, stopping is the safest wrong answer. But a flying drone would fall if it switched its motors off straight away. So each kind of robot needs its own safe move, designed just for it.
      Our bodies do something similar When you walk in a dark room, you can’t see very well, so you walk more slowly and feel your way with your hands before each step, instead of rushing forward while you’re still unsure. A car that stops and waits when the AI isn’t confident enough is similar. The difference is that the car doesn’t feel scared at all. It just compares a number with the line we set.
      The micro:bit works like this too The micro:bit CreateAI uses the same idea. If the confidence is below the point you set, it shows “unknown”. You can see this no-code option in Level 9 or on the micro:bit user guide page

      Our loopThe AI eye doesn’t pass on a simple “yes”. It passes its confidence on to the decider. If it doesn’t reach the line, the loop sends S instead.

      Build stepMake 4 cards: an up arrow, a left arrow, a right arrow and an open palm. Draw them big, with thick lines. Then train a model in Teachable Machine with a Nothing class, and test every sign until it reliably reaches 80% (steps 2 to 5 in Level 9) Picture checklist from the dataset you designed above
      A white robot arm wiping a spill on a wooden table with a sponge beside a mug, under a see-through cloud showing a sponge, a cup and a table in a row of steps joined by arrows
      Level 3 · ThinkUseful × Doable

      Thinking in steps: language AI × body skills

      If we say I’ve spilt water on the table, please help to a robot, it has to break the big job into small steps by itself: go to the kitchen, pick up a sponge, come back, and then wipe. Language AI, like the kind in Lesson 15, is good at thinking up steps that sound good, but it has never had a body, so it doesn’t know where the robot is standing, what it’s holding, or which moves it knows how to do. At this level we’ll look at how researchers get the brain and the body to choose the next step together, and then see why the brain has to think fast enough to keep up with the rhythm of the arm.

      Language AI is good at guessing the next step

      Language AI is good at guessing what the next step should be. It’s a bit like guessing the next word, which you saw in Lesson 15. If you ask what to do about water spilt on a table, it can answer straight away: wipe the table, because it has read sentences like this many times.

      But it doesn’t know where the robot is standing right now, what it’s holding, or which moves it knows how to do. It can’t see that the sponge is still in the kitchen, and it doesn’t know whether this robot’s arm has ever been trained to wipe a table.

      SayCan: ask both the brain and the body

      A research project called SayCan (2022) had a language AI give each step a Say score for how useful it would be, and had the robot’s part of the system give it a Can score for whether it could really be done from where the robot was. Then it multiplied the two scores and chose the step with the highest result.

      When one step is finished, it thinks up the next step again from wherever the robot is standing at that moment. So the plan isn’t all written out at the start. It grows one step at a time as the real world changes.

      Why multiply, not add?

      Useful (Say)×Doable (Can)=Score for that step

      If either score is zero, multiplying them gives zero straight away. So a step that is no use at all, or that can’t be done at all, can never win. Here’s an example from the demo below. When the robot is standing at the table with empty hands, Wipe the table gets the highest Say, 0.45, but if the robot has never been trained to wipe, its Can is 0, and multiplying gives 0. Meanwhile, Go to the kitchen gets a Say of only 0.15, but its Can is 0.9, so multiplying gives 0.135, and it wins. If we added the scores instead, a step that can’t be done at all could still keep the points it gets for sounding good. If the language AI were confident enough, a step that can’t be done might beat one that really can. So multiplying means a step has to pass both checks.

      Made-up numbers for this simulation

      Say × Can: help the robot plan

      Choose a command, then press the button to choose the next step, one at a time. The robot scores every move from wherever it is standing at that moment. Try switching the mode to Say only or Can only, and see where the robot gets stuck.

      Command from a person
      Planning mode
      Body skills

      🍽 Table spill Help! Person 🍳 Kitchen sponge apple Robot

      Steps the robot has done

      No steps chosen yet

        Striped Say = how usefulDotted Can = can it really be done from hereSolid = multiplied together. The longest bar is the biggest result that round

        The numbers in this demo are made up to help you learn. They are not numbers from the research. Made-up numbers for this simulation

        Keyboard: Tab moves from part to part · Arrows change the command or mode · Space turns table-wiping training on or off · Enter chooses the next step

        However good the plan, a robot can only do moves it has been trained for If you haven’t pressed the button that trains the table-wiping move yet, the robot will bring you the sponge instead, because the Can score for wiping the table is zero. If it has never been trained to wipe the table, even a good plan can’t get the table wiped. Switch on Robot has been trained to wipe the table and the Can score for wiping goes up to 0.9 while the robot is holding the sponge at the table, so it can wipe the table by itself. In real research, the language AI can only choose from the list of skills the robot has already practised, just as we can only order food that’s on the menu. Where does each skill come from? Find out in Level 6

        Say only: sounds good, but can’t be done

        If it listens only to the language AI, the robot tries to do the best-sounding step straight away, even though its body isn’t ready, and then gets stuck there, because the language AI’s answer doesn’t change as long as the world doesn’t change. When the AI made things up in Lesson 15, it was only saying something wrong. But once an AI has a body, that mistake becomes an action that can’t be done, or is done in the wrong place.

        Can only: hard-working, but doesn’t know where to go

        If it listens only to its body, the robot does whichever move is easiest from where it is: walk to the kitchen, walk back to the table, round and round. Every step can really be done, but none of them brings it any closer to the goal. The body knows what it can do, but not what it should do. That’s why the two parts have to work together.

        How do real AI robots plan?

        RT-2 · Google DeepMind · 2023

        RT-2 was one of the first research projects to take an AI that had learnt from pictures and text on the internet and train it further until it could answer with commands to move an arm. Instead of answering with a sentence, it answers with a set of numbers saying which way the arm should move (see the “Vision-language-action models” card in Lesson 16)

        The biggest version thinks about 1 to 3 times a second and runs on computers in a data centre, not inside the robot. So the robot has to send pictures to a faraway computer to do the thinking, then wait for the answer to come back.

        Gemini Robotics 1.5 · 2025

        It splits the work into two parts: one part plans the steps, and the other turns each step into arm movements. It is similar to layer 4 🗺 Plan and layer 3 🎓 Trained skills on the layer map in Level 1 and it can partly carry skills practised on one robot over to robots with different bodies.

        The part called thinking before acting is text the AI produces along the way, not human-style thinking. It writes out the smaller steps as words before it acts. People can read it and roughly guess what it is about to do, but that doesn’t mean it feels or understands the way we do.

        The robot speed numbers in this lesson are approximate. They vary with the robot and the computer used, and this field changes very quickly.

        Thinking fast enough to keep up with the arm

        Think a whole chunk at once

        π0 (2024) works out its movements ahead of time in chunks of about 1 second, each split into 50 small steps, and then the arm follows them one step at a time. One round of thinking gives one second of movement, so the brain doesn’t have to think again for every step, and the arm still gets commands often enough to move smoothly.

        If the brain can’t think fast enough

        If the brain thinks more slowly than the arm needs, the robot pauses or moves jerkily. Research from 2025 fixed this by having it think about the next chunk while it is still doing the current one. It’s like reading aloud: your eyes usually look ahead to the next word before your mouth has finished saying the current one, so your reading doesn’t stumble.

        Slow brain, fast arm

        Make the robot arm draw one circle. The circle is split into 4 chunks of 1 second each, and each chunk has 50 steps of 0.02 seconds. The brain has to finish thinking about the first chunk before the arm can start. Choose how fast the brain thinks, then press Draw circle.

        Brain thinking time per chunk
        How it thinks

        Press Draw circle to count how long the arm stops and waits

        Each dot is one step. Chunks 1 and 3 are gold dots, chunks 2 and 4 are blue dots, and each is labelled with its chunk number. If the arm stops to wait, the dots pile up in the same spot as a ring with the word “Wait”. The bottom row is a timeline: striped bars show when the brain is thinking, and solid bars show when the arm is moving. The AI predicts a slightly different path for each chunk. With overlapped thinking, the robot gradually blends the old chunk into the new one over 5 steps, so the joins are smooth.

        Timeline as text

        Nothing drawn yet. Press Draw circle first.

          Made-up numbers for this simulation

          Keyboard: Tab moves between parts · arrow keys choose the thinking speed · Space turns overlapped thinking on or off · Enter or Space presses Draw circle

          The brain doctor’s cornerThe frontal lobe helps set goals and put steps in order, but it always works together with other parts. It doesn’t wait in a queue, one box at a time. When you walk over to fetch the sponge, your frontal lobe is thinking about what to do next, while other parts help control your walking, your balance and how hard your hand will grip. All the parts are talking to each other all the time, so the boxes lined up in the demo are just a map to help you understand. See a picture of the real brain working as many overlapping loops in Level 1

          Our loopThe brain in our loop doesn’t give random orders. It has to ask the body whether something can be done, and it has to think fast enough to keep up with the arm.

          Build stepOur car in Level 9 doesn’t have an AI planner yet. You do the planning yourself: see where the car is, then choose the next hand sign. The car can only do 4 commands: Forward, Left, Right and Stop. The AI in the browser can also only choose from the hand signs you have taught it. This is like the skill list in SayCan, where the language AI can only choose moves the body has already practised (steps 3 and 10 in Level 9).
          A small robot car with a two-eyed distance sensor at the front stopping just before a football rolling across a wooden floor, with a blue shield of light at its front bumper
          Level 4 · Layer 1: Spinal cordStop first, think later

          How fast is fast enough? Reflexes, clocks at different speeds and latency

          This level is about time. When the doctor taps your knee, your leg kicks by itself without the brain having to give the order. Robots with a big AI brain run into a problem similar to ours: clever brains tend to think slowly, and while the robot waits for the brain to think, the car keeps moving. So a good body and a good robot both need a very fast layer close to the sensors, ready to stop first and let the brain think afterwards. Let’s see how many centimetres a delay of just a fraction of a second turns into.

          🦵 Tap the knee, and the leg kicks by itself

          When the doctor taps just below the kneecap, the thigh muscle is stretched a tiny bit. Stretch sensors in the thigh muscle send a message to the spinal cord, and the spinal cord sends the command Kick! straight back. The brain doesn’t have to decide. The brain still knows someone tapped, but the kick command doesn’t wait for the brain, so its path is short and very fast.

          You can already find a picture of this pathway in Lesson 8 and Lesson 13 Have a look back if you like. This level invites you to look at something else instead: time.

          On the robot side It’s like the safety rules built into the motor control board, which work by themselves without asking the main computer. This is only a comparison. Robots don’t really have a spinal cord.

          ⏱ Compare like with like

          When we compare times, we must compare things measured in the same way. The thigh muscle receives the kick signal about 0.02 seconds after the tap. The leg starts to move visibly at about 0.1 seconds, because the muscle needs time to contract and pull the leg. An adult in a lab who sees something and presses a button on purpose takes about 0.2 to 0.25 seconds.

          0.02
          seconds · signal reaches the thigh muscle
          about 0.1
          seconds · leg visibly starts to kick
          0.2 to 0.25
          seconds · adult sees, then presses on purpose

          So the knee’s first signal is about ten times faster than acting on purpose, and even the visible kick is still about twice as fast. Remember this carefully: 0.02 is the time for the electrical signal to reach the muscle, not the time the leg moves. The leg has to wait a moment longer before it visibly starts to kick.

          🦶 Step on something sharp, and your foot can lift before you feel the full pain

          If you step on something sharp, the spinal cord starts lifting that foot and stiffening the other leg to stop you falling, often before the brain feels the full pain. This reflex does two jobs at once: one leg escapes from the danger, while the other holds up your body weight. Otherwise you might lose your balance and fall over too.

          ⚠ Never experiment with hot things, sharp things or electricity This part is for reading only. Your body already does it by itself, so there’s no need to prove it.

          🎚 The brain is like a volume knob for reflexes

          Reflexes don’t work alone. The brain keeps turning a knob to make them more or less sensitive. If you hook the fingers of both hands together and pull while someone gently taps your knee, the leg tends to kick harder. The brain can also hold a reflex back, for example when you try hard to keep your arm still during an injection. As for why hooking your fingers together makes the leg kick harder, scientists are still debating it.

          Robots adjust their sensitivity in a similar way. For example, the safety layer slows the arm down by itself when someone walks close, and stops it when they get too close. But the AI can’t tell the safety layer to relax. Find out more in Level 7

          🤝 Try it with an adult

          Sit with your legs dangling. If your knee hurts or has been injured before, skip this. Ask an adult to tap gently just below your kneecap with the side of their hand. Never use a hammer or swing hard. Then try hooking the fingers of both hands together and pulling while they tap again.

          If you don’t see the leg kick after a tap, don’t tap harder. Just stop there.

          At home, whether the leg kicks hard or gently doesn’t tell you anything about health. Only a doctor can judge reflexes.

          For parentsNormally the brain keeps reflexes balanced. If the pathway running from the brain down to the spinal cord is injured, reflexes may become stronger than normal, which is one of the signs doctors check for. Only a doctor examining the whole body can interpret the result. If you are worried about how your child moves, talk to a doctor.

          🕰 Clocks at different speeds in one robot

          Hertz is the number of times per second. 200 hertz means thinking again every 0.005 seconds. In real robots, each layer runs on a clock ticking at a different speed.

          • ⚙️ Bottom layer: motor controlThousands of times a second or more
          • 🦾 Arm control layerAbout 50 to 200 times a second
          • 🧠 Big AI brainAbout 1 to 10 times a second

          The numbers vary from robot to robot. Examples: Helix’s slow layer runs about 7 to 9 times a second and its fast layer 200 times (reported by the company Figure itself, 2025) · GR00T N1’s thinking layer runs 10 times a second and its movement layer 120 times (NVIDIA, 2025)

          Understanding pictures and language takes a lot of computing, so it can’t be done very often. Controlling motors is much simpler, so it can be repeated very often. This is like the layers in the body we saw in Level 1

          ⚡ How fast do nerve messages travel?

          The fastest nerve messages travel about 100 metres per second, or 360 kilometres per hour, roughly as fast as a racing car. Slow messages about a dull ache travel about as fast as a person walking.

          Signals in a robot’s wires are millions of times faster, but the brain still keeps up because billions of cells work at the same time. So wires win on signal speed, while the brain is good at doing many things at once.

          In our car A single wire is fast enough. The time that is really lost isn’t in the wire, but while the AI brain is thinking. You can see this in the time ladder below.

          🪜 Time ladder

          This axis goes up in steps, and each step is ten times bigger than the one before, so very fast things and things a thousand times slower fit in the same picture. Solid bar = body · diagonal-striped bar = robot · dashed-outline bar = our car. Tap any row to read the details.

          Body

          Robot

          Our car

          Tap any row to read the details

          Time ladder as a table
          ClassWhatTime
          BodySignal reaches the thigh muscle0.02 seconds
          BodyHand grips tighter when a glass slipsabout 0.07 seconds
          BodyLeg visibly starts to kick0.10 to 0.13 seconds
          BodyAdult sees, then presses on purpose (in a lab)0.2 to 0.25 seconds
          RobotOne round of the motor control loopNo more than 0.001 seconds
          RobotOne round of the arm control layer0.005 to 0.02 seconds
          RobotOne thought by a big AI brain0.1 to 1 second
          Our carSending one character at 9600about 0.001 seconds
          Our carWatchdog (set by us)1 second

          The body numbers come from adults in research studies. The robot numbers are estimates and vary from model to model. This is only a comparison.

          🛡 The safety layer must be separate from the AI

          A big AI can only think a few times a second. While we wait for it to think, the car keeps on moving. So the safety layer must be separate from the AI and must have the final say. It doesn’t need to be clever. It just needs to be fast and never fall asleep.

          In our car, the Arduino’s watchdog works like a reflex (see Level 8), and the HC-SR04 sensor from Project 3 in Lesson 16 could be a reflex too: if something is closer than 20 centimetres, stop first and think afterwards.

          The HC-SR04 part is an idea to build on. It hasn’t been built or tested on the real car yet.

          🚗 Give the robot a reflex

          Look at the car from above. It drives straight ahead, and after half a second a ball pops out in its way. The car’s AI brain thinks in beats. On every beat it checks whether the ball is closer than 30 cm yet. If it is, the AI orders a stop, but the command only reaches the wheels on the next thinking beat. After that, the car needs another 3 cm to brake to a standstill. Choose a speed, choose how many times a second the AI thinks, then press “Release the car”.

          While waiting for the AI to think (worst case 2 beats), the car can travel up to 70 cm.

          The car is parked at the start line. There’s no ball yet. Press “Release the car” to begin.

          Car speed (cm per second)
          How many times a second the AI thinks

          Release 10 times (not tried yet)

          Bar under the car = distance from the front of the car to the ball · Dashed line = once the front of the car passes this line, the AI sees the ball as close · Solid 🛡 line = the reflex layer’s line (20 cm) · Dashed bracket = distance the car keeps rolling while waiting · Solid bracket = braking distance · ✓ stopped in time · ✗ crash · 🛡 reflex helped

          Keyboard Tab moves from button to button · Left and right arrows pick a speed or how often the AI thinks · Enter or Space presses a button · While the car is moving, press Space or Esc = emergency stop

          Made-up numbers for this simulation

          🧠 You are the car’s brain

          A latency (delay) of a split second sounds tiny, but the car doesn’t stop and wait for us. Try being the car’s brain yourself. When the Stop sign appears, press as fast as you can. The time you take turns into the distance the car keeps rolling before it starts to brake. Then switch so the AI is the brain, and try changing how long the camera and AI take.

          Who is the brain?
          Car speed (cm per second)
          Made-up numbers. A real car depends on its motors and batteries.

          Rolling distance = speed × waiting time

          Total distance = rolling distance + braking distance

          When the sign appears, the front of the car is on the 0 line and the box is 40 cm away.

          Let’s say the car needs 2 cm to brake at slow speed and 4 cm at medium speed, and the command cable has a latency of 0.001 seconds. In “AI is the brain” mode, the sign always appears 1.5 seconds after you press start.

          Read before you play This number also includes the delay of your screen, mouse or touchscreen, which is different on every device. Some devices have a long delay, so you can’t compare numbers between devices. This game is just for fun. It is not a medical test. And don’t compare your number with grown-ups’ or friends’ numbers, because sleep, tiredness and the device you use can all change it.

          Keyboard Inside this box, press Space to start and to stop · Tab moves to the options · Left and right arrows choose the mode and speed, or move the distance slider · This page never saves your times. Every time you play again, you start from zero.

          Made-up numbers for this simulation

          Our loopIn the loop, the fast layers have to sit close to the body, because while the brain is thinking, the world doesn’t wait.

          Build step 3Choose a clear space on the floor, not on a table. Keep the speeds in the code as they are (150 and 160), because the slower the car goes, the shorter the distance it rolls while waiting for the AI. See step 10, “Drive on the floor”, in Level 9
          A child's hand throwing a blue beanbag past a clear glass prism that bends light, with several faint curved throw paths landing on a round floor target and one beanbag in the centre
          Level 5 · Layer 2: CerebellumPredict and learn from mistakes

          Guess first, then correct: Cerebellum and hands that feel, in people and robots

          When you reach out to pick up a glass of water, your brain doesn’t wait for your hand to bump into the glass before it starts thinking. Scientists think the brain predicts in advance where your hand will arrive and how heavy the glass will be, then keeps comparing that guess with the real feelings that come back. If the guess misses, the part it missed by is the lesson for next time. In this level we’ll try throwing a beanbag while wearing prism glasses and have a robot hand grip a paper cup to see how guessing first and then correcting helps both people and robots.

          Cerebellum is small but has lots of cells

          The cerebellum sits at the back of your head, below the big brain. It is only about 1/10 the size of the brain, but it has about 4/5 of all the nerve cells. Its job is to help coordinate movements and fine-tune them, so your hand reaches its target smoothly, without overshooting or falling short. You can read about the shaking that can happen when the cerebellum is injured in Lesson 16 and about the doctor’s touch-your-nose, touch-my-finger test in Lesson 13

          Guess first, then compare with the real thing

          Scientists think the cerebellum predicts in advance how a movement will feel, then compares that with the real feeling that follows. If they match, it carries on. If they don’t, the difference is the error it uses to correct next time. This is a leading theory with lots of evidence, but it isn’t a settled conclusion yet. Robots also use a model that predicts what will happen if they move in a certain way, for example which way the car will turn if the left wheel spins faster than the right. Then they compare that guess with what the sensors really measure.

          Why can’t you really tickle yourself?

          Try tickling the palm of your own hand, then let a friend tickle it. Your own tickle feels weaker, because your brain has already predicted how it will feel, so a touch it predicted isn’t surprising. With your friend’s finger, your brain can’t predict where or when it will touch. Brain scans hint that the cerebellum helps make this prediction.

          Glasses that shift the world

          Scientists have asked people to wear prism glasses that shift everything they see to one side, and then throw things at a target. At first people miss, then get a little closer to the target with each throw. When they take the glasses off, they miss the other way for a short while, because the brain is still using the correction it learned while wearing them. People with some kinds of cerebellum injury don’t adapt as well. The formula used in both the person and the robot simulations is:

          Correction=error×learning rate

          It’s the same idea as training the artificial neurons in Lesson 15 where the weights were nudged a little at a time based on the error. With a small learning rate, the corrections are tiny and slow. With a large one, they are quick but may swing back and forth.

          Try it: throw a beanbag while wearing prism glasses

          This picture is a view from above. It shows what the thrower’s eyes see. With the glasses on, the target your eyes see shifts 12 centimetres to the right. The dashed line is the direction your hand is aiming. Your hand knows its own direction from feelings in your muscles and joints, so the glasses don’t move your hand. They move the target your eyes see. Put the glasses on, throw several times, then take them off and see what happens.

          Not thrown yet. The target is straight ahead.

          ● With glasses on · ▲ After taking them off · ○ Before ever wearing them · Striped band = while the glasses are on · Middle line = on target

          Made-up numbers for this simulation
          Show as a table
          ThrowGlassesMissed by (cm)Learned correction (cm)
          Not thrown yet
          Who throws?
          Press the arrow keys to aim, then press Enter or the Throw button
          Learning rate of the simulated cerebellum
          0
          Throws so far
          -
          Last miss (cm)
          0.0
          Correction learned by the simulated cerebellum (cm)

          Start by throwing a few times without the glasses, then press “Wear prism glasses”.

          Keyboard: Tab to the aiming slider, press the left and right arrows to aim, then press Enter to throw · In option groups, use the arrows to choose · For other buttons, press Enter or Space

          Robots need to recalibrate themselves too

          Think of a robot arm that uses a camera to find things. If the camera gets knocked and tilts just a little, an object 60 centimetres away seems to shift by about 5 centimetres, so the arm misses when it grabs, just like a person wearing prism glasses. If it uses the formula correction = error × learning rate, it will gradually get accurate again by itself, without waiting for a person to retune it. This robot arm uses the same learning rate you chose in the beanbag game, which right now is 0.3

            Press the button to bump the camera, then watch the robot arm grab 10 times.

            Made-up numbers for this simulation

            Fingertips notice when a glass starts to slip

            When a glass starts to slip, touch receptors in your fingertips sense tiny vibrations, and your hand squeezes tighter within about 0.07 seconds (roughly twice as fast as squeezing on purpose). Then the brain adds a little extra grip, just in case, so it does not slip again. If the fingertips are numb, for example after numbing medicine from the dentist, people squeeze with the wrong strength and things slip out of their hands more easily, because the signals coming back from the fingertips are weaker. So the loop loses part of its Check the result step.

            Squeeze before it slips

            When you shake a water bottle up and down, your fingers grip tighter at exactly the moment the bottle is about to slip. In short: Squeeze before it slips (the brain predicts the pull ahead of time, so it does not wait for a slip and then fix it). So human hands use two things together: predict first, and feel then fix. In the game below, you can switch each of these on and off in the robot’s hand yourself.

            Try it yourself: hold the cup so it doesn’t slip or get squashed

            A two-finger robot hand is holding a paper cup. The cup will not slip as long as the grip is strong enough. The grip needed to stop it slipping depends on how hard the cup is pulling and how slippery the surface is. A wet surface is more slippery, so it needs a firmer grip. But if the grip goes over 100 units, the paper cup gets crushed. Try turning the switches on and off, then press “Pour water” or “Shake up and down”. A switch you change takes effect from the next round.

            Solid line: grip force Dashed line: force needed to stop slipping Diagonal stripes: the slip zone. If the solid line drops into it, the cup slips Dotted line: the cup gets crushed at 100

            Not started yet

            Made-up numbers for this simulation. The force units are not real units
            Playback speed
            -
            Result
            -
            Times it slipped
            -
            Times it felt a near-slip and squeezed harder
            -
            Highest grip (units)

            Turn the switches on or off, then press “Pour water” or “Shake up and down”

            Event log, one event at a time. Easiest to follow in 10× slow motion
            1. No events yet

            Keyboard: Enter or Space for the switches and buttons · arrow keys for the grip slider · arrow keys to choose the playback speed · arrow keys for the time slider, 0.01 seconds per press

            Many robots still have no sense of touch

            Human fingertips have touch receptors that keep telling the brain whether something is about to slip. But many robots still have no touch like this. They grip things by looking through a camera, then squeeze with a force that was set in advance. Robot skin that can tell when something is slipping is still research in progress. In Lesson 16 a person squeezed the prosthetic hand using muscle signals. In this lesson the robot squeezes by itself, using sensors and prediction, just like you tried in the game above.

            The brain doctor’s cornerThe correction rule in this simulation is the simplest possible kind. The real brain has many loops working at the same time, in the cerebellum, the big brain and the spinal cord. Scientists think the cerebellum works a bit like this kind of predictor and corrector, but it is still being studied. So the simulation helps you understand the idea. It does not mean the cerebellum is a computer program.
            A close-up of a two-finger robot gripper with soft rubber pads on its fingertips gently holding a white paper cup of water
            Robot skinRobot skin that can tell when something is slipping is still research in progress. Many robots still grip things using a camera alone.
            Activity at home Tickle the palm of your own hand, then swap and let a friend or a parent tickle it. Compare how it feels: which one tickles more? Then try one more thing: hold a water bottle with its lid screwed on tightly, shake it slowly up and down, and notice when your fingers squeeze tighter.

            Our loopThe Move and Check the result steps of the loop do not just wait to see what happens. They predict first, then use each mistake to correct the next try.

            Build stepOur car inLevel 9 has no touch sensor and does not predict ahead, so the Check the result step of its loop is your eyes. When you drive it on the floor (step 10), if the car turns too far, you see it and change your hand sign a little at a time, like the simulated cerebellum in the beanbag game. And if testing shows the AI often guesses your hand sign wrong, collect more pictures and train it again (steps 3 to 4). Every mistake is a lesson for our team.
            Two adult hands holding a small pair of leader robot arms that lift a towel, while a second pair of robot arms on the table copies the same movement to fold it
            Level 6 · Layer 3: How skills are learnedMostly built during training

            Where skills come from: copying, trying it yourself, and surprise

            In Level 1 we saw that a robot’s layer 3 is its skills, such as picking up, putting down and walking around things in the way. These skills are not created while the loop is running. Most of them were practised long before, like a footballer who practises dribbling thousands of times before a real match. In this level we will look at three ways robots get their skills: watching a person and copying, trying it themselves while a person helps correct them, and learning from surprise. Then you will see that a child’s body needs just as much practice.

            Way 1: Watch a person, then copy

            Imitation learning means a person drives the robot to show how a job is done, while pairs of data are saved at every moment: what the robot saw at that moment, and how the person told it to move. Then the AI practises answering like the person: when it sees a picture like this, it moves like that.

            Sound familiar? This is just like the cat and dog board in Lesson 15. The only difference is that the answer labels are not the words “cat” or “dog” but movements, such as “move forward”, “turn left” or “pinch”. Newer robots that use vision-language-action models (from the card in Lesson 16) also get most of their skills from examples like these.

            Teach the robot by driving it yourself

            Mission: drive the robot to pick up the ball, then take it to the box on the right. While you drive, every step is written down as one pair: what the robot sees, and the move you told it to make. Teach it for three or four rounds, then let the robot try on its own.

            Start by driving it yourself. Press the arrows to take the robot to the ball, then put it in the box. Every step is written down as one pair.

            0
            Examples collected: 0 pairs
            0
            Steps the robot took by itself this round (stops at 30)
            ·
            Distance to the most similar example (over 1.5 = never seen ❓)
            Data map · not holding the ball yet
            Data map · holding the ball

            ◎ The centre of the map is the goal. Each square is a place where the robot might be standing compared with the goal. An arrow is the move we taught most often at that spot. ? means there are no examples yet. The thick frame is what the robot sees right now. The robot can see at most 3 squares away. Anything further away looks just the same as 3. When it drives itself, the robot finds the 3 examples most similar to what it sees, then follows the majority vote. If even the most similar example is more than 1.5 squares away on the map, it shows the sign “Never seen this before ❓”

            Keyboard: tap the room picture or the arrow buttons, or reach them with Tab, then use the arrow keys on the keyboard to drive the robot · choose the driver with the left and right arrows · for other buttons, Tab to them and press Enter or Space · while the robot is driving itself, pressing an arrow at any time counts as helping to correct it

            Made-up numbers for this simulation A simulated room of 9 × 7 squares, not a real robot. The examples you teach stay on this page only. Close the page and they are all gone. Nothing is saved anywhere.

            Try it step by step. Tap to tick each one you have done

            What you just saw A robot that learns by copying is only good in situations similar to its training. Once the ball is in a new corner, or the camera shifts just a little, it has to guess from examples that are not very similar. The fixes researchers use are: collect lots of different examples, set the robot to stop and ask a person when it meets something it has never seen, and have a person help correct it when it makes a mistake, then keep that correction as a new example. In one test by researchers, done in a simulated world, just moving the camera or changing the arm’s starting position slightly made a robot that used to succeed almost every time fail much more often, because what it saw was not like its training.

            ALOHA: watching a person for only about 10 minutes

            In the ALOHA research (2023), a person controlled robot arms by moving another set of arms, and the robot arms copied every move. After being shown for only about 10 minutes, the robot could do 6 fiddly tasks, such as putting in a battery, and succeeded about 8 to 9 times out of ten overall.

            Later, Mobile ALOHA (2024), a robot on wheels, learned each household job by watching a person drive it about 50 times, and it got better when it also saw examples from other jobs.

            RT-1 and OpenVLA: huge piles of data

            RT-1 (2022) learned from about 130,000 recorded practice runs that 13 robots collected over 17 months, until it could do about 700 different tasks in kitchens and offices.

            OpenVLA (2024) is free for researchers to use. It was trained on nearly one million real robot examples collected by many institutions working together. Varied examples help a robot cope better with rooms it has never seen, but that does not mean it will never make mistakes.

            Way 2: Try it yourself, with a person helping to fix mistakes

            Copying alone has the weakness you just saw in the simulation: when the robot meets a new situation, it guesses from examples that are not very similar. So research from late 2025 made robots better by letting them really try the job, with a person helping to correct them when they got it wrong, mixing the trial and error from Lesson 16 with copying, a bit like when you pressed the arrows to help correct the simulated robot while it was driving itself.

            In a 2025 study, robots using a robot brain called π0.5 could tidy away dishes and clothes in homes they had never seen before, but the researchers themselves said they still often made mistakes. Training in a simulated world also helps a lot, but a simulated world cannot guess weight and slipperiness exactly right, so researchers change these values at random during training, to get robots used to not knowing for sure. See the “Practise in a simulated world first” card in Lesson 16.

            The body needs practice too

            Lesson 15 told us that children can recognise a new animal from just a few examples. That is true for remembering names and things, but movement skills are different. In one study, toddlers about one to one and a half years old took about 2,400 steps and fell about 17 times in one hour of play. Both people and robots need lots of practice and lots of mistakes.

            Language is a different story. A chatbot reads about ten thousand to a hundred thousand times more words than a child hears while learning to talk, yet children still learn language very well. Scientists think part of the reason is that children learn through their bodies, their eyes and the people around them, not from written words alone.

            A toddler's two bare feet stepping on a colourful play mat, showing only the feet and lower legs, with a toy rabbit and other toys nearby
            The body needs practice tooToddlers fall about 17 times in one hour of play. Movement skills are learned through practice and mistakes, in both people and robots.

            What does training data look like? Tap a card to see its unit

            The four cards use different units (minutes, runs, falls and times more). They cannot be compared directly, so they are not drawn on one shared graph. What they have in common is that body skills, in both people and robots, need lots of practice.

            Way 3: Learn from surprise

            There was a robot that learned to walk to the battery in Lesson 16 (do you remember it?). At every step it worked out its surprise (prediction error): the points it actually got, plus the points it expected to get from then on, minus the points it had expected before. If it was very surprised, it changed its score table a lot. If it was not surprised at all, it did not need to change anything.

            In an experiment with monkeys (1997), some dopamine cells fired a signal when a monkey got juice it did not expect. Once the monkey learned that a light meant juice was coming, the signal moved to the moment it saw the light. And if it expected juice but did not get any, the cells went quiet for a moment. This is similar to the surprise value of the Q-learning robot in Lesson 16. Try letting both of them learn side by side below.

            Surprise graph: monkey and robot

            Learned 0 rounds

            Press “Learn 1 round” and see where the surprise shows up

            Monkey: light → juice

            The top row is how much juice it expects. The bottom row is the surprise: positive above the line, negative below it. The numbers along the very bottom are time, from 0 to 9. The moment the light comes on cannot be guessed, so there is no expectation before the light.

            Lesson 16 robot: switch on → battery

            The robot walks right from square c0 to the battery, using the same numbers as Lesson 16: each step costs 0.1 points, finding the battery gives 10 points, points further ahead count only 0.9 as much, and it corrects halfway each time (0.5).

            Formula: surprise = reward + 0.9 × next square’s score − this square’s score, then new score = old score + 0.5 × surprise

            Press “Learn 1 round” and the calculator will show how the score of the chosen square changes

            A square’s score = the score for moving right in the Lesson 16 table

            Amazingly similar, but it is a comparison, not a copy. Scientists are still debating it. The brain does not run this program.

            Made-up numbers for this simulation The learning speed, rewards and timing in this picture were chosen for teaching. They are not values measured from real monkeys.

            Keyboard: Tab to a button, then press Enter or Space · use the left and right arrow keys on the α slider · choose a step in the calculator with the left and right arrow keys · the table under the graph shows every number

            Dopamine does many jobs

            Dopamine is not a “happiness chemical”, as people like to call it, and the brain does not run a robot program either. It helps with learning from surprise, getting ready to move, and wanting to take action. Scientists are still debating what exactly its signals mean.

            Ideas travel both ways

            A technique invented to help AI get better at video games led scientists to find that different dopamine cells in mice predict rewards in different ways, some in a more optimistic way and some in a more cautious way (in 2020). Knowing about the brain helps people build AI, and AI also helps people ask new questions about the brain.

            The brain doctor’s cornerThe surprise formula was first worked out in AI research, which had itself been inspired by studies of how animals learn. Later, brain scientists compared this formula with signals in monkey brains and found they were very similar. I like to tell this story as an example of how the two fields can help each other. But please remember: “similar” does not mean “the same”. Real brains have many kinds of dopamine cells doing many jobs at once, and the graph in this simulation cannot test or measure anything in your body.

            Our loopBefore the loop can run, the body has to practise its moves. Most of a robot’s skills are learned during training, and only then used in the loop.

            Build step 4In our project, you are the teacher and your hand signs are the labels. In step 3 of Level 9 you teach the eyes by holding up a hand sign or an arrow card to the camera and telling it whether the picture is Forward, Left, Right, Stop or Nothing (empty scenes and other objects), much like the people in research who control robots from a distance to show them what to do. Collect lots of different pictures, because you have just seen that robots make mistakes when they meet something they never saw in training.
            A yellow industrial robot arm in a factory standing inside dashed rings painted on the floor, red inside and yellow outside, with a red emergency stop button on a yellow and black post in front
            Level 7 · Safety layerSafety matters more than cleverness

            Safety is bigger than AI, and a good robot knows when to ask a person

            However clever a robot is, it can still make mistakes. Its eyes may see something wrongly, the AI may give a wrong command, or someone may suddenly walk up close while the robot arm is working. So every robot loop has a Safety layer underneath it. This layer does not need to be clever, but it must be fast and reliable, and it has the right to stop everything, even if the AI wants to carry on. Another skill a good robot needs is knowing when to stop and ask a person. Try being the person walking towards the robot arm in the simulation below, and see who decides how fast the arm moves.

            Try it: safety zones around a robot arm

            This robot arm is picking things up from a table. The AI that acts as its brain wants the job done quickly, while the safety layer keeps watch on how close people are. Move the slider or press the button to walk closer. Try switching the AI’s command on and off, try making the arm hold something sharp, then press emergency stop and see what it takes before work can start again.

            • Solid line ⏸ Stop Inside this ring the arm must stop, speed 0%
            • Dashed line ◐ Slow Between the solid and dashed lines, the arm slows down to 30%
            • Dotted line ✓ Normal Beyond the dashed line, the arm can work at up to 100%

            Keyboard in this box · ← walk closer · → step back · S or Space for emergency stop (Space works when you are not on another button)

            Person is 2.5 metres away · ✓ Normal zone

            AI command: go faster 150%
            🛡 DeciderSafety layer decides: Normal zone, allows up to 100%
            Actual arm speed100%

            AI asks for: 150% · Safety layer allows: 100%

            AI asks for 150%, but this arm is limited to 100% at most

            The distances in the picture are made-up numbers. Real ones are calculated from each robot’s speed, task and stopping time.

            Made-up numbers for this simulation

            Did you notice that this simulation has no button to switch off the safety layer? We left it out on purpose, because real robots should not have a button like that either, one that would let the AI or anyone else skip it easily. The safety layer must be working the whole time the machine is switched on.

            🛡 A layer separate from AI that outranks it

            The safety layer works separately from the AI and outranks it. If the emergency stop button is pressed, or a sensor detects a bump, the robot must stop, whatever the AI is telling it to do, and a person must check and reset it before it can start again.

            Why keep them separate? Because if the AI freezes or gets something wrong, the part whose job is to stop it must not freeze or go wrong along with it. And why a two-step restart? If the robot went back to work by itself the moment the button was released, someone might still be standing in a dangerous spot. So the emergency stop stays locked on until a person has checked and started the robot again themselves.

            Our bodies have something similar. When you step on something sharp, your spinal cord can start lifting your foot away, often before your brain fully feels the pain (Level 4). But this is only a comparison, and it is just for reading about. Never try it out for real.

            🚶 Slow down when people come near, stop when they are too close

            Robots that work near people must slow down when someone comes near and stop when they get too close. If there is a bump, the force must not go over a set limit, and that limit is different for different parts of the body, because each part of the body can take a different amount of force.

            In real robots, the distance at which slowing down starts is not just picked at random. Engineers calculate it from the arm’s speed, the task it is doing, and how long the robot takes to come to a complete stop. The faster the arm moves, or the more slowly it stops, the wider the zone has to be, rather like a car going fast needs to leave more space behind the car in front.

            ⚠ Safety depends on the whole job

            The industrial robot standard ISO 10218, updated in 2025, treats safety as something that depends on the whole job. A robot arm holding something sharp does not count as safe enough to work near people, even if the arm itself is a model designed to work near people.

            Think about the same robot arm. Holding a sponge, it might be able to work beside people, but holding something sharp or hot, the whole job becomes more dangerous straight away. In the simulation above, when you switch on “Arm holding something sharp”, the stop ring and the slow ring become twice as wide.

            🧠 Newer robot brains help keep watch, but do not replace the safety layer

            Some robot brains in 2026 are designed to notice when a person comes near and bring the robot to a safe stop, but the basic safety layer must still always be kept separate.

            The reason is that big AI models can still make mistakes, and they think more slowly than the lower layers (Level 4). So the basic safety layer should be simple, easy to check, and still work even if the AI freezes, just like the watchdog in our car’s Arduino, which stops the wheels by itself when the web page goes quiet (Level 8)

            Our car’s safety layers The STOP button on the web page and the Esc key; the decider that sends S when the AI is less than 80% confident; the watchdog in the Arduino that stops the wheels by itself after more than 1 second of silence; and finally, the battery switch within an adult’s reach. All of these sit outside the AI’s brain and override every command it gives.

            A good robot knows when to ask a person

            Asking is not a weakness, it is a skill. A robot that confidently picks up the wrong thing is more dangerous than a robot that stops and asks. A robot should ask a person when: the command is unclear · its confidence is below the threshold · it has tried and keeps failing · it is a task it has never trained for · it is a task that could put people at risk

            Unclear commandIt is told “pick up the round thing, please”, but the table has both an apple and a ball on it. It should ask “Do you mean the apple or the ball?”
            Confidence below the thresholdFor example, the AI answers Left with only 65% confidence, but our car’s threshold is 80%. Not sure means stop first, then ask (Level 2)
            Keeps failingA glass slips from its grip twice in a row. It should stop and call a person, rather than try a tenth time until the glass breaks.
            A task it has never trained forIt is asked to wipe the table even though it has never trained for that, so its “Doable” score is zero (Level 3). It should say so honestly and offer something it can do instead.
            A task that is risky for peopleLifting a pot of hot water, or working near a little brother or sister, always needs a person to confirm first.

            When a robot asks, someone has to answer, so people are part of the loop too. In our car, you are the one who checks the result and changes the hand sign, and you can press STOP at any time (Level 9)

            6 mistakes AI makes once it has a body

            The AI mistakes from Lesson 15 can become real-world mistakes once AI has a body. When AI lives only on a screen, a mistake means a wrong answer. But when AI is connected to wheels or an arm, the same kind of mistake becomes a wrong movement in the real world. Tap each card to flip it and see what the mistake turns into, and which layers help to guard against it.

            Tap a card to flip it and see what an on-screen mistake turns into when AI has a body

            Keyboard · Tab moves from card to card · Enter or Space flips a card or flips it back · the link under each card takes you back to review Lesson 15

            Watch robot videos wisely: ask three questions

            There are loads of videos of amazing robots on the internet. In some, the robot really does it by itself, but many have things the video does not tell you. Before you believe one or share it, try asking these three questions. Tap a card to see what to look out for.

            1 By itself, or controlled by a person?

            Many robots are controlled by people from a distance, using a joystick or a leader arm, which is a good way to collect examples to teach AI (Level 6). But if the video does not say so, viewers will wrongly think the robot did everything by itself. Look for a caption that says whether it acted by itself or was controlled by a person.

            2 Is the video sped up?

            Many real robots still move more slowly than people, so videos are often sped up to make them look quick and exciting. Check the corner of the screen for numbers like 2x or 10x, and watch whether people or other things in the scene move unnaturally fast.

            3 How many tries did it take to get this video?

            The video you see might be the one success picked out of dozens of tries. Ask how many times out of ten it succeeds. Good research reports this number and lets you see the failed videos too.

            Good research clearly labels which videos show the robot acting by itself, which show it controlled by a person, and which show failures. If a video tells you nothing at all, that does not mean it is fake, but it does mean we do not know yet. Keep your questions in mind before you believe it.

            🏭 Real jobs today

            In 2024, a two-legged robot called Digit started working in a warehouse, lifting plastic boxes onto a conveyor belt, a repetitive job with clear limits. In 2025 and 2026, most two-legged robots in factories and warehouses are still in pilot trials, and nearly all the newest robot brains are still in research labs, or open only for developers and partner companies to try out. They are not yet something you find in ordinary homes. This lesson does not predict when robots will arrive in our homes.

            Notice that the first real jobs robots get are usually repetitive jobs in clearly marked-out areas, where it is easier to set up safety layers than in a home, where both things and people keep moving around.

            A white two-legged robot in a warehouse lifting a grey plastic crate onto a conveyor belt between rows of shelves
            Real jobs todayTwo-legged robots started working in warehouses in 2024, on repetitive jobs with clear limits. Most are still pilot projects.
            For parentsWatch a robot video together with your child and try asking the three questions above as you go. It is practice in thinking like a scientist, and it works for any news story. As for the car in this lesson’s project, please have an adult stay near the battery switch whenever the car is switched on, and be the one who decides when to restart after pressing stop, just like the two steps in the simulation.

            Our loopEvery command in the loop must pass through 🛡 before it reaches the body, and people are part of the safety layer too.

            Build step 5Make a list of 8 tests to run with the wheels off the ground. Write it beforehand and stick it on the side of the car. Every test must pass before you put the car on the floor. For example: with an empty scene, the wheels must stop; pressing STOP or pressing Esc must stop the wheels; switch to another tab and the wheels must stop within about 1 second. See the full list in step 9 of the Level 9 project
            A clear USB cable with golden points of light travelling inside it, like signals in a nerve, running from an open laptop to a blue circuit board on a small robot car
            Level 8 · Send the commandThe USB cable is the nerve

            Our car’s nerves: one letter, a heartbeat and a watchdog

            For the brain and the body to work as one team, there has to be a way for commands to get from one to the other. In our bodies, that is the nerves. In our car, it is a single USB cable. In this level we follow one command, from a camera picture made of more than a hundred thousand numbers, all the way down to a single letter running down the cable and turning into spinning wheels. Then you will meet the small signal the web page sends over and over to say “I’m still here” and the watchdog in the Arduino, which stops the wheels by itself when the cable goes quiet for more than 1 second

            Our car’s whole loop

            The car in the Level 9 project is connected like this. Each box passes its work on to the next. This level zooms in on the USB cable box, which sits in the middle, between the brain and the body.

            1. Cameraon the computerEyes
            2. AITeachable MachineBrain
            3. Decider 80%Unsure = S(Decision-making)
            4. USB cableF L R SNerves▲ You are here
            5. Arduino + watchdogReads the letterSpinal cord
            6. Wheels2 motorsMuscles

            The bottom row in italics shows the parts of our body that do a similar job. It is a comparison to help you remember, and does not mean the car really has a brain or nerves.

            📨 One letter, the same rules for both sides

            The web page sends just one letter down the USB cable: F go forward L Turn left R Turn right S Stop. Both sides must agree on the same set of rules, which is called a Protocol in computer talk. Arduino only pays attention to these four capital letters and skips any others.

            It’s like a secret code you agree on with a friend before a game. If your friend doesn’t know that F means forward, the letter means nothing at all. A small f, or any odd letter that strays onto the wire, is simply ignored by Arduino, and it doesn’t count as hearing a signal either. This will matter a lot when we meet the watchdog below.

            Why use a single letter? Because it’s the shortest, quick to send and easy to check. The hard work, like looking at pictures, is left to the AI on the computer.

            ⏱ Sending speeds must match

            The sending speed must be set the same on both sides. This project uses 9600 for both. If they don’t match, the letters come out garbled. At 9600, sending one letter takes about one millisecond, so the wire isn’t the slow part. The slow parts are the camera and the AI.

            9600 means 9600 beats can be sent in one second. The Arduino code says Serial.begin(9600) and the web page says baudRate: 9600 to match. If one side counts the beats fast and the other counts them slowly, it’s like one person talking very fast while the other listens at a slow pace: they hear every sound but understand it all wrong.

            One millisecond is one thousandth of a second. Even a single blink lasts a hundred times longer or more. The camera, though, has to take a picture, and then the AI has to work with more than a hundred thousand numbers every round, so they take much longer than the wire.

            🔐 A person must choose the port

            The web page can’t secretly connect to a device by itself. A person has to click a button and choose the port from a list every time. A port can only be used by one program at a time, so close Serial Monitor first. After connecting, the web page waits 2 seconds, because Arduino usually restarts when the port opens, and then it always sends S first.

            A port is the channel the USB cable opens so a program can talk to the board. Browsers are made so that only a person can give permission. That way, no website can secretly control things plugged into our computer. And a web page can only use ports if it is opened from localhost or https.

            We always send S first so the loop starts from stop, not from some leftover command that came from who knows where.

            Try it: the journey of one command

            Choose which hand sign to hold up to the camera, then press “Next” one step at a time, or press “Send the whole route”, to see how one picture turns into spinning wheels. Then try pressing “Cut this step” on some of the steps and see where the loop breaks. Try the 🤏 Unclear hand sign too.

            Hand sign shown to the camera

            • Done
            • In progress, thick border
            • Waiting, dashed border
            • Cut out, hatched
            • Nothing arrives

            Step 1 of 7 · Camera

            Keys in this box · ← previous step · → next step · P send the whole route · X cut this step or put it back · in the hand sign row, use the arrow keys to choose a sign

            No steps cut yet

            The AI percentages in this picture are a simulated example, not a real AI. But the wheel speeds of 150 and 160 and the letter codes are real values from the project’s code.

            Made-up numbers for this simulation
            Going deeper: on the real wire

            A letter doesn’t travel down the wire all in one lump. It is sent one beat at a time, as power on (1) or power off (0). While the wire is idle, it stays at 1. When it’s time to send, the sender sends a 0 for one beat as a start bit to say “I’m starting!”, like knocking on a door. Then come 8 bits of data, sent with the smallest-value digit first and, at the very end, a stop bit, which is a 1. That makes 10 beats for each letter. This way of sending is called 8N1 because it has 8 data bits, no check bit (N) and 1 stop bit.

            In a real USB cable, the letter is first wrapped up in a USB packet. Then a converter chip on the Arduino board passes it on to the main chip as beats like these, at a speed of 9600.

            The receiver doesn’t share a clock with the sender. It spots the start bit, then counts the time by itself to work out where the next bit is. If the speeds are set differently, it reads out of step and the letter comes out garbled. Change the hand sign above to see other letters.

            💓 The “I’m still here” heartbeat and the watchdog

            The web page sends a letter as soon as its decision changes, and resends the same letter every 0.4 seconds as the “I’m still here” signal. If Arduino doesn’t receive a valid letter for more than 1 second, it stops the wheels by itself.

            the watchdog (the word literally means a dog that guards a house) is a small timer in the Arduino code. Every time it gets a valid letter, it starts counting again from zero. If it counts past 1 second without hearing anything at all, it stops the wheels by itself, without waiting for anyone’s permission.

            lastCommand = millis();   // got a good letter, note the time
            if (millis() - lastCommand > WATCHDOG_MS) drive(0, 0);
                                      // quiet for over 1 second, stop the wheels

            Why resend? If the page only sent when the hand sign changed, then while we kept holding up the forward sign, the web page would go quiet. The watchdog would think the brain had disappeared and stop the car even though nothing was wrong. Resending every 0.4 seconds means Arduino hears it about twice in each second, so missing one still won’t make it stop.

            🔁 Sent from inside the AI’s loop, on purpose

            The “I’m still here” signal is sent on purpose from inside the loop where the AI guesses each picture. If the AI freezes or the tab is hidden, the loop stops, the signal stops, and the car stops by itself. If we moved it to a separate timer, that timer would keep sending the old command even though the AI was no longer looking at the picture.

            So this signal doesn’t just say the cable is still connected. It says the brain really is still watching. Every time the AI finishes guessing one picture, the web page asks itself: has the answer changed, or has it been quiet for more than 0.4 seconds? If so, it sends. If this loop isn’t running, nobody sends anything.

            // inside the AI’s loop, after finishing one guess
            if (letter !== lastSent ||
                performance.now() - lastSentAt > HEARTBEAT_MS) await send(letter);

            Browsers usually pause loops like this when the tab is hidden, but the details depend on the browser. So you must test it for real with the wheels off the ground: switch to another tab and check that the wheels stop within about 1 second. This is item 8 on the test list in Level 9

            Try it: the “I’m still here” timeline

            This simulation draws the last 5 seconds as three rows. The top row is the letters the web page sends, the middle row is the watchdog counting how long it has been quiet, and the bottom row is the wheels. Start with mode (a), keep holding up the forward sign, and see what happens after 1 second. Then switch to mode (b), which is how the real project works. Try making the AI freeze, hiding the tab or unplugging the cable, then compare with mode (c).

            • Tall line = sent because the hand sign changed
            • Short line = resent, the “I’m still here” signal
            • Short line with a circle = sent by a separate timer
            • Dashed line ✗ = sent but didn’t arrive, because the cable came out
            • Sawtooth = the watchdog counting, then starting again every time a letter arrives · Horizontal dashed line = 1 second · ■ = wheels stopped
            • Wheels ▲ ◀ ▶ = turning · ■ = stopped · ? = no one knows what the wheels are doing

            Hand sign (keys 1 to 4)

            Sending method

            Make something go wrong

            After pressing STOP, choose a hand sign again to turn the camera back on

            Pause / step by step

            In this simulation the AI’s loop guesses about 15 times per second (made up). The real number depends on the computer and the model. The 0.4 second and 1 second values, though, are the same as in the project’s code.

            Made-up numbers for this simulation

            Keys in this box · 1 to 4 choose a hand sign · J AI frozen · H hide the tab · K unplug the cable · Esc STOP · P pause · N one step · in the sending method row, use the arrow keys to choose

            🔌 If the cable comes out, the watchdog switches off too

            If the USB cable comes out, Arduino has no power and the watchdog can’t work. With the motor batteries still connected, we don’t know for sure yet what the motor driver board will do. So the rule is: press STOP, turn off the battery switch, and only then unplug the cable.

            In our car, Arduino gets its power from the USB cable, while the motors get theirs separately from the battery holder. The watchdog lives in Arduino’s code, so if the board loses power, the guard falls asleep too and nobody is left to call stop. That’s why we always cut the motors’ power first.

            1. ■ Press STOP The web page sends S and the wheels stop
            2. 🔋 Turn off the battery switch The motors have no power now
            3. 🔌 Unplug the USB cable Now it’s safe

            If the cable comes out by itself while the car is moving, an adult should turn off the battery switch straight away. That’s why an adult needs to stay near the battery switch the whole time the car is on.

            👀 Our car’s loop runs through us

            The camera is on the computer, not on the car, so when the car moves, the camera doesn’t get a new view of the road. The person who watches the car and changes the hand sign is the eyes that check the result. So our car’s loop runs through us (human-in-the-loop, see Lesson 15). One day, if we put a camera and a single-board computer on the car, the loop could close without a person.

            TodayCamera sees hand → AI → cable → car moves → you watch the car → change the hand sign → loop again

            One dayCamera on the car sees the road → computer on the car → wheels → camera sees the new road by itself → loop again

            Even if the loop can close by itself, the safety layers and a person who can press stop must always still be there (Level 7). Look back at the first simulation once more: its last step, the arrow that loops back, is you.

            The brain doctor’s cornerIn this level we compared the AI in the browser to the brain, the USB cable to a nerve, and the watchdog to a spinal cord reflex. These are all just comparisons to make things easier to remember. The real spinal cord has short loops that can respond quickly without waiting for the brain (Level 4). The watchdog is similar in that it sits close to the wheels and can decide to stop by itself, but the spinal cord works together with the brain all the time and is far more complex than this one-line rule. And nerves don’t send letters either. They send electrical signals along nerve fibres, and pass them on from cell to cell using chemicals.
            For parentsThe part that definitely needs an adult is the shutdown order: press STOP, turn off the battery switch, and only then unplug the USB cable. This is because when the cable comes out, the watchdog in Arduino switches off too, and nobody has tested yet what the motor driver board will do at that moment. If the battery holder on the car from Lesson 16 doesn’t have a switch, replace it with one that does before starting the project. Play on the floor only, and never leave the car running with no one watching.

            Our loopThe cable is the loop’s nerve. If the nerve goes quiet, the body must stop by itself.

            Build step 6Verify, then Upload ai_driver_car and close Serial Monitor. Open the web page through localhost, following steps 6 to 8 of the Level 9 project (keep the battery switch off while uploading)
            A child's two hands holding up a paper card with a right-pointing arrow in front of a laptop with a camera at the top, and a small robot car on the wooden floor linked to the laptop by a long slack USB cable
            Level 9 · BuildBrain in the browser, body on the floor

            Build it yourself: an AI that drives the car

            Time to build the real loop with our own hands. The AI you trained yourself in Teachable Machine will be the Brain living in the browser, the car from Lesson 16 will be the Body on the floor, and the USB cable will be the Nerves, carrying the letters one at a time. You hold up arrow cards to the camera, the AI guesses which sign it is, and the car moves to match. Everything we’ve learned from Levels 0 to 8 comes together here: the 80% threshold, the “I’m still here” signal, the watchdog, the safety layers and the person in the loop.

            To be honestThe web page has been tested with a simulated car and a simulated camera, but not yet with a real car and a real camera. The logic of the Arduino code has been tested on a computer, but it has never been compiled onto a board. You must press Verify in the Arduino program before using it.

            The project page is separate from the lesson page

            The project page is separate from the lesson page because it has to load two AI libraries from cdn.jsdelivr.net and load the model from Google’s servers. The lesson page doesn’t load any AI, doesn’t use the camera and doesn’t send pictures anywhere. Camera images are processed in the browser, and the project page doesn’t upload them anywhere.

            But the link to the model you uploaded is a public link, so anyone who has it can use the model. That’s why we train the AI only with arrow cards or hand signs, and never film anyone’s face.

            Use a computer, not a phone

            Use Chrome or Microsoft Edge on a Windows, Mac, Linux or ChromeOS computer. Safari, iPhone and iPad won’t work. Newer versions of Firefox and of Chrome on Android support it now, but they haven’t been tested with this project yet, so we recommend using a computer.

            Every step shows which level it uses

            Every step says which level its knowledge comes from. Under each step there is a compass tag showing that step’s key idea. Tap the level name to jump straight back and read it. For example, if you forget where the 80% threshold comes from, go back to Level 2.

            Project kitDownloadableSeparate page, needs the internet

            AI Driver project kit

            All the project files are on the project kit page, which is a separate page from this lesson. The kit has three files.

            • ai-driver.html The AI brain web page, with the buttons 1. Connect robot · 2. Start camera · STOP (Esc). The text on this page is in English.
            • ai_driver_car/ai_driver_car.ino The body code for the Arduino board on the Lesson 16 car
            • README_TH.txt How to open the web page, the quick steps and the safety rules, in Thai

            The project kit page is on a website whose address starts with https. You can open the AI Driver page from there straight away, with no commands to type. Before you open it, ask a grown-up to read the part about the internet and privacy on that page together with you.

            What you needUses the same car from Lesson 16

            Get everything ready

            A side view of a robot car propped on a small wooden block under its body so its yellow wheels hang above the table with a gap underneath, and an adult hand resting near the battery holder switch
            Wheels off the ground first, always Test with the wheels off the ground every time before putting the car on the floor, and a grown-up stays near the battery switch the whole time.
            PartNotes
            The car from Project 2 of Lesson 16 with an Arduino Uno, an L298N (ENA/ENB jumpers left on), 2 gear motors with wheels, a caster wheel, a holder for 4 AA batteries, the chassis and jumper wiresPins D5, D6, D9, D10 and the drive() function all stay exactly as before. The IR sensors on D2 and D3 can stay where they are. This code just doesn’t use them.
            Battery holder with an on/off switchYou must have this. If your holder has no switch, ask a grown-up to swap it for one that does.
            Long USB cable for the UnoLong enough to hang loose
            A computer with a webcam + Chrome or Edge + Arduino IDENot a phone or tablet
            4 paper cards: an up arrow, a left arrow, a right arrow and an open palmNever use people’s faces
            A box or books to lift the wheels, and clear space on the floorYou can mark the edges of the driving area with sticky tape

            Why a battery switch? Because the switch is the final way to stop the car, and it sits completely outside the AI brain. If the web page freezes, a cable comes loose or anything else goes wrong, a grown-up flips the switch off and the motors lose power straight away.

            Buying the parts on Lazada

            Each button opens a Lazada search in a new tab and is not tied to any one shop. An adult should choose the shop and place the order.

            Easiest: buy a complete kit. A line-follower car kit costs about 550 to 750 baht. Read the list of what is in the box before buying. Most kits have no HC-SR04 sensor and no long USB cable, and the battery holder may have no switch, so add those from the table below.

            Search Lazada for kits

            Or buy the parts one by one. About 400 to 700 baht in total, not counting batteries.

            PartApproximate priceCheck before you buySearch
            Arduino Uno R3 board with USB cable140 to 220 bahtSome shops sell the board without the cable, so check that a USB cable is includedLazada
            L298N motor driver board40 to 75 bahtA red board with a black heatsinkLazada
            Two-wheel car chassis with motors90 to 150 bahtIt must come with 2 yellow gear motors, 2 wheels and a free-spinning caster, not just a bare acrylic plateLazada
            2 TCRT5000 sensor modules20 to 35 baht eachChoose the module with a small circuit board and 3 pins, not the bare sensor that costs a few baht, and not the 5-channel versionLazada
            4 x AA battery holder with a switch20 to 45 bahtIt must have an on/off switch so you can cut the power at onceLazada
            Jumper wires15 to 30 bahtGet both male-to-female and male-to-maleLazada
            HC-SR04 ultrasonic sensor, for project 3 in Lesson 1630 to 60 bahtYou only need it for the obstacle-avoider projectLazada
            3-metre USB cable, for the AI Driver project in Lesson 1720 to 45 bahtCheck the socket on your board first: most use Type B, but some use Type-CLazada

            Approximate prices from Lazada search pages in September 2026. Shops and prices change all the time. Choose shops with good reviews that ship from within Thailand. This website receives no payment from any shop or from Lazada.

            12 stepsAlways work with a grown-upTest with the wheels up before driving on the floor

            12 steps, from checking the car to packing away

            Follow these steps in order, one at a time. Under each step there is a tag that tells you which idea the step uses and which level it comes from. If a step doesn’t pass, don’t skip ahead to the next one. Always go back and fix it first.

            1. Check the body first Upload the test code from Lesson 16 and put the car on a box so the wheels are off the ground. Check that drive() turns both wheels forwards. If a wheel turns backwards, swap that motor’s wires (the same way as in Lesson 16). Do this step before you upload the new code, because once you upload the new code, the old code is gone.

              The body must be ready before the brain can drive · Level 0

            2. Make 4 cards An up arrow, a left arrow, a right arrow and an open palm. Draw the arrows big and thick, almost filling the paper. Use a dark pen on light paper so the camera can see them more clearly.

              The classes are the answers the AI can choose from · Level 2

            3. Teach the eyes On Teachable Machine create an Image Project. Name the classes Forward Left Right Stop (it doesn’t matter if you use capital or small letters, or leave a space at the end of a name, but they must be these English words), then add a fifth class Nothing for an empty scene and any other objects, which the web page turns into S for you. Collect at least 50 pictures for each class: in bright and dim light, close up and far away, with several different people’s hands, in the room where you will really drive. Only photograph the cards or hands, never faces. Don’t press the flip button (it mirrors the picture). If you press it by accident, change the third argument of new tmImage.Webcam(224, 224, true) to false in the code. To edit the code, you need the files on your computer: download the kit zip, then edit ai-driver.html in a text editor, then open it using the second way in Step 7 (localhost). You can’t edit the page on the website.

              The Nothing class · Varied pictures · Keep the flip setting the same for training and driving · Level 2 · You are the teacher · Level 6

            4. Train, then test in the preview Train the model, then hold up one card at a time in the Teachable Machine preview. Every sign should reliably reach 80%, and an empty scene should show Nothing. Try holding something you never taught it and watch the bars. If it doesn’t pass, collect more pictures and train again.

              Confidence and the threshold · Level 2

            5. Export → Upload my model → copy the link Wait until you get the model’s link, then copy it and keep it safe. ⚠ Anyone with the link can use this model (Google says that during training the example pictures stay on your computer, unless you choose to save the project to Google Drive.)

              Privacy: the link is public, so we use cards, not people’s faces

            6. Set up the new body Keep the battery switch off. Open ai_driver_car.ino in the Arduino IDE and press Verify first. If there are no errors, press Upload. Close the Serial Monitor window because only one program can use the port at a time. This code always starts by stopping the wheels with drive(0, 0) and it has a watchdog that stops the wheels by itself if it doesn’t hear one of the right letters for more than 1 second.

              Protocol · Start from stop · Watchdog · Level 8

              See the whole Arduino file ai_driver_car.ino

              This file is very short, so you can read all of it. The pins, the motors and drive() are the same as in Lesson 16. What’s new is reading letters from the USB cable, plus the watchdog.

              // AI Driver car: the web page's AI sends ONE letter over USB serial, the Arduino drives.
              // F = forward, L = left, R = right, S = stop. Pins and drive() are the same as lesson 16.
              const int L1 = 5, L2 = 6, R1 = 9, R2 = 10;   // L298N IN1, IN2, IN3, IN4 (ENA/ENB jumpers stay on)
              const unsigned long WATCHDOG_MS = 1000;      // no good letter for 1 second = stop
              unsigned long lastCommand = 0;               // time (ms) of the last good letter
              
              void drive(int left, int right) {            // speeds from -255 to 255
                analogWrite(L1, left  > 0 ? left  : 0);
                analogWrite(L2, left  < 0 ? -left : 0);
                analogWrite(R1, right > 0 ? right : 0);
                analogWrite(R2, right < 0 ? -right : 0);
              }
              
              void setup() {
                pinMode(L1, OUTPUT); pinMode(L2, OUTPUT);
                pinMode(R1, OUTPUT); pinMode(R2, OUTPUT);
                drive(0, 0);                               // always start with the wheels stopped
                Serial.begin(9600);                        // must match baudRate: 9600 in the web page
              }
              
              void loop() {
                while (Serial.available() > 0) {           // read every letter that has arrived
                  char c = Serial.read();
                  if      (c == 'F') drive(150, 150);      // forward
                  else if (c == 'L') drive(0, 160);        // right wheel only = turn left
                  else if (c == 'R') drive(160, 0);        // left wheel only = turn right
                  else if (c == 'S') drive(0, 0);          // stop
                  else continue;                           // ignore any other byte (it does not feed the watchdog)
                  lastCommand = millis();                  // a good letter feeds the watchdog
                }
                if (millis() - lastCommand > WATCHDOG_MS) drive(0, 0);  // lost contact with the AI: stop
              }
            7. Open the brain page You can open the AI Driver page in Chrome or Edge in two ways. The easiest way is to open it from the project kit page which has an address starting with https. The browser counts https pages as safe, so it lets them use the port and the camera. You don’t need python at all. The other way is for when you want to open it from files on your computer. A grown-up opens Terminal in the folder with the files and types python3 -m http.server and then opens http://localhost:8000/ai-driver.html in Chrome or Edge. (Double-clicking the file directly might work in Chrome, but this hasn’t been confirmed yet.)

              The browser only lets safe pages use the port and the camera · Level 8

            8. Connect the loop with the wheels off the ground Put the car on the box, turn the battery switch on and press 1. Connect robot and choose the port from the list. The page waits 2 seconds (the Arduino often restarts at this point), then sends S first. Paste the model link and press 2. Start camera and allow the camera. The AI line will show something like AI: Forward 93% -> F

              The full loop: sense, think, send, move · Level 0 · Level 8

              See the key parts of the AI Driver page’s code

              Here are some parts of ai-driver.html copied exactly as they appear in the real file. The full file is on the project kit page.

              1. Key numbers, the threshold and the “I’m still here” heartbeat

              const THRESHOLD = 0.8;    // below 80% sure = not trusted = Stop
              const HEARTBEAT_MS = 400; // re-send the current letter so the Arduino's 1000 ms watchdog stays fed
              const LETTER = { forward: 'F', left: 'L', right: 'R', stop: 'S' };
              const key = (name) => name.trim().toLowerCase(); // "Forward " and "forward" both count

              2. The Connect robot button waits 2 seconds, then starts with S

              // Button 1: the browser shows a list of serial ports (only works from a click)
              $('btnSerial').onclick = async () => {
                if (!('serial' in navigator)) return say('No Web Serial here. Use Chrome or Edge on a computer.');
                try {
                  const port = await navigator.serial.requestPort();
                  await port.open({ baudRate: 9600 });    // must match Serial.begin(9600) on the Arduino
                  const w = port.writable.getWriter();
                  say('Connected. Waiting 2 seconds while the Arduino restarts...');
                  await sleep(2000);                      // an Uno usually resets when the port opens
                  writer = w;
                  await send('S');                        // always begin stopped
                  say('Robot connected. Now start the camera.');
                } catch (e) {
                  say('Could not connect: ' + (e.message || e));
                }
              };

              3. One turn of the loop: sense, think, send the command

              // One turn of the loop: SENSE (camera) -> THINK (AI) -> ACT (send a letter)
              async function loop(id) {
                if (id !== runId) return;                          // STOP was pressed
                webcam.update();                                   // SENSE: grab a new frame
                const preds = await model.predict(webcam.canvas);  // THINK: [{className, probability}, ...]
                if (id !== runId) return;                          // STOP was pressed while the AI was thinking
                const top = preds.reduce((a, b) => (b.probability > a.probability ? b : a));
                const sure = top.probability >= THRESHOLD;
                const letter = sure ? (LETTER[key(top.className)] || 'S') : 'S'; // unsure or unknown class = Stop
                // ACT: send only when the decision changes, plus a heartbeat repeat.
                // This loop pauses when the tab is hidden, so heartbeats stop and the Arduino stops itself.
                if (letter !== lastSent || performance.now() - lastSentAt > HEARTBEAT_MS) await send(letter);
                $('ai').textContent = `AI: ${top.className} ${Math.round(top.probability * 100)}%` +
                  (sure ? '' : ' (not sure)') + ` -> ${letter}`;
                requestAnimationFrame(() => loop(id));
              }

              4. Emergency stop: send S first, then turn off the camera

              // Emergency stop: the button or the Esc key
              async function emergencyStop() {
                runId++;                                           // ends the loop
                await send('S');                                   // stop the wheels first
                if (webcam) { webcam.stop(); webcam = null; }      // then switch the camera off
                $('btnCam').disabled = false;
                say('Stopped. Press Start camera to try again.');
              }
              $('btnStop').onclick = emergencyStop;
              document.addEventListener('keydown', (e) => { if (e.key === 'Escape') emergencyStop(); });
            9. 8 safety tests with the wheels off the ground Every test must pass. If any test fails, don’t put the car on the floor. Go back and fix it first.
              1. Every hand sign turns the wheels the right way
              2. Empty scene: the wheels stop
              3. Hold something you never taught it: the wheels stop, or at least don’t turn strangely
              4. Dim light: see whether it stops or keeps working
              5. Other people’s hands at home
              6. Press STOP: the wheels stop
              7. Press Esc: the wheels stop
              8. Switch to another tab: the wheels stop within about 1 second

              Watchdog · The “I’m still here” heartbeat · Distribution shift · Level 7 · Level 8

            10. Drive on the floor On the floor only. Clear the space around the car, with no pets or little brothers or sisters nearby. A grown-up holds the cable so it stays loose, and stays near the battery switch. Use the speeds in the code (150 and 160). You can press STOP or Esc at any time. Notice that the car rolls on a little after you raise your hand to stop, and notice that you are the one checking the result and changing the hand sign.

              Latency · Level 4 · Human-in-the-loop · Level 8

            11. Keep experimenting Try one thing at a time, and always try it with the wheels off the ground first.
              • Change THRESHOLD to 0.6 or 0.95 and see whether the car stops more often or moves the wrong way more often. To edit the code, you need the files on your computer: download the kit zip, then edit ai-driver.html in a text editor, then open it using the second way in Step 7 (localhost). You can’t edit the page on the website. Threshold · Level 2
              • Switch tabs The car stops by itself · Level 8
              • Cover the camera with your hand Not sure? Then stop · Level 2
              • Try it in different light from when you trained Distribution shift · Level 2
            12. Pack away in order Press STOP → Turn off the battery switch → Unplug the USB cable → Take the batteries out when you’ve finished

              When the Arduino has no power, the watchdog can’t help · Level 8

            Learn to read the code: seven lines that keep the car safe

            Line in the codeWhat it means
            THRESHOLD = 0.8The decider: the AI must be at least 80% confident, otherwise it sends S (Level 2)
            LETTER[key(top.className)] || 'S'Any class name that isn’t one of these four words, such as Nothing, becomes S
            HEARTBEAT_MS = 400Sends the same letter again every 0.4 seconds as an “I’m still here” heartbeat, only from inside the AI’s loop (Level 8)
            await sleep(2000) then send('S')Waits for the Arduino to restart, then always starts with Stop
            WATCHDOG_MS = 1000The watchdog in the Arduino: if it doesn’t hear a valid letter for more than 1 second, it stops the wheels by itself
            else continue;Any letter other than F L R S is skipped and doesn’t count as an “I’m still here” signal
            emergencyStop()The STOP button and the Esc key send S first, and only then turn off the camera (Level 7)
            Troubleshooting

            If things don’t go as expected

            ProblemTry this
            You see the message No Web Serial hereUse Chrome or Edge on a computer
            Can’t connectClose the Serial Monitor or any other program that is using the port
            You see the message the model needs 4 classesSpell the class names exactly: Forward Left Right Stop
            The car turns the wrong waySwap the wires of the motor on that side
            The car keeps stopping by itselfKeep the tab open and in front, and the AI’s confidence must be above the threshold. If the light or background is different from when you trained it, take more pictures
            The AI line shows F but the car doesn’t moveCheck the battery switch, and check that the GNDs are connected together as in Lesson 16
            The camera is blockedOpen the page from localhost or https

            Safety first

            • Always work with a grown-up
            • Play on the floor only, never on a table
            • Use the low speeds set in the code
            • An adult stays near the battery switch at all times
            • Test with the wheels off the ground first
            • Keep fingers away from the wheels
            • Switch the batteries off before unplugging any wires
            • Never leave the car running without someone watching
            • Batteries: never mix old and new ones, never short-circuit them, and take them out when you have finished playing
            • Use hand signs or cards, not people’s faces
            • No wireless connection in your first project

            Try it: put the steps in order before letting the car go

            Before you do it for real, try putting the 12 step cards below in the right order. There isn’t just one right answer. Some steps can swap places: for example, pressing Connect robot and turning on the camera can happen in either order. But in some pairs, one step must always come first, because if they are swapped the car might not be safe. Press Check to find out why a pair is wrong. Once your order passes, the cards turn into a tick list that you can print out and stick beside the car.

              Put the cards in order with the ▲ ▼ buttons, then press Check

                Keyboard · Tab to a card’s ▲ or ▼ button · Alt and Up arrow moves the card up · Alt and Down arrow moves the card down · Enter or Space presses a button · Space ticks a box in the list

                The brain doctor’s cornerIf we compare it with our body, the AI in the browser does a job similar to the brain’s, the USB cable is like a nerve, and the watchdog in the Arduino is like a spinal cord reflex, which can call a stop by itself without waiting for the brain. All of this is only a comparison to help you understand. The real brain is far more complex than this, and many parts work at the same time (see Level 1). Interestingly, our camera is on the computer, not on the car, so the “Check the result” part of the loop is your own eyes. You see the car turn too far and change your hand sign, so this loop runs through you. This is human-in-the-loop, which we met in Lesson 15
                For parentsThis project uses batteries and motors, so please stay with your child the whole time, be the one who switches the batteries on and off, and be the one who grants the browser permission to use the port and the camera. The project page loads libraries from cdn.jsdelivr.net and loads the model from Google’s servers. Images from the camera are processed in the browser, but the link to an uploaded model is public, so children should teach the AI only with arrow cards or hand signs, and never take pictures of anyone’s face. The files in this kit have not yet been tested with a real car and camera. Please press Verify in the Arduino program first, and make sure all 8 checks of the wheels-off-the-ground test pass every time before putting the car on the floor.
                No-code optionAn idea to try, not yet tested as a project

                micro:bit CreateAI

                • A free web tool from the Micro:bit Educational Foundation, developed from ML-Machine by Aarhus University in Denmark. No account needed
                • You need a micro:bit V2 board, plus a second one if your computer doesn’t have Bluetooth. It doesn’t work on mobile phones. The boards have to be bought, and prices vary from shop to shop
                • You record movements, such as waving or clapping, train the model, then use a block like on ML wave start in MakeCode. The model runs on the micro:bit itself
                • Linking to the main project: the block on ML … start runs only when the recognised movement changes, similar to sending only on change, and unknown means it is below the point where it can recognise a movement, similar to the 0.8 threshold
                • Using it to drive the car is only an idea. We haven’t checked yet whether the ML blocks and the radio blocks can be used together in one project

                Read the micro:bit CreateAI guide

                Ideas to build onNot built yet, not tested yet

                If you want to go further

                • A reflex from the HC-SR04 Use TRIG D7 and ECHO D8 from Project 3 in Lesson 16 so that if something is closer than 20 centimetres, the Arduino refuses to obey F, like the car’s own spinal cord refusing a command from the brain. For now this is only an idea described here. There is no code until someone really builds and tests it
                • A version of the web page with Thai buttons would need to be a new file, and would need testing all over again
                • Going wireless with an HC-05 Bluetooth module might work in principle, but it hasn’t been checked. Don’t include it in your first build

                Our loopThis is our very own real loop: the camera senses, the AI thinks, the cable sends the command, the car moves, and then you check the result and change your hand sign.

                Build stepAll 12 steps are complete. The steps you got ready in the earlier levels all join up here. Put the cards in order until they pass, press Print list, then stick the list beside the car. Work through one step at a time with an adult, ticking each item as you go. If any item fails, stop and fix it first. Never skip ahead to the driving-on-the-floor step.
                A model of a human brain on a stand under a warm orange desk lamp, beside a headless white robot torso on a workbench, with a large computer rack of blue lights behind
                Level 10 · The limits of the comparisonA map, not a photo

                Where it’s similar, where it isn’t

                All through this lesson, we have borrowed our own bodies as a map to help us understand robots: eyes are like a camera, nerves are like a USB cable, and spinal cord reflexes are like the watchdog in the Arduino. A good map helps you not get lost, but a map is not a photo. It leaves out an enormous amount of detail. So this last level invites you to look at how far the comparison works, and where it stops. The people who know what their own map is missing are the ones who use maps best.

                Guess first: alike or not alike?

                Each row is something we have already met in this lesson. For each one, guess whether our body and a robot are alike, partly alike, or not alike at all. You get one guess per row. Once you have guessed, the answer and a short reason will open by themselves. Don’t worry about being wrong, because some rows have kept scientists arguing for years.

                ● Alike · ◐ Partly alike · ○ Not alike · ✓ Right guess · ✗ Not quite

                Guessed 0 of 7 rows · Right guesses: 0 of 7

                Guess first, then the answer will open by itself

                Keyboard in this table · Tab goes to the show-answer button, then on to the next row · ← → moves between answers in the same row · Enter, Space or the numbers 1 2 3 choose an answer · After you guess, the show-answer button opens and closes the answer

                🧩 Diagrams are boxes, but the real brain is many loops

                Robot diagrams usually draw boxes in a row: sense, then think, then act, one box at a time, like people queuing to buy sweets. This is easy to read, and it really did help us build the car in Level 9. But the real brain is messier and cleverer than that.

                In the brain, many loops work at the same time: the cerebral cortex, the basal ganglia, the cerebellum and the spinal cord, and they all keep talking to each other. When you reach for a glass of water, your eyes are still looking for the glass, your hand has already started reaching, and your brain is still choosing how to hold it. Even the spinal cord can make quick decisions by itself, such as starting to lift your foot away when you step on something sharp, before the brain is fully aware of it (you can read about this in Level 4 but never try it for real)

                Sense Think Act ① → ② → ③ one box at a time, in a queue
                Robot diagram: easy to read, and you can build real things with it
                Cortex↻ ⇅ Basal ganglia↻ ⇅ Cerebellum↻ ⇅ Spinal cord↻ Muscles and body ↻ many loops at once · ⇅ always talking
                The real brain: many loops working in layers

                Both of these pictures are still simplified maps. You can see the four-layer diagram compared with the real brain in more detail, with a switch button, in Level 1

                🤖 A pain sensor is just a number

                Some robots have sensors that measure pressure or heat. When the value goes above a set limit, the program might tell the arm to pull back, or make a speaker say “Ouch!” It sounds as if it really hurts, but inside there is only a number going up and a rule that a person wrote.

                There is no evidence yet that today’s robots or AI really feel pain, happiness or fear, even when they are set up to say “Ouch”. Our pain, on the other hand, is a real feeling that warns us to take care of our body quickly. You can see the table comparing the brain with AI in Lesson 15

                ⚡ 20 watts versus 700 watts

                The whole brain uses about 20 watts of power, about the same as a small light bulb (Lesson 15 and Lesson 16). But one powerful AI chip can use up to about 700 watts, as much as about 35 brains.

                The whole brain, about 20 watts
                1 powerful AI chip, up to about 700 watts

                700 ÷ 20 = 35 · One chip at full power equals about 35 brains

                The 700-watt figure is the most the chip can handle. It doesn’t use that much all the time, and this is only a rough comparison. But don’t forget that big AIs are trained on thousands of chips like this at the same time.

                🧺 Hard things turn out easy, easy things turn out hard

                In 1988, a robot scientist called Hans Moravec pointed out that getting a computer to win at draughts is easier than getting it to see and move as well as a one-year-old child. This is an observation from people who work with robots every day, not a law of nature. AI has got much better since then, but walking on rough ground, picking up soft things and folding clothes are still hard for robots.

                Jobs computers have long been good at
                • Playing draughts and chess
                • Doing long sums very fast
                • Remembering huge amounts of information without forgetting
                Jobs that are easy for people but still hard for robots
                • Walking on rough ground, over stones and grass
                • Picking up soft things without squashing them
                • Folding clothes that are never crumpled the same way twice

                Part of the reason may be that our bodies have practised these things every day since we were little, so we have forgotten how hard they are (Level 6), and the real world is never exactly the same twice. One piece of cloth can crumple in thousands of ways, while a draughts board has rules that never change.

                🔍 Questions to carry with you when you see a robot in the news or in a video

                This lesson doesn’t predict what future robots will be like, because things change very fast. But we can carry good questions with us that work for every robot, whenever it comes out.

                🎬How many tries did it take?How many times was this clip filmed? If it had to do the task ten times, how many times would it succeed?
                🕹On its own, or with human help?Does the robot make every decision by itself, or is a person helping to control it?
                🔀What if things change a little?If you change the object, the colour or the light a little, can it still do the job? (Level 6)
                ❓What does it do when it’s unsure?Does it stop or ask a person, or does it keep guessing confidently? (Level 7)
                🛑Who stops the body?If the AI freezes or a cable comes loose, is there something that can stop the motors by itself? (Level 8)
                ⚡How much power does it use?How often does it need charging, and how much electricity did its training use?
                🙋If it goes wrong, who is responsible?The people who built it, the people using it, or the people who let it do the job?
                💬Real feelings or just words?When it says it is happy or hurt, is there any evidence it really feels that, or was it just set up to say so?
                The brain doctor’s cornerAs a brain doctor, I see ideas flowing both ways. This is my own view as the author. Engineers have learned from the brain: nerve cells inspired the artificial neural networks inside almost every AI today (Lesson 15), and reflexes that can stop without waiting for the big brain help show why robots need a safety layer that is fast and separate from the AI. Brain doctors have learned from robots and AI too. The surprise number (prediction error) that AI researchers came up with to teach computers has helped scientists better understand some dopamine signals in monkeys, although this is still being debated (Level 6). And techniques that helped AI get better at games gave scientists a new idea to test in mice. They found that each dopamine cell seems to predict rewards differently: some more hopefully, others more cautiously. Every time we borrow an idea from the other side, we have to test it again, because a map of one side is not a photograph of the other.

                Game: who does what, in the body and in the robot?

                Read one card at a time, then choose which box that job belongs in. Cards labelled 🧍 Body are about what happens inside us. Cards labelled 🤖 Robot are about robots and our car. There are 20 cards in total. Normal mode has no timer, so you can answer and read the explanation for every card at your own pace. If you want a challenge, try the 60-second timed mode, where correct answers in a row earn extra points.

                Game mode
                0correct Card 1 of 20
                Press “Start game” to begin

                Keyboard in this game box · 1 2 3 4 choose a box · ← → change mode when you are on the mode buttons · in no-timer mode, after answering, press Enter on the Next card button · the timer pauses by itself when you scroll the game off screen

                Timed mode keeps your best score in this browser on this device only. It isn’t sent anywhere, and there is no leaderboard.

                RememberComparing the body with a robot is a map, not a photograph. It helps show what each layer does: the thinking layer, the adjusting layer, the stopping layer and the message wires. But robots have no nerve cells, there is no evidence yet that today’s robots really feel pain, and they use energy very differently from us. Knowing where the map stops is just as important as knowing where the two are alike.

                Our loopAI is the brain and the robot is the body. Joined together, they make a loop that senses, thinks, sends the command, moves and checks the result, with a fast layer guarding against danger and a person in the loop when it is unsure.

                Build stepWrite four small labels, 🧠 Think, 🎯 Adjust, 🛑 Stop and 📨 Send messages, then stick each one on the matching part of the car from Level 9 (for example Teachable Machine on the web page, the STOP button, the watchdog in the Arduino and the USB cable). You’ll find that our car doesn’t have a fine-adjusting layer at all yet. If you wanted to add one, think about where the line-following sensor from Lesson 16 would fit in the loop. This is just a thinking game on paper. If you build it for real, always get an adult to check it, and test it with the wheels lifted off the ground first.
                A stack of blank white cards on a workbench next to a small circuit board, a blue beanbag, a paper cup and a robot gripper
                GlossaryFrom beginner to upper-intermediate

                24 words for the brain and body team

                This lesson has 24 new words, and not one of them repeats a word from the Lesson 15 or Lesson 16 glossaries. Level 1 covers the words you need from the very first day you connect AI to the car. Level 2 covers the words that make the loop really work and stay safe, and Level 3 covers the words robot researchers and brain scientists really use when they talk to each other. Every word has a link back to the part of the lesson that explains it (Levels 0 to 10 in the contents).

                Choose a level

                You can type in English or Thai. It searches the word names, the explanations and the examples. Press Esc to clear the search box. On the keyboard, the level buttons work with the left and right arrows, Home and End.

                All 24 words

                How to review, the robot-loop way

                Turn on self-test mode and the explanations will be hidden, leaving only the words. Try saying what each one means in your own words first, then tap to see how close you were. This is the same loop as in Level 5 (guess first, look at the real answer, then fix it).

                Getting it wrong is completely fine. Seeing where your answer is different from the real one is what shows you what to fix. The robots in this lesson get better in the same way.

                Where are the words you’ve already learned?

                You can find basic words such as training data, classification, hallucination and human-in-the-loop in the Lesson 15 glossary and sensor, actuator, feedback control, reinforcement learning and embodied AI in the Lesson 16 glossary

                If these words confuse you in this lesson, go back and look them up. This lesson deliberately doesn’t explain them again, to leave room for the new words.

                Our loopAll 24 words help explain the same loop: eyes that must be sure enough, a brain that plans ahead in chunks, a wire that keeps saying it is still there, a body with reflexes, and surprise that helps the loop adapt when something unexpected happens, all with a safety layer always watching underneath.

                Review12 questions

                Test yourself

                12 questions from the whole lesson, with 3 choices each. You can only choose once. Then read the explanation under the question every time, even when you get it right. If you miss a question, press the review link under it to go back and read that level, then come back and press Start again.

                Correct: 0 of 12
                RememberAI is the brain and the robot is the body. Joined together, they become a loop that goes round and round without stopping: sense, think, send the command, move, check the result, then round again. A good robot isn’t the smartest one, but the one that double-checks before believing, stops by itself when it is unsure or loses contact, and asks a person when it meets something it has never seen. Our bodies work in similar loops too, but many loops run at the same time, which makes the body messier and more amazing than any diagram.

                Fancy a game on this lesson?

                Every question from this lesson is in the Body 101 arena. Race the clock, duel someone at home, play as a team, beat the bosses, or practise with no timer at all.