Go to Post ...and that is exactly why Dave is the coolest nerd I know. - Rich Kressly [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 18-10-2011, 22:21
Sconrad Sconrad is offline
Registered User
AKA: Connor Young
FRC #0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Yorktown
Posts: 40
Sconrad is an unknown quantity at this point
cRIO troubleshooting

So just recently, our 2010 robot here at FIRST Team 122 ceased to respond to our driver station. It said it found communication and robot code, but displayed voltage at 00.00, did not send signals to the pwms and caused the analog breakout chip to overheat and melt itself. After a couple of hours of reimaging the cRIO, redeploying the code, and switching out parts, we determined that the issue lay in the cRIO To make matters worse, we plan to ship this robot in a week or two. However, after long hours of toil, research and experimentation, we managed to make it so out cRIO works, but is not legal in competition. This thread is to help anybody who has similar problems with their robot. In order to keep this thread relatively short, I am going to post what we did as comments
Reply With Quote
  #2   Spotlight this post!  
Unread 18-10-2011, 22:24
Sconrad Sconrad is offline
Registered User
AKA: Connor Young
FRC #0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Yorktown
Posts: 40
Sconrad is an unknown quantity at this point
Re: cRIO troubleshooting

To determine where the problem lay, we tried different batteries, to no effect, different digital sidecars, also changed nothing, different module and wire to connect digital sidecar to cRIO slot 4, still did nothing, and different cRIO, which solved the problem of unresponsive pwms and motors.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-10-2011, 22:25
Sconrad Sconrad is offline
Registered User
AKA: Connor Young
FRC #0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Yorktown
Posts: 40
Sconrad is an unknown quantity at this point
Re: cRIO troubleshooting

For the unresponsive pwms without using a different cRIO: In Labview, you have a choice of DIO slot. It defaults to 4, but can be set to 6. By plugging our digital sidecar into 6 rather than 4 and using motor vis instead of drive vis, we managed to regain motor control. Therefore, we determined that Slot 4 was busted, but not the whole cRIO.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-10-2011, 22:32
Sconrad Sconrad is offline
Registered User
AKA: Connor Young
FRC #0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Yorktown
Posts: 40
Sconrad is an unknown quantity at this point
Re: cRIO troubleshooting

For the battery voltage: the battery voltage is measured at slot 1 on the analog breakout chip. For more info:http://www.usfirst.org/uploadedFiles...reakout(1).pdf When we first discovered the problem, this chip was overheating and it actually melted itself in some places So, the first thing we tried was a new chip. While the new chip did not overheat, the battery voltage was still not being displayed. We tried a new module, but this did not solve the problem. After triple checking that we configured the chip correctly, we determined by process of deduction that the problem once again lay in the slot. We do not use any analog inputs, so we determined that we would just leave out the slot 1. While this is not legal in competition (see R61 of last year's rules), it works for demonstrations, which is all this bot will be used for.
Reply With Quote
  #5   Spotlight this post!  
Unread 18-10-2011, 22:34
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: cRIO troubleshooting

If the Communications and Robot Code light are on, that means that the cRIO has a startup app and image that is self consistent, and that the code is running. If the PWMs aren't being updated, that could be due to a number of reasons.

The analog breakout in slow 1 needs to have power and a breakout in order to return something other than 0.0. I don't know of anything a cRIO can do alone to melt a breakout board, but I could see how a faulty breakout, one that had power and ground pins shorted together might build up enough heat to melt, and clearly wouldn't measure anything useful while that was going on.

If you did something to your cRIO so that it is no longer valid for competition, I'm not sure that sharing that approach with other teams is the most helpful thing to share. Swapping cRIOs actually swaps lots of stuff including FPGA images and other libraries. Did you check what error messages were on the Diagnostics screen? Did you verify that the versions of the cRIO image and FPGA image were as expected?

Finally, would you please explain what was done to the cRIO to "fix" it but make it illegal?

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 18-10-2011, 22:37
Sconrad Sconrad is offline
Registered User
AKA: Connor Young
FRC #0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Yorktown
Posts: 40
Sconrad is an unknown quantity at this point
Re: cRIO troubleshooting

Although I can't say this would work for sure (haven't tried it yet), plugging the analog breakout chip into another slot of the cRIO might give us analog input. If this does work, battery status could be displayed in user messages by accessing analog input 1, which is devoted to battery voltage monitoring. Anywho, hope this helps anybody who runs into the same problems as we did. If you have any questions on how we did what we did, or general comments on things we might try to get it to work, please reply
Reply With Quote
  #7   Spotlight this post!  
