Go to Post I've never encountered a motor as forgiving as a CIM - Stall them for 20 seconds, run them hot on a short turnaround, or call them mean names in between matches and they'll just keep doing their thing. - thefro526 [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 15-01-2013, 19:12
Ganondalf Ganondalf is offline
Registered User
FRC #4665
 
Join Date: Jan 2013
Location: Minnesota
Posts: 48
Ganondalf is an unknown quantity at this point
Compressor with Pressure Switch

Hello, so I have a compressor wired and programmed to Relay 1, with a pressure switch wired to DIO 1, but for some reason... it doesnt seem to work. However, when I have the compressor is wired into DIO 1 (With the pressure switch unplugged completely) the compressor runs. Does anyone know why this is? The Relay does have power going in, but none out when the compressor is hooked into relay 1 with switch into dio 1. Thanks!
  #2   Spotlight this post!  
Unread 15-01-2013, 21:35
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: Compressor with Pressure Switch

How are you programming the compressor? What language are you using?

Did you remember to enable the robot?
  #3   Spotlight this post!  
Unread 15-01-2013, 22:32
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Compressor with Pressure Switch

Quote:
Originally Posted by Alan Anderson View Post
How are you programming the compressor? What language are you using?

Did you remember to enable the robot?
As a supplementary note, you should not be wiring a compressor to a GPIO (alt. DIO) pin; nor should you be wiring it to a relay output. You should be wiring the compressor to a Spike controlled by a relay output.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #4   Spotlight this post!  
Unread 19-01-2013, 19:08
Sparks333's Avatar
Sparks333 Sparks333 is offline
Robotics Engineer
AKA: Dane B.
FRC #1425 (Wilsonville Robotics)
Team Role: Alumni
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Wilsonville, Oregon
Posts: 184
Sparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of light
Send a message via AIM to Sparks333
Re: Compressor with Pressure Switch

I can't remember exactly (been a few years), but if memory serves the pressure switch is normally closed (NC), or is shorted when the pressure is lower than the threshold pressure. This implies that the DIO port controlling the compressor is set up so that when it sees a logic high, it turns the compressor on - since the DIO ports have internal pullups, disconnecting the pressure sensor would be the same thing as saying the pressure switch is in its open state. My guess is that the controller needs to be inverted, so a logic low on DIO 1 corresponds to compressor on - the sensor definitely needs to be hooked between ground and signal - check the markings on the sensor itself for more info.

As to why the compressor works when you plug it into the DIO port - the Spike relays don't use the PWM pinout schemes like the Vics do (namely, ground, +5, signal). The ground pin is still ground, but the other two pins are supposed to be signal, and by changing them around you can get one of 4 states (2 of them are 'off'). Plugging a Spike into a Digital IO (which would have the same pinout as a PWM pin) would hook one signal line into +5 and one signal line into the digital output, which, assuming the DIO port was driven low, corresponds to an 'on' state. It would then turn off if the DIO line was pulled high. It's nifty, but as slijin points out, really shouldn't be used in this manner.

If that doesn't solve your problem, check your pressure sensor with a voltmeter - make sure that when it's shorting when it should be shorting and opening when it should be opening. If you play your cards right, shorting should correspond to a DIO logic 0, and opening should correspond to a DIO logic 1. If it doesn't work like that, you might have a bum sensor.

Sparks
__________________
ICs do weird things when voltage is run out of spec.

I love to take things apart. The fact that they work better when I put them back together it just a bonus.

http://www.ravenblack.net/random/surreal.html
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 20:13.

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