Go to Post the FIRST season is never over . . it just pauses a while so you can get some sleep. - Stuart [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 Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 02-17-2015, 09:55 AM
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,721
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Firing two solenoids together

Coming to CD for a little thought experiment...not really an issue for my team, but something noticed during testing.

Say you have two pistons that you always want to fire at the same time. There are a couple of common ways to do this, however each one has its drawbacks. First, you could use a T fitting to plumb both pistons to the same solenoid. They'll fire at the same time, but you're relying on the airflow through that single solenoid to fill both pistons, which may be slower than you want. So, you use two solenoids, one for each piston. Air flow is increased, and you probably just set your programming up to fire them both, one right after the other in the code. In most cases, this is probably good enough.

But what if that millisecond delay from one solenoid command to the next (plus any overhead in sending the messages over two separate CAN xommands) caused a noticeable and troublesome difference in how the pistons move? How do you get around this? Is there a way to sync the commands so the roboRIO sends both of them to the PCM in the same CAN command, and have the PCM updated them both simultaneously? Can you hook up both solenoids to the same port on the PCM so they both operate off the defensible, and program it as though it was just a single solenoid (are there concerns about current draw from a single port, or is it ok?)? Do you switch to controlling the solenoids through a relay, and if so how do you handle 24V solenoid?
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
  #2   Spotlight this post!  
Unread 02-17-2015, 10:13 AM
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,539
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: Firing two solenoids together

Read the lines under table 4-4 in the game manual:
Quote:
*Multiple low-load, pneumatic solenoid valves, electric solenoids or CUSTOM CIRCUITS may be connected to a single relay module. This would allow one (1) relay module to drive multiple pneumatic actions or multiple CUSTOM CIRCUITS. No other electrical load can be connected to a relay module used in this manner.
So, if you use a spike instead of the PCM to switch this, no problem.
__________________

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.
  #3   Spotlight this post!  
Unread 02-17-2015, 10:29 AM
JamesCH95's Avatar
JamesCH95 JamesCH95 is offline
Hardcore Dork
AKA: JCH
FRC #0095 (The Grasshoppers)
Team Role: Engineer
 
Join Date: Dec 2004
Rookie Year: 2001
Location: Enfield, NH
Posts: 1,799
JamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond repute
Re: Firing two solenoids together

Quote:
Originally Posted by Jon Stratis View Post
Coming to CD for a little thought experiment...not really an issue for my team, but something noticed during testing.

Say you have two pistons that you always want to fire at the same time. There are a couple of common ways to do this, however each one has its drawbacks. First, you could use a T fitting to plumb both pistons to the same solenoid. They'll fire at the same time, but you're relying on the airflow through that single solenoid to fill both pistons, which may be slower than you want. So, you use two solenoids, one for each piston. Air flow is increased, and you probably just set your programming up to fire them both, one right after the other in the code. In most cases, this is probably good enough.

But what if that millisecond delay from one solenoid command to the next (plus any overhead in sending the messages over two separate CAN xommands) caused a noticeable and troublesome difference in how the pistons move? How do you get around this? Is there a way to sync the commands so the roboRIO sends both of them to the PCM in the same CAN command, and have the PCM updated them both simultaneously? Can you hook up both solenoids to the same port on the PCM so they both operate off the defensible, and program it as though it was just a single solenoid (are there concerns about current draw from a single port, or is it ok?)? Do you switch to controlling the solenoids through a relay, and if so how do you handle 24V solenoid?
Quote:
Originally Posted by GeeTwo View Post
Read the lines under table 4-4 in the game manual:

So, if you use a spike instead of the PCM to switch this, no problem.
__________________
Theory is a nice place, I'd like to go there one day, I hear everything works there.

Maturity is knowing you were an idiot, common sense is trying to not be an idiot, wisdom is knowing that you will still be an idiot.
  #4   Spotlight this post!  
Unread 02-17-2015, 10:35 AM
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,721
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Firing two solenoids together

Quote:
Originally Posted by GeeTwo View Post
Read the lines under table 4-4 in the game manual:

So, if you use a spike instead of the PCM to switch this, no problem.
Yup, I'm well aware of the applicable rules... I'm not aware of any rule keeping us from running two solenoids from a single port on the PCM, but I don't know if doing so would cause problems for the device. Running multiple ones from a spike is fine, as you said, but spikes are 12V devices, so what do you do if you're using a 24V solenoid?
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
  #5   Spotlight this post!  
Unread 02-17-2015, 10:43 AM
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,117
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Firing two solenoids together

IMHO, the potential delay of the electrical system is dwarfed (on the time scale of electrical signal delay) by the tolerances of the mechanical system.

Even if both solenoids fired at the exactly the same time, there would be a difference in timing due to mechanical movement (opening/closing of the valve).

Similarly, even if you had it T'd off one solenoid that could instantaneously pressurize lines of the exact same length, there would be mechanical differences of the pistons themselves that would make one move faster than the other.
  #6   Spotlight this post!  
Unread 02-17-2015, 10:43 AM
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,069
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Firing two solenoids together

Quote:
Originally Posted by Jon Stratis View Post
I'm not aware of any rule keeping us from running two solenoids from a single port on the PCM
R42 says one (pneumatic) solenoid (valve) per PCM channel.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

  #7   Spotlight this post!  
Unread 02-17-2015, 10:57 AM
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,721
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Firing two solenoids together

Quote:
Originally Posted by rich2202 View Post
IMHO, the potential delay of the electrical system is dwarfed (on the time scale of electrical signal delay) by the tolerances of the mechanical system.

Even if both solenoids fired at the exactly the same time, there would be a difference in timing due to mechanical movement (opening/closing of the valve).

Similarly, even if you had it T'd off one solenoid that could instantaneously pressurize lines of the exact same length, there would be mechanical differences of the pistons themselves that would make one move faster than the other.
I would have thought the same thing. We were careful with our system, and added flow control valves so we could manually adjust the speeds of the two pistons to match, and they do, in fact, match. But we noticed on was starting up before the other. Programming switched the two lines of code, and we saw a corresponding change in the motion of the pistons. It's not much, and doesn't really affect how our system works, but it got me thinking.

Quote:
Originally Posted by cgmv123 View Post
R42 says one (pneumatic) solenoid (valve) per PCM channel.
Good catch. I swear, I spent 15 minutes looking for this rule this morning, but somehow couldn't find it. Turns out I was looking in the wrong sections... It's in power regulation, not controls or pneumatics!. I had even searched for "PCM", but the table spells it out instead of using the abbreviation like in other locations. I can't wait until Wednesday and the blessed Sleep it'll bring.

Anyways, the question still stands... How do we get 24V solenoids to trigger at exactly the same time?
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
  #8   Spotlight this post!  
Unread 02-17-2015, 11:07 AM
JamesCH95's Avatar
JamesCH95 JamesCH95 is offline
Hardcore Dork
AKA: JCH
FRC #0095 (The Grasshoppers)
Team Role: Engineer
 
Join Date: Dec 2004
Rookie Year: 2001
Location: Enfield, NH
Posts: 1,799
JamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond repute
Re: Firing two solenoids together

Quote:
Originally Posted by Jon Stratis View Post
Anyways, the question still stands... How do we get 24V solenoids to trigger at exactly the same time?
Several mechanical control valves could be ganged together and switched by a solenoid. No 24V required.

Or, simply use 12V solenoids: http://www.mcmaster.com/#61975k55/=vy77am
__________________
Theory is a nice place, I'd like to go there one day, I hear everything works there.

Maturity is knowing you were an idiot, common sense is trying to not be an idiot, wisdom is knowing that you will still be an idiot.
  #9   Spotlight this post!  
Unread 02-17-2015, 11:19 AM
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,117
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Firing two solenoids together

R30 allows a Custom Circuit to create 24 V.

Per R42, a Relay Module can control multiple Pneumatic Solenoid Valves.

Except for the possibility of R44, I couldn't find anything that would prevent a Relay Module from switching 24 V.

The PWM Port can control the Relay.

Last edited by rich2202 : 02-17-2015 at 11:34 AM.
  #10   Spotlight this post!  
Unread 02-17-2015, 11:53 AM
JamesCH95's Avatar
JamesCH95 JamesCH95 is offline
Hardcore Dork
AKA: JCH
FRC #0095 (The Grasshoppers)
Team Role: Engineer
 
Join Date: Dec 2004
Rookie Year: 2001
Location: Enfield, NH
Posts: 1,799
JamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond repute
Re: Firing two solenoids together

Quote:
Originally Posted by rich2202 View Post
R30 allows a Custom Circuit to create 24 V.

Per R42, a Relay Module can control multiple Pneumatic Solenoid Valves.

Except for the possibility of R44, I couldn't find anything that would prevent a Relay Module from switching 24 V.

The PWM Port can control the Relay.
[R41] B

Spikes are the only relay modules allowed. Maximum operating voltage is 16V. Methinks that might not end well.
__________________
Theory is a nice place, I'd like to go there one day, I hear everything works there.

Maturity is knowing you were an idiot, common sense is trying to not be an idiot, wisdom is knowing that you will still be an idiot.
  #11   Spotlight this post!  
Unread 02-17-2015, 02:50 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,539
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: Firing two solenoids together

Quote:
Originally Posted by JamesCH95 View Post
[R41] B

Spikes are the only relay modules allowed.
In this context yes, presuming that the pneumatic solenoid in turn controls an actuator. It's OK to use other relays for non-actuator items, such as lights and sensors.

Also, back to the original problem. If you can accept a momentary inequality, perhaps you could do something like:
  • Open Valve 1
  • Open Valve 2
  • Close Valve 1
  • Open Valve 1
Assuming that opens and closes each take 1 time step, (and they may very well have different time delays), at the next time step, each valve will be open and will have been open for three steps. By adding a short pause either before or after "Close Valve 1", you should be able to get them synchronized. Do the same thing in reverse at the other end of the run.
__________________

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.
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 04:58 PM.

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