Thread: FESTO question
View Single Post
  #9   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...