Go to Post Sleep... what is this sleep you speak of? - Choi9111 [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 20-02-2012, 11:46
jeremy5561 jeremy5561 is offline
Registered User
FRC #0919
 
Join Date: Jan 2012
Location: Canada
Posts: 26
jeremy5561 is an unknown quantity at this point
Spike not Working

We plugged in the spike and we were trying to operate it with the example relay code.

We have it connected to the 40 A breaker on the PD board. The light on the spike is solid orange. The other side is connected to an am-0914 gearmotor. A black/red/white cable is connected to the relay1 port on the digital sidecar. The black wire is facing towards the edge of the sidecar and the white wire is facing towards the edge of the relay.

The example relay code was deployed and ran. It is set to dio:digital module1 relaychannel:relay1 relaydirection: both directions. RelayValue is set to forward. The light stays solid orange.

The relay light on the digital sidecar is not lit. We are however able to drive the robot with the speed controllers connected to the digital sidecar when we deploy the default crio program
  #2   Spotlight this post!  
Unread 20-02-2012, 12:32
SenorZ's Avatar
SenorZ SenorZ is offline
Physics Teacher
AKA: Tom Zook
FRC #4276 (Surf City Vikings)
Team Role: Teacher
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Huntington Beach, California
Posts: 946
SenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond repute
Re: Spike not Working

We had a problems with our spike not working either. Turned out the 3-wire cable just wasn't getting a good connection. When we opened the spike and plugged in to the terminal without the shell it worked fine.

Worth a shot.
  #3   Spotlight this post!  
Unread 20-02-2012, 12:58
EricH's Avatar
EricH EricH is online now
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,824
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Spike not Working

You could also have a problem with the current running to the Spike. Spikes go on 20A breakers, which don't fit in the 40A slots.
Quote:
[R43]

All active PD Board branch circuits shall be protected from overload with an appropriate value auto resetting Snap Action circuit breaker. Specifically,
  • Each speed controller branch circuit must be protected by one and only one 20-amp, 30-amp, or 40-amp circuit breaker on the PD Board (from the KOP or identical equivalent). No other electrical load can be connected to the breaker supplying this circuit.
  • Each relay module branch circuit must be protected with one and only one 20-amp circuit breaker on the PD Board (from the KOP or identical equivalent). No other electrical load can be connected to the breaker supplying this circuit.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #4   Spotlight this post!  
Unread 20-02-2012, 14:12
jeremy5561 jeremy5561 is offline
Registered User
FRC #0919
 
Join Date: Jan 2012
Location: Canada
Posts: 26
jeremy5561 is an unknown quantity at this point
Re: Spike not Working

I tried operating a jaguar on pwm 8. doesn't work either. We also connected it to 20 amp. Still doesn't work.
Click image for larger version

Name:	Untitled.png
Views:	23
Size:	86.4 KB
ID:	12011Click image for larger version

Name:	Untitled1.png
Views:	27
Size:	111.0 KB
ID:	12012

Last edited by jeremy5561 : 20-02-2012 at 14:17.
  #5   Spotlight this post!  
Unread 20-02-2012, 14:15
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Spike not Working

Jeremy,
Have you checked that the ribbon cable connected to the digital I/O on the Crio is correctly assembled? Some of the cables were incorrectly assembled and this prevents correct operation of the DSC. If the relay LED on the DSC doesn't change, the Spike will not change either.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #6   Spotlight this post!  
Unread 20-02-2012, 14:49
SenorZ's Avatar
SenorZ SenorZ is offline
Physics Teacher
AKA: Tom Zook
FRC #4276 (Surf City Vikings)
Team Role: Teacher
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Huntington Beach, California
Posts: 946
SenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond repute
Re: Spike not Working

We tried something like this when our relay wasn't working:

1. Open relay in begin.vi, name it
2. Set relay value in periodic tasks.vi using a loop that cycles through the four available states of the relay every 2 seconds.
3. Load code and enable.
4. Relay SHOULD cycle through light colors every two seconds.

I attaching a pic and a copy-and-paste vi

My co-mentor came up with this method.
Attached Thumbnails
Click image for larger version

Name:	relaytest.JPG
Views:	35
Size:	30.9 KB
ID:	12014  
Attached Files
File Type: vi copyintoPerTask.vi (12.2 KB, 4 views)
  #7   Spotlight this post!  
Unread 20-02-2012, 16:11
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: Spike not Working

Quote:
Originally Posted by jeremy5561 View Post
We plugged in the spike and we were trying to operate it with the example relay code.
With the exception of the illegally large circuit breaker, your description of the wiring seems fine to me.

Did you remember to use the Driver Station to enable the robot after you ran the example program?
  #8   Spotlight this post!  
Unread 20-02-2012, 16:14
jeremy5561 jeremy5561 is offline
Registered User
FRC #0919
 
Join Date: Jan 2012
Location: Canada
Posts: 26
jeremy5561 is an unknown quantity at this point
Re: Spike not Working

Yeah we did. Some very odd things are happening. After enabling TeleOp and driving the robot around for 5-10 minutes, the sidecar relay lights turn on.

Relays 2-6 turn red and green
realy 1 turns green
the spike connected to the relay turns off (removing the wire turns the light on the relay back on)

I did not use relays anywhere else in my code, that I know of. Anyone seen this behaviour before? Maybe the module is damaged.
  #9   Spotlight this post!  
Unread 20-02-2012, 16:38
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,019
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Spike not Working

Verify the 12 volt supply to the sidecar from the PD Board. Are all 3 green power supply lights on the sidecar on once the cRio boots?
__________________

I am N2IRZ - What's your callsign?
  #10   Spotlight this post!  
Unread 20-02-2012, 16:42
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: Spike not Working

The Dashboard also reports the commanded state of the relays. Does it agree with the red and green LEDs on the Digital Sidecar? If not, you most likely have a broken sidecar.
  #11   Spotlight this post!  
Unread 20-02-2012, 16:49
jeremy5561 jeremy5561 is offline
Registered User
FRC #0919
 
Join Date: Jan 2012
Location: Canada
Posts: 26
jeremy5561 is an unknown quantity at this point
Re: Spike not Working

The dashboard doesn't seem to move at all even when the robot is being driven. All 3 lights on sidecar are green. We took the robot home to work on and didn't pack extra sidecar, I'll try replacing sidecar and maybe the module if we have another one at school tomorrow.
  #12   Spotlight this post!  
Unread 21-02-2012, 22:40
jeremy5561 jeremy5561 is offline
Registered User
FRC #0919
 
Join Date: Jan 2012
Location: Canada
Posts: 26
jeremy5561 is an unknown quantity at this point
Re: Spike not Working

I found the problem. The DB37 ribbon connection was bad. We switched the cable and it was all good. I only just came home to look up the kit of parts and found the notice about rework needed on that cable...

That wasted a good eight hours of my time. Switching the cable and ten minutes of programming later, everything was fixed.
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:45.

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