E · Code the Recycling Truck
Create (continued). This is the Rubbish-Recycler / Recycling-Truck starter program from the WeDo app: the sorting arm swings one way, waits, bleeps, then runs back the other way with more power. Have students run it as-is first, then let them change the sound, the wait time, or the direction and predict what will happen.
Prompts: which block controls the arm's direction? Which controls how long it runs? What does the Wait block do while nothing is happening?
Extension: rebuild it from scratch in the Code canvas.
Mission program. The arm swings that way for 1 second, waits 3 seconds, plays sound 14, then runs this way at power 4 for 5 seconds.
Clip the motor onto the sorting arm, link the Smart Hub, then press Play.