Coding Project 8 — Arm and Claw Together
KIPR · Botball Explorer
Activity Sections

Introductory · EV3 Coding Project 8

Arm and Claw Together

Two motors, one system. This is the biggest scoring project in the whole strand.

Project
Coding Project 8
Strand
Coding
Phase
Make It Grab
Time
One class period
What You Are Doing
Adding a claw to your arm, learning to grab, carry, and release — then stacking cubes and dropping poms into baskets.
Mission Anchor
Mission 12 complete · Mission 3 base · Mission 11 base · Mission 13 bonus — 37 points
What You Need
Before You Start
Project 7 — and your claw must be built, with the claw motor plugged into port D . Open the Claw Build Guide — Build guide coming soon — ask your teacher if this link is not live yet
Before you start: type your PIN in the box at the top of the page. Your teacher gave you this number. When you finish, press Download to save a local copy of your answers. This does not turn in your work automatically; give the downloaded file to your teacher.

Try It — Be the Robot

A claw is an — the part of the robot that does work on the world. In Project 6 your was the front of the robot, and it could only shove. A claw can hold.

Two motors, two jobs

MotorIts jobIts two or three positions
ArmRaise and lowerup · horizontal · down
ClawOpen and closeopen · closed

Now act it out

Put a cube on the table in front of you. Pick it up with one hand, move it, and set it back down.

Do it again — slowly this time — and write down every separate movement, in order. Do not skip anything, even the parts that feel too obvious to write.

StepWhat my hand did
1
2
3
4
5
6
7

Try swapping any two of your steps. Pick a pair and describe what would go wrong.

That List Is Your Program

Grabbing is not one action. It is five or six small ones that only work in one order. Close the claw before the arm is down and you grab nothing. Raise the arm before you close the claw and you lift nothing.

The whole skill in this project is sequence.

Learn It — Five Numbers and an Order

You already know every block you need. Nothing new gets introduced here — you just use two motors instead of one.

Write down all five positions

Write them on your Robot Card, in name = number form — your numbers will be different from everyone else’s:

Code / partWhat it means
arm = Aup = ___  ·  horizontal = ___  ·  down = 0, its home
claw = Dopen = 0, its home  ·  closed = ___

Notice the first entry of each group is the , not a degree number. You now have a whole card of numbers to keep straight — and every one of them is typed into some block, somewhere in your program.

Start in a safe shape

Project 7 gave you the arm rules — gentle speed first, arrows chosen on purpose, and the Start Pose Rule. With two motors, the Start Pose Rule grows by one item: arm down, claw open, both set by hand before you press run. Those are the two home poses now, and both counts start at 0 there.

And every claw program starts with the same three blocks — speeds for both motors, then the arm up out of the way. The claw needs no block at all: it is already open, because you put it there:

Speeds set, arm up, claw open from the start pose. The robot begins every run in a known, safe shape — every single time.

The grab sequence

Code / partWhat it means
1. Arm up, claw openThe safe shape, first, always.
2. Drive to the objectArm stays up and out of the way while driving.
3. StopDo not grab while still rolling.
4. Arm downClaw comes down around the object. Wait for it.
5. Close clawNow, and only now, grip.
6. Arm upLift. The object comes with it.

Every single grab in this project is that sequence. You will build it four times today. Remember how that feels — Project 12 is about fixing it.

Live judged or final position — this changes your strategy

Look at how a mission is scored, not just what it asks for. Two missions can want the same thing and mean very different things by it.

Code / partWhat it means
⚡ Live JudgedA judge watches it happen during the match. It counts the moment it is true — even if it falls apart afterwards. Your robot may be holding it.
📋 Final PositionScored after the match ends, from whatever is left on the field. Your robot has to let go and the result has to survive on its own.

Robot Support Is Allowed --- Sometimes

The definition says support from a robot is permitted. So for a live-judged stack, your claw can still be holding the cube in place when the judge sees it.

For a final-position stack, that is worth nothing. Let go, back away, and the stack has to stand by itself.

Setting an object down is harder than picking it up

Opening the claw is easy. Opening the claw without dragging, tipping, or flicking the object is the actual skill.

  • Lower the arm before you open, so the object has a short drop, not a long one.
  • Open, then pause, then back away. Backing off while still opening drags the object with you.
  • Back straight away, not on a curve. A curve sweeps the claw sideways through what you just placed.

