Previous site
Mission 5 / 22

Electric Toothbrush

Build an electric toothbrush that spins all the way around.

Mission

Build a spinning electric toothbrush.

Code the electric toothbrush to spin forward 5 times and backward 5 times, then stop.

Electric Toothbrush
Finished model

Blocks needed

  • × 1
  • × 6
  • × 5
  • × 2
  • × 2
  • × 2

How to build 10 steps

  1. Step 1
  2. Step 2
  3. Step 3
  4. Step 4
  5. Step 5
  6. Step 6
  7. Step 7
  8. Step 8
  9. Step 9
  10. Step 10
1 / 10

Coding mission

Code the electric toothbrush to spin forward 5 times and backward 5 times, then stop.

App to useAdvanced Cubroid AIApp StoreGoogle PlayWeb version

What each block does

  • DC Motor BlockToothbrush head

Let's think

Find out which way one DC motor turns.

Clockwise
Counterclockwise
Stop

Learn about the Repeat Block.

  • Put the commands you want to repeat inside it in order, then set how many times to repeat.
Show the solution

Set how many times to repeat each direction, and code the directions in order. Then put the repeat count from step 1 into the repeat block.

Built it and coded it? Tap to save your progress.