SlideShare a Scribd company logo
Introduction to the
VEX® Robotics Platform and
ROBOTC Software
© 2012 Project Lead The Way, Inc.
Principles of Engineering
VEX® Robotics Platform:
Testbed for Learning Programming
VEX® Structure Subsystem
• VEX® Structure Subsystem forms a robot base
• Contains square holes on a standardized ½ in.
grid
• Allows VEX® components to be assembled in
various configurations
VEX® Structure Subsystem
• Metal components directly attached using 8-32
screws and nuts
– Nylock nut has a plastic insert to prevent unscrewing
– KEPS nut has a ring of “teeth” on one side to grip the
piece being installed
– Regular nut has no locking feature
Nylock
Nut
KEPS
Nut Regular
Nut
8-32 screws
VEX® Motion Subsystem
• Components which make a robot move
– Gear
– Wheel
– Motor
– Servo
Motor Servo
Gears
Wheels
VEX® Motion Subsystem – Motors
• 2-wire motor 269 and 2-wire motor 393
• Two methods to connect to Cortex
– Motor ports 1 and 10
– Motor port 2-9 using Motor Controller 29
2-Wire 269 2-Wire 393 Controller 29
VEX® Motion Subsystem – Servos
• Similar appearance to a motor
• Operation is significantly different
– Motor spins continuously at a power value
– Servo rotates to a position between 0o to 120o
degrees
• Analog Sensors:
Light Sensor
Potentiometer
Line Follower
• Digital Sensors:
Bumper Switch
Limit Switch
Optical Shaft
Encoder
Ultrasonic Range
Finder
VEX® Sensors Subsystem
• Provide inputs to sense the environment
Potentiometers
• How It Works
– Analog sensor
– Measures rotation of a shaft
between 0 and ~265 degrees
– Cortex returns values between 0 and ~4095
• Caution
– Internal mechanical stops prevent
potentiometer from turning a full revolution
– Excess torque against the internal mechanical
stops will cause them to wear away
Optical Shaft Encoders
• How It Works
– Digital counting sensor
– Inner shaft spins as the encoder measures
angle of revolution
• Capabilities and Resolution
– 360 counts per revolution
– Counts up and down
– The distance which a robot moves can be
controlled by monitoring the angle at which
the wheels attached to the shaft encoder spin
Ultrasonic
• How It Works
– Similar to how bats and submarines
sense distance
– Digital sensor returns distance values
between 0 and 255 inches or the equivalent
centimeters or millimeters
– Returns values of -1 or -2 if used outside of
this range or if a return signal is not sensed
Ultrasonic Range Finder
• Ultrasonic Range Finder detects objects in
a “cone” field of view
• Sensor detects object distance from the
center of the sensor
• Sensor distance calculations based on
sound waves
– Objects that may not be detectable include
soft objects that absorb sound, sharp objects
that deflect sound, etc.
• VEX® Cortex (VEX® 2.0)
• 12 Digital Ports
VEX® Cortex Microcontroller
Bumper Switch Limit Switch
Optical Shaft
Encoder
Ultrasonic Range
Finder
Digital Ports
• VEX® Cortex (VEX® 2.0)
• 12 Digital Ports
• 8 Analog Inputs
VEX® Cortex Microcontroller
Potentiometer
Line Follower
Light Sensor
Analog Ports
VEX® Cortex Microcontroller
2 Wire 269 2 Wire 393 Controller 29
VEXnet
Wireless Key Motor Ports
• VEX® Cortex (VEX 2.0)
• 12 Digital Ports
• 8 Analog Inputs
• VEXnet Connection
• 10 Motor Ports
– Ports 1 and 10 are 2-wire DC ports
– Ports 2 through 9 are 3-wire pulse width
modulated (PWM) ports
Return to Activity
ROBOTC Software
• ROBOTC developed specifically for classrooms
and competitions
• Complete programming solution for VEX® Cortex
and several other popular robot platforms
• Real-time debugger
• Similar to industry-standard C Programming
Industry Standard Coding
• ROBOTC
programming is a key
component of
industry-standard
programming
languages
Industry-Standard Skillsets
• Java and C++, along with the Eclipse and
Visual Studio IDEs, have been used to
program:
– Microsoft® Windows
OS
– Mac OSX
– US Navy UAV
Drones
– Flight Simulators
– DVD Player Firmware
– Video Games
– Microwaves
– CAT Scanners
– Smart Cars
– Satellites
– Cell Phones
– Electronic Toys
– ROBOTC
ROBOTC Start Page
• Open ROBOTC for VEX Robotics
• Display of the latest ROBOTC news, version of
ROBOTC, and ROBOTC Resources
VEX Cortex and Natural Language
• Change the Platform Type to VEX 2.0 Cortex
• Change the Platform Type to Natural Language
PLTW
Sample Programs
Over 75 ROBOTC Sample programs,
organized by robot behavior
Comments
• Comments are used to make notes in
code for the human programmers
• Every sample program contains comments
pertaining to robot configuration, ROBOTC
commands, robot behavior, etc.
• // Single line comment – All material after
“//” is ignored by the ROBOTC compiler
• /* Multi-line comment*/ – All material
between the “/*” and “*/” symbol is ignored
by the ROBOTC compiler
ROBOTC Help
In-depth explanations about ROBOTC
installation, commands, debugger, etc.
Text Function Library
• Available functions are listed with a
description
• List of available functions will expand or
shrink depending on the menu level
Menu Level
• Customizes the ROBOTC interface and
Text Function Library based on user’s
experience level
• Select File and then New or select the
New File icon to begin creating a program
Motors and Sensor Setup
Open Motor and Sensors Setup and update
to match the physical configuration
OR
VEX® Cortex Download Method
• Allows you to specify:
– How programs are downloaded
– Whether the Cortex looks for VEXnet
connection when it starts up
– The VEXnet or USB option will result in the
Cortex looking for a VEXnet connection for up
to10 seconds before running code
ROBOTC Color Coding
• ROBOTC is color coded to distinguish
elements of the program as shown
References
Carnegie Mellon Robotics Academy. (2017). ROBOTC.
Retrieved from http://www.robotc.net
VEX Robotics. (2017). ROBOTC. Retrieved from
http://www.vexrobotics.com

