Go to Post Don't be too distracted by the shiny robots, and the games they play. Enjoy them, but keep your eyes on the real prize(s). - gblake [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 14-02-2015, 17:44
chloe's Avatar
chloe chloe is offline
human
FRC #1868 (Space Cookies)
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2013
Location: United States
Posts: 17
chloe is an unknown quantity at this point
Exclamation 17v voltage spike when rotating mecanum

We're having a very specific bizarre issue:
  • When rotating or strafing in auto or teleop with our mecanum drive, we will quickly experience a huge voltage spike and then lose communication and robot code. This means it's not a code error.
  • This happens only when our robot touches the ground, not when it's on blocks
  • This does not happen when we shake our robot during autonomous or teleop
  • This does not happen when driving straight in teleop

We checked the 172.22.11.2 viewer from the browser and there are no sticky errors under the pdp.

Here is the attached log from the driver station.

https://drive.google.com/file/d/0B2J...E3Z3J6Vm8/view

The huge orange block is the disconnect.
If you zoom in, the yellow line (voltage), spikes just before the disconnect:

https://drive.google.com/file/d/0B2J...1nQUYwbFU/view

Has anyone seen this error before?

Last edited by chloe : 14-02-2015 at 17:49.
  #2   Spotlight this post!  
Unread 14-02-2015, 18:32
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: 17v voltage spike when rotating mecanum

That seems very strange. The only thing I can think of is that maybe something is shorting. I would try removing power from all speed controllers except for one and seeing if you can isolate the problem.

You might also do a thorough visual check of all points on the robot that could short as it moves.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
  #3   Spotlight this post!  
Unread 14-02-2015, 18:48
chloe's Avatar
chloe chloe is offline
human
FRC #1868 (Space Cookies)
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2013
Location: United States
Posts: 17
chloe is an unknown quantity at this point
Re: 17v voltage spike when rotating mecanum

That seems like a valid suggestion. The fact that we can go straight perfectly well, however, seems to dismiss this at least a little. Also if it shorts, why would the voltage be going up? We are going to test this tethered via Ethernet to examine whether it's a communication issue.
  #4   Spotlight this post!  
Unread 14-02-2015, 19:14
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: 17v voltage spike when rotating mecanum

Quote:
Originally Posted by chloe View Post
Also if it shorts, why would the voltage be going up?
I wouldn't completely trust that voltage reading; whatever is happening could be causing the voltage sensor to malfunction as the system fails.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
  #5   Spotlight this post!  
Unread 15-02-2015, 09:43
philso philso is offline
Mentor
FRC #2587
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Houston, Tx
Posts: 938
philso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond repute
Re: 17v voltage spike when rotating mecanum

Quote:
Originally Posted by chloe View Post
We're having a very specific bizarre issue:
  • When rotating or strafing in auto or teleop with our mecanum drive, we will quickly experience a huge voltage spike and then lose communication and robot code. This means it's not a code error.
  • This happens only when our robot touches the ground, not when it's on blocks
  • This does not happen when we shake our robot during autonomous or teleop
  • This does not happen when driving straight in teleop
Could one of your wheels be "fighting" the other three at some point in time? You state that this only happens when all your wheels are on the ground (and they are coupled together mechanically). You may have to do a brute force, line-by-line review of your code to find this. You can also try disconnecting the motors from the motor controllers, one by one, to see if you can find one motor where disconnecting it makes the system not shut down. You can then focus on the code relating to that motor.

When you put mechanical energy into the shaft of the motor, it acts like a generator (regeneration), creating a voltage on the motor's input terminals. Usually, you see people talking about this when the robot is powered off and they are pushing the robot around to transport it

Based on my knowledge of 3-phase AC motors an motor controllers, I suspect that since your robot is energized and you are already applying a voltage to the motor terminals, when regeneration happens, the voltage generated by the mechanical energy being put into the motor shaft (by the other 3 motors) "stacks" on top of the voltage being applied to the motor terminals causing a high voltage condition (> 12V) on the input of the motor. There is usually a anti-parallel diode across the MOSFETs in the motor controller. In an output over-voltage condition, these diodes forward-bias and pull your input 12V up. Your control system senses the over-voltage condition and shuts down. I can confirm this with the people in our Motor R&D Group at work on Tuesday.


