Go to Post Your robot weight goes up after you release the balloons. Re-inspection! - GaryVoshol [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 21-01-2007, 17:17
tcj103 tcj103 is offline
Registered User
AKA: Ted Jones
None #0486 (Positronic Panthers)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 2000
Location: Media, PA
Posts: 14
tcj103 is on a distinguished road
Intermittent CODE ERROR, followed by uncommanded relay switching

We've encountered an intermittent problem with this years robot controller. We have the 2007 streamlined camera code on the robot, as provided on Kevin Watsons web site. Once in a while, we'll power up the robot, which will set a "code error" on the controller. Then, if you hit the reset on the controller, everything seems to reset OK, the code error light goes out, but then a spike relay will start cycling at about 1 Hz, sounding like an old car turn signal. Turning off the robot, and starting back up, sometimes will clear the condition, but most times it wouldn't. Moving the joystick all the way to one side (I think to the left) makes the relay stop. I'm not sure if the trigger still operates the relay (we modified the Kevin.org code for relay controls and some PWM control shaping)

The other symptom during this time that prior to the reset, the main battery voltage indicates OK on the controller (over 12 VDC). But when the relay is clicking, the battery power display shows about 8.2 VDC, even though during that condition, we metered the battery terminals, as well as the power going into the controller, and got over 12 VDC.

So, can anyone explain the incorrect battery voltage? I'm looking through IFI reference documents, but haven't found anything yet. We have since reloaded the streamlined code, with fewer changes, and are waiting to see what happens. To my knowledge, we're using the firmware on the controller that came with it, no updates have been loaded that I know of.

Also, I found one explanation about code error, is there a more detailed description of it anywhere?


Thanks
Ted
  #2   Spotlight this post!  
Unread 21-01-2007, 17:26
Goldeye Goldeye is offline
Registered User
AKA: Josh Hecht
FRC #0694 (Stuypulse)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: New York
Posts: 145
Goldeye has a spectacular aura aboutGoldeye has a spectacular aura aboutGoldeye has a spectacular aura about
Send a message via AIM to Goldeye
Re: Intermittent CODE ERROR, followed by uncommanded relay switching

Are you using timers or interrupts in any unusual or extensive way?

Also, the 8.2-8.3v problem is one that showed up last year and everyone hoped was gone this year. Guess not.
Check out http://www.ifirobotics.com/docs/memory_problem_8722.pdf
__________________
Team 694

2005 Championship - Galileo Semifinalist
2005 New York - Regional Chairmans Award
2005 New York - Semifinalist (Thanks 1257,1340)

Last edited by Goldeye : 21-01-2007 at 17:27. Reason: Added IFI link
  #3   Spotlight this post!  
Unread 21-01-2007, 19:07
tcj103 tcj103 is offline
Registered User
AKA: Ted Jones
None #0486 (Positronic Panthers)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 2000
Location: Media, PA
Posts: 14
tcj103 is on a distinguished road
Re: Intermittent CODE ERROR, followed by uncommanded relay switching

Thanks for the tip!

We are not using any interupts or timers, beyond what the camera code uses from Kevin Watson.

The 8.2-8.3 V problem sounds more like firmware/hardware. Can operator software cause this problem?

I'll check to see if they've complied with the memory problem update.
  #4   Spotlight this post!  
Unread 22-01-2007, 01:56
ericand's Avatar
ericand ericand is offline
Registered User
AKA: Eric Anderson
FRC #3765 (Terrabots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: St. Paul, MN
Posts: 148
ericand is a jewel in the roughericand is a jewel in the roughericand is a jewel in the rough
Re: Intermittent CODE ERROR, followed by uncommanded relay switching

The key to soliving the problem that was showing up last year (with symptoms similar to yours) was the change in the linker script. The 8.2-8.3 problem was found by our team to be temperature sensitive (occuring more often when the processor was cold, and less when it was warm).

The problem seemed to occur when the memory used by txdata and rxdata (the memory used to communicate between the master controller and the slave controller) was in the memory section adjacent to the hardware registers. The linker script patch makes that piece of RAM protected so it is not used (and the memory used for communication is moved away from the hardware registers).
  #5   Spotlight this post!  
Unread 22-01-2007, 02:59
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: Intermittent CODE ERROR, followed by uncommanded relay switching

Quote:
Originally Posted by tcj103 View Post
We've encountered an intermittent problem with this years robot controller. We have the 2007 streamlined camera code on the robot, as provided on Kevin Watsons web site. Once in a while, we'll power up the robot, which will set a "code error" on the controller. Then, if you hit the reset on the controller, everything seems to reset OK, the code error light goes out, but then a spike relay will start cycling at about 1 Hz, sounding like an old car turn signal. Turning off the robot, and starting back up, sometimes will clear the condition, but most times it wouldn't. Moving the joystick all the way to one side (I think to the left) makes the relay stop. I'm not sure if the trigger still operates the relay (we modified the Kevin.org code for relay controls and some PWM control shaping)

The other symptom during this time that prior to the reset, the main battery voltage indicates OK on the controller (over 12 VDC). But when the relay is clicking, the battery power display shows about 8.2 VDC, even though during that condition, we metered the battery terminals, as well as the power going into the controller, and got over 12 VDC.

So, can anyone explain the incorrect battery voltage? I'm looking through IFI reference documents, but haven't found anything yet. We have since reloaded the streamlined code, with fewer changes, and are waiting to see what happens. To my knowledge, we're using the firmware on the controller that came with it, no updates have been loaded that I know of.

Also, I found one explanation about code error, is there a more detailed description of it anywhere?


Thanks
Ted
As others have mentioned, this is a nasty bug that some folks have had problems with. Grab a copy of the 2.1 camera code and extract the *lkr and *.lib files into your build directory. Make sure you use the new library when you re-build.

-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
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07
Intermittent Code Error Plloyd Programming 9 09-04-2005 21:37
Help with auton switching code farmer Programming 3 15-02-2005 15:30
C++ Code Error? Adam Shapiro Programming 9 20-01-2003 13:24
Relay Connection Figure 2.2 in error ? Lloyd Burns Technical Discussion 6 31-01-2002 16:04


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

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