Introduction to Programming with RobotC in Robotics Education
Programming in robotics involves giving specific directions to a robot using software like RobotC. This introduction covers the basics of programming, software organization, and how to get started with RobotC through creating flow charts and programming tasks. Learn about setting up RobotC, creating your first program, and exploring sample programs to enhance your understanding. The guide also provides tips for success in programming robotics projects.
Download Presentation
Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
E N D
Presentation Transcript
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 RobotC? 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 Make a Motor chart and label all motors ( 1,2,3 Basic Motor Wiring chart Claw Bot Motor # Motor Motor function/location PWM or Port Rotation/Special Controller location 1 2 3 3 4 4 393 393 393 393 393 393 Chassis Movement - Right Front Chassis Movement Left front Shoulder Lift up Shoulder Lift Down Claw open Claw Closed PWM 1 PWM 10 PWM 7 PWM 7 PWM 6 PWM 6 Clockwise/ +127 Anti-Clockwise/ -127 Clockwise/ +127 Anti-Clockwise/ -127 Clockwise/ +127 Anti-Clockwise/ -127 2 3 5U 5D 6U 6D
Introduction to RobotC Getting around 1. Open RobotC 2. Select VEX Cortex Video Trainer Using RobotC (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 RobotC 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, 1st 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 RobotC? 6. Upload firmware from RobotC 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 RobotC firmware and VEX Firmware?