|
Re: Air Compressor
I'm not sure what you're talking about, but it isn't a solenoid.
In FRC, the word "solenoid" usually refers to a pneumatic solenoid valve. It takes an electrical signal, either from a Spike relay module or from the cRIO's solenoid breakout, and controls the flow of pressurized air to a pneumatic cylinder. They are most often used simply to extend or retract the cylinder.
Gyros are sensors; the ones from the Kit of Parts connect to an analog breakout on the cRIO. Accelerometers are also sensors; some are analog similar to the gyro, and others use a structured digital communication protocol like IIC or SPI. The air compressor is turned on and off using a Spike relay module, under the control of a pressure switch which is connected to a Digital Input.
In order to properly explain how to program something, I need to know what that something is. Tell me what kind of mechanism you want to control, and I can tell you an appropriate way to control it.
|