Go to Post I got something totally different from my FIRST experience. to me the spirit of FIRST is all about sharing. during the 6 week build period, you share yourself with the other people on your team. at the competition, you share your creation with everyone who watches your 'bot play the game. - George1902 [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 04-28-2016, 03:08 PM
GoldenGollem's Avatar
GoldenGollem GoldenGollem is offline
Java Programmer
FRC #2509 (Hutchinson Tigerbots)
Team Role: Programmer
 
Join Date: Dec 2015
Rookie Year: 2015
Location: Minnesota
Posts: 24
GoldenGollem is an unknown quantity at this point
Pneumatics & Java

I have just started out controlling pneumatics with Java and had a few general questions.
  • Do you need to program a softy for compressors in the program or will the auto shut off function on the compressor work fine?
  • (Regarding the Prev) What is the best way to code in the pressure switch?
  • Can you use relays and solenoids essential interchangeable for pistons?
  • Is there any need for wiring it to the RoboRio via PWM cables or just to the PCM?
Any help is appreciated.
Thanks, GG
Reply With Quote
  #2   Spotlight this post!  
Unread 04-28-2016, 04:20 PM
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,886
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Pneumatics & Java

Assuming you are using the PCM.

You don't need to code the compressor unless you want it specially off rather than controlled by the pressure switch. The compressor is actually controlled by the PCM. The Roborio just enables it.

You don't need to code the pressure switch

Not really sure about this one. I think you need a solenoid class in the code to enable the compressor. In any case you need to direct the output to the PCM and the relay ports on the roborio. (Assuming you are using the PCM and not a Spike realy.

PWM ports have nothing to do with pneumatics.
__________________
If you don't know what you should hook up then you should read a data sheet

Last edited by FrankJ : 04-28-2016 at 04:22 PM.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-29-2016, 01:24 PM
GoldenGollem's Avatar
GoldenGollem GoldenGollem is offline
Java Programmer
FRC #2509 (Hutchinson Tigerbots)
Team Role: Programmer
 
Join Date: Dec 2015
Rookie Year: 2015
Location: Minnesota
Posts: 24
GoldenGollem is an unknown quantity at this point
Re: Pneumatics & Java

Thanks for the answers. One other question...
What would be the difference coding wise if I were to use a spike relay vs. PCM.
-GG
Reply With Quote
  #4   Spotlight this post!  
Unread 04-29-2016, 04:10 PM
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,536
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Pneumatics & Java

Quote:
Originally Posted by GoldenGollem View Post
Thanks for the answers. One other question...
What would be the difference coding wise if I were to use a spike relay vs. PCM.
-GG
Do you want to use a spike relay to control the compressor, a solenoid valve, or both?

In either case, as I read the documentation, you would not use the pneumatics library, but control them as described on the wpilib relay page.

If controlling the compressor through a relay, you would connect the pressure switch to a DIO (it's normally closed). If the pressure switch is open, you MUST turn off the compressor and leave it off, both for safety and FRC regs. You MAY turn of the compressor based on other criteria (e.g. a pressure gauge or other loads on the system).
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.

Last edited by GeeTwo : 04-29-2016 at 04:15 PM. Reason: fix NO to NC on pressure switch
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:20 AM.

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