Go to Post If your robot can't play at least two matches on one battery, your mechanical design and/or driver strategy needs some rethinking. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-05-2010, 19:42
Brent Strysko Brent Strysko is offline
President
AKA: JCODER
FRC #1672 (Mahwah Robo T-Birds)
Team Role: Webmaster
 
Join Date: Mar 2009
Rookie Year: 2007
Location: Mahwah
Posts: 14
Brent Strysko is an unknown quantity at this point
Programming the Old Controller

Hey Guys,

So Team 1672 is doing an off season project where we are building an arena to do battle vex robots in. We want to use electronics that control relays for lights. Anyway that part is easy. The problem we are having is using the old controller from around 2005/2006 and Kevins Serial Port Code( http://www.kevin.org/frc/ at the bottom of the page) we keep on getting a code error. Have any of you used this code before. If not how could we interface a computer serial port to our controller / OI for data communication.

Thanks
  #2   Spotlight this post!  
Unread 25-05-2010, 20:33
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,814
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Programming the Old Controller

Question 1: What version of the compiler, etc., are you running?

Question 2: What is the code error?

A number of people have used the code before, quite successfully.

I would also try contacting the following CD member for assistance (if he doesn't see this thread before someone gets to him):
http://www.chiefdelphi.com/forums/member.php?u=1028
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #3   Spotlight this post!  
Unread 25-05-2010, 21:10
Jetweb Jetweb is offline
is good at making robots find walls
AKA: Jonathan
FRC #0179 (Children of the Swamp!!!)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jupiter, FL
Posts: 213
Jetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to all
Re: Programming the Old Controller

i have also used the code with no problems in the past, some more info would be helpful so someone can help you solve your problem.
  #4   Spotlight this post!  
Unread 25-05-2010, 21:48
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,588
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Programming the Old Controller

It's important to know if it is a 2005 or a 2006 controller, they have different microprocessors.

If it is a 2005 controller, read the file called Using_Last_Years_FRC included in the zip file.

Eric's question about the compiler version is very relevant, also.

Last edited by Joe Ross : 25-05-2010 at 22:01.
  #5   Spotlight this post!  
Unread 28-05-2010, 02:44
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Programming the Old Controller

Quote:
Originally Posted by Brent Strysko View Post
Hey Guys,

So Team 1672 is doing an off season project where we are building an arena to do battle vex robots in. We want to use electronics that control relays for lights. Anyway that part is easy. The problem we are having is using the old controller from around 2005/2006 and Kevins Serial Port Code( http://www.kevin.org/frc/ at the bottom of the page) we keep on getting a code error. Have any of you used this code before. If not how could we interface a computer serial port to our controller / OI for data communication.

Thanks
As others mentioned, we'll need more information to help you out. My code builds just fine with the latest (3.35) compiler.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #6   Spotlight this post!  
Unread 28-05-2010, 17:04
Brent Strysko Brent Strysko is offline
President
AKA: JCODER
FRC #1672 (Mahwah Robo T-Birds)
Team Role: Webmaster
 
Join Date: Mar 2009
Rookie Year: 2007
Location: Mahwah
Posts: 14
Brent Strysko is an unknown quantity at this point
Re: Programming the Old Controller

Thanks everyone who has responded so far. Okay well our team is currently working on reorganizing our closet so I am not sure what year the controller is, however I did open it up and see it was a PIC18F8520. So would this mean I have to use the code in the "old directory". That would explain it. I only knew there was an error because the code error LED on the controller would turn on and off.
So interfacing from PORT1 on the OI does not require any special cables besides a standard serial cable?
  #7   Spotlight this post!  
Unread 28-05-2010, 20:14
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Programming the Old Controller

Quote:
Originally Posted by Brent Strysko View Post
So would this mean I have to use the code in the "old directory".
You should be able to to use this code without any problems:

http://kevin.org/frc/ifi_frc_simple.zip

Make sure you use the '8520 linker script and library. I would suggest using the latest release of C18 too.

Quote:
Originally Posted by Brent Strysko View Post
So interfacing from PORT1 on the OI does not require any special cables besides a standard serial cable?
Yep, that simple. If you're looking for example code that shows how to interface with a user at a termainal and with a computer, have a look at the 2007 CMUcam software:

http://kevin.org/frc/2007/frc_camera_2.zip

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #8   Spotlight this post!  
Unread 28-05-2010, 20:41
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Programming the Old Controller

Quote:
Originally Posted by Kevin Watson View Post
You should be able to to use this code without any problems:

http://kevin.org/frc/ifi_frc_simple.zip

Make sure you use the '8520 linker script and library. I would suggest using the latest release of C18 too.

Yep, that simple. If you're looking for example code that shows how to interface with a user at a termainal and with a computer, have a look at the 2007 CMUcam software:

http://kevin.org/frc/2007/frc_camera_2.zip

-Kevin
I just realized, you are the kevin from kevin.org... LOL
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #9   Spotlight this post!  
Unread 29-05-2010, 00:49
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Programming the Old Controller

Quote:
Originally Posted by davidthefat View Post
I just realized, you are the kevin from kevin.org... LOL
I hope so. If I were the Kevin from kevin.com, I'd be a lawyer in Arizona and probably wouldn't want to hang out here with people who have made better life choices <grin>.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Playing around with old controller RedSoxFan Programming 1 21-04-2010 18:50
Programming with the 2009 controller slavik262 Programming 97 20-10-2008 21:59
using an old p-basic controller fimmel Control System 5 13-11-2006 23:55
Programming The CMUcam for the Vex controller 987HighRoller Programming 3 24-06-2006 15:27
Old 883= 24V Speed controller??? stealth13777 Electrical 17 21-07-2005 12:45


All times are GMT -5. The time now is 23:23.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi