Go to Post But he who has deeper insight realizes that concepts and ideas canot be contained in even the largest jar, bucket or box. You cannot touch or see these things, but you can be enhanced with knowledge and experience of them. - sanddrag [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 10-02-2013, 10:08
yogiyogi yogiyogi is offline
Registered User
FRC #2679
 
Join Date: Feb 2011
Location: Israel
Posts: 12
yogiyogi is an unknown quantity at this point
Compressor With Spike Problems

Hey Everyone,
We are trying to run our compressor with a spike.

This is what we have connected:
-Spike with 20A fuse to the Power Distribution Board with another 20A fuse.
-Other end of the spike is connected to the compressor
-PWM between the spike and the relay on the sidecar in channel 1. black end is the negative side


In the Code:
-Declaring a relay in channel 1.
-Setting it to "Foreward"

We also the tried to use the built in Compressor functions(didnt work and also we dont have a pressure switch yet)

The spike does have a stable orange LED but it does not change at all.
Relay LED's on the sidecar are not on at all.

Please help us
Thanks
  #2   Spotlight this post!  
Unread 10-02-2013, 10:50
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,905
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: Compressor With Spike Problems

It's a code problem if you can't get the Relay LED on the Sidecar to turn green.

The Spike status light shows a solid orange if it's getting 12v power.
It's not an indication of PWM connectivity like the motor controller status light.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 10-02-2013, 10:54
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,033
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Compressor With Spike Problems

Quote:
Originally Posted by yogiyogi View Post
-PWM between the spike and the relay on the sidecar in channel 1. black end is the negative side
Where on the digital sidecar, is your PWM cable connected? To the PWM output area? Or the relay output area? It needs to be in the relay area.

  #4   Spotlight this post!  
Unread 10-02-2013, 12:55
Gregor's Avatar
Gregor Gregor is offline
#StickToTheStratisQuo
AKA: Gregor Browning
no team
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Kingston, Ontario, Canada
Posts: 2,447
Gregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond repute
Re: Compressor With Spike Problems

Quote:
Originally Posted by yogiyogi View Post
This is what we have connected:
-Spike with 20A fuse to the Power Distribution Board with another 20A fuse.
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.
Consider changing your fuse with a breaker, the compresser pulls more than 20A at startup.
__________________
What are nationals? Sounds like a fun American party, can we Canadians come?
“For me, insanity is super sanity. The normal is psychotic. Normal means lack of imagination, lack of creativity.” -Jean Dubuffet
"Insanity is doing the same thing over and over again and expecting different results." -Albert Einstein
FLL 2011-2015 Glen Ames Robotics-Student, Mentor
FRC 2012-2013 Team 907-Scouting Lead, Strategy Lead, Human Player, Driver
FRC 2014-2015 Team 1310-Mechanical, Electrical, Drive Captain
FRC 2011-xxxx Volunteer
How I came to be a FIRSTer
<Since 2011
  #5   Spotlight this post!  
Unread 10-02-2013, 12:59
yogiyogi yogiyogi is offline
Registered User
FRC #2679
 
Join Date: Feb 2011
Location: Israel
Posts: 12
yogiyogi is an unknown quantity at this point
Re: Compressor With Spike Problems

Quote:
Originally Posted by MrForbes View Post
Where on the digital sidecar, is your PWM cable connected? To the PWM output area? Or the relay output area? It needs to be in the relay area.

The PWM from the spike is connected to the Relay area.

So If it is a code problem them I still dont get it.
We declare a Relay on Digital Module 1, relay 1 in the begin.vi
In the teleop.vi we simply get it and pass value of "Foreward" to the SET function.
Can anyone spot the problem?
  #6   Spotlight this post!  
Unread 10-02-2013, 13:15
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
no team
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Austin, TX
Posts: 1,127
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Compressor With Spike Problems

Does the green LED next to the relay ports on the DSC light up when you enable the robot? Since your compressor relay is on port 1, the port 1 green LED should light up.

If it is on, try reseating the PWM cable into the Spike. I was helping Team Combustion last year and they couldn't get the Spike to work. This was ultimately the problem, as the cable can seem plugged in, but actually misses the female socket inside of the Spike.

If it is off, check your code (post it if you would like with screenshots), and check the wiring of your pressure switch.

Since you're overrriding the pressure sensor right now, my guess is the cable isn't seated properly.

Please answer the first question though. That will help us all out trying to figure out your issue.
__________________
Taking a break from mentoring for a few years. (Is that allowed?!?)

Controls Mentor
@rnazaretian

Previous teams:
Team Fusion, FRC 364
Garnet Squadron, FRC 4901

Last edited by RyanN : 10-02-2013 at 13:29.
  #7   Spotlight this post!  
Unread 10-02-2013, 13:52
yogiyogi yogiyogi is offline
Registered User
FRC #2679
 
Join Date: Feb 2011
Location: Israel
Posts: 12
yogiyogi is an unknown quantity at this point
Re: Compressor With Spike Problems

Quote:
Originally Posted by RyanN View Post
Does the green LED next to the relay ports on the DSC light up when you enable the robot? Since your compressor relay is on port 1, the port 1 green LED should light up.

If it is on, try reseating the PWM cable into the Spike. I was helping Team Combustion last year and they couldn't get the Spike to work. This was ultimately the problem, as the cable can seem plugged in, but actually misses the female socket inside of the Spike.

If it is off, check your code (post it if you would like with screenshots), and check the wiring of your pressure switch.

Since you're overrriding the pressure sensor right now, my guess is the cable isn't seated properly.

Please answer the first question though. That will help us all out trying to figure out your issue.
There are no LED's in the DSC at any time(in the relay area.)
BTW, Our compressor is not connected to any tube or pressure switch or nothing, It should still work right?(It works when we plug it directly to a batterty)
  #8   Spotlight this post!  
Unread 10-02-2013, 15:10
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
no team
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Austin, TX
Posts: 1,127
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Compressor With Spike Problems

Quote:
Originally Posted by yogiyogi View Post
There are no LED's in the DSC at any time(in the relay area.)
BTW, Our compressor is not connected to any tube or pressure switch or nothing, It should still work right?(It works when we plug it directly to a batterty)
If you don't have your pressure sensor connected (electrically), it will not run.

The pressure switch is a normally closed switch, meaning, in a normal state, it will close (make a connection) to both sides of the switch, causing current to flow from one side of the pressure switch to the other. Because of this, you must have it plugged into the DSC in order to work.

If you do not have any LEDs on your turning on in the relay area, that means you most likely have a software issue.

Can you post your code? Include the begin code, and wherever you're switching the compressor on.

If you want to debug your code, make sure you're using the same reference name throughout your code. Compressor and Compresor are not the same, also Compressor and compressor are not the same. The reference name is case and spelling sensitive. If they are not EXACTLY the same, it won't work.

If you're using the compressor start block, you have to use the compressor start VI to enable the compressor. You cannot use the Open Compressor and then use the Relay Set function.

So yea... if you're still stuck, post some code up and let us have a look. As a hint, you can use Snipping Tool in Windows Vista, 7, and I think 8. You can also just 'copy' your code (Ctrl + C) and paste it into Paint to copy just the code you want to share. You can select multiple items in LabVIEW by holding down the Shift Key and Left Clicking your mouse button, or Click-n-dragging a selector to the code you want to select. Be sure to select the wires as well... it's hard to debug if you don't have wires in your screen shots.
__________________
Taking a break from mentoring for a few years. (Is that allowed?!?)

Controls Mentor
@rnazaretian

Previous teams:
Team Fusion, FRC 364
Garnet Squadron, FRC 4901
  #9   Spotlight this post!  
Unread 11-02-2013, 04:31
yogiyogi yogiyogi is offline
Registered User
FRC #2679
 
Join Date: Feb 2011
Location: Israel
Posts: 12
yogiyogi is an unknown quantity at this point
Re: Compressor With Spike Problems

Quote:
Originally Posted by RyanN View Post
If you don't have your pressure sensor connected (electrically), it will not run.

The pressure switch is a normally closed switch, meaning, in a normal state, it will close (make a connection) to both sides of the switch, causing current to flow from one side of the pressure switch to the other. Because of this, you must have it plugged into the DSC in order to work.

If you do not have any LEDs on your turning on in the relay area, that means you most likely have a software issue.

Can you post your code? Include the begin code, and wherever you're switching the compressor on.

If you want to debug your code, make sure you're using the same reference name throughout your code. Compressor and Compresor are not the same, also Compressor and compressor are not the same. The reference name is case and spelling sensitive. If they are not EXACTLY the same, it won't work.

If you're using the compressor start block, you have to use the compressor start VI to enable the compressor. You cannot use the Open Compressor and then use the Relay Set function.

So yea... if you're still stuck, post some code up and let us have a look. As a hint, you can use Snipping Tool in Windows Vista, 7, and I think 8. You can also just 'copy' your code (Ctrl + C) and paste it into Paint to copy just the code you want to share. You can select multiple items in LabVIEW by holding down the Shift Key and Left Clicking your mouse button, or Click-n-dragging a selector to the code you want to select. Be sure to select the wires as well... it's hard to debug if you don't have wires in your screen shots.
How would the pressure sensor will affect the relay/compressor if it is only connected to the DIO?
When does the DSC LED is supposed to turn on?
  #10   Spotlight this post!  
Unread 11-02-2013, 07:30
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Compressor With Spike Problems

yogi,
You need to use the supplied compressor code and connect the pressure switch as stated above. Once you have that, the compressor will turn on when the robot is enabled. The LEDs on the DSC tell you a lot about what is going on there. The three LEDs for power all must be on and bright. The LEDs in the relay area will tell you the status of the relay outputs. (PWM cables do go bad) and the the RSL has an LED (next to the RSL connector) that should flash the same as the big orange light you add to your robot.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #11   Spotlight this post!  
Unread 11-02-2013, 09:49
kenfox kenfox is offline
Registered User
FRC #3322 (Eagle Imperium)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Ann Arbor, MI
Posts: 52
kenfox is a glorious beacon of lightkenfox is a glorious beacon of lightkenfox is a glorious beacon of lightkenfox is a glorious beacon of lightkenfox is a glorious beacon of light
Re: Compressor With Spike Problems

Our programming team got to debug a problem where the compressor wasn't turning on. We tracked it down to a bad spike. The PWM cable was really loose fitting into the spike--we didn't have time to figure out what part of the spike was bad, but those cable connections don't seem very robust.

Here's how we debugged:
  1. verify software matches physical wiring
  2. verify compressor runs by hooking it to battery
  3. verify bus voltage at the spike
  4. verify pressure switch works by watching switch with multimeter while the system pressurizes (I didn't know if it was normally open or closed)
  5. verify the control signal to spike with signal analyzer (a multimeter would work--it's a PWM cable, but signal is simple on/off not RC PWM)
  6. replace the spike
  #12   Spotlight this post!  
Unread 11-02-2013, 10:06
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,033
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Compressor With Spike Problems

Just to add a little more fun to the thread, we had a similar problem with our compressor not running, it turns out we had a bad relay channel on the digital sidecar. This was on our prototype robot, using an old digital sidecar. Usually this won't happen with new parts....but you never know!
  #13   Spotlight this post!  
Unread 11-02-2013, 10:13
chris.boyle's Avatar
chris.boyle chris.boyle is offline
Programming Mentor
FRC #0068 (Truck Town Thunder)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Truck Town Thunder (Brandon)
Posts: 36
chris.boyle is on a distinguished road
Re: Compressor With Spike Problems

We kept having the same problem. It was very intermittent. Sometimes the compressor would run, sometimes not. We swapped out the digital side car and then checked each of the cables to ensure that they were not broken in the middle. In the end we rewrote the Compressor Control loop to something much simpler.

See attachment Compressor.bmp for our code.

The compressor runs correctly now.

Good luck.
Attached Images
File Type: bmp Compressor.bmp (738.2 KB, 78 views)
__________________
2014 Chairman's Award--Michigan State Championship
2014 Chairman's Award--Waterford District
2014 Winner--Great Lakes Bay District
2013 Chairman's Award--Kettering District
2012 Championship Division Finalists--Thanks 330 and 639
  #14   Spotlight this post!  
Unread 11-02-2013, 11:02
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is online now
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,745
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Compressor With Spike Problems

All,

It seems like yogi knows he doesn't have a pressure switch and can't use the compressor control loop at the moment. I think he's just trying to get the compressor to run to check out his relay wiring and the compressor. So he's just running the compressor as you would for any other Spike actuated motor. I presume he'll rectify the pressure switch and control loop issues one he gets a pressure switch.

yogi,

If you could upload your Begin.vi and Teleop.vi or post screenshots, that would really help. Other questions: What's your robot signal light doing while you're trying this? Do you have drive code or something that IS working and this compressor relay is the only thing that's not? Do you have 12V power wired to you sidecar? It doesn't really work without power.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #15   Spotlight this post!  
Unread 19-02-2013, 09:55
jcbc's Avatar
jcbc jcbc is offline
Registered User
AKA: Julie
no team
 
Join Date: Aug 2010
Rookie Year: 2011
Location: PA
Posts: 53
jcbc is a jewel in the roughjcbc is a jewel in the roughjcbc is a jewel in the roughjcbc is a jewel in the rough
Re: Compressor With Spike Problems

Quote:
Originally Posted by chris.boyle View Post
We kept having the same problem. It was very intermittent. Sometimes the compressor would run, sometimes not. We swapped out the digital side car and then checked each of the cables to ensure that they were not broken in the middle. In the end we rewrote the Compressor Control loop to something much simpler.

See attachment Compressor.bmp for our code.

The compressor runs correctly now.

Good luck.
Thank you very much for posting this! We have been having intermittent compressor issues with the simplest code and we checked wiring, DSC, modules and breakouts, etc. We will be trying your replacement for the compressor control loop tonight before bagging.

[EDIT] Update after running the code posted by Chris: So far, so good! (Yay!) I want to see it run consistently for another programming session to be certain, but it looks like the WPI compressor control loop VI does not work.

Last edited by jcbc : 19-02-2013 at 23:38.
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 22:19.

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