Go to Post *puts on flame suit and goes to hide in the corner* :D - Wayne Doenges [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-02-2010, 09:53
kramarczyk's Avatar
kramarczyk kramarczyk is offline
is getting his kicks.
AKA: Mark Kramarczyk
FRC #3096 (Highlanders)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Sterling Heights, MI
Posts: 602
kramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond repute
No PWM outputs

I am running into a problem where no PWM output appears to be generated and consequently no drive motors are turning.

Background:
We are using Labview.
Jan 17 - I took the classmate and installed the Labview update then the DS update. I then reimaged the cRIO to v19. I tested this set-up on last year’s chassis and was able to drive the robot via joystick. The default project was built and deployed to the cRIO. Driving ability was again verified.

Jan 20ish – Last year’s chassis was stripped of its components and they were placed in cardboard box for re-use in this year’s chassis.

Feb 2 – Components are installed in this year’s chassis. Initial test demonstrated an inability to drive.

Symptoms:
No drive motors are turning (4 motor chassis). The Jags (4) are all flashing amber. The RSL is active, flashing in disabled and short flashing in teleop enabled.

Troubleshooting:
- Verified that the robot was enabled
- Verified that the robot had not been E-stopped
- Tethered the robot
- Verified that all PWM’s (4) are seated in the jags and DSC.
- Checked the continuity of all PWM conductors
- Replaced DSC
- Replaced cable between digital module and DSC
- Checked the interface between the cRIO and the digital module for bent pins or debris
- Attempted soft push of code from Classmate for 4 motor configuration
- Verified that gyro data returned to main front panel corresponds to gyro inputs (it changes when I manually turn the robot) and joystick inputs
- The PWM outputs reported to the dashboard correspond to the joystick inputs
- Reimaged cRIO to v19… again
- Created and soft pushed a default robot project without modification. Only the main front panel was opened to facilitate this.
- Verified that user watchdog is being fed. At beginning of Teleop VI

Conclusions to this point:
The issue is not downstream of the DSC. I think that simultaneous failure of 4 parallel components unlikely. The data stream through the digital module and DSC is functional by virtue of the correctly operating RSL. The error is not in my code as I have not written any. The DS is operating nominally by virtue of its ability to change the operation of the RSL. The cRIO is passing the RSL, gyro and joystick data back to the dashboard, so it appears to be operating nominally.

Next Steps:
<edit>Verify DCS supply voltage</edit>
Swap the digital module out with the spare
Repeat above with different laptop
Find a team that will allow me to borrow the cRIO to swap ours out

I am basically throwing parts at this to troubleshoot and running out of things to throw at it. It appears to be a system watchdog issue, but I don’t know how to address it. What am I missing.

Disclaimer: I am an ME and am not sure that electrons really exist.
__________________
Mark

Brick walls are for other people. - Randy Pausch

Last edited by kramarczyk : 05-02-2010 at 10:24. Reason: added next step
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2010, 10: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,112
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: No PWM outputs

Quote:
Originally Posted by kramarczyk View Post
The DS is operating nominally by virtue of its ability to change the operation of the RSL.
Make sure that it's getting 12 volts correctly. Can you verify that the three power LEDs on the Digital Sidecar are lit? Can you measure the voltage on its Wago connector?
Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2010, 10:23
kramarczyk's Avatar
kramarczyk kramarczyk is offline
is getting his kicks.
AKA: Mark Kramarczyk
FRC #3096 (Highlanders)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Sterling Heights, MI
Posts: 602
kramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond repute
Re: No PWM outputs

Quote:
Originally Posted by Alan Anderson View Post
Make sure that it's getting 12 volts correctly. Can you verify that the three power LEDs on the Digital Sidecar are lit? Can you measure the voltage on its Wago connector?
I measured 12.45 at the Jag and 12.45 was reported back to the DS, but I didn't check the DSC power explicitly. I will add that to my list for when I get back into the shop.
__________________
Mark

Brick walls are for other people. - Randy Pausch
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2010, 11:06
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,800
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: No PWM outputs

My only suggestions are to mod the default code to try slot 6 with a different Digital Module, and to verify the PWM cable connection orientation at both ends.

P.S. Forgot the basic one - is your battery fully charged

Have you opened up your cRIO to clean it out and add the gaskets?

Symptoms show you only seem to be missing PWM communication between the DSC and the Jags.
With the default project only pwm 1 & 2 are live - the other two should cause Jag blink.

With the correct Teleop long-on/short-off blink the System Watchdog isn't coming into play.

P.S. Even Heisenberg was uncertain about electrons...
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 05-02-2010 at 11:47.
Reply With Quote
  #5   Spotlight this post!  
Unread 05-02-2010, 12:54
kramarczyk's Avatar
kramarczyk kramarczyk is offline
is getting his kicks.
AKA: Mark Kramarczyk
FRC #3096 (Highlanders)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Sterling Heights, MI
Posts: 602
kramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond repute
Re: No PWM outputs

Quote:
Originally Posted by Mark McLeod View Post
My only suggestions are to mod the default code to try slot 6 with a different Digital Module, and to verify the PWM cable connection orientation at both ends.
I verified the orientation, both independantly and with a third party. We have some black dots at the connection points help error proof that.

Quote:
P.S. Forgot the basic one - is your battery fully charged
. I thought 12.45V was 'full' enough. Am I mistaken?
Quote:
Have you opened up your cRIO to clean it out and add the gaskets?
I am not sure what you mean by, "open". I took out the modules and checked for debris/bent pins. I have no idea what gasket you are referring to.

Quote:
P.S. Even Heisenberg was uncertain about electrons...
Well, in principle anyway.
__________________
Mark

Brick walls are for other people. - Randy Pausch
Reply With Quote
  #6   Spotlight this post!  
Unread 05-02-2010, 13:00
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,112
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: No PWM outputs

Quote:
Originally Posted by Mark McLeod View Post
Have you opened up your cRIO to clean it out and add the gaskets?
Quote:
Originally Posted by kramarczyk View Post
I am not sure what you mean by, "open". I took out the modules and checked for debris/bent pins. I have no idea what gasket you are referring to.
This really didn't get enough publicity:

http://digital.ni.com/public.nsf/all...257673007935A1
Reply With Quote
  #7   Spotlight this post!  
Unread 05-02-2010, 13:44
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,800
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: No PWM outputs

I keep wondering why nobody has been wondering what those black rubber things with holes in them are for.
My thought there was to inspect for metallic dust collecting inside the chassis, but it's probably a stretch.

I'm sure your battery voltage is fine. I get students measuring the voltage without putting the battery under load all the time and I like to bring it to their attention that what they measure is just surface charge.

Did you redo the DSC power Wago connections as part of your tests?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 05-02-2010, 16:53
kramarczyk's Avatar
kramarczyk kramarczyk is offline
is getting his kicks.
AKA: Mark Kramarczyk
FRC #3096 (Highlanders)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Sterling Heights, MI
Posts: 602
kramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond repute
Re: No PWM outputs

Quote:
Originally Posted by Mark McLeod View Post
Did you redo the DSC power Wago connections as part of your tests?
Nope, I missed that potential source. I hope the fix is that simple.

Where should I have found the gasket rework originally?
__________________
Mark

Brick walls are for other people. - Randy Pausch
Reply With Quote
  #9   Spotlight this post!  
Unread 05-02-2010, 17:03
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,522
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: No PWM outputs

Mark - you have a PM. We're just up the road from you and would be happy to help if you need it.
Reply With Quote
  #10   Spotlight this post!  
Unread 06-02-2010, 22:28
kramarczyk's Avatar
kramarczyk kramarczyk is offline
is getting his kicks.
AKA: Mark Kramarczyk
FRC #3096 (Highlanders)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Sterling Heights, MI
Posts: 602
kramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond repute
Re: No PWM outputs

So, just to close the loop, I got the problem resolved.

After walking through the system with two experienced robot inspectors, a FTA and several other folks a bystander walked up and suggested we plug the PWM's into the PWM output instead of the digital IO. *doh* This just goes to show that
a. sometimes you need someone outside the situation to solve a problem and
b. ME's on cold medicine should not be allowed to wire the robot.

Thanks to everyone for your help and support. I hope that some others found the conversation to be as educational as I did. I will now crawl back under my rock and die of embarrassment.
__________________
Mark

Brick walls are for other people. - Randy Pausch
Reply With Quote
Reply


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
printf to display pwm outputs? iTHOS=awesome C/C++ 4 13-02-2009 10:22
PWM maximum outputs Pneumaticsman NI LabVIEW 4 31-01-2009 16:57
pwm outputs vs. joystick y-axis stephenthe1 Programming 4 01-12-2004 17:29
Trouble with pwm outputs misterikkit Programming 16 17-01-2004 10:56
relay and pwm outputs nick_champ_2 Electrical 1 31-01-2003 13:08


All times are GMT -5. The time now is 23:29.

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