Page 89 - Robo_Genius_V1.0_flipbook_C5
P. 89
concept of sensors and how computers use sensors to detect physical
movements (inputs).
2. Random Number Generation: You will explore how programming can create
random outcomes, in this case, a number between 1 and 6. This links to the
math concept of random numbers and probability.
3. Basic Programming Logic: Using block-based coding (like Microsoft
MakeCode), you will learn how to program the micro:bit to generate a
random number when shaken and display it on the LED grid. This involves
understanding loops, conditionals, and variables.
Observations
In the “Programming a Shaking Dice using Micro:bit” activity, you will observe
how the micro:bit responds to the physical action of being shaken. Each time the
micro:bit is shaken, a random number between 1 and 6 will appear on its LED
display, mimicking the roll of a dice. They will learn how programming interacts
with sensors to produce real-world outputs. By watching the micro:bit display
different numbers, you will understand how randomness works in a digital
environment and how sensors can capture physical input.
Application
Smartphones: Accelerometers detect the
orientation of the phone. For example, when
you tilt your phone, the screen rotates from
portrait to landscape mode.
21 st
Direction Blinking Arrow Century #Technology Literacy
Activity Skills
Using Micro:bit
Overview
In this project, we will display direction blinking arrows using micro:bit. Micro:
bit has an accelerometer sensor which basically works as a motion sensor. So
in this project, we will shake the Micro:bit in any direction it will display a
random arrow.
Programming with Micro:bit-Based Programming 87

