EasyC Programming Workshop January 30, 2008 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.

Slides:



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

Teacher/Mentor Institute Using the Cortex Chuck Powell.
US First Robotics Lab View Tutorials Jim Thomas Lawrence Berkeley National Laboratory Team 496 Port Jeff Powerhouse.
BEST Robotic, Inc. easyC Team Training
Lab7: Introduction to Arduino
1. 2 LabVIEW for FRC Doug Norman National Instruments January 6, 2012.
2008 KOP IR Sensor Workshop January 12, 2008 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
1. 2 FRC 2010 Driver Station Doug Norman & Stephanie Brierty National Instruments January 8, 2010 Thanks to Joe Ross – Team 330.
Automation and Robotics
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
Available at: – Program Optical Quad Encoders in Autonomous Mode Program optical quad encoders in autonomous mode.
FRC LabVIEW Software Overview Joe Hershberger Staff Software Engineer National Instruments.
Vex 1.0 © 2005 Carnegie Mellon Robotics Academy Inc. Programming in easyC.
Erik A. Cokeley Programming Workshop FIRST 2007.
Driver Station MVRT 2009 – 2010 Season. Add information Breadboard Classmate PC USB Hub Joysticks Stop Button.
US First Kickoff 2012 Software Programming (And Control System) Daniel Kohn University of Memphis.
Program ultrasonic range sensor in autonomous mode
Introduction to VEX Programming with EasyC
Mentors Workshop Control System Sub-System Mark McLeod Team 358 Festo/Hauppauge H.S. F For I Inspiration and R Recognition of S Science and T Technology.
ROBOTC for VEX On-Site Professional Development
Coding for the FIRST Tech Challenge: RobotC
Available at: – Operate the Tumbler using a Jumper Pin Operate the Tumbler using the jumper pin.
Weston Schreiber & Joshua Gabrielse Robotics Summer Training Programming #1: EasyC Basics.
Programming and Controls for FIRST – The Basics Tom Barch, Scott VanBrocklin and Kayla Peltier February 5 th, 2008.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering 1 Hsu/Youssefi.
LabVIEW Workshop September 26, 2009 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
The New FTC Platform (Connecting your legacy hardware)
Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Program Line Follower in Autonomous Mode.
Teacher/Mentor Institute Using easyC Joel Kirkland July 30-31, 2015.
FRC Robot Framework Labview Made Easy (er) For FIRST Robotics 1.
BEST Robotic, Inc. easyC Breakout Session By: Guy Chetrit Programming With easyC September 15, Copyright © 2012 BEST Robotics, Inc. All rights reserved.
Mentors Workshop Programming Sub-System Mark McLeod Team 358 Festo/Hauppauge H.S. F For I Inspiration and R Recognition of S Science and T Technology.
ROBOTC Training Session 1 Timothy Friez 1/10/08 Revision 1.
Beginner Programming Workshop Simona Doboli Assistant Professor Computer Science Department Hosftra University November.
Vex Robotics Programming Sequence. Now that you’ve had some practice downloading and using the included programs, it's time to learn to write some of.
2010 LabVIEW Beginner Workshop October 9, 2010 Hauppauge High School SPBLI – LI FIRST Mark McLeod Hauppauge Team 358 Northrop Grumman Corp.
Mechanics of LabVIEW Workshop January 10, 2009 Farmingdale State College SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
7.2 V battery pack and charger Put the battery in the charger station at the end of the lab. period. Red light indicates charging. Ken Youssefi Introduction.
Programming Design ROBOTC Software Principles of Engineering
Default_Routine(); - PWM Mapping /******************************************************************** * FUNCTION NAME: Default_Routine * PURPOSE: Performs.
Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included.
Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Program Light Sensor in Autonomous Mode.
FRC Robot Programming 1.PID Continued 2.Downloading and Deploying Code 3.Program a 2012 Robot from Spec Basic code For FIRST Robotics.
2008 SBPLI/FIRST Programming Workshop Tom Boehm Patchogue Medford High School, Team 329 Motorola Inc. Mark McLeod Hauppauge High School Team 358 Northrop.
Understanding The 2008 FRC Robot Controller Chris Gregory FRC1089 – Team Mercury
Created by Blake Ross Start EasyC. Created by Blake Ross.
Teacher/Mentor Institute Using easyC David Dominguez June 2, 2015 Update Version.
Automated Mechanisms Help. Potentiometers Potentiometer Check –Analog Port 2 How they work –Analog sensor –Measures rotation of a shaft between 0 and.
Vex Robotics Program Two: Using two motors. Program two: using the motors In the last section, you learned how to turn on one motor. Now, you will take.
Automation and Robotics.  First you select the platform type so that you can use Natural Language PLTW.
Vex Robotics program three: using motors and sensors together.
Innovation First Hardware & Default Program The 5¢ Tour... Dr. Joe January 5, 2002.
Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
Programming Design ROBOTC Software. Behavior-Based Programming A behavior is anything your robot does –Turning on a single motor or servo Three main types.
Teacher/Mentor Institute Intro to easyC Programming Scott McEwen July 21-22, 2016.
Programming Design ROBOTC Software Principles Of Engineering
Basic Steps in Programming
ROBOTC for VEX On-Site Professional Development
Advanced EasyC Jim Cline July 20-21, 2017.
Programming Design ROBOTC Software Computer Integrated Manufacturing
2010 LabVIEW Intermediate Workshop
Automation and Robotics
MicroEconomix 1500 RSLogix 500 LAB#1
Programming Autonomy By Joshua Shaw.
Programming Design ROBOTC Software Principles Of Engineering
Field Management System
Programming Design ROBOTC Software Principles of Engineering
Introduction to Programing the Cortex for BEST
Presentation transcript:

EasyC Programming Workshop January 30, 2008 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.

Agenda FIRST Control System FIRST Control System C Basics C Basics EasyC Environment EasyC Environment EasyC Basics EasyC Basics –Robot Driver Control Demonstration of Basic OI Controls Demonstration of Basic OI Controls –Robot Autonomous Control Demonstration of Dead Reckoning Demonstration of Dead Reckoning

FIRST Control System solenoidmotor

FIRST Control Elements Hardware Hardware –Robot Controller (RC) User Processor vs. Master Processor User Processor vs. Master Processor PWM, Relay, Digital I/O, Analog, Misc. PWM, Relay, Digital I/O, Analog, Misc. –Operator Interface (OI) –Tether cable / Programming cable –Laptop Programming Programming –C Language Based –Application Programmer Interface (API) –Dashboard (optional)

Robot Controller Architecture User Processor User Processor –What we download to –Runs our code –Reads the digital/analog I/O directly Master Processor Master Processor –Controls Disable/Autonomous/Driver modes –Disables OI inputs & most RC outputs –Must hear from User periodically or shuts it down –Master Code Software is updated each year

Robot Controller I/O Banner Sensor Touch Sensor Switch Gyroscope Camera Limit Switch Analog Rangefinder Encoder Potentiometer Pressure Sensor Servo SolenoidCompressor Analog Digital Motors Relays Team LEDs TTL

Getting Started Tutorials Tutorials –Help -> Tutorials Create/Open an EasyC Project Create/Open an EasyC Project –New Competition Template –Controller Configuration Drag & Drop Editing Drag & Drop Editing Build & Download Build & Download –Loader Setup to select serial/USB port –Online Window to test & check RC config.

.hex file Robot Controller Operator Interface Dashboard (optional)Mechanics Prog Button Build & Download

Project Controller Configuration Controller Configuration –Set Digital as input or output

Function Blocks Add Variables Add Variables Inputs – Digital & Analog I/O Inputs – Digital & Analog I/O Outputs – PWM, Relay Outputs – PWM, Relay Program Flow – C statements Program Flow – C statements RC Control – Drive style (tank, arcade) RC Control – Drive style (tank, arcade) Camera Camera Control – Know status (disable, auto) Control – Know status (disable, auto) User Functions (Initialize, Auto, Operator) User Functions (Initialize, Auto, Operator)

Simple Operator Mode While (1) { // From “Program Flow – While” Tank4(1,2,2,2,1,3,2,4,0,1,0,1); // From “RC Control – Tank – 4 motor” }

More Complex Operator Mode unsigned char LeftJoystick; // Double click “Variables” while (1) { LeftJoystick = GetOIAInput(1,2); // From “RC Control” if(LeftJoystick > 137 || LeftJoystick < 117) // From “Program Flow” { SetPWM(1, LeftJoystick); // From “Outputs” } else { SetPWM(1, 127); }

Simple Autonomous SetPWM(1,200); // From “Outputs” SetPWM(2,55); Wait(10000); // From “Program Flow” (10 secs in milliseconds) SetPWM(1,127); //Be sure to stop the robot at the end SetPWM(2,127);

Sample IR Sensor Use While(1) { if (GetDigitalInput(1) == 1) { SetOILED(1,1); //Turn 1 st OI light on SetOILED(3,0); //Turn other OI lights off SetOILED(5,0); SetOILED(7,0); SetPWM(1,200); //Drive the robot SetPWM(2,55); } if (GetDigitalInput(2) == 1) { SetOILED(1,0); //Turn other OI lights off SetOILED(3,1); //Turn 2 nd OI light on SetOILED(5,0); SetOILED(7,0); SetPWM(1,127); //Stop the robot SetPWM(2,127); }

More Information Presentation slides at: Presentation slides at: Team358.org Team358.org Questions/Help please us. Questions/Help please