Go to Post Fear the power of the custodians! - Fixen [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 15-12-2006, 09:19
Guy_E Guy_E is offline
Registered User
FRC #1574 (MisCar)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2006
Location: ISRAEL
Posts: 81
Guy_E has a spectacular aura aboutGuy_E has a spectacular aura about
Send a message via MSN to Guy_E
Problem with the 2005 controller

Hi again...

I'm faced with a very strange problem. We have built a new driving system and we want to check it. For that I took the 2005 robot controller and hooked it up to all the necessary things. I downloaded a program to see that it works properly with the RC. The weird thing was that The radio receiver stayed in STANDBY state, and wasn't working properly. I thought it could be that the receiver or the program has some sort of a malfunction, but when I connected the receiver to the 2006 controller it was working fine, with the program I tried to download to the 2005 controller.

I then noticed that there was another problem with the controller. It looked as if it were stuck at programming mode. The Program State LED did not blink and stayed orange, and the 3 lower LEDs were not blinking nor making any light at all. I think there is something wrong with the controller itself.

Has any of you faced such problem before? Is there any solution to it?

Thanks,
Guy
__________________
Team #1574 Misgav High School - Israel

Winner of the 2007 Israeli Regional

Winner of the 2007 Motorola Quality in Design Award

Visit our website:
www.miscar1574.com
  #2   Spotlight this post!  
Unread 15-12-2006, 09:41
Jack Jones Jack Jones is offline
Retired
no team
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Waterford, MI
Posts: 964
Jack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond repute
Re: Problem with the 2005 controller

Did you have it teathered when you first downloaded the program?
  #3   Spotlight this post!  
Unread 15-12-2006, 09:51
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Problem with the 2005 controller

Sounds like the OI and RC are set to different channels. Teather the controller then try it.
It could also be a code error. "If you get the red light of death" check to see if you have the correct library file.

Hope this helps.

200th Post!!
__________________
Eric Haskins KC9JVH
  #4   Spotlight this post!  
Unread 15-12-2006, 14:53
Guy_E Guy_E is offline
Registered User
FRC #1574 (MisCar)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2006
Location: ISRAEL
Posts: 81
Guy_E has a spectacular aura aboutGuy_E has a spectacular aura about
Send a message via MSN to Guy_E
Re: Problem with the 2005 controller

The code has certainly no problem because it worked on the 2006 controller. I'll try to tether it to see if it helps. Another thing I noticed was that when I pressed the RESET button, it was as if I pressed the PROG button, meaning that the controller was initialized after I pressed RESET
__________________
Team #1574 Misgav High School - Israel

Winner of the 2007 Israeli Regional

Winner of the 2007 Motorola Quality in Design Award

Visit our website:
www.miscar1574.com
  #5   Spotlight this post!  
Unread 15-12-2006, 15:41
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Problem with the 2005 controller

Quote:
Originally Posted by Guy_E View Post
The code has certainly no problem because it worked on the 2006 controller...
Are you aware that the 2005 and 2006 Robot Controllers use different microprocessors? If you're trying to run a 2006 program on a 2005 controller, it's quite reasonable for it to get confused. You should probably recompile the code with the proper library file and appropriate target CPU selected.

From the Using_Last_Years_FRC.txt file included with the 2006 default code:
Code:
To compile this project to work with your 2005 FRC (18F8520) system do the following:

  1.  Select the correct device from the MPLAB IDE. 

      Configure->Select Device->PIC18F8520

  2.  Replace the library file with the appropriate one.

      Remove the FRC_Library.lib file and replace it with FRC_Library_8520.lib
       
                                        or

      Remove the FRC_alltimers.lib file and replace it with FRC_alltimers_8520.lib

  3.  Remove the 18f8722.lkr file and replace it with the 18f8520.lkr file

  4.  Rebuild your project and download the HEX file to your controller.
  #6   Spotlight this post!  
Unread 15-12-2006, 15:57
Guy_E Guy_E is offline
Registered User
FRC #1574 (MisCar)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2006
Location: ISRAEL
Posts: 81
Guy_E has a spectacular aura aboutGuy_E has a spectacular aura about
Send a message via MSN to Guy_E
Re: Problem with the 2005 controller

This might be the solution to my problem. I'll do that on Sunday when I get to see the controller again.
Thanks.
__________________
Team #1574 Misgav High School - Israel

Winner of the 2007 Israeli Regional

Winner of the 2007 Motorola Quality in Design Award

Visit our website:
www.miscar1574.com
  #7   Spotlight this post!  
Unread 15-12-2006, 18:01
teh_pwnerer795 teh_pwnerer795 is offline
Registered User
AKA: !!Mitch!!
FRC #1392
Team Role: Programmer
 
Join Date: Nov 2006
Rookie Year: 2006
Location: Ajax, Canada
Posts: 142
teh_pwnerer795 is just really niceteh_pwnerer795 is just really niceteh_pwnerer795 is just really niceteh_pwnerer795 is just really nice
Send a message via MSN to teh_pwnerer795 Send a message via Yahoo to teh_pwnerer795
Re: Problem with the 2005 controller

Yes today i had the same situation! .. thats what i thought... something wrong with the MPLAB hex file created.. worked with other controllers but that 1
__________________
Great Art is Created; Master Pieces are Stolen

[n00b]Teh_Foxdonut teh_pwnerer795 - CounterStrike:Source
  #8   Spotlight this post!  
Unread 17-12-2006, 02:02
Guy_E Guy_E is offline
Registered User
FRC #1574 (MisCar)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2006
Location: ISRAEL
Posts: 81
Guy_E has a spectacular aura aboutGuy_E has a spectacular aura about
Send a message via MSN to Guy_E
Re: Problem with the 2005 controller

I switched the files, but still, it didn't make any change. The controller still seemed to be stuck and the LEDs weren't blinking. Do you know what could possibly cause it?
__________________
Team #1574 Misgav High School - Israel

Winner of the 2007 Israeli Regional

Winner of the 2007 Motorola Quality in Design Award

Visit our website:
www.miscar1574.com
  #9   Spotlight this post!  
Unread 17-12-2006, 12:21
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Problem with the 2005 controller

Tether the RC and OI. Plug the OI into the wall. Download the default code. Check the OI dashboard (set OI to RC mode). Does the 2005 default code work? Do any errors appear on the dashboard?

If that works, try again with your program recompiled for 2005. Does your code work? Do any errors appear on the dashboard?

Is it just me, or does this seem to be a recurring problem?
  #10   Spotlight this post!  
Unread 17-12-2006, 14:38
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Problem with the 2005 controller

Also you might want to try a master reset. This disables the user processor and allows you to download programs in the event of a problem preventing the user processor from accepting downloads normally. If you can't get the light out of program mode you could have this issue.

Hold down both RESET and PROG buttons for ten seconds. Then release RESET and hold PROG for another ten seconds, then release. It should result in a power light, and an orange program light and nothing else. I think. It's been a while, if that doesn't work, trying releasing PROG after ten seconds and holding RESET for ten more, it's one of those two I think
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #11   Spotlight this post!  
Unread 18-12-2006, 01:38
Guy_E Guy_E is offline
Registered User
FRC #1574 (MisCar)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2006
Location: ISRAEL
Posts: 81
Guy_E has a spectacular aura aboutGuy_E has a spectacular aura about
Send a message via MSN to Guy_E
Re: Problem with the 2005 controller

Quote:
Originally Posted by Matt Krass View Post
Also you might want to try a master reset. This disables the user processor and allows you to download programs in the event of a problem preventing the user processor from accepting downloads normally. If you can't get the light out of program mode you could have this issue.

Hold down both RESET and PROG buttons for ten seconds. Then release RESET and hold PROG for another ten seconds, then release. It should result in a power light, and an orange program light and nothing else. I think. It's been a while, if that doesn't work, trying releasing PROG after ten seconds and holding RESET for ten more, it's one of those two I think
Thank you so much! It really helped and solved my problem.
I pressed RESET and PROG for 10 sec and than continued to press RESET for 10 more and than all the LEDs returned to blink normally.

Thanks,
Guy
__________________
Team #1574 Misgav High School - Israel

Winner of the 2007 Israeli Regional

Winner of the 2007 Motorola Quality in Design Award

Visit our website:
www.miscar1574.com
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
Problem with the battery charger Lightposter Electrical 4 19-01-2006 10:39
problem with the default code MarkVH Programming 7 28-01-2005 00:04
Problem with Lowering the Bar Kevin Kolodziej General Forum 14 12-01-2004 21:58
Problem with interrupts on the PIC Mike Betts Programming 7 16-12-2003 21:26
The problem with scouting... archiver 2001 10 23-06-2002 23:49


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

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