Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Air Compressor Will Not Initiate (http://www.chiefdelphi.com/forums/showthread.php?t=101245)

Slothbron 26-01-2012 22:04

Air Compressor Will Not Initiate
 
1 Attachment(s)
So we have been try to get our air compressor to start when we enable the robot. We believe the wiring is all correct for it and the pressure switch. Now we are wondering if there is something wrong with the code or if it's something else . Let me now what you think.

Greg McKaskle 27-01-2012 07:48

Re: Air Compressor Will Not Initiate
 
The WPI code for the compressor was changed a bit to be easier to follow and debug. Please go to the Periodic tasks VI and enable or remove the disable structure around the compressor control code.

With the new WPI code, instead of having an invisible control loop, you now put it into your project and tell it what compressor to control.

Greg McKaskle

Slothbron 27-01-2012 22:01

Re: Air Compressor Will Not Initiate
 
So we checked this today and we are still unable to get the air compressor to run. Now we are believing it might be something else, we plan on doing some major trouble shooting tomorrow.

Dkt01 28-01-2012 01:02

Re: Air Compressor Will Not Initiate
 
We are having the same issue. After some quick tests, we realized that if the pressure gauge is hooked up to the (+) and signal pins for one of the GPIO ports, the cRio always recognizes a "true" or "high" input. The GPIO pins seem to have pull-up resistors, so the only way to change the input value is to short (-) and signal. We are going to test this setup tomorrow (fingers crossed!).

Does anyone have any other ideas or confirmations for what we found?

EDIT: This worked.

Alan Anderson 28-01-2012 17:05

Re: Air Compressor Will Not Initiate
 
Quote:

Originally Posted by Slothbron (Post 1114303)
We believe the wiring is all correct for it and the pressure switch.

You believe it's wired properly. Why should we believe it? :) The proper wiring is pretty simple. Tell us how you've done it so we can confirm it. It's often best to double-check the simple stuff before putting forth much effort trying to think of what else might be wrong.

Slothbron 29-01-2012 01:08

Re: Air Compressor Will Not Initiate
 
Quote:

Originally Posted by Alan Anderson (Post 1115383)
You believe it's wired properly. Why should we believe it? :) The proper wiring is pretty simple. Tell us how you've done it so we can confirm it. It's often best to double-check the simple stuff before putting forth much effort trying to think of what else might be wrong.

Ok so we have a pwm cable coming from the spike relay of the air compressor to relay spot 1 on the sidecar. Then the pressure switch is wired to the DIO spot 1 on the sidecar. Specifically the signal pin and + pin.

Alan Anderson 29-01-2012 02:42

Re: Air Compressor Will Not Initiate
 
Quote:

Originally Posted by Slothbron (Post 1115706)
Ok so we have a pwm cable coming from the spike relay of the air compressor to relay spot 1 on the sidecar. Then the pressure switch is wired to the DIO spot 1 on the sidecar. Specifically the signal pin and + pin.

For a switch input to be read by the program, you need to use the signal pin and the ground (-) pin. The Digital Sidecar inputs are already at +5 volts when nothing is connected to them. You have to pull them low in order to register a change.

Slothbron 29-01-2012 13:38

Re: Air Compressor Will Not Initiate
 
Ok so you fixed the pins now we have one wire going to the signal and one to the negative. But it will still not start when we enable the robot.

Alan Anderson 29-01-2012 18:02

Re: Air Compressor Will Not Initiate
 
Quote:

Originally Posted by Slothbron (Post 1115864)
Ok so you fixed the pins now we have one wire going to the signal and one to the negative. But it will still not start when we enable the robot.

I assume you followed Greg's advice to make the compressor control loop active in Periodic Tasks?

Disconnect the pressure switch from the Digital Sidecar and measure continuity between the contacts. They should be shorted together when the pressure is too low. If there is an open circuit, replace the switch. Check the Digital Sidecar and look to see whether the relay is being asked to turn on (there should be a green LED lit next to the pins for relay #1). If it is, look at the LED on the Spike (it should change from yellow to green when the robot is enabled).


All times are GMT -5. The time now is 11:39.

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