|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||||
|
|||||
|
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 |
|
#3
|
|||
|
|||
|
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
|
||||||
|
||||||
|
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
|
||||
|
||||
|
Re: Programming the Old Controller
Quote:
-Kevin |
|
#6
|
|||
|
|||
|
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
|
||||
|
||||
|
Re: Programming the Old Controller
Quote:
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:
http://kevin.org/frc/2007/frc_camera_2.zip -Kevin |
|
#8
|
|||
|
|||
|
Re: Programming the Old Controller
Quote:
I just realized, you are the kevin from kevin.org... LOL |
|
#9
|
||||
|
||||
|
Re: Programming the Old Controller
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |