1 of 27

Lesson 1: Movement & Repeat Loop

2 of 27

Best Approach to e-CCA Sessions�Side-by-Side Windows on Laptop

Zoom

(instructor will share screen here)

Web Browser�(chrome)

3 of 27

Best Approach to e-CCA Sessions�Class Projector + iPad

Shared Zoom

(instructor will share screen here)

iPad

Web Browser�(Safari)

4 of 27

Logging in to VEXcode VR

STEP 1: Type: https://vr.vex.com/ in the address bar

5 of 27

Navigation - Playground

  • Once the “Playground” button has been selected, the Playground window will open.�
  • Playground: virtual space for your VR Robot to interact and move

VR Robot

6 of 27

Navigation - Art Canvas

To select a new plsyground, open the playground drop-down menu and choose it...

  • Start Button:�Code will launch and your VR Robot will move.
  • Refresh Button: �Will reset the position of your VR robot to the beginning.

7 of 27

Navigation - Playground

To select �Robot View

8 of 27

Navigation - Playground

To select �Bird’s Eye View

9 of 27

Navigation - Playground

Toggle On or Off�State/Sensor Info Toolbar

10 of 27

Block Programming Basics

  • Drag & Drop
  • Change Parameters
  • Run To Test

11 of 27

Distance Drive Tutorial Guide

  • Playground: Grid Map
  • Program the VR Robot to drive forward and reverse 1 grid squares.
  • Note: 1 square (also known as a gridblock) measures 200mm by 200mm.

CODE

12 of 27

Distance Drive - Tutorial Guide

  • Playground: Grid Map
  • Program the VR Robot to drive forward and reverse 3 grid squares.
  • How far should you program the VR Robot to move if you want it to travel 3 grid squares and back? �(hint: 1 grid = 200mm)

13 of 27

Distance Drive Challenge (Tutorial Guide Solution)

14 of 27

Driving Forward & Reverse

Basketball Suicide Drills

  • Playground: Grid Map
  • Program the VR Robot to drive forward 1 grid square.
  • Next, program the VR robot to drive reverse to the beginning point.
  • Continue this pattern for 2 grid squares, then 4 grid squares.
  • Note: The size of 1 square is 200mm by 200mm

15 of 27

Driving Forward & Reverse (Tutorial Guide Solution)

16 of 27

Using Comment Blocks in Coding

EXAMPLE ON HOW TO USE COMMENT BLOCK

17 of 27

Understanding Degree Movements

90 degrees

180 degrees

18 of 27

Driving Forward & Reverse

Basketball Drills - Challenge 2!

  • Playground: Grid Map
  • Program the VR Robot to drive forward 1 grid square, stop, and return back 1 grid square to where the VR Robot started without using the reverse block.
  • The VR Robot will need to turn around to drive back to the first position.
  • Continue this pattern for 2 grid squares, then 4 grid squares.
  • Note: The size of 1 square is 200mm by 200mm

19 of 27

Repeat Loop

  • The size of 1 square is 200mm by 200mm
  • To save ourselves the trouble of multiplying no. of grids to 200mm ; we use repeat loop.
  • Example:

20 of 27

Navigation - Saving & Loading Projects

New Blocks Project: Create a new blank project.�

Save To Your Device: To save your project.

Load From Your Device: Load your saved projects to the VR platform and your saved codes will appear.

Click on this to: RENAME/TITLE your project.

21 of 27

More Movements!

Find Your Age - Challenge 1

  • Playground: Numbered Grid Map
  • Program the VR Robot to drive to your age as of today. (Upload answers to link provided)
  • Hint :

22 of 27

More Movements!

Find Your Age - Challenge 1 (Sample Solution)

Note:

This is a sample solution based on the age 13.

Should you not be able to troubleshoot your code with reference to this, please ask your instructor for assistance.

23 of 27

More Movements!

Find Your Age - Challenge 2

  • Playground: Numbered Grid Map
  • Have the VR Robot drive to your age in the year 2035.
  • For a 13 year old, I will be 28 in 2035!
  • (Upload answers to link provided)

24 of 27

More Movements!

Find Your Age - Challenge 2 �(Sample Solution)

25 of 27

Uploading Projects!

  • Not all activities will be provided with answers �
  • There will be tutorial guide activities (with answers provided) and challenges for you to complete and submit.�
  • Submission link will be provided �
  • After completion of your projects : �1. SAVE IT TO YOUR DEVICE�2. UPLOAD IT ONTO THE SERVER VIA THE UPLOADER LINK PROVIDED.

26 of 27

Checklist (Have you uploaded…?)

  • Find Your Age Challenge 1
  • Find Your Age Challenge 2 (Age in 2035)

27 of 27

Thank you!

See you in Lesson 2! ��