Go to Post Little kids playing soccer....or a typical Lunacy match. Ah, memories. :cool: - Travis Hoffman [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 29-03-2005, 20:39
evilhunter evilhunter is offline
Registered User
#1674
 
Join Date: Jan 2005
Location: Onekama
Posts: 9
evilhunter is an unknown quantity at this point
FESTO question

I been trying to find out if when the FESTO solenoid fires if it will just stay as long as the button is depressed or will stay up when the button is pressed once. Also how can i make the single solenoid program make it like a double solenoid. If someone could please help me I would appreciate it thank you


chris
  #2   Spotlight this post!  
Unread 29-03-2005, 20:46
Pat Fairbank's Avatar
Pat Fairbank Pat Fairbank is offline
Circuit Breaker
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2001
Location: San Jose, CA
Posts: 2,132
Pat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond repute
Send a message via MSN to Pat Fairbank
Re: FESTO question

Hi Chris,

The single solenoid will only stay on as long as the button is depressed, if you're setting the relay controlling it directly equal to the button. To control it sort of like a double solenoid (it'll still act like a single when the power is off), try something like this:

Code:
if (p1_sw_trig == 1) relay1_fwd = 1;
if (p1_sw_top == 1) relay1_fwd = 0;
This would make a single solenoid hooked up to relay1 turn on when p1_sw_trig is pressed, and stay on until p1_sw_top is pressed.
__________________
Patrick Fairbank
Team 254 | Mentor (2012-)
Team 1503 | Mentor (2007-2011)
Team 296 | Alumnus (2001-2004) | Mentor (2005-2006)

patfairbank.com

Last edited by Pat Fairbank : 29-03-2005 at 20:53.
  #3   Spotlight this post!  
Unread 29-03-2005, 20:48
DarkJedi613's Avatar
DarkJedi613 DarkJedi613 is offline
Running Riot
AKA: Patrick Cloke
FRC #0358 (Hauppauge Robotic Eagles) FRC #1493 (RPI/Albany High School)
Team Role: Mentor
 
Join Date: Feb 2003
Rookie Year: 2003
Location: Hauppauge, N.Y.
Posts: 455
DarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to behold
Send a message via AIM to DarkJedi613 Send a message via MSN to DarkJedi613 Send a message via Yahoo to DarkJedi613
Re: FESTO question

Well the toggle/hold question is all in the programming - nothing to do with the actual pneumatics. (According to the valve, if theres electricity going through it, its in one position, no electricity in the other).

You can NOT make it into a double solenoid simply because when the robot is disabled no code is run (therefore no electricity goes to the valve and it is in that position, not the one you left it in).
__________________
2003 - 2006 President, Coach, Webmaster Team358.org
2008 Mentor, Team 1493

Team Search | (Updated: 1-16-08)

FIRSTsearch
  #4   Spotlight this post!  
Unread 30-03-2005, 02:12
evilhunter evilhunter is offline
Registered User
#1674
 
Join Date: Jan 2005
Location: Onekama
Posts: 9
evilhunter is an unknown quantity at this point
Re: FESTO question

thank you guys. Sorry I ask this stupid question but when the toggle is no longer depressed it will go back down correct.
  #5   Spotlight this post!  
Unread 30-03-2005, 10:06
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,113
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: FESTO question

Quote:
Originally Posted by evilhunter
thank you guys. Sorry I ask this stupid question but when the toggle is no longer depressed it will go back down correct.
Questions are rarely stupid. In this case, however, many of the words in the question seem somewhat confused. What do you mean by "toggle" here? I don't know what it would mean for a toggle to be "depressed", I don't know what "it" you're referring to, and usually when something is no longer depressed it goes back up.

To answer the questions you asked originally: A Festo valve indeed will return to its unenergized state when it's no longer being energized. You cannot change this behavior in programming; it is just the way the hardware works. You can use programming the way Pat Fairbank suggests, but remember that when the robot is disabled all outputs are deactivated and the valve will turn off until the robot is reenabled.
  #6   Spotlight this post!  
Unread 30-03-2005, 12:18
evilhunter evilhunter is offline
Registered User
#1674
 
Join Date: Jan 2005
Location: Onekama
Posts: 9
evilhunter is an unknown quantity at this point
Re: FESTO question

alright so the pnuematic will go back to a close state when the robot is disabled or when someone stop touching the button
thank you
  #7   Spotlight this post!  
Unread 30-03-2005, 13:58
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: FESTO question

Quote:
Originally Posted by evilhunter
...how can i make the single solenoid program make it like a double solenoid...
Chris,

This can be done in software using a state variable:

Code:
  if (p4_sw_trig) 
	festo_state = 1;
  if (p4_sw_top)  
	festo_state = 0;

  relay3_fwd = festo_state;  
  relay3_rev = 0;
Here, the Festo (or any spring loaded single solenoid) is connected via a spike to the relay3 output of the RC. Note that the variable festo_state must be static.

Hope this helps.

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #8   Spotlight this post!  
Unread 30-03-2005, 15:26
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,113
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: FESTO question

Quote:
Originally Posted by evilhunter
alright so the pnuematic will go back to a close state when the robot is disabled or when someone stop touching the button
Yes, but...

...this assumes that the pneumatic device is in a "close state" when the Festo is off, and that there is code running which turns the Festo on only while the button is touched. It's easy to change the way the hoses connect so that the pneumatic cylinder runs in the opposite direction and only goes to the "close state" when specifically commanded, and it's easy to change the code so that the signal to the Festo valve does something other than simply reflect the state of the button.
  #9   Spotlight this post!  
Unread 30-03-2005, 15:47
evilhunter evilhunter is offline
Registered User
#1674
 
Join Date: Jan 2005
Location: Onekama
Posts: 9
evilhunter is an unknown quantity at this point
Re: FESTO question

Ok i have one more question on the programing the double solinoid

this is what i have

relay1_fwd = p3_sw_trig; //lower arm extend double solenoid
relay1_rev = p3_sw_top; //lower arm retract double solenoid
relay2_fwd = p3_sw_aux1; //upper arm extent double solenoid
relay2_rev = p3_sw_aux2; //upper arm retract double solenoid
//relay3_fwd
//relay3_rev
//relay4_fwd
//relay4_rev
relay5_fwd = p4_sw_aux1 //lift plate up festo solenoid
relay5_rev = p4_sw_aux2 // lift plate down festo solenoid

ok will this work or will it cuase it to keep going one way and back the other way. If so how would i code this. Thanks
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question of the Week!!! (8/24/04) Andy Grady General Forum 27 27-08-2004 19:00
Question of the Week!!! (6/14/04) Andy Grady General Forum 23 01-07-2004 15:54
Question of the Week [05-02-04]: The Very Merry Month of May EddieMcD Rumor Mill 10 05-05-2004 14:02
MIM's question of the day on programming. Gene F Programming 3 24-02-2004 16:32
A question about control system options computhief263 Control System 7 04-02-2004 14:46


All times are GMT -5. The time now is 18:10.

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