Go to Post The only thing more dangerous than a Programmer with a screwdriver is a Hardware Designer with the root password... - kmcclary [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
  #1   Spotlight this post!  
Unread 08-12-2016, 22:55
IndySam's Avatar
IndySam IndySam is offline
Registered User
FRC #0829 (Digital Goats)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Indy
Posts: 3,346
IndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond repute
Re: Powering two compressors with one PCM

Even simpler just wire a relay (or two) through the pressure switch and avoid a PCM altogether.
__________________
"Champions are champions not because they do anything extraordinary but because they do the ordinary things better than anyone else." —Chuck Knoll


2015 Indianapolis District Winner
2014 Boilermaker Regional Industrial Design Award
2013 Smoky Mountain Regional Industrial Design Award
2012 Boilermaker Engineering Excellence Award
2010 Boilermaker Rockwell Innovation in Control Award.
2009 Buckeye J&J Gracious Professionalism Award
2009 Boilermaker J&J Gracious Professionalism Award
2008 Boilermaker J&J Gracious Professionalism Award
2007 St Louis Regional Winners
Reply With Quote
  #2   Spotlight this post!  
Unread 09-12-2016, 06:35
axton900's Avatar
axton900 axton900 is offline
Programming Co-Captain
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: New Jersey USA
Posts: 45
axton900 has a spectacular aura aboutaxton900 has a spectacular aura aboutaxton900 has a spectacular aura about
Re: Powering two compressors with one PCM

The issue that we are facing with the idea of just using a spike relay is the fact that the compressor class in wpilib only seems to be accepting the pcm as a parameter.
Could one of the teams who was able to use a relay share the code that they used for this situation?
Thanks in advance!
__________________
Team 1403: Cougar Robotics (2015 - present)

Reply With Quote
  #3   Spotlight this post!  
Unread 09-12-2016, 16:21
cbale2000's Avatar
cbale2000 cbale2000 is offline
Registered User
AKA: Chris Bale
FRC #0703 (Phoenix)
Team Role: Leadership
 
Join Date: Apr 2006
Rookie Year: 2004
Location: Saginaw, MI
Posts: 919
cbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond repute
Re: Powering two compressors with one PCM

Quote:
Originally Posted by axton900 View Post
The issue that we are facing with the idea of just using a spike relay is the fact that the compressor class in wpilib only seems to be accepting the pcm as a parameter.
Could one of the teams who was able to use a relay share the code that they used for this situation?
Thanks in advance!
Older default code (2014 and before) would have some basic examples, though it should be pretty easy to program yourself.

There should be a way to read the pressure sensors state from the PCM in code, and if you have that, then all you have to do is use the output of the pressure state to toggle the spike on or off. The pressure sensor is a switch that activates at ~120psi and deactivates at ~ 100-110psi, so simply using it as a Boolean to toggle the compressor state should make it operate the same as a PCM controlled compressor would.

You can query the pressure switch and compressor status from the PCM and simply mimic the state of the PCM controlled compressor with the code on the bottom half of this page: https://wpilib.screenstepslive.com/s...anual-id=13810


The second compressor, for the purposes of code, isn't a compressor, it's a Spike-controlled motor. Just make sure that the spike turns on and off at the appropriate times via the methods mentioned above.

Last edited by cbale2000 : 09-12-2016 at 16:26.
Reply With Quote
  #4   Spotlight this post!  
Unread 09-12-2016, 19:28
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,494
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: Powering two compressors with one PCM

Quote:
Originally Posted by cbale2000 View Post
The second compressor, for the purposes of code, isn't a compressor, it's a Spike-controlled motor. Just make sure that the spike turns on and off at the appropriate times via the methods mentioned above.
And don't try to put it in reverse! IIRC, we connected the black lead of our compressor directly back to the Power distribution board (through a splice), and just put the red lead to a spike output to ensure that we didn't apply reverse voltage. (I never found a rule AGAINST it.) While you can't use the other output on an FRC-legal robot (per 2016 R53, second sentence), for other projects, you can use that side to control something else, like a string of LEDs or other low-current-draw custom circuit.
__________________

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
  #5   Spotlight this post!  
Unread 10-12-2016, 18:40
axton900's Avatar
axton900 axton900 is offline
Programming Co-Captain
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: New Jersey USA
Posts: 45
axton900 has a spectacular aura aboutaxton900 has a spectacular aura aboutaxton900 has a spectacular aura about
Re: Powering two compressors with one PCM

So let me just get this clear? I just have to set the relay into forward mode in order to fill up the compressor?
__________________
Team 1403: Cougar Robotics (2015 - present)

Reply With Quote
  #6   Spotlight this post!  
Unread 10-12-2016, 22:03
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,494
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: Powering two compressors with one PCM

Quote:
Originally Posted by axton900 View Post
So let me just get this clear? I just have to set the relay into forward mode in order to fill up the compressor?
Yes, presuming the red wire on the compressor is connected to M+ and the black wire on the compressor is connected to M- (or back to the black wire coming from the breaker panel).
__________________

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
  #7   Spotlight this post!  
Unread 12-12-2016, 08:44
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,759
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: Powering two compressors with one PCM

To add to the above,
One and only one compressor on an FRC robot, please.
The PCM is not intended to handle the current of two compressors so a Spike or other relay is your only choice.
The pressure switch is a 3 amp device so it is not an alternative for powering a compressor. Even the smallest compressor teams will use, has a nearly 20 amp start and nearly 10 amps run current. The large Thomas type compressors have a 27 amp start and 12 amp run current.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #8   Spotlight this post!  
Unread 16-12-2016, 15:36
simpsonboy77 simpsonboy77 is offline
Registered User
AKA: Garrett Dicken
FRC #0041 (RoboWarriors)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: New Jersey
Posts: 87
simpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond repute
Re: Powering two compressors with one PCM

You can ignore the PCM entirely and use a Y cable to control 2 spikes. Not sure if this would be legal in 2017, depends if the PCM is required. Either way you need to have the pressure switch in somehow.

On a spike powering a compressor, you are allowed to replace the yellow single blow 20A fuse with a resettable 20A fuse. I recommend doing this as sometimes the fuse can blow from inrush current, or inductive kickback when it turns off.
__________________
2013 - Present MAR Control System Adviser and FTAA
2009 - Present Programming an Electrical Mentor Team 41
2005 - 2008 Team 41 Programmer
2008 NYC Regional Winner
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 01:29.

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