⚠ Basket Exclusivity

Mission 11 uses orange poms. Mission 15 (Project 12) uses blue poms. If your team attempts both, they must go in different baskets. Decide now which basket belongs to which mission, and write it down.

Do It — Grab, Carry, Stack

Step 1 — Find your claw positions

Same trick as Project 7: claw fully open by hand — that is its home — then open Port View on port D, squeeze the claw gently shut by hand, and write down how far the number moves from open. Your arm numbers are already on your card — now add the claw.

PositionDegrees from openNotes
Claw open0 — home
Claw closed on a cube
Claw closed on a pom

⚠ Closed Does Not Mean All the Way Shut

“Closed” is whatever number just grips the cube — not the furthest the claw can swing. Command more degrees than the cube allows and the motor strains against it — while the block waits forever for a trip that cannot finish. Find the number that just grips, and stay there.

A pom squashes, a cube does not. That is why they get different numbers.

Step 2 — Grab it

New project called Grab. No driving at all — place a cube inside the open claw by hand.

Write the first. Two rules: the arm starts up and the claw starts open.

Code / partWhat it means
1. Safe shapeSpeeds set, arm up, claw open.
2. Arm down
3. Close the claw
4. Arm up

Did you need a wait block between every step, or only some of them? How did you decide?

Step 3 — Go grab

New project called Go Grab. Now add driving — the cube sits a short distance away.

Code / partWhat it means
1. Safe shapeSpeeds, arm up, claw open.
2. Drive forward to the cube
3. Stop
4. Arm down
5. Close claw
6. Arm up

What happened the first time? Most robots either stop too early, stop too late, or push the cube away before the claw gets down.

Step 4 — Put it down without wrecking it

Add to the end of your program: carry the cube somewhere, set it down, and back away leaving it standing.

What did you have to change to stop dragging the cube when you backed off?

Step 5 — Mission 13 Bonus — your first stack7 pts

Watch Mission 13 video

Base Mission

1 point Live judged

All three Unstraight Cubes satisfy the definition (cubes are the black line).

Bonus Mission

7 points Live judged

Two Unstraight Cubes form a scoring stack — one Unstraight Cube is another.

Advanced Bonus

13 points Final judged

All three Unstraight Cubes form a scoring stack. All cubes must originate from the Unstraight Cube area.

Scores

  • All three Unstraight Cubes are the black line.
  • One Unstraight Cube is another Unstraight Cube.
  • All three Unstraight Cubes participate in valid relationships (traditional stack or pyramid).

Does Not Score

  • One or more Unstraight Cubes are touching the black line.
  • Two Unstraight Cubes touching side-by-side without .
  • An Unstraight Cube stacked with a cube from another mission area.
  • Only two Unstraight Cubes participate in the Advanced Bonus stack.

Start here because it is the easiest stack on the field — the cubes are close together, and it is live judged, so your claw can still be holding the top cube when the judge looks.

Step 6 — Mission 12 — complete it16 pts

Watch Mission 12 video

Base Mission

11 points Live judged

Two spilled cubes form a scoring stack — one spilled cube is another spilled cube. Both cubes must originate from the spilled cube area. Edge-to-face or corner-to-face contact does not satisfy this definition for Mission 12.

Bonus Mission

5 points Final judged

The scoring stack remains intact and the lower cube of the stack is touching the black line.

Scores

  • One spilled cube is another spilled cube.
  • A robot is supporting one or both cubes while the relationship exists.
  • The scoring stack exists and the lower cube is touching the black line.

Does Not Score

  • Two spilled cubes touching side-by-side.
  • A spilled cube stacked on a cube that did not originate from the spilled cube area.
  • The stack no longer exists at final scoring.
  • The upper cube is touching black line but the lower cube is not.

You already know how to get here — that was Project 5. Reuse your approach code and add the grab.

Two Different Jobs in One Mission

The base is live judged, so your claw may still be holding the top cube. The bonus is final position — you must let go, back off, and the stack has to survive until the match ends.

Get the base first. Then work on letting go cleanly.

Scores

  • One spilled cube is ON TOP OF another spilled cube.
  • A robot is supporting one or both cubes while the ON TOP OF relationship exists.
  • The stack exists and the lower cube is the black line.

