MICROBIT PROJECT
SHAKE & TILT

separator-blank.png

DESCRIPTION

Students will learn how to sense when the microbit is shaken.

STEPS

STEP 1
Connect your Microbit to your device (laptop) and go to the coding site:
https://makecode.microbit.org/

STEP 2
Click on New Project and name the project Shake.

STEP 3
Delete the on start block and the forever block.  From the Input menu heading, drag in a on shake block.

STEP 4
Drag in a show string block from the Basics menu heading and add a message.

STEP 6 (TEST)
Download and run your program.  Try briefly shaking the microbit to see if the message is shown. 

STEP 7
Try changing the shake option to another option such as tilt left. 

 

STEP 8 (TEST)
Download and run your program.  Try briefly shaking the microbit to see if the message is shown. 

EXTRA

1. What happens if you shake the microbit for a longer time (like 10 seconds)?  Try it.

2. At approximately what angle does the tilt register?



separator-blank.png