Introduction
• • Micro:bit is a small programmable computer
designed to teach leaners coding and
electronics.
• • Launched in 2015 by the BBC.
• • Helps learners to learn how computers take
inputs, process them, and create outputs.
Main Features of The Micro Bit
• • 5×5 Matrix LED, shows numbers, text, symbols or
animations.
• • Two Buttons (A & B) for input and it helps trigger the
code on the microbit.
• • Pins/Edge Connector: for attaching external components.
• • Accelerometer: This detects movement/tilt or shake
• • Compass: detects direction.
• • Temperature & Light Sensors: measure environment.
• • Radio & Bluetooth: for wireless communication.
• • USB/Battery Pack to power the micro bit.
• • Speaker & Microphone
• Reset Button: It restarts the program on the micro bit.
Applications of Micro Bit.
• • Digital dice, mini games, and quizzes.
• • Step counters and temperature alarms.
• • Control robots and home-made devices.
• • Wearable badges, safety alarms, and
communication devices.
Programming the Micro:bit
• • MakeCode Editor: it is a visual programming
language that uses drag-and-drop
programming.
• • MicroPython: text-based coding for more
advanced learners.
• • JavaScript: text-based coding for more
advanced leaners.
Steps to Program the Micro bit.
• 1. Connect micro:bit to computer with USB
cable.
• 2. Open makecode editor or python.
• 3. Create program using blocks or Python
code.
• 4. Download program to computer.
• 5. Copy file to MICROBIT drive.
• 6. Micro:bit runs the program automatically.
Inputs, Processing, Outputs
• • Inputs: Buttons, motion sensor,
temperature, microphone, light sensor.
• • Processing: The microcontroller follows
program instructions.
• • Outputs: LEDs light up, sound plays, signals
sent or devices controlled.
Programming Concepts
• • Loops repeat actions.
• • Variables are containers that store data.
• • If/Else statements make decisions.
• • Events run code when something happens
(shake, button press).
• • Radio Groups communicate between
micro:bits.
Simple Activities
• • Scrolling Name on LED display.
• • Shake for Dice (random number).
• • Compass Arrow (point North).
• • Buttons A & B show smiley/sad faces.