More Related Content

Similar to 3_1_1_A_IntroToVEXandROBOTC-28ysb78.pptx

Distributed Data Flow for the Web of Things: Distributed Node-RED
Distributed Data Flow for the Web of Things: Distributed Node-REDDistributed Data Flow for the Web of Things: Distributed Node-RED
Distributed Data Flow for the Web of Things: Distributed Node-RED
Michael Blackstock
 
Mobile Ad Hoc Network of Simulation Framework Based on OPNET
Mobile Ad Hoc Network of Simulation Framework Based on OPNETMobile Ad Hoc Network of Simulation Framework Based on OPNET
Mobile Ad Hoc Network of Simulation Framework Based on OPNET
ateeq ateeq
 
Track 2 session 4 - st dev con 2016 - opensoftwarex
Track 2   session 4 - st dev con 2016 - opensoftwarexTrack 2   session 4 - st dev con 2016 - opensoftwarex
Track 2 session 4 - st dev con 2016 - opensoftwarex
ST_World
 
PRELIMINARY ROBOTIC SYSTEM DESIGN USING HARDWARE EMBEDDED COMPONENTS
PRELIMINARY ROBOTIC SYSTEM DESIGN USING HARDWARE EMBEDDED COMPONENTSPRELIMINARY ROBOTIC SYSTEM DESIGN USING HARDWARE EMBEDDED COMPONENTS
PRELIMINARY ROBOTIC SYSTEM DESIGN USING HARDWARE EMBEDDED COMPONENTS
RAJESHREDDY703573
 
Superfluid networking for 5G: vision and state of the art
Superfluid networking for 5G: vision and state of the artSuperfluid networking for 5G: vision and state of the art
Superfluid networking for 5G: vision and state of the art
Stefano Salsano
 
Bluetooth based-smart-sensor-network
Bluetooth based-smart-sensor-networkBluetooth based-smart-sensor-network
Bluetooth based-smart-sensor-network
priyadharshini murugan
 
Robotics corporate-training-in-mumbai
Robotics corporate-training-in-mumbaiRobotics corporate-training-in-mumbai
Robotics corporate-training-in-mumbai
Unmesh Baile
 
Embedded system and its platforms
Embedded system and its platformsEmbedded system and its platforms
Embedded system and its platforms
Mrunal Deshkar
 
Embedded Systems Design and Programming & Internet of Things
Embedded Systems Design and Programming & Internet of ThingsEmbedded Systems Design and Programming & Internet of Things
Embedded Systems Design and Programming & Internet of Things
Vasundhara Sharma
 
iot unit1.pdf
iot unit1.pdfiot unit1.pdf
iot unit1.pdf
shrutinandanwar6
 
Introduction to OpenNetwork and SDN
Introduction to OpenNetwork and SDNIntroduction to OpenNetwork and SDN
Introduction to OpenNetwork and SDN
HungWei Chiu
 
