US First Robotics Lab View Tutorials Jim Thomas Lawrence Berkeley National Laboratory Team 496 Port Jeff Powerhouse.

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.
Using the SmartPLS Software
Computer Basics Hit List of Items to Talk About ● What and when to use left, right, middle, double and triple click? What and when to use left, right,
Jason Howard. Agenda I. How to download robotc II. What is tele-op used for? III. How to build a basic tele-op program IV. Getting the robot to drive.
Add and Use a Sensor & Autonomous For FIRST Robotics
ME345: Modeling and Simulation Professor Frank Fisher Stevens Institute of Technology Last updated: February 9 th, 2011 Software versions used in the tutorial:
Jeff Beltramo NHTI-Concord’s Community College FRC Team 1922.
1. 2 LabVIEW for FRC Doug Norman National Instruments January 6, 2012.
Presented by Team 3350 (T-BOTS).  Students should lead their teams in the building, design, and all other aspects of the robot.  Knowledge of the Kit.
Introduction To Frc electronics
Networking By: Matt Motl… Programmer Brent Everson… Programming Mentor.
Programming and Electronics Training
Windows XP Home Networking. 2 Windows XP The dominant client operating system from Microsoft today Strong security features make it a wise upgrade for.
Wiring the new control system MVRT 2010 – 2011 Season.
V EX C OACHES ' T RAINING October 12, Agenda for Today 9 – 10 AM : Tina Reeves and the Engineering Notebook 10 – Noon : Finish Building, Basic Robot.
SVHS TAKS Scores by Teachers Addressing the Objectives.
Part 1: Introduction FRC Introduction  FRC 2907 since 2008  Each area of the robot has a team assigned  The Electronics team is headed this year.
Overview of New System Beta Team from Wilsonville 1425 Wilsonville Robotics – Code Xero 2550 Oregon City Robotics.
FRC LabVIEW Software Overview Joe Hershberger Staff Software Engineer National Instruments.
1 Student Hands On Training I (2009) Camera Firmware Modifications Camera Firmware Modifications.
Hard Drive Information Module Hard Drive Information Module.
 General notes/quirks › Letters only in the SSID › g & b only › Use a different router for internet and robotics › Use a simple password.
