Go to Post Prove me wrong. :) - Kris Verdeyen [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 21-01-2013, 23:01
bhughes bhughes is offline
Registered User
no team
 
Join Date: Jan 2013
Rookie Year: 1999
Location: Michigan
Posts: 24
bhughes is on a distinguished road
Pneumatics, solenoids and frustration

I'm no novice with the wpilibj or Java. I know how most of it works, and the logic required to do almost any task. The thing is, my team has never touched pneumatics. We just didn't need it. So I've become very frustrated lately because I've found it extremely challenging to get them to work.

The two things we're doing:
  1. Gear shifting using supershifters
  2. Loading with a solenoid actuated piston

So its not rocket science.

So far, I've been able to actuate the two sides of solenoids (ones provided in KOP by festo), verified by the lights turning on. I've also been able to switch the output of the solenoid twice, once on both systems, but seem to be incapable of doing it again. It seems to be complete luck.

Our current method to turn solenoids on and off (simplified for readability):

Code:
Solenoid s1 = new Solenoid(1);
Solenoid s2 = new Solenoid(2);
boolean shooting = false;
...

Code:
if(controller.getAButton() && !shooting) {
    shooting = true;
    s1.set(true);
    s2.set(false);
    Timer.delay(1.5);
    s1.set(false);
} else if(!controller.getAButton()) {
    shooting = false;
}
This seems to be correct. We have used the manual releases in a very similar way, and have gotten the solenoid to work. As for electrical, the lights show, and we've measured the output to 24v.

Now I know it looks as though it's the solenoid. But we have tried 3 different, OOTB solenoids.

I'd be happy to take pictures of the wiring if needed, or provide more context to the code. We're using a festo piston (couldn't find model number, just a standard festo one) and solenoid (VUVG-L10-B52-T-M7-1P3 –1).
Reply With Quote
  #2   Spotlight this post!  
Unread 22-01-2013, 07:46
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Pneumatics, solenoids and frustration

Are the solenoid module indicator lights turning on/off as you expect?
That will tell you that your code is working correctly and isolate the problem to wiring <-or-> code.

Is the solenoid valve pressurized?
The KOP Festo solenoids are driven by a minimum pilot pressure of 25psi.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-01-2013 at 07:50.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-01-2013, 15:04
bhughes bhughes is offline
Registered User
no team
 
Join Date: Jan 2013
Rookie Year: 1999
Location: Michigan
Posts: 24
bhughes is on a distinguished road
Re: Pneumatics, solenoids and frustration

The solenoid module indicator lights do turn on and off as expected.

The solenoid valve is pressurized.
We always wait until 60-120psi.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-01-2013, 15:33
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Pneumatics, solenoids and frustration

Since your code is good, as evidenced by the module LEDs, and you have the required pilot pressure...

You checked the Breakout voltage, so the other possibility that occurs to me is that the solenoid wire pair are reversed where they plug in to the Solenoid Breakout.
ground <-> signal

Try reversing the 2-pin connector to see if that helps.

It won't hurt the solenoid to plug it in backwards, but the light on it can still come on.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 22-01-2013, 16:47
bhughes bhughes is offline
Registered User
no team
 
Join Date: Jan 2013
Rookie Year: 1999
Location: Michigan
Posts: 24
bhughes is on a distinguished road
Re: Pneumatics, solenoids and frustration

We've tried reversing the cables, and the lights did not turn on when we did.
Reply With Quote
  #6   Spotlight this post!  
Unread 22-01-2013, 17:25
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Pneumatics, solenoids and frustration

Check the manual triggers on the solenoid.
They can be pushed to momentarily test the solenoid, or turned with a small screwdriver to lock them in place. If in the lock position the solenoid won't respond.

For normal operation both of the slots in the blue buttons should be oriented along the length of the solenoid body.

If they are perpendicular or sideways to the body then the solenoid won't respond.

You can just see the slots here:
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 22-01-2013, 18:08
bhughes bhughes is offline
Registered User
no team
 
Join Date: Jan 2013
Rookie Year: 1999
Location: Michigan
Posts: 24
bhughes is on a distinguished road
Re: Pneumatics, solenoids and frustration

The manual triggers work. They are in horizontal position (like the picture).

We've tried it on 3 different solenoids, none of them working.
Reply With Quote
  #8   Spotlight this post!  
Unread 22-01-2013, 18:24
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Pneumatics, solenoids and frustration

Only other thing I can think of is if the coils aren't seated properly on the solenoid ends. That's a stretch though.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #9   Spotlight this post!  
Unread 22-01-2013, 18:31
bhughes bhughes is offline
Registered User
no team
 
Join Date: Jan 2013
Rookie Year: 1999
Location: Michigan
Posts: 24
bhughes is on a distinguished road
Re: Pneumatics, solenoids and frustration

Quote:
Originally Posted by Mark McLeod View Post
Only other thing I can think of is if the coils aren't seated properly on the solenoid ends. That's a stretch though.
That is where my frustration is. I just can't seem to trace what we're doing wrong. I guess we will just continue to try different setups out until we get it working.
Reply With Quote
  #10   Spotlight this post!  
Unread 22-01-2013, 18:39
bhughes bhughes is offline
Registered User
no team
 
Join Date: Jan 2013
Rookie Year: 1999
Location: Michigan
Posts: 24
bhughes is on a distinguished road
Re: Pneumatics, solenoids and frustration

Is it possible that I should be turning both sides off to let air through? Was a suggestion from a teammate.
Reply With Quote
  #11   Spotlight this post!  
Unread 22-01-2013, 18:59
Jim Wilks Jim Wilks is online now
Electrical Engineer
AKA: Jim Wilks
FRC #1360 (Orbit Robotics)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Oakville, ON
Posts: 1,185
Jim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond repute
Re: Pneumatics, solenoids and frustration

Quote:
Originally Posted by bhughes View Post
Is it possible that I should be turning both sides off to let air through? Was a suggestion from a teammate.
For normal operation, you should only energize 1 of the solenoid coils on a given solenoid valve at a time.
__________________
Jim

Reply With Quote
  #12   Spotlight this post!  
Unread 22-01-2013, 20:33
bhughes bhughes is offline
Registered User
no team
 
Join Date: Jan 2013
Rookie Year: 1999
Location: Michigan
Posts: 24
bhughes is on a distinguished road
Re: Pneumatics, solenoids and frustration

My life is saved! It turns out the problem was that it was wired for 12v, not 24v. Our electrical person was being stupid.
Reply With Quote
  #13   Spotlight this post!  
Unread 22-01-2013, 20:45
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Pneumatics, solenoids and frustration

He or she needs glasses if they thought a 12v reading on a multimeter was 24v
They suffer from double vision...
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 23-01-2013 at 06:40.
Reply With Quote
  #14   Spotlight this post!  
Unread 22-01-2013, 21:21
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Pneumatics, solenoids and frustration

Quote:
Originally Posted by Mark McLeod View Post
He needs glasses if he thought a 12v reading on a multimeter was 24v
I agree. Maybe somebody was messing with him.
__________________
All opinions are my own.
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 09:50.

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