Skip to main content

Case 33: Two-wheeled Motorcycle

Purpose

Make a two-wheeled motorcycle that can be remotely controlled using a handle.

ELECFREAKS micro:bit 32 IN 1 Wonder Building Kit (Without micro:bit Board)

ELECFREAKS micro:bit Joystick:bit V2 Kit

Materials required

Build Steps

Hardware Connection

Connect the motor to the M1 interface of the Wukong expansion board and the servo to the S1 interface of the Wukong expansion board.

Programming Platform

MakeCode

Programming

Add extension

Click Advanced in MakeCode's code drawer to see more code options and click on Extensions.

Search for wukong in the search box, click on wukong in the image and add the expansion pack.

Search for joystickbit in the search box, click on joystickbit in the image and add the expansion pack.

Procedures

Remote terminal program

Link: https://makecode.microbit.org/_9fqTmF6jqRo9

Cart-side program

Link: https://makecode.microbit.org/_gp6KjP4J0DCU