Go to Post Calling all grandmas! We need 3000 crocheted ropes for team's! - Jon Stratis [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-02-2014, 11:40
K519_1325's Avatar
K519_1325 K519_1325 is offline
Registered User
AKA: Karan Guglani
FRC #1325 (Inverse Paradox)
Team Role: Alumni
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Mississauga Ontario
Posts: 16
K519_1325 is an unknown quantity at this point
Relay Signal not working

We are having problems with our relays. We used to having our relays working, but they have all suddenly stopped working, on both different robots.

The spike is getting power, as there is the LED indicator is orange. The brand new VEX Pro spike is connected to our compressor, with the PWM Cable running to Relay 3 on the digital sidecar. We have the ribbon cable running form the digital sidecar to the module in slot 2 on the cRio, with the terminal screws in. The code on for the spike is as follows. The code below is only for the spike and the joystick.

Code:
class RobotDemo : public IterativeRobot
{
Relay *manualCompressor;
Joystick *primaryController; 
public: 
RobotDemo(){
manualCompressor = new Relay(3);
primaryController = new Joystick(1);
}
void RobotDemo::TeleOpPeriodic(){ 
if(primaryController->GetRawButton(6)){ 
manualCompressor->Set(Relay::kForward);
}
else if(primaryController->GetRawButton(5)){ 
manualCompressor->Set(Relay::kReverse);
}
else{ 
manualCompressor->Set(Relay::kOff);
}
}
Every subsystem that runs off of a victor on our robot (i.e. our drivetrain) work just fine. I even put an indication on the Smart Dashboard that told me when the button assigned to the spike was pressed. I put that code inside the if statement for the spike, so I know that the if statement is executing.

We have no idea what is wrong with our relays, and would really appreciate some help and ideas.

Thanks,
__________________
http://www.team1325.com
  #2   Spotlight this post!  
Unread 15-02-2014, 19:06
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: Relay Signal not working

Is some other part of your code trying to control Relay 3 at the same time?
  #3   Spotlight this post!  
Unread 15-02-2014, 23:30
tgross35 tgross35 is offline
Registered User
FRC #4810 (I Am Robot)
Team Role: Electrical
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Michigan
Posts: 23
tgross35 is an unknown quantity at this point
Re: Relay Signal not working

I'd say that it's probably some slip of the mind of your electrical guy (I have many.) Just make sure that 1. Your cable is connected to relay three counting up from 1 (parallax makes it hard to be sure) 2. Your signal is in the correct direction (check with a voltmeter) 3. Your cable has continuity for each of the respective pins (check with an ohmmeter or with a known good PWM cable) 4. Your cable is wired correctly, make sure the connector isn't flipped (simple mistake but easy fix.)
Good luck
  #4   Spotlight this post!  
Unread 16-02-2014, 09:29
ArzaanK ArzaanK is offline
Registered User
FRC #1325 (Inverse Paradox)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Mississauga, Ontario, Canada
Posts: 40
ArzaanK is an unknown quantity at this point
Re: Relay Signal not working

Quote:
Is some other part of your code trying to control Relay 3 at the same time?
No, nothing else on our robot is trying to control relay 3 at the same time.

Quote:
I'd say that it's probably some slip of the mind of your electrical guy (I have many.) Just make sure that 1. Your cable is connected to relay three counting up from 1 (parallax makes it hard to be sure) 2. Your signal is in the correct direction (check with a voltmeter) 3. Your cable has continuity for each of the respective pins (check with an ohmmeter or with a known good PWM cable) 4. Your cable is wired correctly, make sure the connector isn't flipped (simple mistake but easy fix.)
Everything you have mentioned has already been tested. We've tried adjusting pretty much everything electrically.
__________________
Arzaan Khairulla
Programmer/Driver
2013 Greater Toronto Regional East Winners with 1114 and 2056
2013 Galileo Division
  #5   Spotlight this post!  
Unread 16-02-2014, 13: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: Relay Signal not working

What lights are lit on the Digital Sidecar when you're trying to set the relay Forward? When you're trying to set the relay Reverse?

What is the big orange Robot Signal Light doing throughout the process?
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 19:32.

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