Go to Post It's one thing to post thoughts, guesses, opinions - that's all good ... However, it's [different] to make statements claiming first hand knowledge & facts without actually having first hand knowledge, facts, or accurate information. - Jason Morrella [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-01-2015, 18:51
blincoln1534@gm's Avatar
blincoln1534@gm blincoln1534@gm is offline
Billy Lincoln
FRC #5000 (The Hammerheads)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Hingham, Ma
Posts: 23
blincoln1534@gm is an unknown quantity at this point
Pneumatic Piston using Labview will not fire

Here's our dilemma,

We have 1 double solenoid powering 2 pneumatic pistons. The toggle for them firing is supposed to be a single button (the trigger aka button 1) on the joystick. However, when he hit the button nothing happens. The extend side of the solenoid is connected to the 0 port on the PCM and the retract side of the solenoid is connected to the 1 port on the PCM. The joystick for this system is connected to USB 1. I have attached our code thus far. Let me know if I can answer any questions.

I have tried several sites, but cannot figure out what is wrong. Thanks!
Attached Files
File Type: zip 2015Team5000Code.zip (4.11 MB, 34 views)
  #2   Spotlight this post!  
Unread 29-01-2015, 19:23
orangemoore orangemoore is offline
Registered User
AKA: Roger Moore
FRC #3135 (Robotic Colonels)
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2013
Location: Chicago
Posts: 2,309
orangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond repute
Re: Pneumatic Piston using Labview will not fire

Is the PCM voltage jumper set to the same voltage as your solenoids?

We tried running 24 volt solenoids at 12 volts and they just didn't work.
__________________
Stronghold


Student 2013-2016
3135 -- Robotic Colonels
3507 -- Robotheosis (FTC)
  #3   Spotlight this post!  
Unread 29-01-2015, 19:25
blincoln1534@gm's Avatar
blincoln1534@gm blincoln1534@gm is offline
Billy Lincoln
FRC #5000 (The Hammerheads)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Hingham, Ma
Posts: 23
blincoln1534@gm is an unknown quantity at this point
Re: Pneumatic Piston using Labview will not fire

yes, both the solenoid and the PCM are set to 12v
  #4   Spotlight this post!  
Unread 29-01-2015, 19:29
DanielPlotas DanielPlotas is offline
Registered User
FRC #1984 (Raider Revolution Robotics)
Team Role: College Student
 
Join Date: Mar 2013
Rookie Year: 2012
Location: OP Kansas
Posts: 98
DanielPlotas will become famous soon enoughDanielPlotas will become famous soon enough
Re: Pneumatic Piston using Labview will not fire

Are the red lights on the PCM lighting up next to the channel's connectors?
__________________
Sleep? What is that? A rare Pokemon?
  #5   Spotlight this post!  
Unread 29-01-2015, 19:31
orangemoore orangemoore is offline
Registered User
AKA: Roger Moore
FRC #3135 (Robotic Colonels)
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2013
Location: Chicago
Posts: 2,309
orangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond repute
Re: Pneumatic Piston using Labview will not fire

In begin.vi you have the solenoids are set as 1 and 2 NOT 0 and 1. That is likely your problem.
__________________
Stronghold


Student 2013-2016
3135 -- Robotic Colonels
3507 -- Robotheosis (FTC)
  #6   Spotlight this post!  
Unread 29-01-2015, 19:39
blincoln1534@gm's Avatar
blincoln1534@gm blincoln1534@gm is offline
Billy Lincoln
FRC #5000 (The Hammerheads)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Hingham, Ma
Posts: 23
blincoln1534@gm is an unknown quantity at this point
Re: Pneumatic Piston using Labview will not fire

nope both lights are green

@orangemoore Let me see if that fixes our problem
  #7   Spotlight this post!  
Unread 29-01-2015, 19:42
blincoln1534@gm's Avatar
blincoln1534@gm blincoln1534@gm is offline
Billy Lincoln
FRC #5000 (The Hammerheads)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Hingham, Ma
Posts: 23
blincoln1534@gm is an unknown quantity at this point
Re: Pneumatic Piston using Labview will not fire

