Previous site
Mission 18 / 29

A House That Welcomes Visitors

Make a house that welcomes your friends with exciting music when they visit.

Mission

Use a DC motor for the pinwheel and a sound block for the music, and decorate the path into the house with a proximity sensor and shape blocks.

Code the house so that when someone comes near the proximity sensor, it plays exciting music and spins the pinwheel.

A House That Welcomes Visitors
Finished model

Blocks needed

  • × 1
  • × 1
  • × 11
  • × 19
  • × 2
  • × 5
  • × 1
  • × 1

How to build 16 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
  11. Step 11
  12. Step 12
  13. Step 13
  14. Step 14
  15. Step 15
  16. Step 16
1 / 16

Coding mission

Code the house so that when someone comes near the proximity sensor, it plays exciting music and spins the pinwheel.

Think about what happens when there is something in front of the proximity sensor and when there isn't.

App to useCoding Cubroid AIApp StoreGoogle PlayWeb version
App menu to use

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