Get your software working before putting it on the robot! Example Explanation.

Slides:



Advertisements
Similar presentations
Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
Advertisements

Teacher/Mentor Institute Using the Cortex Chuck Powell.
Apple Pi Robotics Logic System and Programming Basics 1 1.
US First Robotics Lab View Tutorials Jim Thomas Lawrence Berkeley National Laboratory Team 496 Port Jeff Powerhouse.
Performing Financial What-If Analyses You have a.
Lesson 10: Starting Windows Applications start an application program move between open application programs start an application using the Run command.
Royalty Free Music for Schools Do You Have the To Do a Podcast?
Add and Use a Sensor & Autonomous For FIRST Robotics
1. 2 LabVIEW for FRC Doug Norman National Instruments January 6, 2012.
Getting started with Simulink An introductory tutorial ES205 Analysis and Design of Engineering Systems Rose-Hulman Institute of Technology © R. Layton.
Programming and Electronics Training
Intelligent sensor-actuator gateway with CAN interface Systems Engineering Lab - Daniel Thiele Project Overview.
SIMULINK Dr. Samir Al-Amer. SIMULINK SIMULINK is a power simulation program that comes with MATLAB Used to simulate wide range of dynamical systems To.
Programming – Touch Sensors Intro to Robotics. The Limit Switch When designing robotic arms there is always the chance the arm will move too far up or.
Electrical and Programming Tips and Tricks October 22, 2011.
How to Use This Training Deck
Driver Station MVRT 2009 – 2010 Season. Add information Breadboard Classmate PC USB Hub Joysticks Stop Button.
LabView Basics The Fighting Pi Controls Group. About LabView LabView is a highly adaptable programming GUI (Graphic User Interface) LabView compiles the.
Weston Schreiber & Joshua Gabrielse Robotics Summer Training Programming #1: EasyC Basics.
LabVIEW Workshop September 26, 2009 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
Getting a video from the Internet Getting a video from the Internet (1 of 9) 1. Click the Web toolbar button on the Standard toolbar. 1.
2009 FRC Control System Software Overview Dave Doerr, Mentor, Team 67 November 15, 2008.
Teacher/Mentor Institute Using easyC Joel Kirkland July 30-31, 2015.
FRC Robot Framework Labview Made Easy (er) For FIRST Robotics 1.
LabVIEW Basics Review LabVIEW Robotics Fundamentals.
Working with Windows 2000 What it is: The system inside your computer that enables it to run software Uses icons (pictures) to access and work within programs.
1. 2 FRC 2010 Robot and Dashboard Projects Doug Norman & Stephanie Brierty National Instruments January 8, 2010.
FRC Robot Programming 1.PID Continued 2.Downloading and Deploying Code 3.Program a 2012 Robot from Spec Basic code For FIRST Robotics.
Lab 1 : Introduction to LabView 1 Southern Methodist University Bryan Rodriguez.
2/8 The Floppy Drive Roll call Video: floppy drive Step-by-step lecture.
CS320n –Visual Programming More LabVIEW Foundations.
Find the Mindstorms Icon on the computer.. To start a new program click go.
Labview Introduction Writing and Saving your first program.
Session 12 Sensors and Timers. 3 Main Types of Robot Projects Command-Based Robot A more complicated project for more complicated robots Iterative Robot.
Getting Started in RobotC // Comment task main() motor[] {} wait1Msec() ; = Header Code Compile Download Run Take out your notes.
Session 11 Intro to FRC API.
EE3417 – Introduction to Simulink
Electronics and Controls
Teacher/Mentor Institute Using easyC David Dominguez June 2, 2015 Update Version.
Program Flow LabVIEW Robotics Fundamentals. Unintuition You know what this program does… So what does this one do? Inserted code.
First glance of robotics course (VPL) Young Joon Kim MSRDS First Beginner Course – STEP3.
Oregon Robotics Tournament and Outreach Program RCX Basics.
My first robot programming - Simple “Go” Young Joon Kim MSRDS First Beginner Course – STEP4.
Deriving Consistency from LEGOs What we have learned in 6 years of FLL by Austin and Travis Schuh © 2005 Austin and Travis Schuh, all rights reserved.
Vex Robotics program three: using motors and sensors together.
VAFIRST LabVIEW Workshop 11/19/11 Presenters: Marin Kobin & Patrick Foley.
Get your software working before putting it on the robot!
Lego Mindstorm Robots 9797 kit.  Students will learn how to identify how to detect a change in a condition.  Students will learn where and how to identify.
Creating Flexible, Script-Controlled Autonomous Software Example Explanation.
Getting started with Simulink
Objective of the lesson Use Blockly to make a dice for Snakes and Ladders All of you will: – Make an image which displays when you press a button Most.
BEST Robotic, Inc. MATLAB/Simulink Team Training
Introduction to Programming in RobotC
VEX Cortex Video Trainer using ROBOTC
Deriving Consistency from LEGOs
StartStruck in a Virtual World
Programming Scratch to Control a K’NEX Fairground Ride
Programming Part 2 Mod Kit
Basics for Robotics Programming
EV3 On Brick Programming
Programming – Touch Sensors
RobotC Sensors.
Module 1: Getting Started with Windows 95
Getting Started in RobotC
Line Following Behavior
Getting Started With Simulink
Advanced LabVIEW
Oregon Robotics Tournament and Outreach Program
Access Lesson 1 Microsoft Access Basics
Presentation transcript:

