Log in

View Full Version : Compressor on/off button programming


kdems
21-10-2015, 21:24
I`m looking to program one of the buttons on our joystick for our robot so the compressor can be turned on and off during operation. we plan on driving it around for a pep assembly and i don`t want the battery's to get low, plus we wont be using very much of our pneumatics system during it, so a button to turn off the compressor would be very ideal. any help with this would be greatly appreciated:]

Alan Anderson
21-10-2015, 22:32
A properly-connected pneumatics system will run the compressor only when the pressure drops below 90 PSI, and will turn it off once it reaches 115 PSI. Unless you have a significant air leak, your compressor will stay off when you're not using air.

If you still want to disable the compressor completely under program control, you can do that. There are a pair of functions in the Compressor palette named Start and Stop. Just invoke the Stop function when the joystick button is pressed (and invoke the Start function when a different button is pressed so you can go back to normal operation).

kdems
22-10-2015, 07:10
oh thanks im noob at programming

mastachyra
22-10-2015, 08:56
Could you take the breaker out of the compressor circuit for the time being?

Someone can advise if this would be unsafe. I don't see why it would be, but I am not all-knowing.

Ari423
22-10-2015, 09:08
Could you take the breaker out of the compressor circuit for the time being?

Someone can advise if this would be unsafe. I don't see why it would be, but I am not all-knowing.

With the new control system, there is no (accessible) breaker for the compressor; power comes directly from the PCM. You can unplug the compressor from the PCM, but then you will have to deal with a dangling wire and remembering how to plug it in when you want to use it. It's probably easier to just disable it with code, and then you can re-enable it remotely without needing to power off the robot, find the wire, etc.

F35freak
26-10-2015, 09:35
I have some code for a compressor on/off buttons if you still need it.:]