
Meet Sonnier, a mechatronics and robotics educator with experience in programming, electronics, Arduino, 3d printing, and digital technologies.
Explore the fundamentals of VEX robotics by understanding what a robot is, the VEX Cortex, motors and sensors (potentiometer, ultrasonic), and core programming concepts (if-else, forever loop) to control motion.
Build a test rig with the cortex micro control arm, a 393 motor, and three sensors (bumper switch, limit switch, ultrasonic), wiring them to digital ports 3–5 as shown.
Create new file in robo c for IVAX and configure bump switch on port three. Set up limit switch, sonar with second port, and motor on port two with encoder.
Program a motor on port 2 to run for three seconds at maximum power, using wait for timing and forward or backward direction in tandem with another motor.
Use if else statements to control motor direction from a bump switch in robot C. Press the bump to spin forward; otherwise spin backward.
Upgrade the if else program to a forever loop using while true so the motor runs forward while the button is pressed and reverses when released.
Demonstrate basic motor control by using a motor command to set port and speed as a percentage (-100 to 100), enabling forward and reverse power in a forever loop.
Control motor speed with a push button and bumper switch by incrementing an integer speed variable from zero up to five times per second and applying it to motor 1.
Learn to implement acceleration and deceleration using bumper and limit switches, duplicate the bumper read, and adjust motor 1 speed by plus or minus two as switches press.
Read the ultrasonic sonar value in centimeters, compare it to a threshold, and drive a motor when an object is closer than 20 cm, with debugging to observe sensor readings.
Learn to use ultrasonic sensor values to control a motor, turning on below 20 and off above 20, with a 0–100 range for smooth stopping.
Why Vex Robotics?
VEX stands for Video Editor for XML (Extensible Markup Language). VEX Robotics is the ultimate robotics platform for the 7-10 Digital Technologies Curriculum. VEX Robotics hosts the world's largest robotics competition for students all over the world to compete against one another using a robot of their own design. VEX has text-based coding in the most universal programming language: "C'. It also has a capacity for data management and analysis and finally, VEX has a capacity to use coding and robotics to solve real world problems.
What is special about this course?
After eight lessons, 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. This course will help you understand and achieve the skills of VEX robotics.