Page 45 - RoboGenius Pro C5
P. 45
STEP - 6 Drag the show number block from the Basic category and place it inside
the on button A pressed block.
« The Micro:bit has several built-in input and output components that help
on button A pressed it sense and respond to the world around it.
« Compass detects magnetic fields, like the Earth's, allowing it to determine the direction it
show number 0
is facing and measure movement in degrees.
« The Micro:bit has two programmable input buttons, A and B.
on button A pressed
STEP - 7 Drag the temperature block from the Input « The LED display is an output device that emits light. It has a 5×5 matrix of 25 red LEDs on
category and place it inside the 0 of the show show number temperature (°C) its front, which forms a small display used to show messages, numbers or symbols.
number block. « The gold Micro:bit logo can be used as a touch-sensitive input, allowing the Micro:bit to
respond when it is touched.
Your block-based code should now look like this.
« The Micro:bit has gold strips along its bottom edge, called pins, which are used to connect
it to external components such as motors, sensors, buzzers and additional LEDs.
« A buzzer is a small electronic device that produces sound when powered by electricity.
ROBO CHECK
A. Tick ( ) the correct option.
1. Identify the part of the Micro:bit that is used to display messages, numbers or symbols.
STEP - 8 Click on Start the simulator button to run the program.
(i) Buttons (ii) LED Display
Output
(iii) USB Port (iv) Speaker
When you press Button A on the Micro:bit, the current
temperature appears on the LED display. As the 2. Choose the correct sensor that helps the Micro:bit measure temperature.
temperature around the Micro:bit changes, pressing (i) Light Sensor (ii) Accelerometer
the button again shows a different reading, helping (iii) Temperature Sensor (iv) Compass
you to see how the sensor reacts to environmental
changes. 3. Select the correct statement about the Micro:bit.
(i) It is used only for playing games.
ECOTECH Micro:bit uses very little electricity and small materials, so it is gentle on the (ii) It has the ability to control external devices.
ENERGY environment. You can reuse it for many projects, which helps reduce waste.
(iii) It can take photographs.
(iv) It is used to make phone calls.
Micro:Bit and the World Around Us
43

