[go: up one dir, main page]

0% found this document useful (0 votes)
326 views17 pages

MBot Lesson 3

This document contains instructions for a coding and robotics lesson that teaches students how to use an mBot's LED panel display. It includes 6 sections that cover installing the LED panel, displaying images, text, numbers and time on the panel. The document provides examples of code to display different content on the LED panel connected to port 1. It concludes with 3 challenge problems for students to write programs to display a face, their name and time, and scrolling text on the LED panel.

Uploaded by

Ricky Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
326 views17 pages

MBot Lesson 3

This document contains instructions for a coding and robotics lesson that teaches students how to use an mBot's LED panel display. It includes 6 sections that cover installing the LED panel, displaying images, text, numbers and time on the panel. The document provides examples of code to display different content on the LED panel connected to port 1. It concludes with 3 challenge problems for students to write programs to display a face, their name and time, and scrolling text on the LED panel.

Uploaded by

Ricky Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Coding and

Robotics
Level 1
mBot
01 Instructions

02 The LED Panel Installation

Lesson 3 03 Displaying image on the LED panel

Contents 04 Displaying text on the LED panel

05 Displaying time on the LED panel

06 Challenge
Instructions
1. Please check your group No on the mBot
2. Please check all the parts of the mBot
3. Handle the mBot with care
4. Pay attention to the demonstration
5. Appoint a video grapher and a lead in your group
6. Learning journal log book to be filled after each
lesson
Introduction to
LED panel
Groups
Group 2 –Ms. Jessica (ART Room)
Group 1 – Mr. Wong & Ms. Danica LEUNG YA YUK (KAY) IG S1
(PYP Room)
LEILAH JEFFREY IG J2
SIRINTHIP SAPASSO PYP 1
LOUIZE BRAGA WONG DP Y1

Group 3 –Ms. Carolyn (ART Room) Group 4– Mr. Ben (ART Room)
LIU XUANTING IG S1 LEE XUEZHE, DAMIEN IG J2
HUANG ZIGE (ELISE) IG S2 SHEN FEI IG S2
ZHOU JUNHAO (BILLY) IG S2 YAN MENGYUN (CICI) IG S1

Group 5- Mr. Edmund (IB Room) Group 6 – Ms. Jacklyn/Sally (IB Room)
LI FULIN (FRANKLIN) IG J2 LI XINMIAO CIE AL1
TIM (TERRY ) IG J2 ZHANG XUCAN (ZACHARY) IGS2
ZHANG CHAO (CHARLIE) IG S2
Group 7 – Mr. Kaddy (AL2 Room)
CAITLIAN CIE AL1 Group 8- Mr. Kaddy (AL2 Room)
ADRIANNE GEORGIE SLOANE CIE AL1 RIKZAN KAMAL BIN ABDUL RAHIMAN CIE AL2
GOBIND SINGH JOHAL CIE AL1 NGUYEN THUY KHANH DU (STELLA) CIE AL2
The LED Panel Installation

https://
www.youtube.com/watch?v=KsEFMcq-cA0
Add a LED matrix display

Coordinate of the Face Panel


Add a LED matrix display to mBot to make
it cuter and more playable.
Use a RJ25 cable to connect the LED
matrix to a RJ25 port of the main board.

As shown in the figure above, the face panel


has the upper-left corner as the origin of the
coordinate system, and the direction of x and y
is indicated by the arrow. Parameters:
x: -15 ~ 15
y: -7 ~ 7
Get playing with Display panel

Example
1 LED panel (port1) shows image () for ()
secs

Displays the specified image on mBot's


screen that is connected to the specified
port of the main board for the specified
amount of seconds. The LED panel connected to port1 will display
the specified image for 1 second.
Get playing with the Display Panel

Example
2. LED panel (port1) shows image ()

Displays the specified image on


mBot's screen that is connected to
the specified port of the main board.

 The LED panel connected to port1 will switch


between the two specified images for 10
times, with the time gap of 1 second.
Get playing with Display panel

Example
3. LED panel (port1) shows image
() at x:() y:()
Displays the specified image on
mBot's screen that is connected
to the specified port of the main
board at the specified position. The LED panel connected to port1 will display
the specified image at (0,0).
Get playing with Display panel

4. LED panel (port1) shows text () Example


Displays the specified text on
mBot's screen that is connected
to the specified port of the main
board.

The LED panel connected to port1 will display


"hello"
Get playing with Display panel

5. LED panel (port1) shows text () Example


at x:() y:()
Displays the specified text on
mBot's screen that is connected
to the specified port of the main
board at the specified position.
The LED panel connected to port1 will display
"hello" at (0,0)
Get playing with Display panel

Example
6. LED panel (port1) shows
number ()
Displays the specified number on
mBot's screen that is connected
to the specified port of the main
board.
The LED panel connected to port1
will display “432022”
Get playing with Display panel

7. LED panel (port1) shows time Example


():()
Displays the specified time on
mBot's screen that is connected
to the specified port of the main
board. The LED panel connected to port1 will display
time “2:15”
Get playing with Display panel

8. LED panel (port1) clears screen Example


Clears the screen that is
connected to the specified port of
the main board.

The content on mBot's external screen will be


cleared.
1. Write a program that will display a face on the
LED Panel
2. Write your name and time on the LED panel
3. Write Program to Scroll text “ Ascensia “ in
motto/Slogan on the LED panel for example “
“ASCENSIA IS GREAT ! “
Thank
You!

You might also like