Skip to main content

Case 15: The Walking Robot

Purpose


To make a walking robot.


micro:bit Wonder Building Kit

Materials Required


Video link: https://youtu.be/ohn8NMhKybw

Bricks build-up


Hardware Connection

Connect a motor to M1 port on Wukong breakout board.

Software Platform


MakeCode

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/_b5D9689YX8R3

Result

The robot moves forward when button A is pressed, it moves backward when button B is pressed, and it stops moving when button A+B is pressed.