Master-Master Replication and Scaling of an Application Between Each of the I...
Master-Master Replication and Scaling of an Application Between Each of the I...Master-Master Replication and Scaling of an Application Between Each of the I...
Master-Master Replication and Scaling of an Application Between Each of the I...
vsoshnikov
 
Robot And it configuration
Robot And it configurationRobot And it configuration
Robot And it configuration
Daniel raj
 
microcontrollersstm32wlseriesproductwebinarpresentation1625231766205.pdf
microcontrollersstm32wlseriesproductwebinarpresentation1625231766205.pdfmicrocontrollersstm32wlseriesproductwebinarpresentation1625231766205.pdf
microcontrollersstm32wlseriesproductwebinarpresentation1625231766205.pdf
adfadfadf
 
Republic of IoT 2018 - ESPectro32 and NB-IoT Workshop
Republic of IoT 2018 - ESPectro32 and NB-IoT WorkshopRepublic of IoT 2018 - ESPectro32 and NB-IoT Workshop
Republic of IoT 2018 - ESPectro32 and NB-IoT Workshop
Alwin Arrasyid
 
Lecture20 asic back_end_design
Lecture20 asic back_end_designLecture20 asic back_end_design
Lecture20 asic back_end_design
Hung Nguyen
 
Rover technology ppt
Rover technology pptRover technology ppt
Rover technology ppt
sindhupriya97
 
Dana Lee Church - R15.3
Dana Lee Church - R15.3Dana Lee Church - R15.3
Dana Lee Church - R15.3
Dana Lee Church
 
WIRELESS SURVILLANCE ROBOT
WIRELESS SURVILLANCE ROBOT WIRELESS SURVILLANCE ROBOT
WIRELESS SURVILLANCE ROBOT
KrishGupta94
 
Industrial Networks: the Choices for Real Time Motion Control
Industrial Networks: the Choices for Real Time Motion ControlIndustrial Networks: the Choices for Real Time Motion Control
Industrial Networks: the Choices for Real Time Motion Control
Design World
 

Similar to 3_1_1_A_IntroToVEXandROBOTC-28ysb78.pptx (20)

Distributed Data Flow for the Web of Things: Distributed Node-RED
Distributed Data Flow for the Web of Things: Distributed Node-REDDistributed Data Flow for the Web of Things: Distributed Node-RED
Distributed Data Flow for the Web of Things: Distributed Node-RED
 
Mobile Ad Hoc Network of Simulation Framework Based on OPNET
Mobile Ad Hoc Network of Simulation Framework Based on OPNETMobile Ad Hoc Network of Simulation Framework Based on OPNET
Mobile Ad Hoc Network of Simulation Framework Based on OPNET
 
Track 2 session 4 - st dev con 2016 - opensoftwarex
Track 2   session 4 - st dev con 2016 - opensoftwarexTrack 2   session 4 - st dev con 2016 - opensoftwarex
Track 2 session 4 - st dev con 2016 - opensoftwarex
 
PRELIMINARY ROBOTIC SYSTEM DESIGN USING HARDWARE EMBEDDED COMPONENTS
PRELIMINARY ROBOTIC SYSTEM DESIGN USING HARDWARE EMBEDDED COMPONENTSPRELIMINARY ROBOTIC SYSTEM DESIGN USING HARDWARE EMBEDDED COMPONENTS
PRELIMINARY ROBOTIC SYSTEM DESIGN USING HARDWARE EMBEDDED COMPONENTS
 
Superfluid networking for 5G: vision and state of the art
Superfluid networking for 5G: vision and state of the artSuperfluid networking for 5G: vision and state of the art
Superfluid networking for 5G: vision and state of the art
 
Bluetooth based-smart-sensor-network
Bluetooth based-smart-sensor-networkBluetooth based-smart-sensor-network
Bluetooth based-smart-sensor-network
 
Robotics corporate-training-in-mumbai
Robotics corporate-training-in-mumbaiRobotics corporate-training-in-mumbai
Robotics corporate-training-in-mumbai
 
Embedded system and its platforms
Embedded system and its platformsEmbedded system and its platforms
Embedded system and its platforms
 
Embedded Systems Design and Programming & Internet of Things
Embedded Systems Design and Programming & Internet of ThingsEmbedded Systems Design and Programming & Internet of Things
Embedded Systems Design and Programming & Internet of Things
 
iot unit1.pdf
iot unit1.pdfiot unit1.pdf
iot unit1.pdf
 
