Step counter - Course Overview

Lesson 5/38 | Study Time: 2 Min
Step counter - Course Overview

This lesson turns the micro: bit into a simple step counter. A step counter is also known as a pedometer. Each shake event increments a counter variable. The step count is displayed on the LEDs.


Performance Expectations 

1. Students will learn how to run code when the micro: bit is shaken, when running code in the web browser, moving the mouse quickly simulates shaking.

2. Students will learn how to create a local variable as a place where you can store and retrieve data.
 

 

Guiding Ideas 

Students will use MakeCode and on shake command to make this step counter.

 

Disclaimer: All content under this course is customized according to the requirement of an educator/student (K12) filtered from Minecraft Education Edition, MakeCode Microbit, Code.org, and other sources.