Page 101 - Robo_Genius_V1.0_flipbook_C5
P. 101
3. Conditional Programming and Thresholds: You will program conditions,
like if the temperature exceeds a certain threshold, the micro:bit can display
a warning message or an icon. This connects to programming logic and how
sensors in devices (like thermometers) can trigger specific actions based on
the data they collect.
Observations
In the “Programming a Digital Thermometer Using Micro:bit” activity, you will
observe how the temperature sensor works in real-time. As the surrounding
temperature changes, the micro:bit displays the updated temperature on
its LED grid. you will notice that the readings change as the temperature
fluctuates, demonstrating how sensors collect and process environmental
data. This activity allows them to observe how devices like thermometers work
and how they respond to real-world inputs.
Application
A temperature sensor in a digital thermometer
measures body temperature accurately. When the
thermometer is placed in contact with a person, the
temperature sensor detects the heat from the body
and converts it into an electrical signal. The digital thermometer then shows
the body temperature on the screen, making it easy to read.
eXERCISE
A. Tick ( ) the correct option.
1. What is the micro:bit?
(i) A gaming console (ii) A pocket-sized computer
(iii) A mobile phone (iv) A calculator
2. Which programming platform is used to code micro:bit?
(i) Tinkercad (ii) Microsoft MakeCode
(iii) Scratch (iv) Arduino IDE
Programming with Micro:bit-Based Programming 99