Introduction to OpenNetwork and SDN
Introduction to OpenNetwork and SDNIntroduction to OpenNetwork and SDN
Introduction to OpenNetwork and SDN
 
Master-Master Replication and Scaling of an Application Between Each of the I...
Master-Master Replication and Scaling of an Application Between Each of the I...Master-Master Replication and Scaling of an Application Between Each of the I...
Master-Master Replication and Scaling of an Application Between Each of the I...
 
Robot And it configuration
Robot And it configurationRobot And it configuration
Robot And it configuration
 
microcontrollersstm32wlseriesproductwebinarpresentation1625231766205.pdf
microcontrollersstm32wlseriesproductwebinarpresentation1625231766205.pdfmicrocontrollersstm32wlseriesproductwebinarpresentation1625231766205.pdf
microcontrollersstm32wlseriesproductwebinarpresentation1625231766205.pdf
 
Republic of IoT 2018 - ESPectro32 and NB-IoT Workshop
Republic of IoT 2018 - ESPectro32 and NB-IoT WorkshopRepublic of IoT 2018 - ESPectro32 and NB-IoT Workshop
Republic of IoT 2018 - ESPectro32 and NB-IoT Workshop
 
Lecture20 asic back_end_design
Lecture20 asic back_end_designLecture20 asic back_end_design
Lecture20 asic back_end_design
 
Rover technology ppt
Rover technology pptRover technology ppt
Rover technology ppt
 
Dana Lee Church - R15.3
Dana Lee Church - R15.3Dana Lee Church - R15.3
Dana Lee Church - R15.3
 
WIRELESS SURVILLANCE ROBOT
WIRELESS SURVILLANCE ROBOT WIRELESS SURVILLANCE ROBOT
WIRELESS SURVILLANCE ROBOT
 
Industrial Networks: the Choices for Real Time Motion Control
Industrial Networks: the Choices for Real Time Motion ControlIndustrial Networks: the Choices for Real Time Motion Control
Industrial Networks: the Choices for Real Time Motion Control
 

Recently uploaded

Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 

Recently uploaded (20)

Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 