now that i examine it further, there is a red light on the side of our PCM for port 1...But not for port 0...

Last edited by blincoln1534@gm : 29-01-2015 at 19:57.
  #8   Spotlight this post!  
Unread 29-01-2015, 20:37
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,242
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: Pneumatic Piston using Labview will not fire

Can you write code to do the following:

1) Display the value of Button 1 (or whatever button you are using) on your smart dashboard. Print "pressed" when it is pressed, and "not pressed" when it is not pressed.

2) Send a signal to extend the pneumatic. Wait 1 second. Send a signal to retract the pneumatic. Wait 1 second. Repeat.

What are your results for #1? Does it display the status of the button correctly?
What are your results for #2? Does the pneumatic extend and retract?
  #9   Spotlight this post!  
Unread 29-01-2015, 22:00
blincoln1534@gm's Avatar
blincoln1534@gm blincoln1534@gm is offline
Billy Lincoln
FRC #5000 (The Hammerheads)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Hingham, Ma
Posts: 23
blincoln1534@gm is an unknown quantity at this point
Re: Pneumatic Piston using Labview will not fire

Quote:
Originally Posted by rich2202 View Post
Can you write code to do the following:

1) Display the value of Button 1 (or whatever button you are using) on your smart dashboard. Print "pressed" when it is pressed, and "not pressed" when it is not pressed.

2) Send a signal to extend the pneumatic. Wait 1 second. Send a signal to retract the pneumatic. Wait 1 second. Repeat.

What are your results for #1? Does it display the status of the button correctly?
What are your results for #2? Does the pneumatic extend and retract?
We're using Labview so we are not familiar with the java/c++ smartdashboard...However on the labview dashboard, when we press several buttons, there is a response from each of the buttons on both joysticks...I think either our begin.vi is corrupt or our teleop.vi is corrupt because only 1 red light shows up on our PCM and that is for port 1...
  #10   Spotlight this post!  
Unread 29-01-2015, 22:48
MrTechCenter's Avatar
MrTechCenter MrTechCenter is offline
INTENSITY
AKA: Harsharan "Harsh" Dhaliwal
FRC #2073 (Eagleforce)
Team Role: Mentor
 
Join Date: Sep 2011
Rookie Year: 2010
Location: Sacramento, CA
Posts: 559
MrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant future
Re: Pneumatic Piston using Labview will not fire

Quote:
Originally Posted by blincoln1534@gm View Post
We're using Labview so we are not familiar with the java/c++ smartdashboard...However on the labview dashboard, when we press several buttons, there is a response from each of the buttons on both joysticks...I think either our begin.vi is corrupt or our teleop.vi is corrupt because only 1 red light shows up on our PCM and that is for port 1...
You don't need to use SmartDashboard to run a simple button test. Just add a boolean push button to your front panel and wire it into a case structure on the block diagram. Boom. True/false statement triggered by a push button.
__________________
2011 Sacramento Regional Finalists; 2011 MadTown Throwdown VIP Excellence in Engineering Award; 2012 Sacramento Regional Innovation in Control Award; 2012 Silicon Valley Regional Judges' Award; 2012 CalGames Autonomous Challenge Award; 2012 MadTown Throwdown Finalists; 2013 P0W3RH0U53 PWNAGE Gracios Professionalism Award; 2014 Central Valley Regional Innovation in Control; 2014 Sacramento Regional Innovation in Control; 2014 Curie Division Gracious Professionalism Award; 2015 Sacramento Regional Innovation in Control
  #11   Spotlight this post!  
Unread 29-01-2015, 23:06
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,242
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: Pneumatic Piston using Labview will not fire

Quote:
Originally Posted by blincoln1534@gm View Post
.However on the labview dashboard, when we press several buttons, there is a response from each of the buttons on both joysticks.
Then for part 2:

