Go to Post We don't use fancy tools like that, but we might need some wood glue or something :) - MrForbes [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2016, 18:30
nheft nheft is offline
Registered User
FTC #0533 (Psichotics)
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 1999
Location: Lindenhurst HS
Posts: 35
nheft is a jewel in the roughnheft is a jewel in the roughnheft is a jewel in the roughnheft is a jewel in the rough
Detecting tripped circuit breaker in PDP

Has anyone come up with a way to determine the status of each circuit breaker in the PDP in software?

Thanks in advance

Neil
  #2   Spotlight this post!  
Unread 06-02-2016, 18:46
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,685
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: Detecting tripped circuit breaker in PDP

Well, if it is drawing significant current, it's not tripped.
__________________

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.
  #3   Spotlight this post!  
Unread 06-02-2016, 22:29
Mr V's Avatar
Mr V Mr V is offline
FIRST Senior Mentor Washington
FRC #5588 (Reign)
Team Role: Coach
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Maple Valley Wa
Posts: 997
Mr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond repute
Re: Detecting tripped circuit breaker in PDP

The circuit breakers are the self resetting type, so they will turn back on once they cool slightly and trip and repeat. That means that you will be able to hear and more importantly feel the breaker cycling. So the definitive test is to put your finger on it and feel it cycling off and on.
__________________
All statements made on Chief Delphi by me are my own opinions and are not official FIRST rulings or opinions and should not be construed as such.




https://www.facebook.com/pages/Team-...77508782410839
  #4   Spotlight this post!  
Unread 06-02-2016, 23:06
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Detecting tripped circuit breaker in PDP

If I recall correctly, you can create a PDP object in your code. And if I recall correctly there is a method called GetCurrent() that accepts an integer as a parameter. That parameter corresponds to the port on the PDP, and will tell you the current flowing through it.

To test this, write some code that reports to your dashboard, and check the current values when:

There is a Talon or Victor hooked up to it, with a circuit breaker installed.

Nothing hooked up to it, with a circuit breaker installed. There will still probably be a minuscule amount of current, if what I checked last year was correct.

Nothing hooked up to it, without a circuit breaker installed. Not having a circuit breaker in place will simulate what the current of tripped breaker will be.


Record those numbers, and use them as a rough estimate.


Edit: Found the documentation for the PowerDistributionPanel class. Take a look at this: http://first.wpi.edu/FRC/roborio/release/docs/cpp/classPowerDistributionPanel.html#af0716aa28e6c4b77 13e9224b0c174bf6

It might be useful to keep track of what DID trip during a match, because as Mr V said, the breakers will self reset. What you could do is constantly keep track of the current for each port, and if the current is <= the current when no breaker is installed (that means it tripped), write that port number to a log file (or put it on your dashboard), and analyze what happened during the match. You could then write some code so that when the current being drawn approaches 40 amps (or whatever rating the circuit breaker has), you reduce the voltage being applied to that motor, to prevent the breaker from tripping. Of course that depends on what the application of that specific motor is.
__________________
1771- Programmer, Captain, Drive Team (2009-2012)
4509- Mentor (2013-2015)
1771- Mentor (2015)

Last edited by nighterfighter : 06-02-2016 at 23:16.
Closed Thread


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 23:59.

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