Programming the micro:bit Robot Buggy for Maze Navigation

Programming the Buggy
m
i
c
r
o
:
b
i
t
 
R
o
b
o
t
 
B
u
g
g
y
Maze Route
Finish
Your robot buggy must 
successfully navigate 
the maze
layout.
Work in your team to 
program
 your micro:bit.
You will need to 
test your program 
at different
intervals before your 
final attempt.
T
i
m
e
 
t
o
 
D
e
v
e
l
o
p
 
y
o
u
r
 
P
r
o
g
r
a
m
!
Your device must be 
programmed.
Your program must meet the needs of the 
design
brief 
and the 
design criteria.
You can program your BBC micro:bit using either the
JavaScript Blocks Editor 
or 
Python Editor.
An 
example program written in each 
has been given
to help get you started.
Go to 
www.microbit.org/code
 to begin!
Go to 
www.microbit.org/code
and open the 
JavaScript Blocks
Editor.
Drag the file 
microbit-robot-
jsb.hex 
onto the work area.
This program acts as a simple
maze solver by driving the robot
forward
 until it hits an 
obstacle.
It then 
backs off 
and 
turns left 
a
quarter turn before repeating.
Test it, download it and
experiment 
with how it works!
E
x
a
m
p
l
e
 
P
r
o
g
r
a
m
 
 
J
a
v
a
S
c
r
i
p
t
 
B
l
o
c
k
s
 
E
d
i
t
o
r
Go to 
www.microbit.org/code
and open the 
Python Editor.
Drag the file 
robot.py 
onto the
work area.
This program acts as a simple
maze solver by driving the
robot 
forward
 until it hits an
obstacle.
 It then 
backs off 
and
turns left 
a quarter turn before
repeating.
Test it, download it and
experiment 
with how it works!
E
x
a
m
p
l
e
 
P
r
o
g
r
a
m
 
 
P
y
t
h
o
n
 
E
d
i
t
o
r
Slide Note
Embed
Share

In this project, teams work together to program a micro:bit-powered robot buggy to successfully navigate a maze layout. The program development involves testing at different intervals before the final attempt. Participants need to meet the design brief and criteria by programming the BBC micro:bit using either the JavaScript Blocks Editor or Python Editor. Examples of maze-solving programs in both languages are provided to help participants get started. It's time to develop the program and test its functionality.

  • Programming
  • micro:bit
  • Robot Buggy
  • Maze Navigation
  • JavaScript Blocks

Uploaded on Oct 08, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. micro:bit Robot Buggy Programming the Buggy

  2. Maze Route Finish Your robot buggy must successfully navigate the maze layout. Work in your team to program your micro:bit. You will need to test your program at different intervals before your final attempt.

  3. Time to Develop your Program! Time to Develop your Program! Your device must be programmed. Your program must meet the needs of the design brief and the design criteria. You can program your BBC micro:bit using either the JavaScript Blocks Editor or Python Editor. An example program written in each has been given to help get you started. Go to www.microbit.org/code to begin!

  4. Example Program Example Program JavaScript Blocks Editor JavaScript Blocks Editor Go to www.microbit.org/code and open the JavaScript Blocks Editor. Drag the file microbit-robot- jsb.hex onto the work area. This program acts as a simple maze solver by driving the robot forward until it hits an obstacle. It then backs off and turns left a quarter turn before repeating. Test it, download it and experiment with how it works!

  5. Example Program Example Program Python Editor Python Editor Go to www.microbit.org/code and open the Python Editor. Drag the file robot.py onto the work area. This program acts as a simple maze solver by driving the robot forward until it hits an obstacle. It then backs off and turns left a quarter turn before repeating. Test it, download it and experiment with how it works!

Related


More Related Content

giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#