Case 29: The Stone Thrower
Contents
31. Case 29: The Stone Thrower#
31.1. Purpose#
Make a stone thrower.
31.2. Link:#
31.3. Materials Required#
31.4. Bricks build-up#
31.5. Hardware Connection#
Connect two motors to M1 and M2 ports on Wukong breakout board.
31.6. Software Platform#
31.7. Coding#
Add extensions#
Click “Advanced” in the MakeCode to see more choices.
Search with Wukong in the dialogue box to download it.
Program#
Result#
When the micro:bit is powering on, it displays a heart icon. When button A is pressed, the stone thrower performs a stone throwing action; when button B is continuously pressed, the stone thrower moves forward; release button B and the stone thrower stops.