case 23 micro:bit Crawlers
24. case 23 micro:bit Crawlers#
Let the children use the building blocks and micro:bit to make a crawling caterpillar. In this process, children could experience the fun of building blocks and get a preliminary understanding of the ratchet structure.
24.2. Quick Start#
Nezha expansion board × 1
micro:bit V2 × 1
360°servo × 1
Bricks × n
Tips: You may need to purchase Nezha Inventor’s Kit if you want all the above compoents.
Connect the servo to S1 and the micro:bit to Nezha expansion board.
24.3. MakeCode Programming#
Click “Advanced” in the MakeCode drawer to see more choices.
We need to add a package for programming. Click “Extensions” in the bottom of the drawer and search with “nezha” in the dialogue box to download it.
Note: If you met a tip indicating that the codebase will be deleted due to incompatibility, you may continue as the tips say or build a new project in the menu.
Programme as the picture shows:#
The crawlers move forward after powering on.