Quote:
Originally Posted by lopsided98 View Post
I wouldn't completely trust that voltage reading; whatever is happening could be causing the voltage sensor to malfunction as the system fails.
This could also be true.
  #6   Spotlight this post!  
Unread 15-02-2015, 15:31
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 522
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: 17v voltage spike when rotating mecanum

If I remember correcty, when the DS loses network communication with the RIO (for any reason) the battery signal goes high. That's most likely why you are seeing high pulses, not because the battery is 17V.

Remember the RIO measures the battery and has to send it to the DS. I think you have the cause and the result backwards.
  #7   Spotlight this post!  
Unread 15-02-2015, 22:04
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: 17v voltage spike when rotating mecanum

Just a shot in the dark -- are your mecanum wheels mounted properly? If you have them in the wrong orientation, they will be fighting each other when you try to rotate the robot. The rollers should form an "X" pattern when you look down on them from above, and should make an "O" or diamond against the carpet.

The other thing I'd look at is whether you have each motor going to a separate speed controller. I have seen very strange power symptoms when two motors are accidentally cross-wired between two Victors.
  #8   Spotlight this post!  
Unread 15-02-2015, 23:12
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,753
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: 17v voltage spike when rotating mecanum

Quote:
Originally Posted by Alan Anderson View Post
The other thing I'd look at is whether you have each motor going to a separate speed controller. I have seen very strange power symptoms when two motors are accidentally cross-wired between two Victors.
We had this on our robot last year... took us forever to figure out why we could drive straight and turn just fine, but when we tried to strafe one side of the robot just refused to move! Swap two wires around, and it worked perfectly.
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
  #9   Spotlight this post!  
Unread 16-02-2015, 00:13
chloe's Avatar
chloe chloe is offline
human
FRC #1868 (Space Cookies)
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2013
Location: United States
Posts: 17
chloe is an unknown quantity at this point
Re: 17v voltage spike when rotating mecanum

Thanks everyone for your replies. It turns out there was a loose wire in the VRM that wiggled around when we strafed or rotated. Everything works now!
  #10   Spotlight this post!  
Unread 16-02-2015, 09:33
philso philso is offline
Mentor
FRC #2587
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Houston, Tx
Posts: 938
philso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond repute
Re: 17v voltage spike when rotating mecanum

Quote:
Originally Posted by chloe View Post
Thanks everyone for your replies. It turns out there was a loose wire in the VRM that wiggled around when we strafed or rotated. Everything works now!

You may want to teach your Electrical Team to do a pull test on each wire they install in a component or crimp a lug onto, immediately after they install or crimp that wire, before moving onto the next wire. Afterward, they go back and check their work, looking at the connections and doing a second pull test. We had zero electrical failures last year after I instituted this practice (other than when someone drilled through a tube into the wire running into the tube). I borrowed this from work where we do a lot of wiring in the equipment we build.
  #11   Spotlight this post!  
Unread 16-02-2015, 14:51
Fletch1373's Avatar
Fletch1373 Fletch1373 is offline
Registered User
AKA: Fletch
FRC #3181 (Panthers)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2004
Location: Rochester, NY
Posts: 251
Fletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud of
Re: 17v voltage spike when rotating mecanum

Quote:
Originally Posted by ozrien View Post
If I remember correcty, when the DS loses network communication with the RIO (for any reason) the battery signal goes high. That's most likely why you are seeing high pulses, not because the battery is 17V.

Remember the RIO measures the battery and has to send it to the DS. I think you have the cause and the result backwards.
The value of 37.37 is recorded in the voltage field to indicate "bad packet". This is rarely seen in the driver station, but is shown in FMS on the field frequently. The most common causes of this is "no code"(including comm failure due to radio power brown-outs, etc.)

Source: CSA and FTAA
__________________
Student:
<04: FRC0213> <05-08: FRC1373>
Mentor:
<09-10: FRC0809> <11-12: FRC3555> <12-14: FRC0073> <15-??: FRC3181>
Volunteer:
<FTAA> <CSA> <Defense Coordinator> <Scorekeeper> <Robot Inspector> <Official Scorer>
2016 Tour:
CTWAT [DefCoord] > Pittsburgh[Mentor/DefCoord] > TVR[FTAA] > FLR[CSA] > NE DCMP[CSA] > CMP[CSA]
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 11:27.

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