Skip to main content
Skip to Main Content
Skip to main content
Navigation

Your First Blocks Project in VEXcode IQ (2nd gen)

Watch this video to learn how to code your first project with VEXcode IQ. See how to create a project, download it to your Robot Brain, and run the project to make your robot move in just a few steps.

(upbeat music)

Hi, and welcome to the VEX Classroom. I'm Olivia Kissell, and in this video, I'm going to show you how to create your first blocks project in VEXcode IQ to run your robot. If you've never coded a robot before, or if you're new to VEXcode, this video is perfect for you. You're gonna see just how quick, easy, and intuitive it is to work with VEXcode in order to code your robot. Our goal is to make it quick and easy for you, so that you can get up and running with your robot, with your students. So let's go ahead and get started.

I'm gonna switch to the overhead view. And I'm wanna show you the materials that you're going to need. You're going to need a robot. I'm using the BaseBot, which is a 2nd generation build. If you would like to follow along, take a moment and pause the video and build your BaseBot. I did include a link to the build instructions below. You also wanna make sure that the battery on your BaseBot is charged. Also, you're going to need a USB cord and a device that has VEXcode installed.

Now, once you have everything ready, you want to go ahead and turn on the robot by selecting the Check button. Next, I'm going to connect the robot with the USB on the side. You can see there's a USB-C port on the BaseBot. This is a 2nd generation brain, and the cord is connected to my device. Now I want to launch VEXcode IQ. As you can see, it's launched on my device. If you don't have this already installed on your laptop or computer, you will find a link to a section of the Stem Library below that will give you instruction on how to install VEXcode IQ on your device.

Now, once I have VEXcode IQ open, I can look at the top on the toolbar and I see the Brain icon is green. That's confirming that my robot brain is connected to the VEXcode IQ. Now that I know that it's connected, I wanna configure VEXcode for my robot. I'm going to use a template. So to get to the templates, I wanna select File, Open Examples. I wanna confirm that 2nd gen is selected here, because I am using a 2nd generation brain. Then I'm going to select Templates.

As I mentioned, I'm using the BaseBot. So I'm going to select the BaseBot Drivetrain 2 Motor template. As you can see, when the template opens, I now have this Drivetrain category of blocks in my toolbox on the left. I can also confirm that my Drivetrain has been configured by selecting the Device window icon here on the right. I see the Drivetrain is there, and 2nd generation is selected, excellent.

Now I'm ready to build my project. So I'm gonna go ahead and drag over the Drive For block, and this will have my robot Drive Forward for a specific distance. Here, I'm gonna leave it at 200 millimeters. So with this project, when I run it, my robot should Drive Forward for only 200 millimeters. Once I have the project built, I'm ready to save it. I'm gonna select the Project Name window, and here, I'm going to name my project. I'm gonna say, Drive For. I see that it is going to be saved to my downloads, which is where I want it. I'm going to select Save.

Now, I'm ready to download and run the project, once it's saved. So I'm gonna go ahead and move to the split screen so you can see my robot and VEXcode. Now, in the top right corner of the toolbar, there is a Download icon. I'm gonna select that. A Progress Menu will appear. Once that's completed, I should see my project on my robot brain and it should have the name Drive For, and it does. I see, Drive For. Once I see that on here, I know that the project has successfully been downloaded to my robot brain.

I can disconnect the robot with the USB, so that it can move freely. I'm gonna just move it back a little bit. I'm gonna select the Check Mark on my robot brain to run the project. First, it calibrates the inertial sensor, and then it will run. And there you have it.

Congratulations.

You just created your first blocks project in VEXcode IQ to run on your robot. As you can see, it's quick, it's easy, and it's something that you can do quickly and easily with your students. It's intuitive, and we want you to get up and running with your robot as quickly as possible.

I hope you enjoyed this video. Please let me know if you have any comments or questions about anything that was covered, and make sure to check the links below. If you have any questions or comments, please share them in the Professional Learning Community. I hope to hear from you.

Thank you so much.

(upbeat music ending)

Share

Like this video? Share it with others!