Unread 18-10-2011, 22:50
Sconrad Sconrad is offline
Registered User
AKA: Connor Young
FRC #0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Yorktown
Posts: 40
Sconrad is an unknown quantity at this point
Re: cRIO troubleshooting

Quote:
Originally Posted by Greg McKaskle View Post
If the Communications and Robot Code light are on, that means that the cRIO has a startup app and image that is self consistent, and that the code is running. If the PWMs aren't being updated, that could be due to a number of reasons.

The analog breakout in slow 1 needs to have power and a breakout in order to return something other than 0.0. I don't know of anything a cRIO can do alone to melt a breakout board, but I could see how a faulty breakout, one that had power and ground pins shorted together might build up enough heat to melt, and clearly wouldn't measure anything useful while that was going on.

If you did something to your cRIO so that it is no longer valid for competition, I'm not sure that sharing that approach with other teams is the most helpful thing to share. Swapping cRIOs actually swaps lots of stuff including FPGA images and other libraries. Did you check what error messages were on the Diagnostics screen? Did you verify that the versions of the cRIO image and FPGA image were as expected?

Finally, would you please explain what was done to the cRIO to "fix" it but make it illegal?

Greg McKaskle
Thanks for the reply! This is meant to help teams that would use the robot in demonstrations, as we will be using ours, where FIRST rules don't necessarily have to be followed to the letter. The only thing that makes this cRIO ineligible for competition is the fact that Slot 1 is busted (the cRIO took quite a hit in competition in 2010 and so several things were bent, but worked until now). Otherwise, the cRIO works. The point was not to share how we busted the cRIO (we drove up a ramp and the circuitboard flipped over and landed on the cRIO ), but to share how we made it operational so that we would not have to spend several thousand dollars on a new cRIO (we already bought one at the FIRST price, so we would have had to buy one full price). This was not a software issue (I can verify that, the code we were using was a simple tank drive and I ran through it at least 8 times during the debugging process), but a hardware issue. The software was only modified to adjust to the adapted hardware configurations we used. cRIO image and FPGA version were as expected. The only errors on the diagnostics screen had to do with the analog inputs, which was to be expected, seeing as both the cRIO slot that they were attached to and the analog breakout chip were busted. After examining the cRIO, we think the issue is in the board in the cRIO, which is probably cracked or corroded due to the bangs it has taken over the years. I would imagine this is a rare issue based on the difficulty I had finding documentation on a lot of the problems we had. I hoped to offer some documentation through this thread.
Reply With Quote
  #8   Spotlight this post!  
Unread 18-10-2011, 22:52
Sconrad Sconrad is offline
Registered User
AKA: Connor Young
FRC #0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Yorktown
Posts: 40
Sconrad is an unknown quantity at this point
Re: cRIO troubleshooting

Also, this is a temporary fix. We are looking in to fixing the broken cRIO slots so that the cRIO is once again competition worthy, but we needed a temporary placeholder solution until we can go about accomplishing this.
Reply With Quote
  #9   Spotlight this post!  
Unread 19-10-2011, 07:56
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: cRIO troubleshooting

What I got out of that was ...

Our robot wasn't working, and in debugging it, we discovered that our cRIO had some slots that didn't work. Could've been that those hard hits from last year really hurt something. Luckily we have a spare. We need to get the other one fixed.

------------
Since I actually posted after the 9:21 post, but before the others showed up, I couldn't tell what was going on, and envisioned team members with soldering irons or hack saws. It is indeed possible to use the alternate slots for digital and analog with a few changes to Begin.vi or your startup code, but as you note, the blinking robot light is expected to be connected to slot four, and the battery is expected to be read from slot 1. Without those, most FTAs will not let you on the field.

I'd encourage you to contact NI and send the cRIO back get it repaired or replaced. You may even get it back in time to use as a spare for the competition. Also, look at the bus connectors along the bottom. Look to see if there are bent pins or debris that is shorting it out. If so, consider what operations may have led it. You may also try wiggling the connector and see if slot 1 or slot 4 seem looser than the others. It may be that the hit busted the solder joint. You may want to consider a more protected mount of the cRIO for the upcoming season.

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 19-10-2011, 15:32
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: cRIO troubleshooting

Quote:
Originally Posted by Sconrad View Post
Although I can't say this would work for sure (haven't tried it yet), plugging the analog breakout chip into another slot of the cRIO might give us analog input. If this does work, battery status could be displayed in user messages by accessing analog input 1, which is devoted to battery voltage monitoring.
Analog Channel 8 is the channel with the battery voltage monitor (voltage divider).