Vex 1.0 © 2005 Carnegie Mellon Robotics Academy Inc. Touch Sensor This lesson will explain how to hook a standard micro switch into the Vex system to function.
Mr. Potato Head The objective of this tutorial is to cut an image and assemble Mr. Potato Head using various tools in Adobe Photoshop Elements 2.0.
How to Use This Training Deck
File Management and Organisation © Copyright William Rowan 2007.
Electrical Components.  This supplies all the power to the robot. It is a single 12 V battery. They are sealed to prevent battery acid from leaking.
Google Earth How to create a Google Earth Tour and place it in your Wiki.
Testbed: Exercises.
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.
Introduction to LabVIEW
1 iSee Player Tutorial Using the Forest Biomass Accumulation Model as an Example ( Tutorial Developed by: (
LabVIEW Workshop September 26, 2009 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
Control System and Electrical Assembly Produced by Ed Latimer, Team 476 Ken York, Team 476 Ron Markum, Team
CHAPTER 9 Introducing Microsoft Office Learning Objectives Start Office programs and explore common elements Use the Ribbon Work with files Use.
The New FTC Platform (Connecting your legacy hardware)
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.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 2 1 Integrating Microsoft Office XP Tutorial 2 – Integrating Word, Excel, and Access.
XP 1 Microsoft Word 2002 Tutorial 1 – Creating a Document.
EasyC Programming Workshop January 30, 2008 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
Mini-Teach: File Management Darek Sady 7/3/03. 2 File Sorting It is easier to organize your files if you can list them in ways that make sense to you.
1. 2 FRC 2010 Robot and Dashboard Projects Doug Norman & Stephanie Brierty National Instruments January 8, 2010.
Mechanics of LabVIEW Workshop January 10, 2009 Farmingdale State College SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
U3A Computing Beginners Class Leader – Brian Moore Week 2 of 10 weeks. Mondays 4:15 to 5:45 pm.
Change in your CAD Project File - it happens all the time in robotics.
Part II Introduction to Robot Code. How to open a new FRC robot project 1.Open LabVIEW. 2.Click "FRC cRIO Robot Project" in the upper left section "New".
FRC Robot Programming 1.PID Continued 2.Downloading and Deploying Code 3.Program a 2012 Robot from Spec Basic code For FIRST Robotics.
CS320n –Visual Programming More LabVIEW Foundations.
Find the Mindstorms Icon on the computer.. To start a new program click go.
Understanding The 2008 FRC Robot Controller Chris Gregory FRC1089 – Team Mercury
Session 11 Intro to FRC API.
Teacher/Mentor Institute Using easyC David Dominguez June 2, 2015 Update Version.
Quick guide to ASIMON configuration For version 3.0 or greater SAFETY AT WORK Date: 3/18/2009.
Ethernet I/O Set-Up This presentation will step through a typical configuration of the DVT CON-IOE. Intellect 1.0 is used for the software portion.
Digital Electronics and Computer Interfacing Tim Mewes 2. LabVIEW Basics part II.
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
VAFIRST LabVIEW Workshop 11/19/11 Presenters: Marin Kobin & Patrick Foley.
BEST Robotic, Inc. MATLAB/Simulink Team Training
Tutorial 1 – Creating a Document
Basics for Robotics Programming
Recording Your Script and Creating Your Podcast
Oregon Robotics Tournament and Outreach Program
How To Use The FD92 Digital Camera
Introduction to Programing the Cortex for BEST
Presentation transcript:

US First Robotics Lab View Tutorials Jim Thomas Lawrence Berkeley National Laboratory Team 496 Port Jeff Powerhouse

Open a new project Start Labview Note the Tutorial and Project tabs –Excellent tutorials are included From the File menu, or by clicking New on the Projects tab, open a new project using the create new project from wizard Select the FRC cRIO Robot Project wizard Rename it to something unique Enter team number instead of xx.yy for cRIO IP address –e.g. 10.xx.yy Select –Arcade Drive hardware only Click Finish, and wait –The project file will be in the Documents/LabView Data folder. You can copy the folder to another computer if you wish.

Build and Download the Project Open a project by clicking on its name under Open on the Project tab Every project has three pieces –Begin.vi –Teleop.vi –Finish.vi Later, we will edit these pieces For now, right click on FRC Robot Boot-up Deployment –Select build, and wait Connect the computer to the Robot using an ethernet cable (not wireless) –Use 10.xx.yy.6 for the Driver Station with a mask of –Or use 10.xx.yy.51 for a different computer, where xx.yy are you team numbers. e.g Right click on FRC Robot Boot-up Deployment –Select Run as startup, and wait

Three Easy Pieces All project have three easy pieces –Begin.vi –Teleop.vi –Finish.vi Joysticks, Drive motors, and Spike Relays (etc.) are created and initialized in Begin.vi Action takes place in Teleop.vi Joysticks, Drive motors, etc. are closed in Finish.vi All three pieces are essential The Begin.vi for the arcade drive project is shown here Begin.vi

Teleop.vi The Teleop.vi for the arcade drive includes Joysticks and Motors There are other elements in the Teleop.vi that are placed here by US First. We will not touch them. But we can and should edit the pieces shown at the left Note that wires connect different elements in the diagram Communication between different vis (from Begin to Teleop, for example) is achieved by burying the wires underground in Begin.vi and then pulling them out of the ground in Teleop.vi or Finish.vi using symbols related to this one: Teleop.vi Pulling a wire out of the ground

The Finishing Piece The Finish.vi for the arcade drive robot is shown at left All elements opened in Begin.vi must be closed here If you edit Begin.vi and add elements, then they must be closed in Finish, too. The block diagrams (e.g. shown at left) are made visible by clicking on Show Block Diagram on the Window menu You can get help on any symbol by enabling Context Help on the Help menu. Then hover your mouse over the symbol of interest. Finish.vi

Backup Slides

Tank Drive example (with two motors) showing essential elements from –Begin.vi –Teleop.vi –Finish.vi A four motor tank drive can also be done –See the WPI Robotics Library menu Begin.vi Teleop.vi Finish.vi

Relay example showing essential elements to operate a Spike Relay –Begin.vi –Teleop.vi –Finish.vi Begin.vi Teleop.vi Finish.vi

Relays in more detail: One easy way to create a drop down menu box for use with a relay Set function and a logical Select function is to create a constant on the Relay value line before doing anything else. This will create a drop down menu box. Stretch the wire to the drop down menu by moving the menu to the left and then use the insert option (touch the wire and right click) to insert a Select switch on the wire between the Set function and the drop down menu box. The Select switch is smart enough to change its default type from T/F to a drop down menu once a menu box has been created on either the t or f input so now you can easily create an additional menu box on the other (t or f) input. The s input to the Select switch should be a T/F input such as a joy stick button or a digital I/O value (DIOin) from a limit switch.

Simple Teleop Example w/ limit switch Teleop w/ limit switch and JS button DIO examples showing essential elements to read a limit switch and provide input to a Relay –Begin.vi –two Teleop.vi examples –Finish.vi Begin.vi Finish.vi

Black Wire (Minus/Ground) From digital sidecar No connection Red (Power) not connected How to connect a limit switch to the Digital Sidecar Use Black-Red-White tricolor wire with black connectors. Cut in the middle, extend wires and crimp on small sized push-on connectors. signal ground White Wire (Signal) From digital sidecar Note to experts: you can reverse the logic of the switch by changing the location of the black wire on the switch (reverse NC and NO wires). Do not move the white wire.

Tank Drive with two Joysticks and feedback to the dashboard Simple Teleop Tank Drive example showing a –Spike Motor attached to Joystick 2 The motor starts on Button 1 click and stops when Button 1 is released. There is no limit to the amount of forward travel.

Complex Teleop example showing –Spike Motor –Limit Switch DIO attached to Joystick 2 Tank Drive with two Joysticks and feedback to the dashboard The motor starts on Button 2 click but stops when the limit switch is closed. Note to experts: The logic of the limit switch (DIO in) depends on how the limit switch is wired (normal or reversed NC and NO wires)

Finish.vi for the Tank Drive with 2 Joysticks, 2 Relays, and 2 Limit Switches (DIO)

Specifications for 2013

Team Robot Specifications as of Feb 15 th Tools: –Drive mechanism (2 CIM motors, tank drive) –Frisbee throwing arm (2 CIM motors, one globe motor, 1 limit switch) –Climbing apparatus (1 van door motor, 2 limit switches) –Ballast mechanism (battery) (1 globe motor, 2 limit switches) Notes: –Battery Ballast mechanism goes in and out and is protected with simple limit switches –Climbing mechanism goes up and down and is protected by limit switches. But the limit switches latch off once they are touched. The latch is released when the other direction switch is pushed. For example, push and hold the up button and the robot will climb until it hits the upper limit switch. After it hits the limit, then additional pushes on the up button have no effect. The robot can slowly drift downwards under its own weight. The latch is not released until you push the down button whereupon the latch is released and the robot starts to climb down. –Frisbee throwing mechanism. Joystick 3 must be pushed all the way forward to start the throwing motors spinning. Push button 5 to throw a Frisbee. The injector mechanism will come to rest against a stop. Push button 4 to advance past the stop. Push button 5 again to throw another Frisbee. (continued)

Team Robot: Breakdown by Electronic unit –Joystick 1: Left Motor –Joystick 2: Right Motor –Joystick 3: (Two) Frisbee Throwing motors –PWM 1: Left Drive motor –PWM 2: Right Drive motor –PWM 3: Frisbee throwing motor –PWM 4: Frisbee throwing motor –Button 6, Joystick 2: Climb Up –Button 7, Joystick 2: Climb Down –Button 10, Joystick 2: Battery out (back) –Button 11, Joystick 2: Battery in (forward) –Button 4, Joystick 3: Advance Frisbee rotor past stop –Button 5, Joystick 3: Throw Frisbee (i.e. fire) and then rest rotor at stop –Spike Relay 1: Climbing motor –Spike Relay 2: Ballast motor (battery) –Spike Relay 3: Frisbee Injector Motor –Digital IO Limit Switch 1: Upper limit for Climbing –Digital IO Limit Switch 2: Lower limit for Climbing –Digital IO Limit Switch 3: Inner limit for Battery Ballast –Digital IO Limit Switch 4: Outer limit for Battery Ballast –Digital IO Limit Switch 5: Frisbee Insertion stop sensor