Go to Post Great. Just what we need. DHS showing up at all the regional competitions. . - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Pneumatics
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 01-02-2014, 03:39
tragic tragic is offline
Programming Mentor
FRC #4633 (Bobcats)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Calgary Alberta
Posts: 19
tragic is an unknown quantity at this point
Exclamation Compressor will not turn on.

As the title I am having issues setting up the compressor to run on the robot. I have compressor fully wired up with the spike relay with the PWM going to the relays on the Digital Sidecar, then I have the pressure switch hooked up to the signal and ground wires of PWM coming from the GPIO on the Digital Sidecard but I can't get the compressor to turn on when I turn on the robot.

Code:
airCompressor = new airCompressor(1,1);
airCompressor->Start();
I have the object creation in BuiltinDefaultCode and the start call in RobotInit

I have checked the cables with a multimeter and they're all working, I checked the pressure switch with a multimeter it is not broke as well, I tested the compressor and it is not seized.

It would be greatly appreciated if someone could tell me where I went wrong with setting up the compressor to run on board the robot.
  #2   Spotlight this post!  
Unread 01-02-2014, 11:09
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,585
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: Compressor will not turn on.

Are you enabling the robot on the driver station?

If you remove the db-37 cable from the digital sidecar, are all 3 power LEDs brightly lit?
  #3   Spotlight this post!  
Unread 03-02-2014, 22:16
tragic tragic is offline
Programming Mentor
FRC #4633 (Bobcats)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Calgary Alberta
Posts: 19
tragic is an unknown quantity at this point
Re: Compressor will not turn on.

Thanks for the reply I am enabling the robot through the driver station, I have also tried using autonomous as well to start the compressor but with no luck. I will check the cable tomorrow and get back to you on that.
  #4   Spotlight this post!  
Unread 04-02-2014, 09:59
chris.boyle's Avatar
chris.boyle chris.boyle is offline
Programming Mentor
FRC #0068 (Truck Town Thunder)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Truck Town Thunder (Brandon)
Posts: 36
chris.boyle is on a distinguished road
Re: Compressor will not turn on.

Try this:

Compressor *airCompressor;

airCompressor = new Compressor(1,1);
airCompressor->Start();

The code you supplied has an inadvertant error, you have declared a "new" of your variable, not of the base Compressor class. This should have given you a compiler error.
__________________
2014 Chairman's Award--Michigan State Championship
2014 Chairman's Award--Waterford District
2014 Winner--Great Lakes Bay District
2013 Chairman's Award--Kettering District
2012 Championship Division Finalists--Thanks 330 and 639
  #5   Spotlight this post!  
Unread 05-02-2014, 14:39
tragic tragic is offline
Programming Mentor
FRC #4633 (Bobcats)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Calgary Alberta
Posts: 19
tragic is an unknown quantity at this point
Re: Compressor will not turn on.

I have that code in the program I just forgot to put the Compressor *airCompressor up in the post. Thanks for the reply though.
  #6   Spotlight this post!  
Unread 05-02-2014, 15:01
Jon Stratis's Avatar
Jon Stratis Jon Stratis is online now
Mentor, LRI, MN RPC
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,813
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Compressor will not turn on.

Is the LED on the spike changing color? If so, the the problem is between the spike and the compressor.

Look at the DSC - is the LED next to the relay output lighting up when the compressor should turn on? If so, then the problem is between the DSC and the spike.

Is the pressure switch plugged into the correct DIO port? Using the console to output the state of the DIO in that same slot to make sure it's working correctly (carefully and safely pressurize the system using a shop compressor, which has it's own feedback loop to ensure safe operation!).

These are all leading questions to try and figure out where the problem is - there's a long chain of stuff that has to work (pressure switch, wire to the DSC, code, relay output on the DSC, spike, and finally compressor) to get the compressor to turn on/off at the right time. Your best bet is to start at the beginning of the chain and work your way down until you find where it stops working as expected.
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
  #7   Spotlight this post!  
Unread 06-02-2014, 14:09
Trent B Trent B is offline
College Mentor
AKA: Trent Borman
no team (Surviving Grad School)
Team Role: Alumni
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Ames, IA
Posts: 479
Trent B is a splendid one to beholdTrent B is a splendid one to beholdTrent B is a splendid one to beholdTrent B is a splendid one to beholdTrent B is a splendid one to beholdTrent B is a splendid one to beholdTrent B is a splendid one to beholdTrent B is a splendid one to behold
Send a message via AIM to Trent B Send a message via Yahoo to Trent B
Re: Compressor will not turn on.

Another point worth checking is whether or not the fuse in the spike has blown out. You can legally (and it is advised) to put a 20amp circuit breaker in its place.
__________________
Former 2502 (Talon) Captain and 3928 (Neutrino) Mentor, currently teamless and attending Penn State for graduate school.
Have questions about Iowa State University or Penn State University? Feel free to email or PM me
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 11:21.

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