Go to Post yes, we've gone over every possible idea multiple times. No, we're not going to stop. Welcome to FIRST. - logicalyrandom [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 09-03-2009, 15:52
P.Svilans P.Svilans is offline
Registered User
FRC #2994
 
Join Date: Mar 2009
Location: Ottawa
Posts: 6
P.Svilans is an unknown quantity at this point
Pressure Switch Problem?

Hi,

My team right now is having problems with the pressure switch...basically what happens is that we hook it up and the whole thing screws up. I'm guessing that it's not hooked up right (does something like that disable the whole control system?), or some wacky code that's running under the level I'm working with (somewhere deep down in the core classes?).

I'm pretty sure it's the hook up, but I'm just wondering if any other teams experienced any problems of the sort?

It's my schools first year in FIRST...

P.
  #2   Spotlight this post!  
Unread 09-03-2009, 15:55
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Pressure Switch Problem?

One common mistake is to wire it between the 5V and 0V rails on the digital side car. This will short out that power supply, which will put it into a safety shutdown and cut all signals to your motor controllers.

Instead, you should wire it between signal and 0V. A resistor built into the digital sidecar will give it the "power" it needs.
  #3   Spotlight this post!  
Unread 09-03-2009, 16:03
P.Svilans P.Svilans is offline
Registered User
FRC #2994
 
Join Date: Mar 2009
Location: Ottawa
Posts: 6
P.Svilans is an unknown quantity at this point
Re: Pressure Switch Problem?

Thanks for the speedy response!

So do we need to put a jumper on the port we attach the pressure switch to, so it acts like a servo is attached? Because before when we tried to hook it up, we already had the white and black (Sig and (-) ) wires to the pressure switch...

P.
  #4   Spotlight this post!  
Unread 09-03-2009, 16: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: Pressure Switch Problem?

Quote:
Originally Posted by P.Svilans View Post
So do we need to put a jumper on the port we attach the pressure switch to, so it acts like a servo is attached?
That sounds like you're trying to connect the switch to a PWM port. Those ports are outputs only, for servos and speed controllers. You need to wire the switch to a set of DIGITAL I/O pins on the Digital Sidecar.
  #5   Spotlight this post!  
Unread 09-03-2009, 16:22
P.Svilans P.Svilans is offline
Registered User
FRC #2994
 
Join Date: Mar 2009
Location: Ottawa
Posts: 6
P.Svilans is an unknown quantity at this point
Re: Pressure Switch Problem?

Well then I really don't know what to do...We had it connected to the Digital I/O with the Sig(White), and (-)(Black). It still wouldn't work, and would cause the No Code problem on our Driver Station. We had to reimage the cRio every time we tried the pressure switch!
If anyone has any diagrams with exactly how and where every cable from the pressure switch needs to be connected then...it would be a life saver! Or at least narrow down the problems...

P.

P.
  #6   Spotlight this post!  
Unread 09-03-2009, 16:31
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Pressure Switch Problem?

Ah ha! It is not possible to create a No Code error by miswiring your pressure switch (or anything else on the digital side car).

"No code" means that no user code is running on your cRIO. Try deploying the code, instead of running it. A quick search through these forums will tell you how to do that.
  #7   Spotlight this post!  
Unread 09-03-2009, 16:47
P.Svilans P.Svilans is offline
Registered User
FRC #2994
 
Join Date: Mar 2009
Location: Ottawa
Posts: 6
P.Svilans is an unknown quantity at this point
Re: Pressure Switch Problem?

Well...Sorry for wasting your time!

It was a wacky problem, since I don't know why it screwed up...and...well...it works! I'm pretty happy right now...but, it works! No idea how either! I just changed the Digital I/O port to which it's hooked up to from 1 to 10 or something, and...it works!

Thanks to everyone who helped anyways! It actually made us check the wiring...

P.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pressure Switch R.C. Pneumatics 3 24-04-2008 01:54
pressure switch M.Jesus Pneumatics 1 15-02-2008 17:36
[OCCRA]: Problem with the compressor, pressure switch, or Bosch relay. BrittanyV OCCRA 3 16-10-2006 15:42
pressure switch Michael Long Pneumatics 1 11-02-2003 11:21
pressure switch piconysm Technical Discussion 5 14-02-2002 23:15


All times are GMT -5. The time now is 20:33.

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