Transition For
Gateway | Automation & Robotics
Project Lead the Way| Refreshers
By its nature, the study of robotics inherently incorporates all four pillars of STEM.
The VEX EDR platform was designed from the ground up to encourage creativity in problem solving...with VEX, there is almost always more than one way to accomplish the same goal.
V5 is designed specifically for education and competition, leveraging years of customer feedback, we’ve created a faster, smarter, and more powerful control system that is perfect for any learning environment.
Transition For
Gateway | Automation & Robotics
The V5 Brain
The V5 Battery
Pro Tip…Make a habit of never using batteries with charge below “2 green dots”
Very Pro Tip…the battery clips are delicate. Be careful not to pry too hard when removing batteries.
The V5 SmartMotor
The V5 Sensors
One of the key elements for a robot is the ability to receive feedback from the environment.
The V5 Sensors bring the quality and abundance of feedback to a whole new level for educational and competition robots.
The V5 Optical Sensor
is a combination of the following sensors:
The V5 Distance Sensor
This sensor uses a pulse of classroom-safe laser light to measure the distance from the front of the sensor to an object.
Programming V5
https://codev5.vex.com/
Device Setup
Assign Motors and Sensors to ports on the Brain
If you assign a device to a port but do not connect it, the robot will display an error and will not run the program.
Tutorials!!
Motor Commands
Use some of the blocks seen here to control the motor. You can command motor behaviors as well as set motor properties with the motion blocks.
When programming the V5 SmartMotor…
Download and Run
Download your program to the Brain.
Tutorials!!
Control Features and Conditional Logic
Control Features and Logic are NOT CODE
They CONTROL Code in your program
Conditional Logic is True/False, Yes/No, On/Off, 1/0
Computers can only answer one question at a time
Loops
Program your motor to spin for 3 seconds and stop for 1 second 5 times using a repeat block
**can you make the same interval occur “forever”?
Environmental Feedback
Bumper
Bumper is a digital sensor
It is either “pressed” or not
Use them with conditional logic and control structures
Digital Sensors
The 3-wire limit switch and bumper switch can be connected to the brain using the legacy ports.
These 2 sensors return a digital value when pressed or released.
Optical
Sensor
The optical sensor is able to detect ambient light, reflective infrared light, color, proximity, and some simple gestures.
Distance Sensor
The distance sensor detects distance away from an object up to 2 meters away. It also is able to differentiate between small, medium, and large sized objects.
Program the following
2 Motors
Mr. Coffey needs a program that will run a motor at ¾ speed after the bump switch is pressed. Then, when the limit switch is pressed the motor stops and a second motor will run at ¼ speed in reverse for 5 seconds.
Possible
Solution
Program the following
4 Sensors
Mr. Coffey needs a program that will run both motors from full speed down to ¼ speed, using 4 sensors. The motors will run for 5 seconds each time and then stop. Motors will run only after a sensor is activated. The program must repeat without restarting.
Possible
Solution
Program the following
Garbage Cans
Mr. Coffey needs a program that will run a motor at ¼ speed as long as the optical or distance sensor does not sense a garbage can (or finger). If the sensor is activated, the 1st motor stops and the second motor starts. The motor must simulate the picking up and putting down of a garbage can. The 1st motor must then start again after a slight delay. Then, when the sensor is activated again, the 1st motor will stop and start the pick-up process again. Thus, an automatic garbage truck.
Possible
Solution
Building with V5
Unique V5 Parts
V5 and PLTW
**Spinning Sign
**Toll Booth
Terry Traffic Tamer
**Tekrock’s Bridge
**Grandma’s Chair
**Robot Drag Race
**Freight Elevator
Road Trip
Stay on Course
**Pick and Place
Where
should
you
start?
Project 3.4 Automation Through Programming (VEX V5)
We want your feedback!