Go to Post Wait, that's exactly how it's supposed to work, isn't it. Well played GDC, well played. - alopex_rex [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-10-2015, 21:24
kdems kdems is offline
kdems
FRC #5183 (devilbots)
Team Role: Leadership
 
Join Date: Oct 2015
Rookie Year: 2014
Location: michigan
Posts: 5
kdems is an unknown quantity at this point
Compressor on/off button programming

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

Last edited by kdems : 21-10-2015 at 21:26. Reason: I cant english
Reply With Quote
  #2   Spotlight this post!  
Unread 21-10-2015, 22:32
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Compressor on/off button programming

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).
Reply With Quote
  #3   Spotlight this post!  
Unread 22-10-2015, 07:10
kdems kdems is offline
kdems
FRC #5183 (devilbots)
Team Role: Leadership
 
Join Date: Oct 2015
Rookie Year: 2014
Location: michigan
Posts: 5
kdems is an unknown quantity at this point
Re: Compressor on/off button programming

oh thanks im noob at programming
Reply With Quote
  #4   Spotlight this post!  
Unread 22-10-2015, 08:56
mastachyra's Avatar
mastachyra mastachyra is offline
Registered User
FRC #2781 (RoboPride)
Team Role: Mentor
 
Join Date: Nov 2014
Rookie Year: 2013
Location: Illinois
Posts: 228
mastachyra is just really nicemastachyra is just really nicemastachyra is just really nicemastachyra is just really nice
Re: Compressor on/off button programming

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.
__________________
2014: EtaBot - MWR/30th place/no PO
2015: ThetaBot - MWR/30th place/no PO, R2OC/Winners, IndyRAGE 5th Alliance, WMRI QF
2016: IotaBot - MWR/16th place/QF, R2OC/7th Alliance Captain/QF, Boiler Bot Battle/6th place/Finalist
Reply With Quote
  #5   Spotlight this post!  
Unread 22-10-2015, 09:08
Ari423's Avatar
Ari423 Ari423 is offline
LabVIEW aficionado and robot addict
AKA: The guy with the yellow hat
FRC #5987 (Galaxia)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2012
Location: Haifa, Israel
Posts: 540
Ari423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant future
Re: Compressor on/off button programming

Quote:
Originally Posted by mastachyra View Post
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.
__________________
2017-present: Mentor FRC 5987
2017-present: CSA for FIRST in Israel
2012-2016: Member FRC 423
2013: Programmer
2014: Head Programmer, Wiring
2015: Head Programmer, Wiring
2016: Captain, Head Programmer, Wiring, Manipulator, Chassis, CAD, Business, Outreach (basically everything)


Reply With Quote
  #6   Spotlight this post!  
Unread 26-10-2015, 09:35
F35freak F35freak is offline
Registered User
AKA: Morgan
FRC #2059 (Hitchhickers)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2014
Location: Apex
Posts: 2
F35freak is an unknown quantity at this point
Re: Compressor on/off button programming

I have some code for a compressor on/off buttons if you still need it.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:29.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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