View Full Version : Help with Compressor!!!
ndroboknight
17-02-2014, 17:56
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!
Do you still have the fuse in the relay?
If so, is the fuse still intact?
If not, replace it with a 20A breaker.
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.
Do the relay lights on the DSC come on?
ndroboknight
17-02-2014, 19:31
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
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
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
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)
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
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
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
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
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
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
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.
ndroboknight
17-02-2014, 20:26
Do you have access to the robot at the moment?
Yes. We need to plug a few things back in, but we have the robot.
DDSLoan96
17-02-2014, 20:38
Yes. We need to plug a few things back in, but we have the robot.
We were having issues earlier in the year with this too, we were able to fix it by putting the compressor on relay #8 and the pressure switch on DIO 10. I think that may be the default one that First uses but im not 100% sure, try that and let me know
ndroboknight
17-02-2014, 20:49
For some unknown reason when we plugged everything back in, it started working. We have no idea why!! Thanks for your help!!!
DDSLoan96
17-02-2014, 20:52
For some unknown reason when we plugged everything back in, it started working. We have no idea why!! Thanks for your help!!!
lol no problem
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.