BEST Robotic, Inc. easyC Team Training

Slides:



Advertisements
Similar presentations
Teacher/Mentor Institute Using the Cortex Chuck Powell.
Advertisements

Module 3 Configuring Hardware on a Computer Running Windows XP Professional.
NEX-FS700 Firmware Ver. 2.0 Upgrade
Introduction to HT-IDE3000 Micro-C development System Department.
Who are we?  Naomi Fitzsimmons Parts replacement  Matt Lapolla Programming, Technical issues,
Teacher/Mentor Institute Using the Cortex Carolyn Bauer July 21-22, 2014.
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.
Lab7: Introduction to Arduino
1. 2 LabVIEW for FRC Doug Norman National Instruments January 6, 2012.
1. 2 FRC 2010 Driver Station Doug Norman & Stephanie Brierty National Instruments January 8, 2010 Thanks to Joe Ross – Team 330.
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.
Vex 1.0 © 2005 Carnegie Mellon Robotics Academy Inc. Programming in easyC.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Using Visual C++ and Pelles C
Copyright © 2012 BEST Robotics, Inc. All rights reserved. 1 BEST Software Options Greg Young William Polanco Saturday Apr 27, 2013.
Administrator’s Guide
Windows Tutorial 9 Maintaining Hardware and Software
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
Drivers Station 2010 Joe Ross Team /12/2009.
Driver Station MVRT 2009 – 2010 Season. Add information Breadboard Classmate PC USB Hub Joysticks Stop Button.
VEX Robotics Platform and ROBOTC Software
9000U Quick Guide Marketing & RMA Department XELTEK 8/28/2015.
Chapter Introduction to Computers and Programming 1.
Tutorial 11 Installing, Updating, and Configuring Software
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
Hands-On Virtual Computing
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.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell.
The New FTC Platform (Connecting your legacy hardware)
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Teacher/Mentor Institute Using easyC Joel Kirkland July 30-31, 2015.
May 2, 2008 Copyright © 2008 BEST Robotics, Inc. All rights reserved. 1 BEST Robotics Advanced Instruction Node Basic BRAIN Training Using Your BRAIN (For.
BEST Robotic, Inc. easyC Breakout Session By: Guy Chetrit Programming With easyC September 15, Copyright © 2012 BEST Robotics, Inc. All rights reserved.
EasyC Programming Workshop January 30, 2008 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
1 Simulink Support for VEX Cortex BEST Robotics 2012 Sandeep Hiremath.
TECHNICAL TRAINING SMART COMMANDER System Requirements CPU : 800MHz and aboveCPU : 800MHz and above Memory : 256MB RAM or HigherMemory : 256MB.
VEX ARM® Cortex®- based Microcontroller. The VEX ARM® Cortex®-based Microcontroller coordinates the flow of all information and power on the robot. All.
Envision Tutorial Horner APG, LLC July 18, Introduction The Cscape Remote Viewer allows remote interaction with the user interface on Horner OCS.
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.
2007 TAX YEARERO TRAINING - MODULE 61 ERO (Transmitter) Training Module 6 Federal and State Installation and Updates.
HTC Android Projector User Guide v Agenda Setup and Demo Environment Launch Projector Installer Launch Projector Application Q&A.
Page 1 of 38 Lenovo Confidential Lenovo Confidential Lenovo Confidential Lenovo Confidential Lenovo Confidential Please Note: Information contained in.
HOW TO INSTALL WINDOWS 7? This step-by-step guide demonstrates how to install Windows 7 Ultimate. The guide is similar for other versions of Windows 7.
Vex Robotics program three: using motors and sensors together.
San Antonio BEST Return and Consumables Kits September 13, 2014 St Mary’s University Center
Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
Project Overview  Introduction  Frame Build  Motion  Power  Control  Sensors  Advanced Sensors  Open design challenges  Project evaluation.
Teacher/Mentor Institute Intro to easyC Programming Scott McEwen July 21-22, 2016.
After Construction Name: Per #:.
BEST Robotic, Inc. MATLAB/Simulink Team Training
Step 1 - Installing TStatSpec Download the TStatSpec software from customer.honeywell.com.  The files will need to be extracted in a new folder.  
Development Environment
Using the VEX Cortex Processor
Using the VEX Cortex Processor
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
1. Press the Power button or switch to flip on the printer, if it is turn off. 2. From the Home display screen on the product control panel, click the.
Installing the HP LaserJet Pro 500 color MFP M570 printer software in Windows on a Wireless Network & Wired Network.
Software Setup & Validation
Introduction to Programing the Cortex for BEST
Presentation transcript:

BEST Robotic, Inc. easyC Team Training Programming With easyC August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. What You’ll Need… Minimum System Requirements Windows XP/Vista/Win7, Mac not supported PIII-450MHz+, 256MB+ RAM, 120MB Hard Disk Space Administrator Access on the PC 1 USB port available for Cortex programming Software & Installation Software provided on CD Installer auto runs from CD 4-month license begins at installation, 3 seats Updates available at http://www.intellitekdownloads.com August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved. 2

Copyright © 2011 BEST Robotics, Inc. All rights reserved. What gets installed? Prolific USB to Serial Driver easyC Integrated Development Environment IFI/Intelitek Loader easyC libraries IFI VEXnet firmware upgrade* Many example projects 14 Integrated Tutorials * Note: Firmware upgrade requires administrator mode on Windows VISTA. Right click on “IFI VEXnet Firmware Upgrade” in Programs Menu and select “Run as administrator”. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved. 3

Key Software Locations Start Program Menu items are added easyC V4 for Cortex Desktop icons Projects and Libraries are added here My Documents\Intelitek\easyC V4 for Cortex August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved. 4

Copyright © 2011 BEST Robotics, Inc. All rights reserved. easyC Software Installation Must be in the administrator account (or administrator mode) Run the easyC_V4_for_Cortex4020.exe program Follow the on screen instructions Check the “Install Prolific USB to Serial adapter driver“ checkbox before clicking the Finish button, the driver installer will startup after a few seconds Sample files copied into a “Intelitek” subfolder in the Documents (or My Documents in XP) folder Sample files must be copied to each users folder if the software will be shared by multiple users on the same machine. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

easyC Software Installation On the first startup of the software, there will a prompt for registration code Enter the registration code provided by Hub August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

easyC Software Overview Block based programming Drag & Drop C function blocks into a C program structure Raw C code programming Create your code from scratch in the text editor Import your own functions/libraries Create user-code blocks that can be placed in the block programming window Lots of built-in functions/blocks; similar to past BRAIN setservo(), setmotor(), getjoystick(), getdigitalinput() Compiles and downloads to your robot August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. VEX Cortex Review Gnd (Blk) +5v (Red) Sig (Wht) USB Standard Serial Interfaces (UART, I2C) 1 Analog in 8 1 1 2 2-wire motor Digital in/out 3-wire PWM servo/motor ctrl 12 9 10 Speaker Out SP 2-wire motor Sig (Wht) +5v (Red) Gnd (Blk) August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. BEST Default Program Motor/Servo Port Joystick Channel Motor Limits Positive Direction Negative Direction Motor 1 Not Used None Motor 2 (Arcade Right) Channel 1 (Lt, Rt) Channel 2 (Fwd/Rev) Motor 3 Channel 1 Digital Input 1 Digital Input 2 Motor 4 Channel 3 Digital Input 3 Digital Input 4 Motor 5 Channel 3 Inversed Motor 6 Channel 2 Digital Input 5 Digital Input 6 Motor 7 Channel 4 Digital Input 7 Digital Input 8 Motor 8 Channel 4 Inversed Motor 9 (Arcade Left) Motor 10 August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Programming Vocabulary Compile – changes your C program into object code that the linker understands. Link – combines your program’s object code with the Intelitek library and other libraries to create code that is executable on the Cortex processor. Download / Bootload – transfers the machine code version of your program from the PC to the Cortex where it will execute (the IFI/Intelitek Loader will perform the transfer via the PC USB cable) August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. Programming Flow 1. Write It. 2. Save It. 3. Compile & Link. (aka Build) 4. Download It. 5. Test It. Block-based Drag & Drop (Menu Cfg) Project Files Integrated Design Environment (IDE) Target (Cortex) or easyC V4 for Cortex User Created C Program easyC Project From Scratch Libraries (C Functions) August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Programming (step-by-step) Create a new project. Select “New Standalone Project” from the File menu Select “Joystick Project (wifi)” from the popup window Create your program; save your program. Drag & drop programming blocks to create your program Build (i.e.,compile and link) the code. Use the “Build and Download” option from the Build and Download Menu Errors will be reported in the “Outputs & Tasks” window Download the program to the Cortex Automatic if using the “Build and Download” option IFI/Intelitek Loader window will popup showing progress August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. Creating a new project August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. Type of project August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. Navigating easyC (1) This shows the easyC layout with a New Standalone Project started and all of the View options turned on. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. Navigating easyC (2) August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. Navigating easyC (3) August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. Navigating easyC (4) August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. Navigating easyC (5) August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Set Controller Configuration The Controller Configuration window is used to identify what the various interfaces will be used for and whether the digital interfaces are configured as inputs or outputs. The Controller Configuration window can be accessed via the Project menu. The example shown is the BEST default program. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. Creating a Program Drag blocks here to build your program. Context sensitive so you can’t make a program structure mistake. Drag blocks from here August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. easyC Program Flow Options The programming blocks in the Program Flow folder are primarily standard C language constructs. The items unique to easyC are as follows: Timer: Gives access to six software timers. Wait: Suspends program execution. Assignment: For writing a custom expression. Print To Screen: For sending output to the terminal window while a program is running (usually used for debugging). Graphic Display: For sending output to the Graphic Display window while a program is running. Comment: For placing a comment statement in the code. User code: Can construct any valid C statement/s. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. easyC Input Options The switches used by BEST can be used in conjunction with the Digital Input or the Interrupt Watcher programming blocks. The Digital Input block will detect whether a switch is open (returns a 1) or closed (returns a 0). The Interrupt Watcher block detects whether a switch state has changed. Note that the Bumper Switch, Limit Switch and Digital Input blocks are all functionally the same, only their names are different. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. easyC Output Options The Motor and Servo Module blocks can be used interchangeably. However it is suggested to use the Motor Module with motors and the Servo Module with servos just to make the code more readable. BEST does not currently use any devices that would make use of the Digital Output block. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. easyC Joystick Options Many prewritten functions are available to interface with the Joysticks. These standard functions can be used or you can read the Joystick values into variables with the “Get Joystick” blocks and then manipulate these values before sending them to the motors or servos. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. easyC Battery Blocks The Battery blocks can be used to detect the voltage of the main battery or the backup battery. The voltages can then be reported via the terminal window or the graphical display window. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. easyC Mathematical Functions August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. easyC Joystick Return Values Accelerometer rotate left limit -127 The joystick and accelerometer limit return values are +127 and -127 as shown in the figure. The buttons have a return value of 1 when pressed and 0 when released. + 127 - 127 Accelerometer rotate forward limit +127 Accelerometer rotate back limit -127 X Axis Y Axis Accelerometer rotate right limit +127 August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. easyC Variable Reference Whole Number Variables char -127 to 127 unsigned char 0 to 255 signed char Int -32,768 to 32,768 unsigned int 0 to 65,535 short -32,767 to 32,767 unsigned short short long -8,388,608 to 8,388,607 unsigned short long 0 to 16,777,215 long -2,147,483,647 to 2,147,483,647 unsigned long 0 to 4,294,967,295 Decimal Number Variables (6 digits of precision) float 1e-38 to 1e+38 double 1e-38 to 1e+38 (same as float in this environment) August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. easyC Other Options The LCD blocks are for a VEX LCD device that is not used by BEST. The User Functions folder has the functions that you have created. You can just drag and drop them into your code to call them. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. Build and Download Select “Build and Download” from the “Build and Download” menu to build (compile/link) your program and download it to your robot. The IFI/Intelitek Loader will run after build is complete. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. Build: Compile Errors To determine where the errors are in your code, open the “C Programming” window from the Window menu. The line numbers of the code will be displayed. Compile errors will be reported in the output & tasks window. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. Successful Build August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. Download the Program . Option 1: Direct USB Download Uses only the A-A USB cable. Battery is not needed August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. Download the Program . Option 2: Tethered Download Uses the programming cable with A-A USB tether. Allows advanced debugging. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. Download the Program . Option 3: Wireless Download Uses the programming cable with WiFi USB Keys. Battery is needed Allows advanced debugging. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. IFI/Intelitek Loader The first time the “IFI/intelitek Loader” runs, a message about updating the master code will pop up. Simply check the “don’t show this message again” checkbox and continue. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. Advanced Debugging Advanced debugging functions in easyC are located under the Tools menu. (Terminal Window, On-Line Window, Graphic Display) August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Copyright © 2011 BEST Robotics, Inc. All rights reserved. easyC On-Line Window The On-Line Control Window is a good way to verify hardware function. It allows direct control of the robot’s I/O to verify hardware connections are correct. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

easyC Graphic Display Window The Graphic Display window is a customizable window for your program to display the value of internal variables in real-time. If the Graphic Display is not active; select the Stop button, then mark the Graphic Display box and then select the Start button. The output shown here is from the “Graphical Display Joystick Test” sample program. August 19, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.