Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Help with Compressor!!! (http://www.chiefdelphi.com/forums/showthread.php?t=126680)

ndroboknight 17-02-2014 17:56

Help with Compressor!!!
 
We have the Thomas brand compressor, model number 405ADC38/12. I'm using Java to program the robot. The Compressor seems to just refuse to turn on. I have tried to directly power the relay separately and the compressor still did not power. We know the compressor turns on because we powered it (quite sketchily but only for testing purposes) with a 9V Battery. Please give me some suggestions!

Matt C 17-02-2014 18:00

Re: Help with Compressor!!!
 
Do you still have the fuse in the relay?

If so, is the fuse still intact?

If not, replace it with a 20A breaker.

RamZ 17-02-2014 18:08

Re: Help with Compressor!!!
 
Are you sure you're coding it correctly?

Could you either post here or PM me it if you don't feel secure posting it publicly, I may be able to help, we're also using Java this year.

cgmv123 17-02-2014 18:55

Do the relay lights on the DSC come on?

ndroboknight 17-02-2014 19:31

Re: Help with Compressor!!!
 
1 Attachment(s)
The relay does currently have a fuse in it. We have tried replacing the fuse of the relay and replacing the relay altogether. I am not 100% sure if I am coding it properly. I have attached the subsystem class for the Pneumatics. And the lights on the sidecar did not come on. Could I know which ones are supposed to come on? Also I want to clarify that I tried to directly power the relay through code, not physically.

DDSLoan96 17-02-2014 19:36

Re: Help with Compressor!!!
 
On the digital side car check to see if you have 3 power LEDS on in the corner and also check to see if you get an indicator light by where you plug in the pwm for the relay. It should be green next to relay 1 based on what your code says

RamZ 17-02-2014 19:36

Re: Help with Compressor!!!
 
Quote:

Originally Posted by ndroboknight (Post 1344823)
The relay does currently have a fuse in it. We have tried replacing the fuse of the relay and replacing the relay altogether. I am not 100% sure if I am coding it properly. I have attached the subsystem class for the Pneumatics. And the lights on the sidecar did not come on. Could I know which ones are supposed to come on? Also I want to clarify that I tried to directly power the relay through code, not physically.

I don't think you initialized your compressor correctly.
There are four necessary values.
Yours is currently "airCompressor = new Compressor(1,1);"
Ours is basically the same, except the values are (1, 1, 1, 1).

Try that out.

DDSLoan96 17-02-2014 19:51

Re: Help with Compressor!!!
 
Quote:

Originally Posted by RamZ (Post 1344831)
I don't think you initialized your compressor correctly.
There are three necessary values.
Yours is currently "airCompressor = new Compressor(1,1);"
Ours is basically the same, except the values are (1, 1, 1).

Try that out.

I just took a look at the Javadoc for the compressor and I only see 2 constructors, one with 2 parameters(int pressureSwitchChannel, int compressorRelayChannel) and one with 4(int pressureSwitchSlot, int pressureSwitchChannel, int compresssorRelaySlot, int compressorRelayChannel)

RamZ 17-02-2014 19:56

Re: Help with Compressor!!!
 
Quote:

Originally Posted by DDSLoan96 (Post 1344841)
I just took a look at the Javadoc for the compressor and I only see 2 constructors, one with 2 parameters(int pressureSwitchChannel, int compressorRelayChannel) and one with 4(int pressureSwitchSlot, int pressureSwitchChannel, int compresssorRelaySlot, int compressorRelayChannel)

Yeah, sorry, I meant 4.
I just checked the code and realized that :P
Edited my above post, thanks!

DDSLoan96 17-02-2014 20:11

Re: Help with Compressor!!!
 
Quote:

Originally Posted by RamZ (Post 1344843)
Yeah, sorry, I meant 4.
I just checked the code and realized that :P
Edited my above post, thanks!

If Im not mistaken you only need the 4 parameter constructor if you are using multiple digital sidecars

RamZ 17-02-2014 20:12

Re: Help with Compressor!!!
 
Quote:

Originally Posted by DDSLoan96 (Post 1344849)
If Im not mistaken you only need the 4 parameter constructor if you are using multiple digital sidecars

Not sure why we use the 4 parameters, but the compressor currently works. Hmmmm...

DDSLoan96 17-02-2014 20:15

Re: Help with Compressor!!!
 
Quote:

Originally Posted by RamZ (Post 1344850)
Not sure why we use the 4 parameters, but the compressor currently works. Hmmmm...

My guess is that it defaults to 1 and 1 as the other 2 parameters when you only use one card.

ndroboknight 17-02-2014 20:21

Re: Help with Compressor!!!
 
That was also our understanding. We have also tried the using the constructor with 4 parameters with no luck.

DDSLoan96 17-02-2014 20:23

Re: Help with Compressor!!!
 
Quote:

Originally Posted by ndroboknight (Post 1344860)
That was also our understanding. We have also tried the using the constructor with 4 parameters with no luck.

Do you have access to the robot at the moment?

ndroboknight 17-02-2014 20:24

Re: Help with Compressor!!!
 
Quote:

Originally Posted by DDSLoan96 (Post 1344829)
On the digital side car check to see if you have 3 power LEDS on in the corner and also check to see if you get an indicator light by where you plug in the pwm for the relay. It should be green next to relay 1 based on what your code says

No. The lights next to the relay on the Digital Side Car to not come on. We have also tried swapping out the Digital Side Car.


All times are GMT -5. The time now is 10:03.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi