Go to Post To me, the changing rules are a big part of the fun. If the rules stayed the same year to year, robots would start to look the same. That would be boring. - Richard Wallace [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-01-2013, 01:23
Arkamond Arkamond is offline
Registered User
FRC #3102
 
Join Date: Jan 2013
Location: Minnesota
Posts: 23
Arkamond is an unknown quantity at this point
Issue with FRC Pneumatic compressor, all details upfront.

I am a member of an FRC team, trying to debug our pneumatic system, full details are below.

Pneumatic Setup: First 2013 Pneumatics Manual
Page 8

Wiring Setup poorly drawn picture but accurate schematic:
http://i.imgur.com/ariBwst.png (too big to display here)

Begin.vi code for compressor:


Compressor: ViAir Compressor 2011

Issues:
-Compressor won't automatically turn off after 120 (we tested up to 135)
-We probably wired something wrong somewhere.

Tl;dr below
Today me and my team wired a ViAir Compressor 2011. It's not the Viair 090C Air Compressor, although we have one.

So here's what we did:
20-Amp Snap-Action breaker to 20-Amp 12v VEX Spike-relay
From that the M+, M- went to the Air compressor, + to +, - to - ends of course.
Then we wired the 3-pin PWM connector to Relay 1, making sure the black end is on the G on the Spike-relay and on the relay panel the black is on the outermost pin.
But the issue became that it didn't work. It only showed a reddish-yellow light, until we connected it to the Digital I/O board on slot 1. Then the light became completely red but the compressor started running.
-We get a red light no matter what (unless we switch positive and negative around) on our Spike-relay. We're not sure whether this is correct or not, but it is working in this fashion.

We wired our two wired pressure-release valve to relay 1, as we thought it would go there instead of the Spike-relay.
-But it didn't work, we got up to 135 PSI and it didn't work.
/Tl'dr

I'l happily answer any questions.

Last edited by Arkamond : 28-01-2013 at 01:36.
  #2   Spotlight this post!  
Unread 28-01-2013, 02:28
Nirvash's Avatar
Nirvash Nirvash is offline
Registered User
AKA: Bryan
FRC #4676
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Orland Park, IL
Posts: 221
Nirvash has a spectacular aura aboutNirvash has a spectacular aura about
Re: Issue with FRC Pneumatic compressor, all details upfront.

Quote:
Originally Posted by Arkamond View Post

Then we wired the 3-pin PWM connector to Relay 1, making sure the black end is on the G on the Spike-relay and on the relay panel the black is on the outermost pin.
But the issue became that it didn't work. It only showed a reddish-yellow light, until we connected it to the Digital I/O board on slot 1. Then the light became completely red but the compressor started running.
-We get a red light no matter what (unless we switch positive and negative around) on our Spike-relay. We're not sure whether this is correct or not, but it is working in this fashion.

We wired our two wired pressure-release valve to relay 1, as we thought it would go there instead of the Spike-relay.
-But it didn't work, we got up to 135 PSI and it didn't work.
/Tl'dr

I'l happily answer any questions.
If I am reading this right, you have your Spike connected to DIO 1 and your pressure switch wired to Relay 1?
If that is so then it is backwards. The Spike should got to relay and switch to DIO.

Where did you place "Compr Control Loop" and "Compr Enabled" in your code?
__________________
Team 3488 - Electrical Lead/Programming Lead 2011-2013
Team 4676 - Electrical/Programming Mentor 2013-Present
  #3   Spotlight this post!  
Unread 28-01-2013, 02:29
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Issue with FRC Pneumatic compressor, all details upfront.

Did you also remember to go into Periodic Tasks.vi and remove the Diagram Disable structure around the Compressor Control Loop? If not, I would suggest starting there.

Also, to make it work, you will have to put the PWM cable from the Spike to Relay 1 on the Digital Sidecar. The pressure switch must also be wired to DIO 1 (using the signal and ground wires only).
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #4   Spotlight this post!  
Unread 28-01-2013, 03:06
Arkamond Arkamond is offline
Registered User
FRC #3102
 
Join Date: Jan 2013
Location: Minnesota
Posts: 23
Arkamond is an unknown quantity at this point
Re: Issue with FRC Pneumatic compressor, all details upfront.

Quote:
Originally Posted by Nirvash View Post
If I am reading this right, you have your Spike connected to DIO 1 and your pressure switch wired to Relay 1?
If that is so then it is backwards. The Spike should got to relay and switch to DIO.

Where did you place "Compr Control Loop" and "Compr Enabled" in your code?
Compression Control Loop is in the Periodic Tasks VI, here


I don't have a "Compressor Enabled" node anywhere, should there be one? I haven't seen any code examples for a compressor that ever require it, the DIO should disable/enable on it's own as the air PSI in the tanks increases/decreases, correct?
  #5   Spotlight this post!  
Unread 28-01-2013, 03:08
Arkamond Arkamond is offline
Registered User
FRC #3102
 
Join Date: Jan 2013
Location: Minnesota
Posts: 23
Arkamond is an unknown quantity at this point
Re: Issue with FRC Pneumatic compressor, all details upfront.

Quote:
Originally Posted by Cecil View Post
Did you also remember to go into Periodic Tasks.vi and remove the Diagram Disable structure around the Compressor Control Loop? If not, I would suggest starting there.

Also, to make it work, you will have to put the PWM cable from the Spike to Relay 1 on the Digital Sidecar. The pressure switch must also be wired to DIO 1 (using the signal and ground wires only).
Alright, so Spike-Relay to Relay through PWM cable on 1st slot and the electronic pressure release valve to the first DIO, correct? Should the system automatically then handle it?
  #6   Spotlight this post!  
Unread 28-01-2013, 09:50
Nirvash's Avatar
Nirvash Nirvash is offline
Registered User
AKA: Bryan
FRC #4676
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Orland Park, IL
Posts: 221
Nirvash has a spectacular aura aboutNirvash has a spectacular aura about
Re: Issue with FRC Pneumatic compressor, all details upfront.

Quote:
Originally Posted by Arkamond View Post
Compression Control Loop is in the Periodic Tasks VI, here


I don't have a "Compressor Enabled" node anywhere, should there be one?increases/decreases, correct?
No, it doesn't look like it, but the default code for a compressor does execute 'Compsr Start', I forget if this is needed, but it may be worth trying.
Also you don't need to place Compsr Control Loop in a loop, since the VI loops internally.

Quote:
Originally Posted by Arkamond View Post
Alright, so Spike-Relay to Relay through PWM cable on 1st slot and the electronic pressure release valve to the first DIO, correct? Should the system automatically then handle it?
And you are correct Spike connects to relay one though PWM cable and pressure shutoff switch to DIO one.
__________________
Team 3488 - Electrical Lead/Programming Lead 2011-2013
Team 4676 - Electrical/Programming Mentor 2013-Present

Last edited by Nirvash : 28-01-2013 at 09:53.
  #7   Spotlight this post!  
Unread 28-01-2013, 10:11
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Mentor, LRI, MN RPC
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,813
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: Issue with FRC Pneumatic compressor, all details upfront.

First, on the hardware:
- The spike should be wired to the Relay output on the DSC. (There are 8 of them)
- The pressure switch should be wired to the DIO on the DSC. (There are 14 of them)
- There are two LED's next to each of the Relay ports on the DSC. They only light up when your code tells the relay to go forward/reverse. You should see the following behavior with these LEDs and the LED on the spike:
-- No DSC LEDs lit, spike LED yellow
-- Green DSC LED lit, spike LED Green
-- Red DSC LED lit, spike LED Red
-- Both DSC LEDs lit, spike LED yellow

If you aren't seeing the LED's on the spike turn on, then you know there's something wrong with the code.


To test your code, hook up a simple limit switch to the DIO your pressure switch should go to. Enable the robot, and see if your relay LED's light up/turn off in sync with the limit switch. If so, then your code is working fine! If not, then you've got something wrong - either an error in your code, or you aren't plugging the switch into the port the code expects.

Once you know your code is working correctly, hook everything up correctly, as listed above, and you should see it work.
__________________
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 28-01-2013, 14:18
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Issue with FRC Pneumatic compressor, all details upfront.

Quote:
Originally Posted by Arkamond View Post
Compression Control Loop is in the Periodic Tasks VI, here


I don't have a "Compressor Enabled" node anywhere, should there be one?
As long as you have the Compressor Start in Begin.vi, you should be good. The only problem I see is that you have the Compressor Control loop in another loop. Try removing it from that loop (you can delete the one you placed in the loop, right click on the diagram disable structure below it, and click "Remove Diagram Disable Structure". Remember to rename the refnum to "Compressor" too.
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #9   Spotlight this post!  
Unread 29-01-2013, 00:06
Arkamond Arkamond is offline
Registered User
FRC #3102
 
Join Date: Jan 2013
Location: Minnesota
Posts: 23
Arkamond is an unknown quantity at this point
Re: Issue with FRC Pneumatic compressor, all details upfront.

Thanks all for the replies!

I got it to work! But there were some other details that were needed to get it running. Would the below be a correct guide?

*PWM cables come in different colors but work the same, the darkest is the ground, positive is the middle and signal is the remaining one.

-Attach a PWM (3 pin) connector to Relay 1 on the Digital Side Car and connect the other end to the Spike-Relay, with the black wire on the furthest right of the slot.

-Attach another PWM(3 pin), but only the Ground (black) and signal (white) to the Pressure detection valve you should have put in place next to the pressure release valve. There should be signs G(B) for ground and signal for the other. And then connect the other end of the PWM to slot one of the Digital I/O slots, (Right above relay slots)

-Make sure M+ and M- are going to the Air compressor, 12v and G(B) are going the over way. Just wire the positive/negative correspondingly across to how the air compressor is wired.
* Wire the 12V and G(B) side to a 20-amp Snap-Action breaker on the Power Distribution Board.

-Make sure that you add the correct programming in Labview, here is mine.

Begin.vi:


Teleop.vi:


Periodic Tasks.vi: (Make sure it's outside of any loops)


With this setup, when you enable your robot in Teleop, it then starts the air compressor and automatically shuts off after 117 PSI. You can set this up to start when your robot initializes if you just put the "enable" node in the Begin.vi right after the registry set node.
  #10   Spotlight this post!  
Unread 29-01-2013, 01:13
Trent B Trent B is offline
College Mentor
AKA: Trent Borman
no team (Surviving Grad School)
Team Role: Alumni
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Ames, IA
Posts: 479
Trent B is a splendid one to beholdTrent B is a splendid one to beholdTrent B is a splendid one to beholdTrent B is a splendid one to beholdTrent B is a splendid one to beholdTrent B is a splendid one to beholdTrent B is a splendid one to beholdTrent B is a splendid one to behold
Send a message via AIM to Trent B Send a message via Yahoo to Trent B
Re: Issue with FRC Pneumatic compressor, all details upfront.

Kind of a tangential tip. For the Spike, replace the 20-amp fuse with a 20-amp snap action circuit breaker.

This will save a lot of frustration when the fuse blows and you have to figure out what is wrong.
__________________
Former 2502 (Talon) Captain and 3928 (Neutrino) Mentor, currently teamless and attending Penn State for graduate school.
Have questions about Iowa State University or Penn State University? Feel free to email or PM me
  #11   Spotlight this post!  
Unread 29-01-2013, 08:00
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,851
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: Issue with FRC Pneumatic compressor, all details upfront.

The Enabled isn't necessary.
The compressor is enabled by the start.
Enabled is only used after a Disable has been used (presumably to conserve power).
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #12   Spotlight this post!  
Unread 29-01-2013, 16:29
Arkamond Arkamond is offline
Registered User
FRC #3102
 
Join Date: Jan 2013
Location: Minnesota
Posts: 23
Arkamond is an unknown quantity at this point
Re: Issue with FRC Pneumatic compressor, all details upfront.

Quote:
Originally Posted by Trent B View Post
Kind of a tangential tip. For the Spike, replace the 20-amp fuse with a 20-amp snap action circuit breaker.

This will save a lot of frustration when the fuse blows and you have to figure out what is wrong.
But aren't those only on the main board? I've never seen a snap-action breaker that can go into the Spike-relay.
  #13   Spotlight this post!  
Unread 29-01-2013, 16:33
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Mentor, LRI, MN RPC
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,813
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: Issue with FRC Pneumatic compressor, all details upfront.

Quote:
Originally Posted by Arkamond View Post
But aren't those only on the main board? I've never seen a snap-action breaker that can go into the Spike-relay.
The normal 20A breakers you use on the PDB will fit into the Spikes. The two contacts slide in just like the yellow fuse, and the breaker sticks up above the spike.

Based on experience, if you don't replace the fuse, it'll blow after 15-20 matches. That just happens to be the number of matches you need to compete in to get to the finals Saturday afternoon (plus or minus practice matches on Thursday).
__________________
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
  #14   Spotlight this post!  
Unread 29-01-2013, 16:42
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,851
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: Issue with FRC Pneumatic compressor, all details upfront.

Just because you should always know the official source...

Quote:
R65
...
E. If powering the compressor, the fuse on a Spike H-Bridge Relay may be replaced with a 20A Snap-Action circuit breaker.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #15   Spotlight this post!  
Unread 05-02-2013, 14:31
CooneyTech CooneyTech is offline
Registered User
FRC #0269
 
Join Date: Jan 2013
Location: Oconomowoc
Posts: 32
CooneyTech is an unknown quantity at this point
Re: Issue with FRC Pneumatic compressor, all details upfront.

Quote:
Originally Posted by Arkamond View Post
Compression Control Loop is in the Periodic Tasks VI, here


I don't have a "Compressor Enabled" node anywhere, should there be one? I haven't seen any code examples for a compressor that ever require it, the DIO should disable/enable on it's own as the air PSI in the tanks increases/decreases, correct?
I see one error with this the compressor should not be inside of the while loop. Drag it out and delete that one loop.
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 11:41.

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