Go to Post What about "I h8 Autonomous Mode" (for the programmers who actually have to make the robots work)? - Tristan Lall [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 14-02-2012, 19:36
chall3613 chall3613 is offline
Registered User
AKA: Candace
FRC #3613 (Team Wolf Pack)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: New York
Posts: 28
chall3613 is an unknown quantity at this point
Programming Pneumatics

We've got less than a week left in the build. I still have to program the pneumatics. And I am really unsure where to start and what everything is supposed to work.

We have an air compressor, hooked up to 2 tanks (this years-2012 and last years-2011) and then we have all the essential dials.

I have to set it to refill at a certain PSI and also stop at 120PSI. I also have to program the the trigger of the right joystick to make the cylinder go up and down for a catapult. We need to have it stay up when the trigger is held, and go down when its released to allow reloading of the arm.

I am still learning LabView. And, I am the only programmer.

THANK YOU!
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2012, 21:17
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: Programming Pneumatics

Do you know about the FRC Examples in LabVIEW? On LabVIEW's Getting Started screen, click the Support tab, then click the Find FRC Examples... link. Under FRC Robotics > Pneumatics, the Solenoid with Compressor Example should give you a good starting place.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2012, 15:21
chall3613 chall3613 is offline
Registered User
AKA: Candace
FRC #3613 (Team Wolf Pack)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: New York
Posts: 28
chall3613 is an unknown quantity at this point
Re: Programming Pneumatics

I can't understand any of it. I don't know any "labview lingo".

All I need if for the compressor to stop at 120PSI and turn back on when it gets low. And i need the cylinder to go up when the trigger is held and go back down when it is released.

This year, no one comes. I have been working on programming since I'm the only one who even remotely understands anything, and I'm doing electrical. Which I have no idea about. I think I have everything I need because thats what the FRC examples show. And when I turn the robot on, after a minute, the compressor turns on, but doesn't stop.

I saw some other examples, but I don't know where thoes blue DIO and AI boxes are in the vis.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2012, 16: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,833
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: Programming Pneumatics

Start with getting the compressor working correctly.
It sounds like you already have this, so just verify.
There is a bit of code that goes in Begin.vi and another in Periodic Tasks,vi as shown below.

You get the blue "DIO 1" by hovering your cursor over the input node on the left of the Compressor Open vi, right-click to get the node menu and choose Create -> Constant.



The compressor vi's are all under: WPI Robotics Library->Actuators->Compressor

Then check your wiring.
  • Pressure switch wired to the outer two wires on a PWM cable. The center cable is just cut back to keep it out of the way.
  • The Pressure Switch PWM cable then gets plugged into DIO 1 on the Digital Sidecar.
  • The Spike controlling the compressor has it's PWM cable running to Relay 1 on the Digital Sidecar. Orientation of the cable matters, so be sure it's correct.
When you enable, the compressor spike should go green, as well as the matching Relay LED on the Digital Sidecar.

The compressor will only shut off if pressure reaches 115psi.
If pressure stops climbing at 60 psi or so, then your regulator is probably backwards.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 17-02-2012 at 16:38.
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2012, 16:36
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,833
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: Programming Pneumatics

For the solenoid/trigger part you need something like the following:



You'll find the solenoid vi's in: WPI Robotics Library->Actuators->Solenoid

The blue "Forward" and "Reverse" you get by positioning the cursor over the input node on the left side of the Solenoid Set vi, right-click to get the node menu and choose Create -> Constant.
Break the wire holding it to the Solenoid Set and copy and paste it wherever it needs to be, then wire them to the proper spots.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 18-02-2012, 01:46
Bill_B Bill_B is offline
You cannot not make a difference
FRC #2170
 
Join Date: Jan 2010
Rookie Year: 2004
Location: Connecticut
Posts: 1,099
Bill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond repute
Re: Programming Pneumatics

Quote:
Originally Posted by Mark McLeod View Post
Start with getting the compressor working correctly.
It sounds like you already have this, so just verify.

The compressor will only shut off if pressure reaches 115psi.
If pressure stops climbing at 60 psi or so, then your regulator is probably backwards.
You should also put a snap (self-resetting) fuse 20A in place of the standard yellow blade fuse 20A in your compressor spike. Startup (stall) current for the compressor has been known to kill those standard fuses. Rule 55 allows you to alter the configuration of the compressor spike.
__________________
Nature's Fury FLL team 830 - F L eLements
FRC team 2170 - Titanium Tomahawks
Reply With Quote
  #7   Spotlight this post!  
Unread 18-02-2012, 11:02
chall3613 chall3613 is offline
Registered User
AKA: Candace
FRC #3613 (Team Wolf Pack)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: New York
Posts: 28
chall3613 is an unknown quantity at this point
Re: Programming Pneumatics

Thank you very much for your quick replys. And, I'm sorry. I was just really stressed because I couldn't do it and if it didn't get done, we would have had a problem because of me.

I put everything where they go. I put it in to CRIO and when the driver station is diabled, the compressor turns on, and when its enabled, every motor turns on for a second and the compressor no longer runs.

Does anyone know why this happens? Is it an issue with wireing or programming?
Reply With Quote
  #8   Spotlight this post!  
Unread 18-02-2012, 11:29
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,833
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: Programming Pneumatics

If the compressor turns on when the robot is Disabled, then I'd suspect a strange electrical/wiring problem.
That's also a safety issue.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #9   Spotlight this post!  
Unread 18-02-2012, 12:24
dotbran dotbran is offline
Registered User
AKA: Brandon Olsen
FRC #3219 (TREAD)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Auburn, WA
Posts: 68
dotbran is on a distinguished road
Re: Programming Pneumatics

Make sure your compressor is hooked up with the correct polarity. You may have it backwards.
Reply With Quote
  #10   Spotlight this post!  
Unread 19-02-2012, 00:36
chall3613 chall3613 is offline
Registered User
AKA: Candace
FRC #3613 (Team Wolf Pack)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: New York
Posts: 28
chall3613 is an unknown quantity at this point
Re: Programming Pneumatics

Thank you everyone. Webster Thomas High School Team Sparks helped with hooking up the pneumatics correctly. Turnes out there was a lot wrong. There was an issue with my code earlier on that interfered with the compressor so I re-did some stuff. We are going to test and hopefully practice monday night and tuesday before we have to pack up.
Reply With Quote
  #11   Spotlight this post!  
Unread 21-02-2012, 13:21
Jurrian Jurrian is offline
Registered User
FRC #3321
 
Join Date: Feb 2012
Location: Superior
Posts: 2
Jurrian is an unknown quantity at this point
Re: Programming Pneumatics

Quote:
Originally Posted by Mark McLeod View Post
For the solenoid/trigger part you need something like the following:



You'll find the solenoid vi's in: WPI Robotics Library->Actuators->Solenoid

The blue "Forward" and "Reverse" you get by positioning the cursor over the input node on the left side of the Solenoid Set vi, right-click to get the node menu and choose Create -> Constant.
Break the wire holding it to the Solenoid Set and copy and paste it wherever it needs to be, then wire them to the proper spots.
This so far not working for our robot. Any other suggestions please?!
Reply With Quote
  #12   Spotlight this post!  
Unread 21-02-2012, 15:15
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: Programming Pneumatics

Quote:
Originally Posted by Jurrian View Post
This so far not working for our robot.
What do you want your robot to do? What is it doing instead?
Reply With Quote
  #13   Spotlight this post!  
Unread 22-02-2012, 11:43
Griever102 Griever102 is offline
J-Hart
FRC #1301 (1303)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Wyoming
Posts: 3
Griever102 is an unknown quantity at this point
Re: Programming Pneumatics

I had a quick question. My roommate and I are putting together a training robot and a show robot and we are wanting to put two compressors on the bot because we are using two really big tanks so we can fill them up faster and everything...plus it just looks pretty sweet. But we are having the same trouble. I put the Compressor control loop in the timed tasks vi and it wasn't working and I tried putting the control loop in the begin vi. We have both of the compressors hooked up to two different spikes and they arent getting any code. Any help on that? Right now we just have the compressors wired to a manual switch that we turn on and off. And there might have been something that we missed while hooking everything up cause we put it together in about 15 hours over this past weekend. So I'm thinking it's something with the code but it could be something with the PWMs. Any and all advice is helpful! Thanks!

KJRobotics
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 22:12.

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