Skip to main content

Case 38: The Pendulum

Purpose

Make a Pendulum.

ELECFREAKS micro:bit 32 IN 1 Wonder Building Kit

Materials required

Build Steps

Hardware Connectivity

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.

Procedures

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

Result

After turning it on, when you press button A on the micro:bit, the pendulum starts running, and when you press button B on the micro:bit, the pendulum stops running.