0% found this document useful (0 votes)
68 views9 pages

Session 1 - Activity Booklet

This document provides activities for using sequencing and selection in programming with VEX VR, Crumble, and micro:bit. Activity 1 has participants identify elements of the VEX VR platform. Activity 2 demonstrates basic robot movement blocks. Later activities have participants modify code to draw shapes or patrol a map. The session concludes with an independent task to program one of three robotics activities using skills from the session.

Uploaded by

Müge Uysal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views9 pages

Session 1 - Activity Booklet

This document provides activities for using sequencing and selection in programming with VEX VR, Crumble, and micro:bit. Activity 1 has participants identify elements of the VEX VR platform. Activity 2 demonstrates basic robot movement blocks. Later activities have participants modify code to draw shapes or patrol a map. The session concludes with an independent task to program one of three robotics activities using skills from the session.

Uploaded by

Müge Uysal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

An introduction to algorithms, programming and data

for D&T Teachers


Session 1: sequencing and selection

Activity 1
Open the VEX VR website, using the print screen below, identify all the key elements / buttons
of the platform that you’ll use in today’s session. You may wish to refer back to the print screen
throughout the session.
Website: vr.vex.com
Activity 2
Open a new tab in your browser
1. Go to vr.vex.com
2. Open the virtual playground and select the grid map from the drop down menu
3. Drag and drop the ‘drive forward 200mm block from the toolkit into the window and
attach it to the ‘when started’ block

4. Run the program and watch the robot move forward 200mm
5. Take 10 minutes to ‘play around’ with the various drivetrain blocks such as drive forward
and turn right for example. Make use of the different parameters available from the drop
down menu as well to make the robot move in reverse and to turn left.
Try using the different camera angles as well.

Original code: Your modified code:

Activity 3
Open a new tab in your browser
1. Try this simple sequence of instructions to see what the robot does when the program is
run.

2. Use the ‘grid map’ in the playground.


Activity 4
Modify the code from the previous activity to make the robot move in a square as shown on the
slide.
Remember each square on the grid represents 200mm.

Tip: To duplicate a block simply right click on the block you want to copy.

Note: When duplicating you will duplicate ALL the blocks below and including the one on which
you click on in the first instance.

Original code (from previous activity): Your modified code:


Activity 5
1. Copy the code below, try to predict what will happen before you run it.

What is your prediction when the code is


Original code:
run?

2. Modify the code once run using a repeat loop to make the robot draw some other
geometric shapes such as an octagon, hexagon and pentagon for example.
Original code: Your modified code:
Activity 6
Share in the text chat what you have managed to achieve in the session so far
What obstacles did they encounter and what they did to overcome them?

Activity 7

The table below shows the code for each of the three platforms for activity 7.

It’s advised you complete the following activity on VEX VR, however if you have a Crumble or
Micro:Bit device available then you could use these as an alternative.

vr.vex

BBC
micro:bit
Crumble

Activity 8
Modify the code to make the robot ‘patrol’ around the perimeter of the ‘Grid map’ playground.
You should:
• use of the ‘move robot pen down’ to show the route taken
• use a front eye sensor to detect the perimeter wall
• use an IF / THEN / ELSE loop to make sure the robot keeps going FOREVER

Original code: Your modified code:


Session 2: creating a working program – independent coding task

Task requirements:
• select option 1 and either option 2 or 3, of the 3 programming activities below and create
a program using the skills developed from the use-make activities in session 1
• you’re free to select the most appropriate coding environment for your needs i.e. VEX,
Crumble or micro:bit
• share your completed code via the community group using screen prints
• discuss your experiences in the community group alongside your screen prints.
• feel free to have a play creating your own code or explore the further free resources from
VEX / Crumble / micro:bit.

Option 1:
VEXcode VR - Disk Maze
Program the VEXcode VR robot to navigate from the starting position and finishing at the red
square:

• program the VEXcode VR robot to navigate from the


starting position and finishing at the red square
• the robot will need to catch all the green and blue
robots before researching the red robot.

Tips:
• the Front Eye Sensor can be used to detect
the Disk colours
• use if/else selection to determine which way
to turn at each Disk
• the repeat until loop could be useful!
Option 2:
Kitronik: MOVE Buggy
• the MOVE Buggy allows you to sense light and sound
and can be programmed to avoid, detect, and sense
obstacles.
• the two motors are bi-directional and allow for full
turning capacity.
• a pen can be carried for drawing as it moves around.
• put the buggy inside a big cardboard box with some
small boxes as obstacles.
• use if/else selection to detect and sense objects.
• the forever loop could be useful!

Option 3:
Crumble

• the crumble buggy has a line sensor attached to the


front which can be used to track or follow a path.
• the two sets of wheels are controlled individually
making the buggy fully steerable.
• set up a line or track for the robot to follow or drive
around.

Tip: You will need to use an analogue sensor, one set left and one set right and play about
with the light levels they react to

You might also like