Robotics Education Competition Foundation Programming Basics What is

Robotics Education & Competition Foundation Programming Basics

What is Programming? A simple set of directions that perform a action that can be repeated. What is Software? Organized information in the form of operating systems, utilities, programs, and applications that enable computers to work What is Robot. C? A Software program that allows the creator to make directions for a device made up of motors and sensors – In our case a Robot!

How to get started with Programming Define what the task is in simple broad terms. Break the task down into individual steps. Example: Human Maze Sample human program Make a Simple Flow Chart. Robot Basic Motor Wiring chart – Claw Bot Make a Motor chart and label all motors ( 1, 2, 3 Motor # Motor function/location PWM or Port Rotation/Special Controller location 1 2 3 3 4 4 393 393 393 Chassis Movement - Right Front Chassis Movement – Left front Shoulder Lift up Shoulder Lift Down Claw open Claw Closed PWM 10 PWM 7 PWM 6 Clockwise/ +127 Anti-Clockwise/ -127 2 3 5 U 5 D 6 U 6 D

Introduction to Robot. C – Getting around 1. Open Robot. C 2. Select VEX Cortex Video Trainer Using Robot. C (right side) 1. Intro 2. Natural Language 3. Setup 4. Movement 5. More 3. Menu Bar 4. Config – Robot 5. Help 6. New 7. Behaviors – create flow 8. Save / Save as 9. Compile / download

Creating your first Program Start with a Plan – Create a simple flow Chart”. “What do you want to do” Step 2. Check your configurations: A. Platform, B. VEX Cortex Communication Mode C. Target Step 3. Plug in Cortex Step 4. Download Firmware – This is NOT VEX Firmware this is Robot. C firmware Do Not Use Firmware in title bar. Step 5. Open “File NEW” Step 6. “Save as before you start actual code” Step 7. Use repeat as your bracket the add behaviors Lost – no Problem

Learn by example: File – Open Sample program “Forwards for time” Explore the other samples. Apply what you have learned to your Flow chart of what you want the robot to do. Got a claw bot? ? ? Go to motor and sensors, 1 st tab Standard model – what did you see?

Tips for success Can you / do you? 1. Know if your software is up to date? 2. Know where the license Information is located? 3. Change between VEX IQ and EDR? 4. Change between Teleop and Autonomus? 5. Graphical or Natural Language or Robot. C? 6. Upload firmware from Robot. C to your Cortex/Brain/Controller? 7. When it is necessary to cycle the Brain/Cortex (when sensors are added)? 8. Where to set up motors and devices? 9. How to set up/create /save as a new file? 10. Where the “Help” file is? Example Graphical Blocks? 11. Difference between 100% power and 127 PWM Control? Appropriate use? 12. Care and operation of batteries ( not really programming but important)? 13. Where are there Video resources to point students to? 14. Updating VEX IQ Firmware (VEX Software) 15. Updating VEX EDR ( VEX Software) 16. Difference between Robot. C firmware and VEX Firmware?

Thank you!
- Slides: 8