Go to Post I'm somewhat fond of saying, if your robot dosen't weigh 119.99 pounds, you forgot something. - Francis-134 [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 27-03-2015, 08:27
noah10001 noah10001 is offline
Registered User
FRC #5447
 
Join Date: Feb 2015
Location: Michigan
Posts: 9
noah10001 is an unknown quantity at this point
Need Help Slowing Down Drive Motors

I am trying to slow down the motors in labview. I am using the default tank drive. I was given a screen shot of a Mecanum drive slowdown but didn't work, Help please.
Reply With Quote
  #2   Spotlight this post!  
Unread 27-03-2015, 09:01
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,659
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Need Help Slowing Down Drive Motors

What specifically do you mean?
  1. Do you want to reduce the maximum speed that a drive motor can be driven, and scale the lower speeds down proportionally? In this case, a simple multiplier of the motor input values by a number between 0 and 1 will do.
  2. Do you want to reduce the motor speed at the low end but allow full speed at the high end? In this case, multiply the motor input value by its absolute value.
  3. Do you want to have two or more modes (slow and fast) that you can switch back and forth? In this case, you can use the first case, but make the multiplier dependent on another control.
  4. Something else??
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #3   Spotlight this post!  
Unread 27-03-2015, 09:08
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: Need Help Slowing Down Drive Motors

Quote:
Originally Posted by noah10001 View Post
I am trying to slow down the motors in labview. I am using the default tank drive. I was given a screen shot of a Mecanum drive slowdown but didn't work, Help please.
The answer depends on why you want to slow the motors down:

- because the joystick gain is too high at low levels making fine motion control difficult?

- because the robot accelerates/decelerates too quickly, causing the load the robot is carrying to fall over?

- because you want to limit top speed because the driver can't control the robot properly at high speeds?

The more info you provide about what you are trying to do and why you are trying to do it, the more likely you will get useful answers.

EDIT: GeeTwo beat me to it, but didn't mention voltage ramping (to limit acceleration). Also no mention of changing gearing, which is probably the correct solution (albeit more difficult).



Last edited by Ether : 27-03-2015 at 10:12.
Reply With Quote
  #4   Spotlight this post!  
Unread 28-03-2015, 11:08
Nunez4296's Avatar
Nunez4296 Nunez4296 is offline
Programmer
AKA: Joseph Nuņez
FRC #4296 (Trident Robotics)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Gurnee IL
Posts: 39
Nunez4296 is an unknown quantity at this point
Re: Need Help Slowing Down Drive Motors

If you simply want to reduce your motor speeds, take the value from your joystick, and either divide by a number, such as 2, or multiply by a decimal, such as .5, for half speed. There are various other ways to do this but for simplicity's sake, this will do the trick.
__________________
The Eagle - By Alfred, Lord Tennyson

He clasps the crag with crooked hands;
Close to the sun in lonely lands,
Ring'd with the azure world, he stands.

The wrinkled sea beneath him crawls;
He watches from his mountain walls,
And like a thunderbolt he falls.
Reply With Quote
  #5   Spotlight this post!  
Unread 30-03-2015, 08:01
noah10001 noah10001 is offline
Registered User
FRC #5447
 
Join Date: Feb 2015
Location: Michigan
Posts: 9
noah10001 is an unknown quantity at this point
Re: Need Help Slowing Down Drive Motors

the joystick is very sensitive just barely moving it make it go crazy fast. Can you attach a pic how to do this? (new to labview)
Reply With Quote
  #6   Spotlight this post!  
Unread 30-03-2015, 09:09
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: Need Help Slowing Down Drive Motors

Here are a couple of examples:


or maybe try some different joystick response curves.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 30-03-2015 at 10:35.
Reply With Quote
  #7   Spotlight this post!  
Unread 30-03-2015, 09:58
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: Need Help Slowing Down Drive Motors

Quote:
Originally Posted by noah10001 View Post
the joystick is very sensitive just barely moving it make it go crazy fast.
If it's at all possible, you should change the gearing.


Reply With Quote
  #8   Spotlight this post!  
Unread 30-03-2015, 10:28
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,659
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Need Help Slowing Down Drive Motors

Quote:
Originally Posted by noah10001 View Post
the joystick is very sensitive just barely moving it make it go crazy fast. Can you attach a pic how to do this? (new to labview)
This sounds like you may be multiplying the joystick value, or perhaps you're using a spike relay instead of a motor controller (Talon, Jaguar, Victor)?

Seeing your drive system code would probably help.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
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 21:25.

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