----------VEX Robotics Project----------

January-April


Home Page WhiteBox Learning Project 3D Modeling and Printing Project VEX Project Website Design Project

In the VEX Robotics Project, we not only built and programmed robots, but we also competed with them. However, it was a long road to that point. We started building the robots in January, which was no easy feat. Then we learned c++ (a programming language) through several tutorials. In groups smaller than our building groups, we programmed out robot to move foward, grab a nerf ball, and go to the back right corner of the arena with the touch of a button. The day before Spring Break we competed! I drove the robot for my team. We named our robot Tina, due to popular demand. At the end of the bracket, our team came out on top! It was a fun experience overall, one of my favorite projects of all time. Here is an example of my code to make the robot go to the back right corner of the arena (look to the left).

task main ()
{
while (true)
{
// Joystic Control:
motor[rightMotor] = vexRT [Ch2];
motor[leftMotor] = vexRT [Ch3];

// Homing manuever
if(vexRT [Btn8U] == 1)
{
motor[armMotor]= -32;
wait1Msec(1000);
motor[armMotor]= 0;
motor[leftMotor]= 60;
motor[rightMotor]= -60;
wait1Msec(1700);

while(SensorValue (button) == 0)
{
motor[leftMotor]= 60;
motor[rightMotor]= 60;
}

if(SensorValue (button) == 1)
{
motor[rightMotor]= 0;
motor[leftMotor]= 0;
wait1Msec(1000);

motor[rightMotor]= -60;
motor[leftMotor]= -60;
wait1Msec(500);
motor[leftMotor]= 60;
motor[rightMotor]= -60;
wait1Msec(1170);
motor[rightMotor]= 0;
motor[leftMotor]= 0;
wait1Msec(500);
motor[leftMotor]= 60;
motor[rightMotor]= 60;
while (SensorValue (button) == 0)
{
motor[rightMotor]= 60;
motor[leftMotor]= 60;
}
while(SensorValue (button) == 1)
{
motor[rightMotor]= 0;
motor[leftMotor]= 0;
}
}
}
}

For the building process, the class was split into three groups. It took several weeks to complete the robots.

Building was one of my favorite parts of this project, since we hadn't really done something like this in technology beforehand.



We used the coding language c++ to program our robots to execute different manuevers with each push of a button.



The tournament was also super fun. Our team competed twice, and ended up winning the whole thing!