Can you drive the pneumatics directly in the code?
  #12   Spotlight this post!  
Unread 30-01-2015, 10:18
jojoguy10's Avatar
jojoguy10 jojoguy10 is offline
Programming/Controls Mentor
AKA: Joe Kelly
FRC #0997 (Spartan Robotics) and FRC #2990 (Hotwire Robotics)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Corvallis, OR
Posts: 295
jojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant future
Re: Pneumatic Piston using Labview will not fire

Quote:
Originally Posted by blincoln1534@gm View Post
Here's our dilemma,

We have 1 double solenoid powering 2 pneumatic pistons. The toggle for them firing is supposed to be a single button (the trigger aka button 1) on the joystick. However, when he hit the button nothing happens. The extend side of the solenoid is connected to the 0 port on the PCM and the retract side of the solenoid is connected to the 1 port on the PCM. The joystick for this system is connected to USB 1. I have attached our code thus far. Let me know if I can answer any questions.

I have tried several sites, but cannot figure out what is wrong. Thanks!
We recently had this problem. Just to make sure, is the solenoid under PRESSURE while you're trying to switch? We spent about 40 minutes with this issue and we tried hooking up our compressor system to it and it switched perfectly.
__________________

2013 and 2014 - Student (FRC#2990), Programmer (LabVIEW)
2015 and 2016 - Mentor (FRC#2990), Programming (LabVIEW)
2017-Current - Mentor (FRC#997), Controls/Programming (Java)
2015-Current - A/V Volunteer at Oregon events
  #13   Spotlight this post!  
Unread 30-01-2015, 12:49
blincoln1534@gm's Avatar
blincoln1534@gm blincoln1534@gm is offline
Billy Lincoln
FRC #5000 (The Hammerheads)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Hingham, Ma
Posts: 23
blincoln1534@gm is an unknown quantity at this point
Re: Pneumatic Piston using Labview will not fire

Quote:
Originally Posted by MrTechCenter View Post
You don't need to use SmartDashboard to run a simple button test. Just add a boolean push button to your front panel and wire it into a case structure on the block diagram. Boom. True/false statement triggered by a push button.
I changed our code and added a case structure, I will test when I get to the workshop later and let you know.

Quote:
Originally Posted by jojoguy10 View Post
We recently had this problem. Just to make sure, is the solenoid under PRESSURE while you're trying to switch? We spent about 40 minutes with this issue and we tried hooking up our compressor system to it and it switched perfectly.
Yes, the compressor is already hooked up to our system and running fine...If it helps with the troubleshooting, we can manually fire and retract the cylinders using the push buttons on the solenoid if the power to the robot/solenoid is off.
  #14   Spotlight this post!  
Unread 30-01-2015, 15:03
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 531
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: Pneumatic Piston using Labview will not fire

So it sounds like the solenoid output is activated by the PCM if the side RED LEDs are turning on. To be clear I mean the LEDs mentioned in Section 3.2 of the PCM's user guide.

If a solenoid channel's output LED is illuminated red, then there should be Vsol measured across the red and black output of that channel's weidumuller pair.
Vsol will be approx battery voltage if the PCM jumper is in 12V mode.
Vsol will be 24V if jumper is in 24V mode or not present.
So use a voltmeter to measure the voltage leaving the PCM going into the solenoid harness. If the PCM is giving your 24V solenoid 24volts, then no amount of software is going to fix your problem, the issue is downstream and is likely the solenoid harness (happens to me once in a while) or just a bad solenoid.
  #15   Spotlight this post!  
Unread 30-01-2015, 18:43
blincoln1534@gm's Avatar
blincoln1534@gm blincoln1534@gm is offline
Billy Lincoln
FRC #5000 (The Hammerheads)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Hingham, Ma
Posts: 23
blincoln1534@gm is an unknown quantity at this point
Re: Pneumatic Piston using Labview will not fire

Adding a case structure did it! Thank you to everyone for their help!
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 21:09.

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