Go to Post May your shirts be full of buttons, yours inspiration be plentiful, and your error messages be few. - Barry Bonzack [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 08-02-2011, 18:14
Dustin Shadbolt's Avatar
Dustin Shadbolt Dustin Shadbolt is offline
In a server room somewhere...
AKA: Dustin Shadbolt
FRC #1555 (Team PULSE)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Monticello,Indiana
Posts: 320
Dustin Shadbolt is on a distinguished road
Awkward macnum drive issues

Hello guys I'm stumped about something. We are using a macnum drive with 4 victors controlling the drive. The left side of the drive is outputting roughly 7volts. The right side is outputting about 9volts. The back-left and front-left are the exact same 7volts. The right side is exactly the same 9 volts. At first we thought something programming wise, but I'm not sure what would cause this issue. I believe it's something along the lines of hardware, but I could be wrong. The drive is a direct-drive system with the nano tubes and what not. Could it be an issue of balance? I imagine the balance on the wheels would actually effect the outcome of the system. As you can see, I'm just completely stumped.
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2011, 22:55
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: Awkward macnum drive issues

I'd like to understand your system a little better before trying to give advice. There is one thing you should check immediately, though. When you open the 4 Motor Drive in Begin.vi, you can select between Jaguar or Victor speed controllers. Make sure it matches what you are actually using on the robot.
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2011, 23:10
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: Awkward macnum drive issues

Have you double checked your victors (swap em with others if possible).
Have you checked your PWM's. (swap them and make sure they are in the correct ports)
Is the wiring correct on the motors.
Like above make sure your code is designated to victors and not jags.
Try using a arcade or tank drive to see if the same thing happens (to be sure if it is a hardware issue or a code issue).
Wire constants to switches to see if it is a joystick problem.
If all that doesn't work I don't know what to tell you.
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
Reply With Quote
  #4   Spotlight this post!  
Unread 09-02-2011, 19:56
Dustin Shadbolt's Avatar
Dustin Shadbolt Dustin Shadbolt is offline
In a server room somewhere...
AKA: Dustin Shadbolt
FRC #1555 (Team PULSE)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Monticello,Indiana
Posts: 320
Dustin Shadbolt is on a distinguished road
Re: Awkward macnum drive issues

All of the programming checks out and the wiring all seems fine. Is there any way possible of stating that motors must all require let's say 9 volts and the motors will change to meet that voltage. That is our problem at the momoent :\.
Reply With Quote
  #5   Spotlight this post!  
Unread 09-02-2011, 21:55
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: Awkward macnum drive issues

Not that I know of maybe someone else knows. Im thinking you might be able to go really deep in the motor VI's and see how to send a voltage to them (which might be dangerous). Aside from that I don't know what to tell you. Maybe try having an area team come and help you I guess.
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
Reply With Quote
  #6   Spotlight this post!  
Unread 10-02-2011, 09:46
Dustin Shadbolt's Avatar
Dustin Shadbolt Dustin Shadbolt is offline
In a server room somewhere...
AKA: Dustin Shadbolt
FRC #1555 (Team PULSE)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Monticello,Indiana
Posts: 320
Dustin Shadbolt is on a distinguished road
Re: Awkward macnum drive issues

Thanks for the suggestion J.Cole. I went this morning before I headed to campus and did some bench testing. The motors all work fine in tank and in holonomic. The problem seems to be when I multiply the joystick inputs by a number to slow the drive this was giving us the major difference in voltages.
Reply With Quote
  #7   Spotlight this post!  
Unread 10-02-2011, 10: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: Awkward macnum drive issues

Quote:
Originally Posted by dShad View Post
ThaThe problem seems to be when I multiply the joystick inputs by a number to slow the drive this was giving us the major difference in voltages.
When you open your 4 Motor Drive in the Begin vi, make sure you select the Victor option from the drop-down menu underneath it. If you leave it as the default Jaguar, the different default neutral PWM values will make Victors run noticeably faster in "slow reverse" than in "slow forward".
Reply With Quote
  #8   Spotlight this post!  
Unread 10-02-2011, 10:54
Aren Siekmeier's Avatar
Aren Siekmeier Aren Siekmeier is offline
on walkabout
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: 대한민국
Posts: 735
Aren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond repute
Re: Awkward macnum drive issues

To clarify: The 4 Motor Drive Begin block should look the attached image after selecting Victor from the menu shown.

Also, if your center of mass is off center, then you will have more weight on set of wheels, which will definitely affect driving patterns (although I'm not sure where the voltage fed to the motors comes in there). However, it sounds like this isn't the problem.
Attached Thumbnails
Click image for larger version

Name:	victor.PNG
Views:	9
Size:	2.8 KB
ID:	10048  
Reply With Quote
  #9   Spotlight this post!  
Unread 10-02-2011, 13:21
Dustin Shadbolt's Avatar
Dustin Shadbolt Dustin Shadbolt is offline
In a server room somewhere...
AKA: Dustin Shadbolt
FRC #1555 (Team PULSE)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Monticello,Indiana
Posts: 320
Dustin Shadbolt is on a distinguished road
Re: Awkward macnum drive issues

I'm positive that we double checked if not triple-checked that to make sure it was set to victor. The victors start becoming uneven in voltage when I do the following thing in the teleop.vi (see attached picture). The purpose of the code is to reduce the speed of the drive system to make it more manageable for our driver. Is this the proper way to do it or is there something I'm missing that would cause the motors to unbalance voltage wise?
Attached Thumbnails
Click image for larger version

Name:	Untitled.png
Views:	20
Size:	5.8 KB
ID:	10050  
Reply With Quote
  #10   Spotlight this post!  
Unread 10-02-2011, 13:30
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Awkward macnum drive issues

Quote:
Originally Posted by dShad View Post
The purpose of the code is to reduce the speed of the drive system to make it more manageable for our driver. Is this the proper way to do it or is there something I'm missing that would cause the motors to unbalance voltage wise?
I hope you're not planning on leaving that in there for competition.

By limiting your joystick output to +/-0.25 you are severely limiting the output from your motors.

It would be better to gear the motors down some more so they could operate at full voltage.


Reply With Quote
  #11   Spotlight this post!  
Unread 10-02-2011, 13:58
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,372
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Awkward macnum drive issues

Quote:
Originally Posted by dShad View Post
I'm positive that we double checked if not triple-checked that to make sure it was set to victor. The victors start becoming uneven in voltage when I do the following thing in the teleop.vi (see attached picture). The purpose of the code is to reduce the speed of the drive system to make it more manageable for our driver. Is this the proper way to do it or is there something I'm missing that would cause the motors to unbalance voltage wise?
Without probing the values while running, I can only guess at a cause.
One possibility is that when the joystick is pressed forward along the Y axis, there may be some slight X axis value other than 0 being fed to the Holonomic Drive block. This might cause what you are seeing.

"Run" the program from LV and probe both the multiplied Y and multiplied X lines feeding the Holonomic Drive block. It will give you a real feel for what is happening. If the result you see doesn't explain the issue, you will need to dig deeper.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #12   Spotlight this post!  
Unread 10-02-2011, 14:26
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,833
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: Awkward macnum drive issues

Nevermind, I remembered.

You might try wiring a zero in place of the throttle rotation to be sure you aren't imparting a slight twist.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 10-02-2011 at 14:29.
Reply With Quote
  #13   Spotlight this post!  
Unread 10-02-2011, 16:41
Dustin Shadbolt's Avatar
Dustin Shadbolt Dustin Shadbolt is offline
In a server room somewhere...
AKA: Dustin Shadbolt
FRC #1555 (Team PULSE)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Monticello,Indiana
Posts: 320
Dustin Shadbolt is on a distinguished road
Re: Awkward macnum drive issues

Quote:
Originally Posted by Ether View Post
I hope you're not planning on leaving that in there for competition.

By limiting your joystick output to +/-0.25 you are severely limiting the output from your motors.

It would be better to gear the motors down some more so they could operate at full voltage.

It was just there for the build season to help with teaching the freshmen driver on how to drive the robot and what not. It will be removed from the competition code.

Tonight we are going to gear down the drive somewhat and go from there. I also found out the controller does seem to send a slight x value so i'm working on something to fix this now. Thanks guys.
Reply With Quote
  #14   Spotlight this post!  
Unread 10-02-2011, 22:56
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: Awkward macnum drive issues

Here's what I did if you would like to go off of that. I'm sure there is an easier way of doing this but this way works just fine.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	21
Size:	21.1 KB
ID:	10065  
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
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 20:30.

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