Your first program
Time to make the robot move. You'll set up VEXcode V5, tell it about your robot, write two blocks and run them on the real thing.
Get a grown-up. Installing an app needs a parent's OK. Ask them to sit with you for the first part. Write your first program right now You don't need VEXcode or a real robot to start. Tap the blue drive block to add it, change the number, and press Run . Can you stop inside the yellow zone? That's a real program: the yellow when started block, then one instruction. Below, you'll do the same thing in VEXcode on a real robot. No robot at home? Keep going with the simulator here and in the next mission. VEX also makes a free online robot called VEXcode VR at vr.vex.com . Step by step Get VEXcode V5 Go to vexrobotics.com/vexcode and download VEXcode V5 for your computer (Windows, Mac and Chromebook are all supported). You can also use it in the Chrome browser at codev5.vex.com . You should see: a VEXcode V5 window with a big empty workspace. Start a Blocks project Click File , then New Blocks Project . Save it right away with a name like first-drive . You should see: a yellow when started block in the middle, and colorful categories on the left. Tell VEXcode about your robot Click the Devices button (it looks like a robot brain with ports). Click Add a device , then pick Drivetrain 2-motor (or 4-motor if your robot has two motors on each side). Pick the left motor's port, then the right motor's port. Use the numbers from your tape! If you have an Inertial sensor , add it here too. It helps the robot turn accurately. Set the wheel size (often 4 inches or 3.25 inches) and the gear ratio if the wheels aren't connected straight to the motors. Click Done . You should see: a new category called Drivetrain full of blue blocks. Build the program Drag a drive forward for 200 mm block and snap it under when started . Click the mm dropdown and choose inches , then change the number to 24 . You should see: the two blocks clicked together. If there's a gap, they aren't connected and the drive block won't run. Download it to the Brain Turn on the Brain and plug the USB cable from the Brain to your computer. The Brain icon at the top of VEXcode turns green when it's connected. Pick a slot (1 to 8). Each slot holds one program. Click Download . You should see: "Download complete," and your program's name on the Brain's screen. Run it (carefully) Unplug the cable. Put the robot on the floor with about 3 feet of space in front. Keep your hands away from the wheels. Tap your program on the…
Ends with a 10-question quiz.
Next mission: Drive and turn
All Blocks Bootcamp missions
- Meet your robot · about 30 min
- Your first program · about 40 min
- Drive and turn · about 35 min
- Inches, degrees and speed · about 35 min
- Repeat yourself · about 35 min
- Drive with the controller · about 40 min
- Arms, claws and intakes · about 40 min
- Robots that sense · about 40 min
- Variables and My Blocks · about 40 min
- Your first autonomous · about 45 min