Professional Documents
Culture Documents
Session: Title:
Sequencing and selection using VEX / Crumble /
1
micro:bit
4 Introduction to algorithms
5 Introduction to programming
6 Introduction to data
Intended learning outcomes
By the end of this session, you will be able to:
curriculum Handout 2
Open discussion.
Robots and robotics
Consider what &
how the robotic
lawn mower might
be having to sense?
vr.vex.com
VEXcode VR playgrounds
vr.vex.com
Using blocks of code
Blocks of code can be used to control events. What do you
think the following blocks will control?
Making the robot move
Using the Drivetrain commands will make the robot move.
Remember:
• the instructions are executed in
sequence
• modify the parameters of the
commands to drive or turn for the
desired amount and direction
Move in a square
Suggested solution:
Alternative solution
Original code:
Example solutions Pentagon: Activity 5
Triangle:
Review of activities Activity 6
Condition – what is
IF being checked? THEN
What will be executed if true?
Selection - IF THEN
IF statements rely upon conditions to be met
When writing IF statements, break the process up:
Original: VEX:
Selection - IF THEN ELSE
A selection is used to make
choices depending on information.
Condition – what is
IF being checked? THEN
What will be executed if true?
Tips:
• use the pen down to
show the path
• use a front eye
sensor
• use an IF / THEN /
ELSE loop
Activity 8 review
Key terms in programming
In this session you have covered the key terms and
concepts of:
• selection
• sequencing and
• algorithms
How would you teach sequencing and selection to KS3 / 4
students?