Get your software working before putting it on the robot! Example Explanation

 How to use the examples  Elevator simulation example  Arm simulation example  Integrating your software into your robot cRIO project

1. Create a new folder on your hard drive 2. Save SimulationExamples.zip to the folder you created in step 1 and unzip 3. Simulation examples (ArmSim.vi and ElevatorSim.vi) as well as control software examples will be in the folder you created. 4. Helpful simulation tools will be in \tools. 5. Example cRIO project will be in \robotSoftware

 The elevator simulation example is contained in ElevatorSim.vi  The block diagram shows a simple elevator model, as well as some example elevator control software in ElevatorSoftware.vi  ElevatorSoftware.vi controls the elevator to 4 pre-set positions.  Positions are selected via X-box controller buttons.  Elevator position is controlled with a PID controller

1. Open ElevatorSim.vi 2. From the front panel, press the Run button on the toolbar (upper left) 3. Press any of the simulated X-box buttons on the front panel 4. You can see how each button sets the desired elevator height, and how the PID controller sets the motor command and controls the elevator height. 5. From the block diagram you can open ElevatorSoftware.vi 6. Feel free to make software changes, or change the PID gains to see how the elevator reacts

 The arm simulation example is contained in ArmSim.vi  The block diagram shows a simple arm model, as well as some example arm control software in ArmSoftware.vi  ArmSoftware.vi uses the left stick of an X-box controller to set the desired arm position, and a PID controller to control the arm position  A better method would be to use a potentiometer wired to the Cypress IO board to control the desired position – you can create a mini-arm for the driver. The driver sets the arm position and the robot follows!

1. Open ArmSim.vi 2. From the front panel, press the Run button on the toolbar (upper left) 3. Drag the needle of the ArmDesired dial to set the desired arm position 4. You can see how the PID controller sets the motor command and controls the arm to match the desired position 5. From the block diagram you can open ArmSoftware.vi 6. Feel free to make software changes, or change the PID gains to see how the arm reacts

 An example cRIO project was created an is in /robotSoftware  The example project is called exampleRobotCode.lvproj  Encoders and motors are opened in Begin.vi  The X-box controller is read in Teleop.vi and the stick and buttons are stored in global variables  ElevatorSoftware.vi and ArmSoftware.vi are hooked up to the encoders and motors in PeriodicTasks.vi (icon: “Timed Tasks”)  ElevatorSoftware.vi and ArmSoftware.vi are the EXACT SAME vi’s that are used in the simulation

 Note: I did not test the cRIO project, so it may contain a bug or two.  IMPORTANT: Before running on the real robot, check that 1) motors go in expected direction, 2) sensor polarity is correct.  What happens if a sensor or motor goes in the opposite direction of what you expect? (Answer: it will go in the opposite direction at full power, most likely breaking something!)