-Joe
Reply With Quote
  #11   Spotlight this post!  
Unread 19-10-2011, 15:35
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: cRIO troubleshooting

Quote:
Originally Posted by Sconrad View Post
The only errors on the diagnostics screen had to do with the analog inputs, which was to be expected, seeing as both the cRIO slot that they were attached to and the analog breakout chip were busted.
The Analog errors do not check the status of the hardware... they only come from software bugs. What specifically were the errors you were seeing?

-Joe
Reply With Quote
  #12   Spotlight this post!  
Unread 19-10-2011, 16:29
Sconrad Sconrad is offline
Registered User
AKA: Connor Young
FRC #0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Yorktown
Posts: 40
Sconrad is an unknown quantity at this point
Re: cRIO troubleshooting

We hope to get the cRIO back in full working order at some point, but for now, all we need it for is practice, and we have a new cRIO incoming, so getting it totally fixed is not a 100 percent priority. Thanks for the feedback though! @GregMcKaskle: I can see how I might have miscommunicated there. Thanks for pointing it out so I could clarify it. @jhersh I can't honestly say I remember the exact diagnostics message. I was pretty sure that they had to do with the analog inputs, but if they have to do with the code then that seems unlikely, as we did not even refer to analog inputs. Maybe the errors were from the driver station code trying to get the battery voltage? Anyways, foolish me did not record the errors and I am basing this information on memory, so it could be inaccurate. However, I can say that we did look at them and they were not anything foreign or totally unexpected. Like I said, we resolved the problem to the point that we are satisfied with the results. Thanks for the help though guys!
Reply With Quote
  #13   Spotlight this post!  
Unread 20-10-2011, 09:43
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,795
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: cRIO troubleshooting

Conner,
I am guessing from your description that you fried a chip on the analog breakout board that plugs into the 25 pin connector on the top of the analog module in slot 1. From that description I believe you had reversed the battery leads to slot 1. In the process you damaged the five volt regulator on the board. That is the only chip on that board. The board is not reverse polarity protected. There is a single LED on that board that lights when correct voltage is present and the regulator is functioning. Unfortunately, simply replacing the chip may have not repaired everything on the board.
It is also possible that a slot on the Crio is defective. Often this occurs when foreign material drops into the connector or a pin on the connector is bent. While a bent pin is sometimes recoverable, generally this is not the case.
Please remember that the battery voltage on this board is used (through the jumper) to sense battery voltage for the Crio. Should it fall to less than 5.5 volts, the Crio disables output for motor control. The intent is to allow the battery voltage to rise and prevent the Crio from rebooting. The power supplied by the PD may fail when the battery falls below 4.5 volts. This voltage (as sensed) is also passed to the dashboard and is read during the match by the FMS.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.

Last edited by Al Skierkiewicz : 20-10-2011 at 09:48.
Reply With Quote
  #14   Spotlight this post!  
Unread 20-10-2011, 09:56
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,846
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: cRIO troubleshooting

Quote:
Originally Posted by Al Skierkiewicz View Post
The board is not reverse polarity protected.
One small update...

The Blue PCB Analog Breakout (circa 2010/2011) is reverse polarity protected.

The Red PCB Analog Breakout (circa 2009) is not.

But if they are dropping heavy objects onto their Breakout boards and modules then all bets are off.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 20-10-2011 at 10:04.
Reply With Quote
  #15   Spotlight this post!  
Unread 20-10-2011, 22:48
Sconrad Sconrad is offline
Registered User
AKA: Connor Young
FRC #0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Yorktown
Posts: 40
Sconrad is an unknown quantity at this point
Re: cRIO troubleshooting

Quote:
Originally Posted by Al Skierkiewicz View Post
It is also possible that a slot on the Crio is defective. Often this occurs when foreign material drops into the connector or a pin on the connector is bent. While a bent pin is sometimes recoverable, generally this is not the case.
Based on our attempts to isolate the problem, it seems that at least two of the slots are defective. We thoroughly checked both and there don't seem to be any pins bent or foreign matter. Therefore, we think that the board within the cRIO is damaged. Like I said earlier, this cRIO had the misfortune of being underneath a flipped robot, and so it is likely that this caused initial, unnoticeable damage and that, over the course of the years, the damage has increased until the slots malfunctioned. Thanks for your suggestions though!
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


All times are GMT -5. The time now is 16:52.

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