Go to Post It doesn't matter what goes wrong as long as you have fun. We all thought this was one of our best trips, even though we were second to last in our divison. - afowl [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:22
wildabyss wildabyss is offline
Registered User
#0919
 
Join Date: Feb 2005
Location: Toronto
Posts: 10
wildabyss is an unknown quantity at this point
coding problem!! HELP!

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

What's wrong guys? NEED HELP!!!
  #2   Spotlight this post!  
Unread 21-02-2005, 20:48
D.J. Fluck
 
Posts: n/a
Re: coding problem!! HELP!

Check your spike...make sure its working. Dig out a DMM and check continuity through the circuit from the breaker all the way to the solenoid
(with the robot powered off). Also, check to make sure your PWM cable is attached to the spike...those things can be a pain in the neck.

If your software compiled correctly it really shouldn't be a software error, its more likely to be a wiring issue


Just something to try if you get time or for future reference:
...also if you are just using a single double solenoid you can make life a lot easier and your robot lighter by using a single solenoid.

Tie both commons to a common ground point on your control panel, and then tie the positive lead from the side which causes the spike to shoot out to M+ and the red positive lead on the side that causes it to shoot in to M-.

then hook a single PWM cable up to PWM 1 and change your code to this:

relay1_fwd = p1_sw_aux1;
relay1_rev = p1_sw_aux2;
  #3   Spotlight this post!  
Unread 21-02-2005, 21:06
wildabyss wildabyss is offline
Registered User
#0919
 
Join Date: Feb 2005
Location: Toronto
Posts: 10
wildabyss is an unknown quantity at this point
Re: coding problem!! HELP!

Thanks for replying.

But the problem is...the buttons on the joy sticks don't work at all! I receive absolutely no feedback from those buttons...and I'm very sure that those buttons were aliased and loaded (since they were in ifi_aliases)

Does your buttons work? It's messing my mind up!
  #4   Spotlight this post!  
Unread 21-02-2005, 21:09
D.J. Fluck
 
Posts: n/a
Re: coding problem!! HELP!

check the PWM cable and make sure it is properly attached and then check the spike...it should react....

Then again, not to insult or offend you, but is the joystick plugged into port 1?

If all of those are ok, my guess is that you have a bad spike
  #5   Spotlight this post!  
Unread 21-02-2005, 21:19
wildabyss wildabyss is offline
Registered User
#0919
 
Join Date: Feb 2005
Location: Toronto
Posts: 10
wildabyss is an unknown quantity at this point
Re: coding problem!! HELP!

Not only that the pneumatics doesn't respond to the buttons, the printf command didn't even receive a signal from the buttons (although the analog mapping works)

So I have only one last deduction, either our joysticks are broken (all four of them?) or our RC is broken or our User Interface is broken (we're screwed)

Is there any other possibility?
  #6   Spotlight this post!  
Unread 21-02-2005, 21:30
D.J. Fluck
 
Posts: n/a
Re: coding problem!! HELP!

Before you decide that the joysticks are shot check the pin outs of the joystick analog1 and 2 switches using a DMM and run a continuity test

First test put the red lead on pin 10 and the black lead on pin 12, then push the button aux 1 button...if you have continuity, the switch works

Test 2, keep the black lead on pin 12 and put the red lead on pin 14. Push aux 2 and see if you have continuity.
  #7   Spotlight this post!  
Unread 21-02-2005, 21:38
wildabyss wildabyss is offline
Registered User
#0919
 
Join Date: Feb 2005
Location: Toronto
Posts: 10
wildabyss is an unknown quantity at this point
Re: coding problem!! HELP!

Without the power connected to the joystick, how can i test the circuit?
  #8   Spotlight this post!  
Unread 21-02-2005, 21:48
ConKbot of Doom ConKbot of Doom is offline
Team Alumni
FRC #1184 (Cobra Robotics)
Team Role: Leadership
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Maryland
Posts: 153
ConKbot of Doom has a spectacular aura aboutConKbot of Doom has a spectacular aura aboutConKbot of Doom has a spectacular aura about
Re: coding problem!! HELP!

The joysticks only need +5v for each analog axis. The buttons connect the pin for the button to ground.
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
Pneumatic Coding Problem lasoaaro Pneumatics 11 18-02-2005 12:11
Programming Problem: Extremely Frustrating chantilly_team Programming 19 12-02-2005 23:00
Ok one problem cantwell03 Programming 3 13-02-2003 07:28
The problem with scouting... archiver 2001 10 23-06-2002 23:49
Major problem with chipphua motors aka Scott White Motors 18 19-03-2002 19:44


All times are GMT -5. The time now is 00:15.

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