Does Not Score

  • Two spilled cubes touching side-by-side.
  • A spilled cube stacked on a cube from a different area.
  • The stack no longer exists at final scoring.
  • The upper cube touches black line but the lower one does not.

Read the “does not score” list again. Why does the lower cube have to be the one touching the line?

Step 7 — Mission 3 — Mixed Freight7 pts

Mission 3

Mixed Freight

Watch Mission 3 video

Base Mission

7 points Live judged

Create one stack consisting of a Green Cube a Yellow Cube, or a Yellow Cube a Green Cube.

Bonus Mission

9 points Live judged

Create a second stack consisting of a Green Cube and a Yellow Cube.

Advanced Bonus

13 points Live judged

Create two stacks such that one contains a Green Cube a Yellow Cube, and one contains a Yellow Cube a Green Cube (opposite color arrangements).

Scores

  • Green on Yellow or Yellow on Green — both satisfy the Base Mission.
  • Two valid mixed-color stacks satisfy the Bonus Mission.
  • Two stacks with opposite color arrangements satisfy the Advanced Bonus.

Does Not Score

  • Green on Green or Yellow on Yellow — same-color stacks do not score.
  • A single three-cube stack does not count as two scoring stacks.
  • Any cube used in one stack may not be reused for another stack.

Either order works for the base. Green on yellow, yellow on green — both score. Same colour on same colour scores nothing.

Step 8 — Mission 11 — Hazard Disposal7 pts

Mission 11

Hazard Disposal

Watch Mission 11 video

Base Mission

7 points Final judged

One Orange Pom is a basket.

Bonus Mission

7 points Final judged

Two or more Orange Poms are the same basket.

Scores

  • One Orange Pom is a basket.
  • One Orange Pom partially extends into the interior space of a basket.
  • Two or more Orange Poms are the same basket.

Does Not Score

  • An Orange Pom is touching only the outside of a basket.
  • An Orange Pom is resting above a basket without extending into it.
  • One Orange Pom is in Basket A and one is in Basket B — does not satisfy Bonus.

A different grip problem. Poms squash, so your closed position for a pom is not the same as for a cube.

IN Is Generous

A pom only has to partially extend into the interior of the basket. It does not need to be sitting neatly at the bottom. But touching the outside of the basket, or resting on top of it, is not IN.

Which basket did you use, and which one are you saving for Mission 15?

Step 9 — Run the whole thing five times

Chain all four missions into one program, same as Project 6 — each mission built in its own small project first, then added to the big run one section at a time.

RunM13 bonusM12 baseM12 bonusM3M11Points
1
2
3
4
5

Which grab was least reliable, and what made that one harder than the others?

Score It — Checkpoint

My best run

Mission partScored?Points
Mission 13 — Bonus (two unstraight cubes stacked)7
Mission 12 — Base (two spilled cubes stacked)11
Mission 12 — Bonus (stack survives, lower cube on line)5
Mission 3 — Base (mixed-colour stack)7
Mission 11 — Base (orange pom in a basket)7
My total37

My full motor card

Seven numbers now. Copy them somewhere you will not lose them.

SettingValue
Arm motor
Arm up
Arm horizontal
Arm down
Claw motor port
Claw open
Claw closed on a cube
Claw closed on a pom
Basket I used for Mission 11

Live or final?

Say how each one is judged, and what that means for whether your claw can still be holding it.

Mission partLive or final?Can the robot be holding it?
Mission 12 Base
Mission 12 Bonus
Mission 11 Base

Can you do it again?

Think about it

Count how many times the six-step grab sequence appears in your program. Now imagine your claw’s closed position changes by 30. How many separate places would you have to edit?

A judge tells your team the Mission 12 stack scored the base but not the bonus. Your robot did everything you programmed. What most likely happened between the judge seeing it and the end of the match?

Your robot can now drive, turn, grab, carry, stack, and release — and it does every bit of it blind. It never checks the world; it just follows the plan. What would change if it could notice things — a line, a wall, a color — while it runs?

Next

You are carrying seven numbers around on a paper card, retyping them into blocks everywhere, and one rebuild would break all of it.

In Project 9 — Names for Your Numbers, those comments become real. You give each number a name once, and the whole program starts using it.

Download saves a local copy of your answers. It does not turn in your work automatically; give the downloaded file to your teacher.

KIPR · Botball Explorer — Introductory Projects · © KISS Institute for Practical Robotics 1997–2026