|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
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. |
|
#17
|
||||
|
||||
|
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 :^) Last edited by chloe : 05-05-2016 at 00:13. |
|
#18
|
|||||
|
|||||
|
Re: Brownout Prevention?
Quote:
|
|
#19
|
|||
|
|||
|
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. |
|
#20
|
||||
|
||||
|
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?
|
|
#21
|
|||||
|
|||||
|
Re: Brownout Prevention?
If all four corner wheels of a drop center robot carry significant weight, you don't really have a drop center. If you want the turning advantage of drop center, you either need more drop or to stiffen your wheel motion (e.g. inflate the wheels higher). Further, many 6-wheel drop-center robots are intentionally designed with the CoG offset from the center axle. This is most commonly done to improve stability when manipulating game pieces (pickup, launch or placement), but can also be used to help cross obstacles such as the step in 2012 or the defenses in 2016.
|
|
#22
|
||||
|
||||
|
Re: Brownout Prevention?
This isn't true. Even if all six wheels on a 6WD drop touch the ground due to compliance in the wheels, dropping the center wheel increases the normal force that wheel carries. For situations like roughtop treaded wheels, this makes a big difference even if all wheels don't leave the ground fully. More drop and less contact from the outer wheels does mean better turning though (to a point).
|
|
#23
|
|||||
|
|||||
|
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). |
|
#24
|
||||||
|
||||||
|
Re: Brownout Prevention?
We used a 6 CIM drive, geared for 18fps, with 8 8" pneumatic wheels. The only time we had trouble was when we ran two practice matches back to back on the same battery.
|
|
#25
|
||||
|
||||
|
Re: Brownout Prevention?
That seems awfully high... what were the gear ratios and how did you make the robot drivable at lower speeds? Anything fancy with the controls to limit speed?
|
|
#26
|
||||
|
||||
|
Re: Brownout Prevention?
Quote:
|
|
#27
|
||||
|
||||
|
Re: Brownout Prevention?
Both really... I'm curious as to if they have done either... like I said, 18 FPS seems high.
|
|
#28
|
||||
|
||||
|
Re: Brownout Prevention?
Perhaps you're thinking 18 FPS adjusted speed? With JVN's calculator, a free speed of 18FPS roughly corresponds to an adjusted speed of 14.5 FPS, which is fast but plenty reasonable.
|
|
#29
|
||||||
|
||||||
|
Re: Brownout Prevention?
We did nothing in programming to limit velocity or acceleration. Like Chris said, 18FPS is the geared speed, not the JVN calculator speed or the measured speed.
|
|
#30
|
||||
|
||||
|
Re: Brownout Prevention?
Quote:
Good to know. What was the JVN speed? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|