Go to Post I should have gone to IRI years ago. - Richard Wallace [more]
Home
Go Back   Chief Delphi > Technical > Pneumatics
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-02-2013, 20:15
tmccalister tmccalister is offline
Registered User
FRC #2985
 
Join Date: Jan 2011
Location: TEXAS YEEEHAWWWWW
Posts: 18
tmccalister is an unknown quantity at this point
Unhappy Need help on a line of code. Java!

So im trying to get our solenoid to run like our compressor. Our compressor is set to run as long as the code is running. we have a tray like thing (excuse my awesome technical terms) with a piston attached to it. The piston needs to constantly be out but I cant seem to program that. So far I can program it to come out when I push button 3 but I want it instead to be constantly out and the air pressure to cease and the piston to retract when I press button 3. You see my dillema?
  #2   Spotlight this post!  
Unread 16-02-2013, 20:17
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,814
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Need help on a line of code. Java!

You could do this with a simple hardware fix, I think. Try swapping which tube on the cylinder goes to which port on the solenoid. Assuming that the current configuration is for the cylinder to be in except when the button is pressed, that should change it to out except when the button is pressed.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #3   Spotlight this post!  
Unread 16-02-2013, 20:19
Garten Haeska's Avatar
Garten Haeska Garten Haeska is offline
Registered User
AKA: Garty
FRC #2861 (Infinity's End)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Lake City, MN
Posts: 219
Garten Haeska has a spectacular aura aboutGarten Haeska has a spectacular aura about
Re: Need help on a line of code. Java!

You can program the solenoid valve to actuate when you press button 3. But instead of plumbing the cylinder to be retracted right away, just reverse the plumbing of the cylinder so that it will be extended right away, then when button three is pushed, it will retract. Sorry I don't have any code examples.
__________________
"Sometimes the questions are

complicated but the answers are simple."

- Dr. Seuss
Closed Thread


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 11:37.

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