Teacher
Day 1: Robot Boot-up – Movement, Lights, and Sound
Objective: Campers learn to connect, move, light up, and play sound using the mBot2 and Makeblock Web IDE.
□ Materials Needed
- mBot2 robot (1 per team)
- Laptops with Chrome + USB-C cable or Bluetooth
- Floor grid (taped)
- Printed Mission Cards and Badges
□ IDE Mode: Live Mode
Live mode allows campers to test code in real-time while learning basic movement and LED/sound logic.
□ Step-by-Step Activities
Step 1: Connect Your Robot (5–10 min)
Students open ide.makeblock.cc, select mBot2, and connect via USB or Bluetooth.
No blocks yet — just test LED with manual UI in IDE.
Step 2: Lights and Sound (10–20 min)
Goal: Light up the robot and play a sound.
when green flag clicked
set all RGB LEDs to [color]
play sound [hello/siren/beep]
Step 3: Move Forward and Stop (20–30 min)
Goal: Move forward exactly 1 meter and stop using time estimation.
when green flag clicked
move forward at [50%] speed for [2] seconds
stop moving
Step 4: Square Path with Loops (30–45 min)
Goal: Use a loop to move in a square.
repeat [4]
move forward at 50% speed for 2 sec
turn right by 90 degrees
Step 5: Showcase and Badges (45–60 min)
Each team shows off what they coded. Award printable badges for task completion.
□ Badges to Award
- □ Driver’s License – Movement tasks
- □ LED Luminary – Lights creativity
- □ Sound Sorcerer – Used sounds in programs
Day 2: Sensor Showdown – Maze Navigation and Detection
Objective: Campers use ultrasonic and line-following sensors to interact with the environment using conditionals.
□ Materials Needed
- mBot2 robot (1 per team)
- Laptops with Chrome
- Black tape paths and maze areas
- Printed Mission Cards and Badges
□ IDE Mode: Upload Mode
Upload Mode is required for sensor logic to function independently on the robot.
□ Step-by-Step Activities
Step 1: Sensor Playground (0–10 min)
Test ultrasonic and line sensors in IDE. Display live readings to get familiar.
show ultrasonic distance
show line follower status
Step 2: Obstacle Stop (10–20 min)
Program robot to stop if something is detected in front (e.g., a hand).
forever
if [ultrasonic < 10 cm] then → stop moving
Step 3: Line Following (20–30 min)
Use taped path. Robot must follow a black line.
if left sensor detects black → turn slightly left
if right sensor detects black → turn slightly right
Step 4: Escape the Trap (30–50 min)
Teams build a “trap” maze. Program robot to exit using sensors.
if ultrasonic < X cm → turn
if line sensor sees black → stop or turn
repeat until goal met
Step 5: Challenge Run and Badges (50–60 min)
One team’s robot runs through another’s trap. Award based on performance.
□ Badges to Award
- □ Sensor Wizard – Used multiple sensors
- □ Obstacle Escape Artist – Escaped maze
- □ Robot Master – Earned 10+ mission points total
Instructor Guide – Day 1: mBot2 Lessons 1–6
Time: 60–75 Minutes | Mode: Start in Live Mode (Upload Mode only for Lesson 6)
Overview: Guide students through foundational lessons in motion, sensing, sound, and control. Provide support with troubleshooting, clarify block logic, and ensure each student interacts directly with their mBot2.
Lesson 1 – Let’s Move
Objective: Move forward/backward, turn, and stop the robot.
when green flag clicked
move forward at (50%) speed for (2) seconds
turn left by (90) degrees
stop moving
□ Challenge: Drive forward 1m, turn, and stop.
Lesson 2 – Sensing = Data
Objective: Use ultrasonic sensor and light sensor to display data.
show number [get distance from ultrasonic sensor]
show number [get brightness]
□ Challenge: Wave your hand and observe changing distance!
Lesson 3 – Listen to mBot2
Objective: Play sounds with speaker and optionally voice commands.
play sound [hello/siren]
play note (C4) for (0.5) beats
□ Challenge: Program a sound to play before movement starts.
Lesson 4 – Seeing with Sound
Objective: Use the ultrasonic sensor to detect obstacles and stop.
forever
if (ultrasonic distance < 10 cm) then → stop moving
else → move forward at (50%) speed
□ Challenge: Robot stops automatically when you place your hand in front of it.
Lesson 5 – Sightseeing
Objective: Use line follower sensor to follow or stop on a line.
if (line sensor detects black) then → stop moving
if (left sees black) → turn left
,if (right sees black) → turn right
□ Challenge: Follow a taped path or stop on the black line.
Lesson 6 – Careful Drive
Objective: Use gyroscope (IMU) to detect tilt and stop movement.
⚠ Requires Upload Mode.
get tilt angle X/Y
if (tilt angle > 20°) then → stop moving
□ Challenge: Robot drives forward until it tips or is lifted.
Wrap-Up: Distribute “Driver’s License” and “Sensor Starter” badges to students completing 4+ lessons.
Instructor Guide – Day 1: mBot2 Lessons 1–6
Time: 60–75 Minutes | Mode: Start in Live Mode (Upload Mode only for Lesson 6)
Overview: Each camper receives their own mBot2 and works in pairs. Guide students through foundational lessons in motion, sensing, sound, and control. Provide support with troubleshooting, clarify block logic, and ensure each student interacts directly with their mBot2.
Day 1: Robot Boot-up – Movement, Lights, and Sound
Objective: Campers learn to connect, move, light up, and play sound using the mBot2 and Makeblock Web IDE.
□ Materials Needed
- mBot2 robot (1 per team)
- Laptops with Chrome + USB-C cable or Bluetooth
- Floor grid (taped)
- Printed Mission Cards and Badges
□ IDE Mode: Live Mode
Live mode allows campers to test code in real time while learning basic movement and LED/sound logic.
□ Step-by-Step Activities
Step 1: Connect Your Robot (5–10 min)
Students open ide.makeblock.cc, select mBot2, and connect via USB or Bluetooth.
No blocks yet — just test LED with manual UI in IDE.
Step 2: Lights and Sound (10–20 min)
Goal: Light up the robot and play a sound.
when green flag clicked
set all RGB LEDs to [color]
play sound [hello/siren/beep]
Step 3: Move Forward and Stop (20–30 min)
Goal: Move forward exactly 1 meter and stop using time estimation.
when green flag clicked
move forward at [50%] speed for [2] seconds
stop moving
Step 4: Square Path with Loops (30–45 min)
Goal: Use a loop to move in a square.
repeat [4]
move forward at 50% speed for 2 sec
turn right by 90 degrees
Step 5: Showcase and Badges (45–60 min)
Each team shows off what they coded. Award printable badges for task completion.
□ Badges to Award
- □ Driver’s License – Movement tasks
- □ LED Luminary – Lights creativity
- □ Sound Sorcerer – Used sounds in programs
Detailed Lessons (1–6)
Lesson 1 – Let’s Move
Objective: Move forward/backward, turn, and stop the robot.
when green flag clicked
move forward at (50%) speed for (2) seconds
turn left by (90) degrees
stop moving
□ Challenge: Drive forward 1m, turn, and stop.
Lesson 2 – Sensing = Data
Objective: Use ultrasonic sensor and light sensor to display data.
show number [get distance from ultrasonic sensor]
show number [get brightness]
□ Challenge: Wave your hand and observe changing distance!
Lesson 3 – Listen to mBot2
Objective: Play sounds with speaker and use simple voice commands (optional).
play sound [hello/siren]
play note (C4) for (0.5) beats
□ Challenge: Program a sound to play before movement starts.
Lesson 4 – Seeing with Sound
Objective: Use the ultrasonic sensor to detect obstacles and stop.
forever
if (ultrasonic distance < 10 cm) then → stop moving
else → move forward at (50%) speed
□ Challenge: Robot stops automatically when you place your hand in front of it.
Lesson 5 – Sightseeing
Objective: Use the line follower sensor to follow a black line or stop on black.
if (line sensor detects black) then → stop moving
if (left sees black) → turn left
,if (right sees black) → turn right
□ Challenge: Follow a taped path for at least 10 seconds.
Lesson 6 – Careful Drive
Objective: Use gyroscope (IMU) to detect angle or tilt. Switch to Upload Mode first.
get tilt angle X/Y
if (tilt angle > 20°) then → stop moving
□ Challenge: Drive forward, but stop if tilted or lifted too far.
Wrap-Up: Distribute “Driver’s License” and “Sensor Starter” badges to students completing 4+ lessons.
Hardware Used: This plan uses components from the mBot2 Classroom Pack.
when green flag clicked
move forward at (50%) speed for (2) seconds
turn left by (90) degrees
stop moving
show number [get distance from ultrasonic sensor]
show number [get brightness]
play sound [hello / siren / beep]
play note (C4) for (0.5) beats
forever
if ultrasonic distance < 10 cm → stop
else → move forward at 50%
if black detected → stop
if left sees black → turn left
if right sees black → turn right
get tilt angle X / Y
if tilt angle > 20° → stop
Campers
□ mBot2 Lesson – Day 2
Sensors and Maze Escape
Time: 60 minutes | Mode: Upload Mode | IDE: Makeblock Web IDE
Step 1: Switch to Upload Mode
- Click the dropdown and change from “Live” to “Upload”
- Reconnect if needed (USB is more stable than Bluetooth)
Step 2: Ultrasonic Stop
Use these blocks:
forever
if (distance < 10 cm)
stop moving
□ Challenge: Robot drives until your hand gets too close!
Step 3: Follow a Line
Use black electrical tape on the floor. Program:
if (left sensor sees black) → turn left
if (right sensor sees black) → turn right
□ Challenge: Follow the taped line without going off course!
Step 4: Build a Trap!
Create a maze or trap with tape, boxes, or obstacles.
□ Challenge: Program the robot to escape using sensors!
Examples:
if (line sensor = black) → stop + turn
if (distance < 8 cm) → reverse or turn
Step 5: Upload and Run
- Click “Upload” to send the program to the robot
- Place your robot at the start of the maze
- Press the onboard button to begin!
Day 1 – mBot2 Core Lessons
Time: 1 Hour | Mode: Live Mode (Switch to Upload only for gyroscope)
Goal: Complete Lessons 1 through 6 from the mBot2 Getting Started curriculum.
Lesson 1 – Let’s Move
Objective: Move forward/backward, turn, and stop the robot.
when green flag clicked
move forward at (50%) speed for (2) seconds
turn left by (90) degrees
stop moving
□ Challenge: Drive forward 1m, turn, and stop.
Lesson 2 – Sensing = Data
Objective: Use ultrasonic sensor and light sensor to display data.
show number [get distance from ultrasonic sensor]
show number [get brightness]
□ Challenge: Wave your hand and observe changing distance!
Lesson 3 – Listen to mBot2
Objective: Play sounds with speaker and use simple voice commands (optional).
play sound [hello/siren]
play note (C4) for (0.5) beats
□ Challenge: Program a sound to play before movement starts.
Lesson 4 – Seeing with Sound
Objective: Use the ultrasonic sensor to detect obstacles and stop.
forever
if (ultrasonic distance < 10 cm) then → stop moving
else → move forward at (50%) speed
□ Challenge: Robot stops automatically when you place your hand in front of it.
Lesson 5 – Sightseeing
Objective: Use the line follower sensor to follow a black line or stop on black.
if (line sensor detects black) then → stop moving
if (left sees black) → turn left
,if (right sees black) → turn right
□ Challenge: Follow a taped path for at least 10 seconds.
Lesson 6 – Careful Drive
Objective: Use gyroscope (IMU) to detect angle or tilt. Switch to Upload Mode first.
get tilt angle X/Y
if (tilt angle > 20°) then → stop moving
□ Challenge: Drive forward, but stop if tilted or lifted too far.
End of Day 1. Students who complete 4+ of 6 lessons can earn “Driver’s License” and “Sensor Starter” badges.
Day 2 – mBot2 Advanced Lessons
Time: 1 Hour | Mode: Upload Mode | Goal: Use networking, voice, and AI vision features
Lesson 7 – A Network Game
Objective: Send and receive messages between mBot2 robots using LAN.
- Open ide.makeblock.cc
- Choose Upload Mode from the mode selector at the top
- Click Connect and select your robot (USB works best)
- Drag out:
connect to Wi-Fi (SSID) password (password)
- Drag out:
send message ["go"] via LAN
- On the second robot, use:
when LAN receives ["go"] → play sound
- Click Upload and then press the button on mBot2
□ Challenge: Send a command from one robot, the other reacts (beeps, lights up, moves).
Lesson 8 – At Your Service
Objective: Use voice recognition and text-to-speech from the cloud.
- Use
connect to Wi-Fi (SSID) password (password)
- Add:
recognize speech and save to (speechResult)
- Add:
if (speechResult = "hello") → say "Hello human!"
- Optional: Add
play sound [hello]
- Upload your code, then press the button on the mBot2
- Say your trigger phrase (like “hello”)
□ Challenge: Make mBot2 respond to "hello", "stop", or your own command with speech or action.
Lesson 9 – In the Wild
Objective: Use the Vision Sensor to recognize objects and respond.
Note: Requires Vision Sensor add-on.
- Plug Vision Sensor into Port 1 of mBot2
- Use
start object recognition
- Add:
if (object label = "circle") → say "I see a circle!"
- Optional: Load custom model from Teachable Machine using a URL
- Click Upload and test your object
□ Challenge: Recognize a shape or sign and respond by talking or moving.
□ End of Day 2 Badges
- Voice Commander – Program responds to speech input
- Network Ninja – Robot sends/receives LAN messages
- AI Coder – Used camera vision to classify objects