Page 134 - KEC Khaitan C6 Flipbook
P. 134
Step 7.2 Making a Step Counter
∑ In Input, drag On shake block.
∑ Use a variable to store the step count.
∑ Each time Micro:bit shakes, increase the count by 1.
∑ Display the step count on the LED screen.
Extra Challenge:
∑ Adjust the sensitivity so that it only counts actual steps.
REVISIT
▶ The BBC Micro:Bit is a popular microcontroller designed for learning coding and electronics.
▶ Microcontrollers are small computers used to control electronic devices.
▶ Microcontrollers are widely used in appliances, robotics, smart devices, and automation to make tasks easier.
▶ MakeCode is an online platform that allows users to program the Micro:Bit using block coding, JavaScript, or
Python.
▶ Block-based coding in MakeCode helps beginners create programs using a drag-and-drop interface.
▶ The Micro:Bit has input and output (I/O) pins that connect to sensors, LEDs, motors, and other devices.
▶ Loops, music blocks, and event-based programming allow users to build interactive projects.
132 Premium Edition-VI

