![]() |
Re: Brownout Prevention?
We took the N'th degree approach this year, and it turned out relatively well:
-Monitor battery condition over time. Generate an adaptive model of the battery to determine how much current can be drawn from it before system voltage drops too low. -Proactively estimate how much current draw a given driver command will pull from the battery. Involves knowledge of the physical parameters of the motor, and its present speed (measured via encoders) -If the estimated current from the driver commands is sufficient to cause the system voltage to go too low, scale back driver commands. The algorithm we used this year is still in trial - it kicked in plenty during competition, and we never browned out. However, we don't have good enough data yet to support that it was 100% necessary. We are working on a whitepaper (there are a few drafts of it floating around the internet), and will hopefully by end of summer have more data on the limits of what we came up with. |
Re: Brownout Prevention?
We actually came across this exact problem earlier this season. We tried a purely software approach by writing a "power controller" that essentially monitored all the current draw by all the systems (RIO, drivetrain, intake, outtake, compressor, etc), then the controller would dynamically modify the current flow to or from these systems depending on priority. The priority changes when the particular subsystem is being used, and takes into account the battery voltage.
The numbers we used were based on a lot of testing (we generated a linear regression model for current - speed of the drive train motors, for example, so we'd know how much current each motor would pull depending on speed) and didn't really seem to match up perfectly all the time to what the WPILib tells you about your max current. ie we would draw up to 200 amps sometimes for a second before the brownout sequence kicked in. Obviously, it's not /perfect/ since the power methods in the WPILib are pretty noisy, so we had a switch on the driver station to turn the power controller on or off. We had a match at champs where it was pretty clear that the power controller was modifying currents -- and we never had a brownout during a match our whole season! We had a very extensive flowchart for the logic and passed out flyers to people explaining how awesome it was :^) |
Re: Brownout Prevention?
Quote:
|
Re: Brownout Prevention?
+1 Everything Al said.
In every case of brownouts I investigated at champs, 100% of the time there was at least one of (A) loose battery cable, (B) loose connection at breaker, or (C) loose connection into the power distribution board. If you can move the battery cable up and down, the bolt isn't tight. If you can move the cable back and forth at the breaker, the bolt isn't tight. If you can move the cable back and forth at the PDP, the bolt isn't tight. The PDP connector is harder to reach because the covers. |
Re: Brownout Prevention?
Was anyone brave enough to run a 6-CIM drive this year? If so, how frequent were brownouts? Also, what were the gear ratios and wheels used?
|
Re: Brownout Prevention?
Quote:
|
Re: Brownout Prevention?
Quote:
|
Re: Brownout Prevention?
Alan,
Many of the terminals look like the one I included except for one difference. The part that normally would be a wire clamp is actually welded or mechanically held in place such that the screw becomes the only wire retention device. Those terminals where the retention device moves and the wire has no contact with the screw work OK, if one removes enough insulation to allow at least 1/8" to 1/4" or bare wire to extend beyond the retention clamp. When the clamp screw is tightened, it should produce a compression on the captive wire and the remaining wire will actually expand a little. This expansion will keep the wire from pulling out during vibration. If no wire is exposed, the vibration will actually push the wire out of the terminal (like squeezing the end of a banana). |
Re: Brownout Prevention?
Quote:
|
Re: Brownout Prevention?
Quote:
|
Re: Brownout Prevention?
Quote:
|
Re: Brownout Prevention?
Quote:
|
Re: Brownout Prevention?
Quote:
|
Re: Brownout Prevention?
Quote:
|
Re: Brownout Prevention?
Quote:
Quote:
|
| All times are GMT -5. The time now is 15:47. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi