Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   Serious Problem of Unknown Origin (http://www.chiefdelphi.com/forums/showthread.php?t=62783)

Team865 29-01-2008 13:46

Serious Problem of Unknown Origin
 
Hi,

We have a problem of unknown origin. Everything was working fine with our robot. However, when we uploaded code for the timer, the motors no longer spun at full capacity. They spun about one-fiftieth of a revolution each half-second. We reverted our code (by commenting out all newly-written code) to a state in which it was working before. Unfortunately, this did not resolve the problem. The motors still spun at an infinitesimal fraction of the speed that they were spinning at before. We uploaded the default code from our backup, but the motors still behaved like before. Here are the symptoms and the results of various tests we conducted:
  • The motors reacted correctly to stimuli from the joystick. When the joystick was pushed forward, the gears spun clockwise, and when the joystick was pulled back, the gears spun counterclockwise.
  • When the joystick is neutral, the LED on the Victor is orange. When the joystick is moved off neutral, the LED flashes orange, but never turns green or red like it used to.
  • We tried a different Victor 884, but with the same results.
  • All LEDs on the Robot Controller were flashing green. We tried an RC from a previous year, but everything was the same.
  • Periodically the motors would spin at the original speed, for about 1 second, so we're pretty sure that the motors are working fine (it would be a coincidence if both failed, and in the same fashion, simultaneously).
  • We've tried replacing the fuse, but once again same thing.
  • When the joystick is moved, on the terminal window, strangely, this message is printed: "IFI>IFI 2006 User Processor Initialized". Why does this happen? Shouldn't this message only be printed upon program initialization?
  • We tried testing connections and wiring with a voltmeter. All connections were giving power. The input to the Victors read about 11 volts. The output from the Victors to the motors gave a reading of approximately 0.1 - 0.9 volts. Is this what others are getting?
  • We tried a different power supply feeding in 12 volts, with no change.

What could possibly be the problem? If anybody has experienced a similar condition, please respond. We have tried everything we could, but still have not been able to identify the cause or location of this problem.

Thank you for your concern!

- Team 865

MrForbes 29-01-2008 13:48

Re: Serious Problem of Unknown Origin
 
Are you powering the robot with a fully charged 12v battery? or something else?

Team865 29-01-2008 13:53

Re: Serious Problem of Unknown Origin
 
Our battery is not fully charged, but when we tested its output when connected to the robot controller, the voltmeter read 11 volts. We tested it with an AC to DC converter outputting 12 volts, but to no avail.

MrForbes 29-01-2008 13:55

Re: Serious Problem of Unknown Origin
 
Charge the battery, then try it again. Really. I'm serious.

Alan Anderson 29-01-2008 13:56

Re: Serious Problem of Unknown Origin
 
The repeated initialization message says that your program is causing the Robot Controller to reset repeatedly. squirrel probably has it pegged: the current draw from the motors drops the voltage to the point where the RC doesn't have enough to keep running.

But in case that's not the problem, which timer are you using? How long did you set it to run before causing an interrupt? Did you remember to reset the interrupt flag in the service routine?

One more thing: are you using PWMs 13-16? Using the standard IFI code, those four outputs don't play nice with interrupts.

Team865 29-01-2008 13:56

Re: Serious Problem of Unknown Origin
 
Thank you, we will try out your suggestion and report back later (likely tomorrow). If there are any other suggestions, we are welcome to them.

Mark McLeod 29-01-2008 13:57

Re: Serious Problem of Unknown Origin
 
Your robot controller is resetting due to low voltage whenever you see the
"IFI>IFI 2006 User Processor Initialized" message.

Probably because your 12v battery is low (11v is a low reading when the robot is at rest), also because you don't have a fully charged backup battery connected.

Team865 29-01-2008 13:59

Re: Serious Problem of Unknown Origin
 
Mr. Anderson,

We've uploaded and are testing the default code where simply pwm01 is mapped to p1_y, etc, and no timer code is in use. The Victors are connected to PWM outputs 1 and 2.

Team865 29-01-2008 14:07

Re: Serious Problem of Unknown Origin
 
We connected a fully charged battery pack to the backup inputs on the RC, and we no longer got the "IFI>IFI 2006 User Processor Initialized" message. However, the motors are still not spinning at their normal speed.

Alan Anderson 29-01-2008 14:11

Re: Serious Problem of Unknown Origin
 
Quote:

Originally Posted by Team865 (Post 688021)
Mr. Anderson,

We've uploaded and are testing the default code where simply pwm01 is mapped to p1_y, etc, and no timer code is in use. The Victors are connected to PWM outputs 1 and 2.

I must be misreading your original message, because it looks like it says you started having the issue when you added timer code and it went back to normal when you put in the default code. I'm probably getting confused by the phrase "behaved like before".

Quote:

We connected a fully charged battery pack to the backup inputs on the RC, and we no longer got the "IFI>IFI 2006 User Processor Initialized" message. However, the motors are still not spinning at their normal speed.
Use the OI display to view your main battery voltage. If it ever gets below about eight volts, the RC shuts down all its outputs. The backup battery keeps it communicating and prevents it from resetting, but it can't stop it from turning off the motors.

MrForbes 29-01-2008 14:12

Re: Serious Problem of Unknown Origin
 
Did you try connecting a fully charged big gray 12v battery to power the robot? A discharged battery will cause the symptoms you are describing, and it is very easy to try this first, and save yourself a lot of frustration.

I only offer this advice repeatedly because I have spent many hours of my life trying to fix similar problems that were caused by discharged batteries.....

Al Skierkiewicz 29-01-2008 14:12

Re: Serious Problem of Unknown Origin
 
If the RC is switching to the backup battery to stay alive, all PWM outputs are disabled. Replace or recharge the main battery.

matt91 29-01-2008 14:14

Re: Serious Problem of Unknown Origin
 
Hey, just fought I'd throw this out... Did you try to reset the IFI board on the robot? I know that we were having some crazy voltage trouble as well....we tried this and it pretty much worked!

Team865 29-01-2008 14:18

Re: Serious Problem of Unknown Origin
 
Thanks everybody for the suggestion, we are going to try them tomorrow when our teacher is here to provide us with a fully charged gray battery/battery charger.

Mr. Anderson - We meant that reverting back to the default code did not resolve the problem. By "behaved like before" we mean that the motors still spun at a very low rate.

Team865 29-01-2008 14:20

Re: Serious Problem of Unknown Origin
 
Yes, we have tried resetting.

matt91 29-01-2008 15:12

Re: Serious Problem of Unknown Origin
 
Ok well in that case what I would do is run the programing, and test your voltage everywhere in between the IFI board and the power source and the motors. Maybe the trouble is in the motors... have you driven the robot yet? Maybe there burned out?

TubaMorg 29-01-2008 15:53

Re: Serious Problem of Unknown Origin
 
In addition to what everyone else has been saying (charge your battery or swap it out for a freshly charged battery), your OI should report battery voltage > 12.4 volts for a nice happy robot. Once you get there, make sure your Victors are calibrated. Neutral is orange, max in one direction should produce a green led (at the Victor), max in the other direction should produce a red led (at the Victor).

Team865 01-02-2008 10:08

Re: Serious Problem of Unknown Origin
 
Thank you for your suggestions so far.

Currently we are charging one of our 'big greys' and will see what happens when we try again with it.

Team865 01-02-2008 10:30

Re: Serious Problem of Unknown Origin
 
We've just tested our robot with a new battery, and the problem is resolved! The motors are now spinning at their normal speed. Thank you everybody for your prompt replies and "gracious professionalism".

MrForbes 01-02-2008 10:34

Re: Serious Problem of Unknown Origin
 
I'm glad to be of help!

Do you understand why the robot behaved as it did when the battery was discharged? It might take some thinking to figure this out, but if you develop an understanding of how batteries work, specifically how the available voltage changes with charge state and current load, it should make sense.

JesseK 01-02-2008 10:58

Re: Serious Problem of Unknown Origin
 
Do not ever set your battery on concrete.

I don't understand the chemistry/physics behind it, nor do I ever intend to delve into the science of why it happens but something about rebarb, concrete and long half-life radiation :confused: drains your battery if it's in close proximity to concrete. I saw it happen repeatedly at the VA State Fair with our robot and rather than trying to understand why I'll just accept the fact that it happens for now.

What we saw was that the charger would say our battery was fully charged. We'd then transfer the battery to the robot and place it on the field. At the start of the match, the bot would move extremely slowly, and the OI would indicated ~7V on the battery. About 15 seconds into the match, the voltage would go UP and the robot would act normally. Who knows why :confused: ? What I do know is, we do not place batteries on concrete any more and we haven't seen the problem since.

If you thought your batteries were charged and then you get these results, perhaps this is why.

MrForbes 01-02-2008 11:11

Re: Serious Problem of Unknown Origin
 
The battery on concrete thing likely has to do with temperature, since colder temperatures slow down the chemical reaction that releases electricity (that's my incomplete understanding of it)

Kevin Sevcik 01-02-2008 11:19

Re: Serious Problem of Unknown Origin
 
Quote:

Originally Posted by JesseK (Post 690158)
Do not ever set your battery on concrete.

I don't understand the chemistry/physics behind it, nor do I ever intend to delve into the science of why it happens but something about rebarb, concrete and long half-life radiation :confused: drains your battery if it's in close proximity to concrete. I saw it happen repeatedly at the VA State Fair with our robot and rather than trying to understand why I'll just accept the fact that it happens for now.

What we saw was that the charger would say our battery was fully charged. We'd then transfer the battery to the robot and place it on the field. At the start of the match, the bot would move extremely slowly, and the OI would indicated ~7V on the battery. About 15 seconds into the match, the voltage would go UP and the robot would act normally. Who knows why :confused: ? What I do know is, we do not place batteries on concrete any more and we haven't seen the problem since.

If you thought your batteries were charged and then you get these results, perhaps this is why.

I'm highly skeptical of this. In olden times before plastic cases for batteries, this was true as slightly porous casing materials could would become moist on a damp concrete floor and let some current flow, draining the battery, but those days are a rather long way behind us. There simply isn't any possible way for batteries to self-discharge faster than normal just because they're on the floor.

If your robot was moving slowly for the first 15 seconds of a match, I think it's much much more likely that there was a programming error in your autonomous mode that was causing some of your motors to fight each other and put a large load on the battery. Autonomous mode IS 15 seconds long, after all.

wilsonmw04 01-02-2008 11:20

Re: Serious Problem of Unknown Origin
 
Quote:

Originally Posted by JesseK (Post 690158)
Do not ever set your battery on concrete.

I don't understand the chemistry/physics behind it, nor do I ever intend to delve into the science of why it happens but something about rebarb, concrete and long half-life radiation :confused: drains your battery if it's in close proximity to concrete. I saw it happen repeatedly at the VA State Fair with our robot and rather than trying to understand why I'll just accept the fact that it happens for now.

What we saw was that the charger would say our battery was fully charged. We'd then transfer the battery to the robot and place it on the field. At the start of the match, the bot would move extremely slowly, and the OI would indicated ~7V on the battery. About 15 seconds into the match, the voltage would go UP and the robot would act normally. Who knows why :confused: ? What I do know is, we do not place batteries on concrete any more and we haven't seen the problem since.

If you thought your batteries were charged and then you get these results, perhaps this is why.

From my limited understanding of Physics and Chemistry, concrete should not affect the charge of the batteries in any way. It doesn't seem logical. Squirrel is probably correct about the temp, but the building at the VA fair is more likely hot than cold.

Kevin Sevcik 01-02-2008 11:32

Re: Serious Problem of Unknown Origin
 
Quote:

Originally Posted by wilsonmw04 (Post 690181)
From my limited understanding of Physics and Chemistry, concrete should not affect the charge of the batteries in any way. It doesn't seem logical. Squirrel is probably correct about the temp, but the building at the VA fair is more likely hot than cold.

Temp has some affect on batteries, but I don't think it's THAT great. I've got a panasonic SLA spec sheet pulled up that indicates you'd lose less than 20% capacity between 30C and 0C. Since as far as I know, all Regionals are held indoors or at least somewhere comfortably above freezing, I don't think you'd be likely to lose even that much capacity.

JesseK 01-02-2008 14:13

Re: Serious Problem of Unknown Origin
 
Quote:

Originally Posted by Kevin Sevcik (Post 690180)
I'm highly skeptical of this. In olden times before plastic cases for batteries, this was true as slightly porous casing materials could would become moist on a damp concrete floor and let some current flow, draining the battery, but those days are a rather long way behind us. There simply isn't any possible way for batteries to self-discharge faster than normal just because they're on the floor.

If your robot was moving slowly for the first 15 seconds of a match, I think it's much much more likely that there was a programming error in your autonomous mode that was causing some of your motors to fight each other and put a large load on the battery. Autonomous mode IS 15 seconds long, after all.


No, it was 15 seconds of teleoperated period (sorry for being unclear) and we'd literally see the OI Voltage Indictor go from 7 on up to 9, then trickle up to 12.

It was wierd and unexplicable by everyone except our team lead, who said it was because we placed the batteries on concrete. We stopped putting the batteries on the ground, and the wierdness stopped happening. Who knows.

Al Skierkiewicz 01-02-2008 15:27

Re: Serious Problem of Unknown Origin
 
Jessie,
This more likely from a dirty contact on the battery than anything else. There is no explanation other than extreme low temperature for the battery voltage rising during play. It is also possible that there was some veryhigh friction in the drive train that worked itself out during the match. Loose hardware is a good example. If one of the motors is running near stall the terminal voltage on the battery will read low. The battery internal impedance is .011 ohms. Using Ohm's Law and fudging a current draw of 200 amps you would expect to see 2.2 volts dropped just across the battery. However, the RC stops functioning when that battery voltage falls below 8 volts, so I think the 7 volt display you saw was in error.
The battery on concrete was an issue long ago with car batteries and the case material and the fact that the battery was not sealed. Sneak paths through leaking electrolyte, minute caracks in the case and the concrete would serve to discharge a battery left in contact with the floor. A simple insulator like carboard usually prevented the discharge, which took several weeks. Our battery does not suffer from any of these issues. In fact most modern batteries have no problem sitting on concrete or steel for that matter.


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

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