Go to Post 32% of the teams in any division will be or could be in eliminations. And any one of those could be YOU. If you aren't ready, you will be eliminated. If you are ready, you greatly increase your chances of winning. - EricH [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 04-05-2016, 20:09
gerthworm's Avatar
gerthworm gerthworm is offline
Making the 1's and 0's
FRC #1736 (Robot Casserole)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Peoria, IL
Posts: 77
gerthworm has a spectacular aura aboutgerthworm has a spectacular aura about
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.
Reply With Quote
  #17   Spotlight this post!  
Unread 05-05-2016, 00:09
chloe's Avatar
chloe chloe is offline
human
FRC #1868 (Space Cookies)
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2013
Location: United States
Posts: 17
chloe is an unknown quantity at this point
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.
Reply With Quote
  #18   Spotlight this post!  
Unread 05-05-2016, 12:02
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Brownout Prevention?

Quote:
Originally Posted by Sir_Fenwick View Post
Instead of running the compressor off of the PCM as is normal, run it instead off of a spike using 20 Amp breaker. Connect the spike directly to the power distribution board with a 20 Amp breaker, then connect the spike's PWM to one of the RoboRIO's relay pins. Connect the compressor to the spike, and with a little coding, the compressor will be unaffected by any brownouts. This is also completely legal. While this may not fix your problem, hopefully it mitigates the effects.
Yes this is legal but, the Spike has been discontinued from what I have been told.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #19   Spotlight this post!  
Unread 16-05-2016, 14:15
codedr codedr is offline
Registered User
FRC #0537
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Wisconsin
Posts: 75
codedr will become famous soon enoughcodedr will become famous soon enough
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.
Reply With Quote
  #20   Spotlight this post!  
Unread 16-05-2016, 14:19
Michael Hill's Avatar
Michael Hill Michael Hill is online now
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Mentor
 
Join Date: Jul 2004
Rookie Year: 2003
Location: Dayton, OH
Posts: 1,580
Michael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond repute
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?
Reply With Quote
  #21   Spotlight this post!  
Unread 16-05-2016, 14:35
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,723
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Brownout Prevention?

Quote:
Originally Posted by MrRoboSteve View Post
One test I use is to put the robot, with battery and bumpers installed, on carpet. Put a sheet of paper underneath each of the corner tires, and pull it out. If the force needed to pull the sheet out varies dramatically, you need to balance the robot.
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.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #22   Spotlight this post!  
Unread 16-05-2016, 14:40
Chris is me's Avatar
Chris is me Chris is me is offline
no bag, vex only, final destination
AKA: Pinecone
FRC #0228 (GUS Robotics); FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Glastonbury, CT
Posts: 7,786
Chris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond repute
Send a message via AIM to Chris is me
Re: Brownout Prevention?

Quote:
Originally Posted by GeeTwo View Post
If all four corner wheels of a drop center robot carry significant weight, you don't really have a drop center.
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).
__________________
Mentor / Drive Coach: 228 (2016-?)
--2016 Waterbury SFs (with 3314, 3719), RIDE #2 Seed / Winners (with 1058, 6153), Carver QFs (with 503, 359, 4607)
Mentor / Consultant Person: 2170 (2017-?)
.
College Mentor: 2791 (2010-2015)
-- 2015 TVR Motorola Quality, FLR GM Industrial Design -- 2014 FLR Motorola Quality / SFs (with 341, 4930)
-- 2013 BAE Motorola Quality, WPI Regional #1 Seed / Delphi Excellence in Engineering / Finalists (with 20, 3182)
-- 2012 BAE Imagery / Finalists (with 1519, 885), CT Xerox Creativity / SFs (with 2168, 118)
Student: 1714 (2009) - 2009 MN 10K Lakes Regional Winners (with 2826, 2470)
2791 Build Season Photo Gallery - Look here for mechanism photos My Robotics Blog (Updated April 11 2014)
Reply With Quote
  #23   Spotlight this post!  
Unread 16-05-2016, 17:59
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
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).
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #24   Spotlight this post!  
Unread 30-05-2016, 12:41
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Brownout Prevention?

Quote:
Originally Posted by Michael Hill View Post
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?
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.
Reply With Quote
  #25   Spotlight this post!  
Unread 30-05-2016, 12:53
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,337
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Brownout Prevention?

Quote:
Originally Posted by Joe Ross View Post
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.
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?
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Reply With Quote
  #26   Spotlight this post!  
Unread 30-05-2016, 13:54
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Brownout Prevention?

Quote:
Originally Posted by marshall View Post
...what were the gear ratios and how did you make the robot drivable at lower speeds? Anything fancy with the controls to limit speed?
did you mean limit acceleration (or current)?


Reply With Quote
  #27   Spotlight this post!  
Unread 30-05-2016, 14:05
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,337
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Brownout Prevention?

Quote:
Originally Posted by Ether View Post
did you mean limit acceleration (or current)?


Both really... I'm curious as to if they have done either... like I said, 18 FPS seems high.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Reply With Quote
  #28   Spotlight this post!  
Unread 30-05-2016, 14:59
Chris is me's Avatar
Chris is me Chris is me is offline
no bag, vex only, final destination
AKA: Pinecone
FRC #0228 (GUS Robotics); FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Glastonbury, CT
Posts: 7,786
Chris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond repute
Send a message via AIM to Chris is me
Re: Brownout Prevention?

Quote:
Originally Posted by marshall View Post
Both really... I'm curious as to if they have done either... like I said, 18 FPS seems high.
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.
__________________
Mentor / Drive Coach: 228 (2016-?)
--2016 Waterbury SFs (with 3314, 3719), RIDE #2 Seed / Winners (with 1058, 6153), Carver QFs (with 503, 359, 4607)
Mentor / Consultant Person: 2170 (2017-?)
.
College Mentor: 2791 (2010-2015)
-- 2015 TVR Motorola Quality, FLR GM Industrial Design -- 2014 FLR Motorola Quality / SFs (with 341, 4930)
-- 2013 BAE Motorola Quality, WPI Regional #1 Seed / Delphi Excellence in Engineering / Finalists (with 20, 3182)
-- 2012 BAE Imagery / Finalists (with 1519, 885), CT Xerox Creativity / SFs (with 2168, 118)
Student: 1714 (2009) - 2009 MN 10K Lakes Regional Winners (with 2826, 2470)
2791 Build Season Photo Gallery - Look here for mechanism photos My Robotics Blog (Updated April 11 2014)
Reply With Quote
  #29   Spotlight this post!  
Unread 07-06-2016, 13:45
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Brownout Prevention?

Quote:
Originally Posted by marshall View Post
Both really... I'm curious as to if they have done either... like I said, 18 FPS seems high.
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.
Reply With Quote
  #30   Spotlight this post!  
Unread 07-06-2016, 14:21
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,337
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Brownout Prevention?

Quote:
Originally Posted by Michael Hill View Post
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?
We did! No brownouts but we took the breaking the defenses a little too literal.

Quote:
Originally Posted by Joe Ross View Post
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.
Good to know. What was the JVN speed?
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Reply With Quote
Reply


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


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

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