Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Zero to Hero in Vex Robotics
Rating: 4.3 out of 5(53 ratings)
2,199 students

Zero to Hero in Vex Robotics

From the bare basics towards mastery of motor functions and feedback control
Created bySanjin Dedic
Last updated 5/2020
English

What you'll learn

  • Assemble a test rig with a motor and several sensors
  • Understand and apply motor control commands
  • Use a variable which stores distance to an obstacle
  • Control motor output using sensor input (i.e. keep constant distance from moving obstacle)
  • Write functions which move the robot forward a precise number of centimetres
  • Write functions to control the movement of the robot arm and claw
  • Program the robot to lift and throw objects
  • Program the robot with a zig zag line following algorithm
  • Perform advanced proportional control line following
  • Use feedback to keep distance from objects, this means the robot slows down gradually avoiding braking and falling over
  • Use booleans and touch sensor to activate every program with a push of a button once robot is disconnected from the computer
  • Combine line following and distance control to follow the line up to an object
  • Integrate arm functions with line following to pick up rubbish along a road
  • Write a function that scans space
  • Program the robot to locate, drive up to and pick up objects which are placed at random locations

Course content

4 sections33 lectures2h 58m total length
  • Building The Test Rig2:29
  • Setting up Motors and Sensors2:13

    Set up motors and sensors in robo C for vex robotics, configuring bump switch, limit switch, and sonar sensors, and a motor with an encoder, then generate the initial code.

  • Running a Motor3:07

    program a vex motor on port 2 to run three seconds at power using ms waits, and learn to run two motors in tandem by reversing one for forward motion.

  • Using if Else Statements to Select Motor Direction3:49
  • Forever Loops4:04
  • Basic Motor Control3:15
  • Sensor Input, Variables and Motor Control4:58

    Push the bumper button to accelerate the motor by increasing a speed variable from zero, using speed = speed + 1, and applying it to motor 1.

  • Using Multiple Sensors2:49

    Duplicate the bumper switch logic to integrate a limit switch for input control. The adjustment changes motor speed by plus two or minus two to enable acceleration, deceleration, and stopping.

  • Using the Ultrasonic / Sonar Sensor4:00

    Learn to read the ultrasonic sonar sensor in centimeters, use an if statement to trigger motor action under 20 cm, and test with the debugger to observe sensor values.

  • Ultrasonic Sensor Motor Control3:46

    Use ultrasonic sensor readings to control a motor with if statements, starting at speed 40 and stopping when distance exceeds 20, with a 0-100 range and slow-down near walls.

Requirements

  • Students need to have a Windows computer or a virtual Windows app running on a Mac
  • Students need to install Robot C Available from VEX.com
  • Students need to purchase one VEX programming kit or a VEX Virtual Worlds subscriptions

Description

Why Vex Robotics?

VEX Robotics is the ultimate robotics platform: powerful micro-controller (ARM® Cortex®) together with high power high torque motors, precise sensors and a metal frame. Best of all it is programmed in a very user friendly interface (CodeBlocks) using Robot C which is essentially the C programming language with a host of new robotics related functions. 

What is special about this course?

In the first module students complete several quite advanced examples of INPUT / OUTPUT programming whereby they control the speed and the direction of a motor by bringing their hand closer to and further from a distance sensor. This task is broken down into the simplest possible steps; in each step students add two to three lines of code, experiment with changing variables and observing the output of the robot. This ensures that they understand not only what each line of code does, but how it does it and what will happen when it changes.

In the second module students create functions that move the robot forward and backward a precise number of degrees. They also learn to control the robot arm, performing both grabbing and lifting. The module contains key concepts like booleans, while loops and various varieties of functions. 

In the third module student learn how to follow lines both using a basic Zig Zag algorithm and a much more advanced proportional algorithm which uses a sensor feedback loop. They also use fedback to create a program which gets the robot to keep constant distance between itself and the nearest object. 

In the fourth module students apply everything they learned into two advanced tasks, the first of which is to follow a line and pick up cans along the way taking them to the bin at the end of the line. The second is an environment scanner which looks for rubbish (cans) , picks them up and drops them off at the bin. 

Who this course is for:

  • Anyone familiar with programming and looking to get into robotics
  • Anyone who just acquired a VEX robotics kit and is keen to get started
  • Robotics enthusiasts looking into the VEX platform
  • Robotics Enthusiasts looking to program Robot C