Go to Post The 48 defensive DNA lies dormant in the drive train. It's impossible to forget. - Koko Ed [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 26-01-2012, 22:04
Slothbron's Avatar
Slothbron Slothbron is offline
Registered User
AKA: Nathan
FRC #3216 (Missoula Robotics Team)
Team Role: Engineer
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Montana
Posts: 35
Slothbron is an unknown quantity at this point
Air Compressor Will Not Initiate

So we have been try to get our air compressor to start when we enable the robot. We believe the wiring is all correct for it and the pressure switch. Now we are wondering if there is something wrong with the code or if it's something else . Let me now what you think.
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	75
Size:	25.1 KB
ID:	11593  
__________________
MRT 3216
2010- Salt lake City Highest Rookie Team seed
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2012, 07:48
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Air Compressor Will Not Initiate

The WPI code for the compressor was changed a bit to be easier to follow and debug. Please go to the Periodic tasks VI and enable or remove the disable structure around the compressor control code.

With the new WPI code, instead of having an invisible control loop, you now put it into your project and tell it what compressor to control.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2012, 22:01
Slothbron's Avatar
Slothbron Slothbron is offline
Registered User
AKA: Nathan
FRC #3216 (Missoula Robotics Team)
Team Role: Engineer
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Montana
Posts: 35
Slothbron is an unknown quantity at this point
Re: Air Compressor Will Not Initiate

So we checked this today and we are still unable to get the air compressor to run. Now we are believing it might be something else, we plan on doing some major trouble shooting tomorrow.
__________________
MRT 3216
2010- Salt lake City Highest Rookie Team seed
Reply With Quote
  #4   Spotlight this post!  
Unread 28-01-2012, 01:02
Dkt01's Avatar
Dkt01 Dkt01 is offline
Programming Mentor
AKA: David
FRC #1756 (Argos)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Peoria, Il
Posts: 145
Dkt01 will become famous soon enough
Re: Air Compressor Will Not Initiate

We are having the same issue. After some quick tests, we realized that if the pressure gauge is hooked up to the (+) and signal pins for one of the GPIO ports, the cRio always recognizes a "true" or "high" input. The GPIO pins seem to have pull-up resistors, so the only way to change the input value is to short (-) and signal. We are going to test this setup tomorrow (fingers crossed!).

Does anyone have any other ideas or confirmations for what we found?

EDIT: This worked.

Last edited by Dkt01 : 28-01-2012 at 22:08. Reason: Update
Reply With Quote
  #5   Spotlight this post!  
Unread 28-01-2012, 17:05
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: Air Compressor Will Not Initiate

Quote:
Originally Posted by Slothbron View Post
We believe the wiring is all correct for it and the pressure switch.
You believe it's wired properly. Why should we believe it? The proper wiring is pretty simple. Tell us how you've done it so we can confirm it. It's often best to double-check the simple stuff before putting forth much effort trying to think of what else might be wrong.
Reply With Quote
  #6   Spotlight this post!  
Unread 29-01-2012, 01:08
Slothbron's Avatar
Slothbron Slothbron is offline
Registered User
AKA: Nathan
FRC #3216 (Missoula Robotics Team)
Team Role: Engineer
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Montana
Posts: 35
Slothbron is an unknown quantity at this point
Re: Air Compressor Will Not Initiate

Quote:
Originally Posted by Alan Anderson View Post
You believe it's wired properly. Why should we believe it? The proper wiring is pretty simple. Tell us how you've done it so we can confirm it. It's often best to double-check the simple stuff before putting forth much effort trying to think of what else might be wrong.
Ok so we have a pwm cable coming from the spike relay of the air compressor to relay spot 1 on the sidecar. Then the pressure switch is wired to the DIO spot 1 on the sidecar. Specifically the signal pin and + pin.
__________________
MRT 3216
2010- Salt lake City Highest Rookie Team seed
Reply With Quote
  #7   Spotlight this post!  
Unread 29-01-2012, 02:42
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: Air Compressor Will Not Initiate

Quote:
Originally Posted by Slothbron View Post
Ok so we have a pwm cable coming from the spike relay of the air compressor to relay spot 1 on the sidecar. Then the pressure switch is wired to the DIO spot 1 on the sidecar. Specifically the signal pin and + pin.
For a switch input to be read by the program, you need to use the signal pin and the ground (-) pin. The Digital Sidecar inputs are already at +5 volts when nothing is connected to them. You have to pull them low in order to register a change.
Reply With Quote
  #8   Spotlight this post!  
Unread 29-01-2012, 13:38
Slothbron's Avatar
Slothbron Slothbron is offline
Registered User
AKA: Nathan
FRC #3216 (Missoula Robotics Team)
Team Role: Engineer
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Montana
Posts: 35
Slothbron is an unknown quantity at this point
Re: Air Compressor Will Not Initiate

Ok so you fixed the pins now we have one wire going to the signal and one to the negative. But it will still not start when we enable the robot.
__________________
MRT 3216
2010- Salt lake City Highest Rookie Team seed
Reply With Quote
  #9   Spotlight this post!  
Unread 29-01-2012, 18:02
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: Air Compressor Will Not Initiate

Quote:
Originally Posted by Slothbron View Post
Ok so you fixed the pins now we have one wire going to the signal and one to the negative. But it will still not start when we enable the robot.
I assume you followed Greg's advice to make the compressor control loop active in Periodic Tasks?

Disconnect the pressure switch from the Digital Sidecar and measure continuity between the contacts. They should be shorted together when the pressure is too low. If there is an open circuit, replace the switch. Check the Digital Sidecar and look to see whether the relay is being asked to turn on (there should be a green LED lit next to the pins for relay #1). If it is, look at the LED on the Spike (it should change from yellow to green when the robot is enabled).
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:26.

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