3_1_1_A_IntroToVEXandROBOTC-28ysb78.pptx

  • 1. Introduction to the VEX® Robotics Platform and ROBOTC Software © 2012 Project Lead The Way, Inc. Principles of Engineering
  • 2. VEX® Robotics Platform: Testbed for Learning Programming
  • 3. VEX® Structure Subsystem • VEX® Structure Subsystem forms a robot base • Contains square holes on a standardized ½ in. grid • Allows VEX® components to be assembled in various configurations
  • 4. VEX® Structure Subsystem • Metal components directly attached using 8-32 screws and nuts – Nylock nut has a plastic insert to prevent unscrewing – KEPS nut has a ring of “teeth” on one side to grip the piece being installed – Regular nut has no locking feature Nylock Nut KEPS Nut Regular Nut 8-32 screws
  • 5. VEX® Motion Subsystem • Components which make a robot move – Gear – Wheel – Motor – Servo Motor Servo Gears Wheels
  • 6. VEX® Motion Subsystem – Motors • 2-wire motor 269 and 2-wire motor 393 • Two methods to connect to Cortex – Motor ports 1 and 10 – Motor port 2-9 using Motor Controller 29 2-Wire 269 2-Wire 393 Controller 29
  • 7. VEX® Motion Subsystem – Servos • Similar appearance to a motor • Operation is significantly different – Motor spins continuously at a power value – Servo rotates to a position between 0o to 120o degrees
  • 8. • Analog Sensors: Light Sensor Potentiometer Line Follower • Digital Sensors: Bumper Switch Limit Switch Optical Shaft Encoder Ultrasonic Range Finder VEX® Sensors Subsystem • Provide inputs to sense the environment
  • 9. Potentiometers • How It Works – Analog sensor – Measures rotation of a shaft between 0 and ~265 degrees – Cortex returns values between 0 and ~4095 • Caution – Internal mechanical stops prevent potentiometer from turning a full revolution – Excess torque against the internal mechanical stops will cause them to wear away
  • 10. Optical Shaft Encoders • How It Works – Digital counting sensor – Inner shaft spins as the encoder measures angle of revolution • Capabilities and Resolution – 360 counts per revolution – Counts up and down – The distance which a robot moves can be controlled by monitoring the angle at which the wheels attached to the shaft encoder spin
  • 11. Ultrasonic • How It Works – Similar to how bats and submarines sense distance – Digital sensor returns distance values between 0 and 255 inches or the equivalent centimeters or millimeters – Returns values of -1 or -2 if used outside of this range or if a return signal is not sensed
  • 12. Ultrasonic Range Finder • Ultrasonic Range Finder detects objects in a “cone” field of view • Sensor detects object distance from the center of the sensor • Sensor distance calculations based on sound waves – Objects that may not be detectable include soft objects that absorb sound, sharp objects that deflect sound, etc.
  • 13. • VEX® Cortex (VEX® 2.0) • 12 Digital Ports VEX® Cortex Microcontroller Bumper Switch Limit Switch Optical Shaft Encoder Ultrasonic Range Finder Digital Ports
  • 14. • VEX® Cortex (VEX® 2.0) • 12 Digital Ports • 8 Analog Inputs VEX® Cortex Microcontroller Potentiometer Line Follower Light Sensor Analog Ports
  • 15. VEX® Cortex Microcontroller 2 Wire 269 2 Wire 393 Controller 29 VEXnet Wireless Key Motor Ports • VEX® Cortex (VEX 2.0) • 12 Digital Ports • 8 Analog Inputs • VEXnet Connection • 10 Motor Ports – Ports 1 and 10 are 2-wire DC ports – Ports 2 through 9 are 3-wire pulse width modulated (PWM) ports
  • 17. ROBOTC Software • ROBOTC developed specifically for classrooms and competitions • Complete programming solution for VEX® Cortex and several other popular robot platforms • Real-time debugger • Similar to industry-standard C Programming
  • 18. Industry Standard Coding • ROBOTC programming is a key component of industry-standard programming languages
  • 19. Industry-Standard Skillsets • Java and C++, along with the Eclipse and Visual Studio IDEs, have been used to program: – Microsoft® Windows OS – Mac OSX – US Navy UAV Drones – Flight Simulators – DVD Player Firmware – Video Games – Microwaves – CAT Scanners – Smart Cars – Satellites – Cell Phones – Electronic Toys – ROBOTC
  • 20. ROBOTC Start Page • Open ROBOTC for VEX Robotics • Display of the latest ROBOTC news, version of ROBOTC, and ROBOTC Resources
  • 21. VEX Cortex and Natural Language • Change the Platform Type to VEX 2.0 Cortex • Change the Platform Type to Natural Language PLTW
  • 22. Sample Programs Over 75 ROBOTC Sample programs, organized by robot behavior
  • 23. Comments • Comments are used to make notes in code for the human programmers • Every sample program contains comments pertaining to robot configuration, ROBOTC commands, robot behavior, etc. • // Single line comment – All material after “//” is ignored by the ROBOTC compiler • /* Multi-line comment*/ – All material between the “/*” and “*/” symbol is ignored by the ROBOTC compiler
  • 24. ROBOTC Help In-depth explanations about ROBOTC installation, commands, debugger, etc.
  • 25. Text Function Library • Available functions are listed with a description • List of available functions will expand or shrink depending on the menu level
  • 26. Menu Level • Customizes the ROBOTC interface and Text Function Library based on user’s experience level • Select File and then New or select the New File icon to begin creating a program
  • 27. Motors and Sensor Setup Open Motor and Sensors Setup and update to match the physical configuration OR
  • 28. VEX® Cortex Download Method • Allows you to specify: – How programs are downloaded – Whether the Cortex looks for VEXnet connection when it starts up – The VEXnet or USB option will result in the Cortex looking for a VEXnet connection for up to10 seconds before running code
  • 29. ROBOTC Color Coding • ROBOTC is color coded to distinguish elements of the program as shown
  • 30. References Carnegie Mellon Robotics Academy. (2017). ROBOTC. Retrieved from http://www.robotc.net VEX Robotics. (2017). ROBOTC. Retrieved from http://www.vexrobotics.com

Editor's Notes

  1. This is a very brief overview of the VEX robotics platform. Refer to the Inventor’s Guide shown in the student resources for more details.
  2. Two-wire motors connect directly to Cortex motor ports 1 and 10. A Motor Controller 29 is needed to connect to Cortex motor to port 2 – 9.
  3. Excess torque against the internal mechanical stops by hand or by a VEX motor will cause the stops to wear away. The potentiometer will continue to function but will have a range between the positions where mechanical stops were located. This is known as a dead zone. In this range, values are not sensed.
  4. Do not use the ultrasonic sensor as the very first command of a program. Until the first sound echo returns to the sensor, it will have a value of -1. A simple delay at the beginning of your program solves this.
  5. VEXnet connection via USB cable or wireless key for remote control and wireless programming. VEX® hardware extends beyond the PLTW classroom kit to support hardware such as an external LCD screen and video camera.