Go to Post When teams work together to design things rather than going it alone, you can really come up with magnificent machines. - JesseK [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 21-02-2005, 20:40
wildabyss wildabyss is offline
Registered User
#0919
 
Join Date: Feb 2005
Location: Toronto
Posts: 10
wildabyss is an unknown quantity at this point
pneumatics coding problem (or technical)

Isn't p1_sw_aux1 and p1_sw_aux2 the two buttons on the joy stick under the joy stick wheel?

But then why doesn't our code work?

We are using a double solenoid valve to control a cylinder; relay 1 (a spike) is connected to one end of the valve and relay 2(another spike) is connected to the other end of the valve (right? )

So the code goes:

relay1_fwd = p1_sw_aux1;
relay1_rev = 0;
relay2_fwd = p1_sw_aux2;
relay2_rev = 0;

The problem is that the spikes were orange while the circuit breaker was green. The pressure was all right for the cylinder to move (manually) but the joy stick control didn't seem to work at all...

One more thing, our pressure switch won't turn off when the pressure reaches 115 psi, when our code was "relay8_fwd = rc_dig_in18"
But when the code was "relay8_fwd = !rc_dig_in18", there was no pressure in the compressor!! What the...is going on????

What's wrong guys? NEED HELP!!!
  #2   Spotlight this post!  
Unread 22-02-2005, 15:46
Eugene_570 Eugene_570 is offline
Registered User
FRC #0570 (Phoenix)
Team Role: Leadership
 
Join Date: Feb 2005
Rookie Year: 2002
Location: GCHS, NY
Posts: 4
Eugene_570 is an unknown quantity at this point
Re: pneumatics coding problem (or technical)

Quote:
Originally Posted by wildabyss
Isn't p1_sw_aux1 and p1_sw_aux2 the two buttons on the joy stick under the joy stick wheel?

But then why doesn't our code work?

We are using a double solenoid valve to control a cylinder; relay 1 (a spike) is connected to one end of the valve and relay 2(another spike) is connected to the other end of the valve (right? )

So the code goes:

relay1_fwd = p1_sw_aux1;
relay1_rev = 0;
relay2_fwd = p1_sw_aux2;
relay2_rev = 0;

The problem is that the spikes were orange while the circuit breaker was green. The pressure was all right for the cylinder to move (manually) but the joy stick control didn't seem to work at all...

One more thing, our pressure switch won't turn off when the pressure reaches 115 psi, when our code was "relay8_fwd = rc_dig_in18"
But when the code was "relay8_fwd = !rc_dig_in18", there was no pressure in the compressor!! What the...is going on????

What's wrong guys? NEED HELP!!!
First of all, what do you mean by buttons under the wheel. If you're using the joysticks from KOP then, I think, the aux buttons are on the top of the joystick on both sides of the small black joystick.

Then the way to check, see if your spike LED goes green, when you press the button. Then if should activate your silenoid valves if they are wired correctly.

Refer to these:
http://www.chiefdelphi.com/forums/sh...ad.php?t=34006
http://www.chiefdelphi.com/forums/sh...ad.php?t=34965
  #3   Spotlight this post!  
Unread 22-02-2005, 22:16
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: pneumatics coding problem (or technical)

Quote:
Originally Posted by wildabyss
Isn't p1_sw_aux1 and p1_sw_aux2 the two buttons on the joy stick under the joy stick wheel?

But then why doesn't our code work?
Yes, those are the two small buttons on either side of the joystick "hat".

Your code looks okay, though I'm not sure why you're using two separate Spikes instead of the two halves of a single Spike. I assume you have the wiring correct. Since the Spike LEDs remain orange, I would look at where the pwm cables are plugged in to the Spike. We've had such trouble this year trying to get the cables to make a good, consistent connection.

You'll have to do that later, of course. Now, just relax, right?
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
coding problem!! HELP! wildabyss Programming 7 21-02-2005 21:48
Pneumatic Coding Problem lasoaaro Pneumatics 11 18-02-2005 12:11
Programming Problem: Extremely Frustrating chantilly_team Programming 19 12-02-2005 23:00
Pneumatics Problem + possible fix Srkasner Pneumatics 4 24-02-2004 10:39
Full list of teams & competitions archiver 2001 14 24-06-2002 00:52


All times are GMT -5. The time now is 14:47.

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