1 / 14

Programming Workshop

Programming Workshop. FIRST 2008. Presenter. Erik A. Cokeley Involved in FIRST for 11 years Mentor - Hightstown High School - Team 1089 NJIT - Junior Computer Science Major Experienced with the Microchip PIC Autonomous robots Program in C, C++, Assembly, Java

keelia
Download Presentation

Programming Workshop

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Programming Workshop FIRST 2008 Erik A. Cokeley - 2008

  2. Presenter • Erik A. Cokeley • Involved in FIRST for 11 years • Mentor - Hightstown High School - Team 1089 • NJIT - Junior • Computer Science Major • Experienced with the Microchip PIC • Autonomous robots • Program in C, C++, Assembly, Java • Familiar with the FIRST Default Code • Co-Founder CB Thinkx LLC Erik A. Cokeley - 2008

  3. Resources Software Installation Some Gotchas Review the Default Design Loading your code into your robot Operator Interface Robot Controller Other Hardware Sensors Some examples Questions Workshop Outline Erik A. Cokeley - 2008

  4. Resources • FIRST - www.usfirst.org • Innovation FIRST - www.ifirobotics.com • Kit & Manual • Microchip - www.microchip.com • ChiefDelphi – www.chiefdelphi.com • ChiefDelphi Whitepapers - www.chiefdelphi.com/media/papers • Kevin Watson – www.kevin.org/frc • Blue Alliance - www.thebluealliance.net • CB Thinkx Website – www.cbthinkx.com/first/frc • Me! - FirstJerseyKid@comcast.net Erik A. Cokeley - 2008

  5. Installation Procedure • Use CD from kit or download MPLab and C18 v2.4 from Microchip • Install MPLab • Click on the setup file for the C18 compiler • Select the options that allow the IDE to be updated • Try to compile Default Code • Unzip frc_code.zip • Open FrcCode.mcw • Select “Build All” in MPLab IDE • Install ifi_loader Erik A. Cokeley - 2008

  6. Design Flow • Competition Mode • Autonomous Mode • 26.2 ms Erik A. Cokeley - 2008

  7. IFI Loader • Turn on Robot Controller • Tether PC to RC’s Program Port • Use correct cable! • USB to Serial Converter causes long load times • Put Robot into Program Mode • Load Default Code hex file • Select COM Port in IFI_Loader • Browse for hex file • Click upload • Robot Ready to Go! Erik A. Cokeley - 2008

  8. Operator Interface (OI) Erik A. Cokeley - 2008

  9. Robot Controller (RC) Erik A. Cokeley - 2008

  10. Some Other Hardware Erik A. Cokeley - 2008

  11. Some Sensors Analog vs. Digital • Camera • Gyro • Encoder • Potentiometer • Pressure switch • Touch switch • Line switch • Infrared • Hall Effect Erik A. Cokeley - 2008

  12. Some Examples • Mapping Controls to Joysticks • Autonomous Dead Reckoning • Integrating the Camera • Using a potentiometer to measure an analog voltage Erik A. Cokeley - 2008

  13. Questions? Erik A. Cokeley - 2008

  14. For More Info • Erik Cokeley – FirstJerseyKid@comcast.net • www.cbthinkx.com/first/frc Erik A. Cokeley - 2008

More Related