Page 83 - Ai Robogenius
P. 83
SMART ROBOT TASK PERFORMER
Create an interactive Micro:bit robot that
CAPSTONE PROJECT moves based on tilt and shows its direction
using the LED screen and compass sensor.
Session 1: Setting Up the Robot with LED Display
Activities:
1. Creating a Robot Using LED Display
Task: Start by creating a robot shape using the Show LED block. Use patterns to display
a simple robot figure (e.g., a face or a basic robot design).
Skills Practiced: Using the Show LED block to create images on the Micro:bit’s screen.
Understanding how to program visuals on the Micro:bit’s grid of 5x5 LEDs.
Outcome: A robot image that appears on the Micro:bit’s screen using the Show LED
block.
2. Using the Pause Block to Control Timing
Task: After displaying the robot, add a Pause(ms) block to make the robot’s image
appear for a set duration (e.g., 2 seconds).
Skills Practiced: Using the Pause(ms) block to control the timing of the program.
Timing control in programming to pause between actions.
Outcome: The robot image is shown for 2 seconds, and then the program pauses.
Session 2: Moving the Robot Using Tilt
Activities:
1. Tilt Left to Move the Robot Left
Task: Program the robot to move left when the Micro:bit is tilted to the left. Use the Tilt
Left block to detect this movement.
Skills Practiced: Using the Tilt Left block to control movement. Combining sensor input
with visual feedback (e.g., using the LED screen to show movement).
Outcome: The robot moves left when the Micro:bit is tilted to the left.
Capstone Project
81

