With Tek

How to program a robot arm to sort

To program a robot arm to sort, give it a short list of moves (reach, grab, lift, turn left or right, and drop), a rule that says which bin each thing goes in, and a program of moves in the right order for each kind of thing. In this course your kid writes six move cards, sets up a pile with a bin on each side, writes a red program and a blue program, and finds and fixes the bugs. A grown-up plays the arm with eyes closed and follows only the cards, while your kid reads each card out loud. Tek hosts four short films for kids 6 to 13, and the whole course ends at home, with paper cards and no robot kit. Your kid ends with a sorting program on paper that works. Plan about 4 minutes of films and 30–45 minutes of play. On Kubrio, all four films and the quiz are free, with no account.

All 4 lessons and the quiz are free on this page. Your kid doesn't need an account. See every lesson

Liked this lesson?

There's a whole world of this.

In Kubrio Worlds your kid explores places, asks the people who made them anything, and makes their own things. You set the screen time.

3 days free, then $49 $19 a month per kid.

▶ 1:45 tour

What your kid makes

Your kid ends with six move cards, a written sorting rule, a red program and a blue program that each end back home, and a pile sorted into the right bins. Along the way, your kid finds and fixes real bugs, like a wrong turn card and a missing card that turns back home, the same way engineers debug a robot.

Ages
6 to 13
Time
4 films, about 4 minutes, then 30–45 minutes of play
You need
Six small cards and a pencil, a pile of blocks or socks in two colors or two sizes, two bins, boxes, or bowls, a table, a grown-up to play the arm
Host
Tek

The 4 lessons

  1. Lesson 1. Robots that sort

    Robot arms sort recycling, letters, and fruit all day. An arm doesn't think. It knows five moves, reach, grab, lift, turn, and drop, and the right order carries a block from here to there.

    1. Get six small cards
    2. Write reach, grab, lift, turn left, turn right, and drop
    3. Draw an arrow on each card

    Where: Paper

  2. Lesson 2. The sorting rule

    A rule says where each thing goes, by color or by size. Every thing fits one bin and only one, and something that fits no bin gets a new bin.

    1. Put a pile of blocks or socks in the middle
    2. Set a bin on each side
    3. Write the rule on a card, like red goes left

    Where: At home

  3. Lesson 3. Write the program

    A program is the move cards in order. Each color gets its own program, and every program ends by turning back home, over the middle of the pile.

    1. Lay out a red program and a blue program
    2. A grown-up plays the arm with eyes closed
    3. Look at each block, pick its program, and read the cards out loud, slowly

    Where: At home

  4. Lesson 4. Fix the bugs

    A bug is a mistake in the program: the arm did exactly what the cards said. Run it one card at a time, find the wrong card, and fix it.

    1. Sort the pile with your grown-up arm
    2. When a block lands in the wrong bin, run it one card at a time
    3. Swap the wrong card, or add the missing card that turns back home

    Where: At home

Take the quiz

Tek asks 3 questions about the films. Get 2 right and you finish the course.

Transcript

Lesson 1: Robots that sort

Hi, I'm Tek. Today you teach a robot arm to sort!

Sorting means putting things where they belong. Cans in one bin, paper in another.

Robot arms sort all day. Recycling, letters, and fruit. Big apples here, small apples there.

A robot arm doesn't think. It knows five moves. Reach, grab, lift, turn, and drop!

Reach goes down. Grab closes the hand. Lift goes up. Turn swings left or right. Drop lets go.

Put the moves in the right order. Then the arm carries a block from here to there.

Your turn. Get six small cards. Write reach, grab, lift, turn left, turn right, and drop. Draw an arrow on each one.

Lesson 2: The sorting rule

A sorting robot needs a rule. The rule says where each thing goes.

Here's a simple rule. Red goes in the left bin. Blue goes in the right bin.

A rule can be about size, too. Big socks go here. Small socks go there.

Real sorting robots have a camera. It looks at each thing, and the rule picks the bin.

Keep your rule clear. Every thing should fit one bin, and only one.

Found something that fits no bin? Add a bin! Green blocks get a green bin.

Your turn. Put a pile of blocks or socks in the middle, with a bin on each side. Write your rule on a card.

Lesson 3: Write the program

Now let's write the program. A program is your move cards, in order!

Your arm starts up high, right over the middle of the pile. That spot is home.

To sort a red block, it's reach, grab, lift, turn left, drop. Then turn right, back home.

A blue block needs its own program. Turn right to the blue bin, then turn left to come home.

Now a grown-up plays the arm. Eyes closed! They can only follow the cards. Go slow.

You are the robot's camera. Look at the block, pick the right program, and read each card out loud.

Your turn. Lay out a red program and a blue program. Your grown-up closes their eyes, and you read the cards.

Lesson 4: Fix the bugs

Uh-oh. The red block landed in the blue bin! That's a bug.

A bug is a mistake in the program. The arm did exactly what the cards said.

Run it again, one card at a time. Watch for the moment it goes wrong.

Found it! This card says turn right. It should say turn left. Swap it, and run it again.

Here's another bug. The arm forgot to come home, so the next reach lands in the bin! Add a card to turn back.

Now sort the whole pile, block after block, until every bin is right!

Your turn. Sort a pile with your grown-up arm. When a block lands in the wrong bin, find the card and fix it. You made a sorting robot!

Free guides to practise with

Questions parents ask

Is it safe for a grown-up to play the arm with eyes closed?

Yes, with the habit from the films: go slow. Use soft things like socks or toy blocks, clear the table of anything that can tip or break, and keep the bins close. Your kid reads one card at a time and waits for each move to finish.

Why does the arm turn the wrong way?

Left and right are the arm's left and right. If your kid sits across the table from the grown-up arm, the turns look mirrored. Stand behind or beside the arm, facing the same way, and turn left and turn right match what your kid sees.

Does my kid need a robot kit?

No. The films play on this page, and the whole course happens at home with paper cards, a pile of blocks or socks, and two bins. A grown-up plays the arm. The course ends on paper and at home, with no screen.

See every course

From the makers of these free courses

Curious, not hooked.

Kids explore worlds, ask the people who made them anything, and make their own things. 20 minutes a day by default, and you can change it.

3 days free, then $49 $19 a month per kid.

  • 13worlds open
  • 500+questions answered
  • 20 mina day, set by you