MBot Introductory Course-Use MBot To Learn Robotics
MBot Introductory Course-Use MBot To Learn Robotics
MBot Introductory Course-Use MBot To Learn Robotics
01
Teaching Suggestion
Lesson
Lesson 1
1 Your
Your First
First Robot
Robot
Open software
Connect device
tool mBlock 5 Graphical
and upgrade
and give programming
firmware
instructions. - 10 mins
- 5 mins
Interface
Add
- 5 mins
Inquiry
hardware
introduction
device 35 mins
- 10 mins
- 5 mins
Arranging the
Explain the site and
Summary and
rules of the
game.
determining
the team
Start the game.
- 12 mins
clean up. Activity
- 5 mins
25 mins
- 3 mins members.
- 5 mins
Reflection
5 mins
Overview
Objectives
In this lesson, students will learn I can identify the name of the
parts inside the kit and
about the features and basic understand how to use it.
Select the blocks you need from the Open mBlock 5 and click the plus
Blocks area. Left click the block and button under the Device category
hold it. Drag the block to the Script
area and drop it.
firmware
Power on your hardware device and connect
it to the computer via a USB cable or a
Bluetooth dongle.
classroom.
Activity B - Sumo
Time: 3 mins per round
What kinds of
structural
How did you feel when improvements could
you finished you apply to the mBot
assembling your first for better performance
mBot and writing its during the activities?
first program?
02
Teaching Suggestion
Lesson2 1Makeblock
Lesson Your First Sensors
Robot
Introduce the Programming Examples of Buzzer\ Students review knowledge and ask
LEDs\ Light Sensor\ Ultra-sonic Sensor. questions. Programming
- 40 mins - 10 mins
50 mins
Open mBlock5
and Introduce Wait Blocks Forever Blocks If-then Blocks
some
commonly
and Wait Until
Blocks
and Repeat
Until Blocks
and If-else
Blocks
Key
used blocks.
- 10 mins
- 5 mins - 5 mins - 5 mins
Programming
Topics
25 mins
Reflection
5 mins
Overview
Objectives
I/O System
Inputs and Outputs
stickers.
Programming
Output
Buzz at a specified
frequency for a specified
amount of time.
Programming Example
3. Ambulance effect
Light Sensor Programming Example
Open mBlock5
—— Let’s start!
If statements
Loops
What is input?What is
output?
03
Teaching Suggestion
Lesson
Lesson13Your FirstMatrix
Me LED Robot
Programming
Show the mBlock Programming function list to Explain the event executive
students. examples to students.
- 10 mins - 45 mins
55 mins
Introduce
Introduce “Set
variable and
( ) to ( )” and
explain how to Introduce axis.
make it in
“Change ( ) by
( )” Blocks.
- 5 mins Key
mBlock 5.
- 5 mins
- 5 mins
Programming
Topics
15 mins
Reflection
5 mins
Overview
Application
Students can drag out the following Use the "if...then...else" conditional
two blocks, double click on them and statement to switch between two
observe their different effects. custom patterns.
Variable
programming languages,
What is the xy
coordinate system?
How are the axes on
the Me LED Matrix
oriented?
RGB Line Follower
04
Teaching Suggestion
Lesson41RGB
Lesson YourLine
FirstFollower
Robot
Reflection
5 mins
Overview
Objectives
Hardware
Decimal increment
Binary increment
Binary counting follows the
Binary numbers are important because same procedure, except that
of its straightforward implementation only the two symbols 0 and 1
in digital electronic circuitry using logic are available. Thus, after a
digit reaches 1 in binary, an
gates. The binary system is used by
increment resets it to 0 but
almost all modern computers and
also causes an increment of
computer-based devices including the next digit to the left:
RGB line followers to represent their
0000 → 0001
sensor status. rightmost digit starts over, and next digit
is incremented.
0010 → 0011 If (Tony gets full score on math exam)
rightmost two digits start over, and next digit is incremented. Then
(Tony plays games)
0100, 0101, 0110, 0111
rightmost three digits start over, and the next digit is
incremented.
THEN
IF
05
Teaching Suggestion
Lesson 1 Your
Lesson First
5 Color Robot
Sensor
Reflection
5 mins
Overview
Objectives
competitions.
Execution Flow
Going back to the first programming example, why is the forever block necessary for the
LED screen to display the sensor output in real time? The reason is that without the forever
block, the execution simply flows through the ‘show number’ block once and terminates
since there is no further blocks to be executed. Thus the LED board would only display
the initial sensor output and never update the value again. Despite the simplicity of this
concept, having a solid understanding of the execution flow is crucial to building or
debugging larger, more complex programs.
Reflection
06
Teaching Suggestion
Lesson61Mp3
Lesson YourAudio
First Robot
Player
Connection
Students decide Method: how
Hardware what music to play to use a Me
introduction and try to download Audio Player Inquiry
- 10 mins it. with the
- 10 mins mBot? 25 mins
- 5 mins
Reflection
5 mins
Overview
Objectives
◼ A non-flashing, blue
Me Audio Player module, compatible
on-board LED
with the entire series of makeBlock
indicator suggests
control boards, is able to play back
the audio player is in
and record sounds with a built-in
decoder. This module’s connection play back mode,
port is marked with a white sticker, while a flashing
meaning that it is controlled by I2C indicator means it’s
signals, and must be connected to a in recording mode.
port with white sticker on the main
board. ◼ The module’s metal hole area is the
reference area in contact with the
metal beam;
1. Choose a port
8. Stop playback
Stop recording
Playback
Key Programming Topic
Wait until
condition is true.
Reflection
Is it possible to
implement all the
common features of an
audio player using the
Me Audio Player?
07
Teaching Suggestion
Lesson
Lesson 1 Your First
7 Bluetooth Robot
Controller
Module Introduction
- 10 mins
Connection Method
- 5 mins
Bluetooth Pairing
- 5 mins
Inquiry
20 mins
Topics
5 mins
Reflection
5 mins
Overview
In this lesson, students will learn the I can use other display
basics of using the Bluetooth devices to read the return
parameters of the joystick.
controller. And they will try to
customize each button or joystick to
realize the control of mBot hardware. I can associate the
displacement of the
joystick with the wheel
motor speed.
I can use
mathematical operations
to complete accurate
assignments.
Objectives
mBlock Programming
function list
Joystick
08
Teaching Suggestion
Lesson 1 Your
Lesson First
8 9g Robot
Servo
Programing
preparation Programming-Basic
Program
to add the program to control Challenge
comparation
extension of the 9g servo in inquiry
Programming
and analysis
servo in the mBlock 5 - 12 mins
- 40 mins
software - 3 mins
- 5 mins 60 mins
Reflection
5 mins
Overview
Objectives
Application
Before to program the servo, Then, you will find the following
we have some questions. block which can be used to
control the 9g servo.
Why do we need to use
the servo? And how do
we program to control the
servo in mBlock 5?
Debounce
Can we program to control the
servo rotate from 0 to 180 degree
by degree?
Button Debounce
09
Teaching Suggestion
Lesson 1 Your
Lesson 9 Advanced First Robot
Programming Techniques
Kick off the class by a mission Mission work reflection and Software and hardware
which provides a step by step
guidance to students.
lesson objectives
introduction.
cognition.
- 5 mins
Overview
- 10 mins - 10 mins 25 mins
Five steps to
Mission process Program test Problems
implement
breaking down and sorting and
Case Study
the final
and analysis. debugging. reflection.
program.
- 10 mins - 20 mins - 30 mins
- 30 mins
90 mins
Reflection
5 mins
Overview
Objectives
10
Teaching Suggestion
Lesson
Lesson 1 Your First
10 Advanced LineRobot
Following
Introduce the lesson by Let the students think about Show the content and
adding new challenges
about line following.
how to solve the new
problems. - 10 mins
learning objectives of
this lesson.
Overview
- 10 mins - 5 mins
25 mins
Provide three
programs for
For the purpose students to
Explain the
of this lesson, think about
Case Study
importance
first explain the which one
of turning
turning radius to produces the
radius.
students. largest and
- 5 mins 25 mins
- 5 mins smallest
turning radius.
- 15 mins
Program
Four common Program
example for
but difficult example for
turning at
situations about turning at Y-
cross
line following.
Techniques
intersections
intersections.
- 5 mins - 15 mins
Program - 15 mins Program
example for example for 65 mins
going stopping at
through cross Y-
intersections. intersections
- 15 mins - 15 mins
Reflection
5 mins
Overview
11
Teaching Suggestion
Lesson 1 Your
Lesson 11 Advanced First Robot
Programming Techniques II
Learning objectives
Mission introduction and
Overview
Mission analysis and
agreement.
rules explanation. solution brainstorming.
- 5 mins
- 10 mins - 5 mins
20 mins
Reflection
5 mins
Overview
Objectives
interpret the task rules and split the I can edit the program to
record the sensor multiple
workflow. The problems encountered
times and return the value
in the objective physical environment automatically, and the
average calculation is done
are resolved and solved by program automatically.
Mission Breakdown
How long does the mBot
need to move 1 cm?
Before we face any mission,
we have to complete a
detailed interpretation of the
task rules and a breakdown
of the task workflow.
Background knowledge
Can this sample program complete the mBot move forward and
stop on the red line? Can students find some bugs in this sample
program?
Because we need to
install the functional
structure in the front
of the mBot, here we
extend the distance
between the red line
and the Block A to
15cm.
Did we use the Have you
same motor considered the
power value as effect of the width
the mBot move Whether to consider of the front obstacle
1cm time the larger forward on the steering
program? displacement conditions?
caused by the inertia
of the car due to the
increased speed?
After waiting for the trigger button Steering to the right with 30%
to start, the mBot advances at a power until the distance is greater
speed of 30% until the distance to than 15, continuing to turn until
the obstacle is just less than 15 cm. the distance is less than 18 stops.
Case Analysis
V3 - The average of
the distance.
State - mBot
procedure state.
In the machine-
controlled program,
Which part of the
besides considering
program do you think
the logic of the
is the most difficult
program, what other
part to understand?
factors should be
considered?
12
Teaching Suggestion
Lesson 12
Lesson 1 Your First Robot
Program Picker
Reflection
5 mins
Overview
Objectives
provoking.
Mechanisms
What is misleading
What are some caveats about saying ‘press the
related to the program button once’ in natural
picker? language?