Case 29: The Stone Thrower
Purpose
Make a stone thrower.
Link:
Materials Required
Bricks build-up
Hardware Connection
Connect two motors to M1 and M2 ports on Wukong breakout board.
Software Platform
Coding
Add extensions
Click "Advanced" in the MakeCode to see more choices.
Search with Wukong in the dialogue box to download it.
Program
Link:https://makecode.microbit.org/_K6oek8JP8bgf
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.