|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 Last edited by Goldeye : 21-01-2007 at 17:27. Reason: Added IFI link |
|
#3
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
Re: Intermittent CODE ERROR, followed by uncommanded relay switching
Quote:
-Kevin |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |