Go to Post FIRST Championships event is not about winning, its about the experience, the atmosphere, the people and the sites, there are a lot of amazing things to see at The Championships. - Mike Schroeder [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 06-02-2010, 22:47
zip100 zip100 is offline
Registered User
FRC #0640
 
Join Date: Feb 2010
Location: New York
Posts: 31
zip100 is an unknown quantity at this point
Limit motor speed

The robot we built is hard to control. I was wondering is there a way to limit the speed of the motors through labview? Thnx
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2010, 00:30
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: Limit motor speed

Do you want to limit the maximum speed, as if you had an extra stage of reduction in a gearbox? That's easily done by multiplying the joystick values by a number less than one. You lose the ability to apply full power if you do that, so it might be a good idea to include the option to leave the joystick values alone if a "turbo" button (e.g. the joystick trigger) is pressed by the driver.

Do you want to change the response of the joysticks so that they are more sensitive at low speeds, but still go to full power when pushed all the way? That's a little more difficult, but still straightforward. Try multiplying the joystick value by itself three times, yielding the cube of its value. That response curve is something many teams have used in the past.
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2010, 01:17
zip100 zip100 is offline
Registered User
FRC #0640
 
Join Date: Feb 2010
Location: New York
Posts: 31
zip100 is an unknown quantity at this point
Re: Limit motor speed

Im leaning towards the 2 choice. what do i hook up to the multiply terminals.
Reply With Quote
  #4   Spotlight this post!  
Unread 07-02-2010, 07:40
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: Limit motor speed

Take the output of the joystick X and Y and use a Numeric multiply. For bonus points, plot the joystick output against the drive input to show your teammates the difference.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 07-02-2010, 14: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: Limit motor speed

Quote:
Originally Posted by zip100 View Post
what do i hook up to the multiply terminals.
Feed in the joystick axis value. The attached image shows you how to look at the way the cubed value changes as you move the joystick.
Attached Thumbnails
Click image for larger version

Name:	cube.jpg
Views:	51
Size:	4.7 KB
ID:	8538  
Reply With Quote
  #6   Spotlight this post!  
Unread 07-02-2010, 15:29
zip100 zip100 is offline
Registered User
FRC #0640
 
Join Date: Feb 2010
Location: New York
Posts: 31
zip100 is an unknown quantity at this point
Re: Limit motor speed

Thank you very much. Got it to work
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
Motor limit for Denso 2010? Bill Taylor Motors 4 18-01-2010 18:51
how to limit speed on the motors. haxor5354 Programming 2 07-02-2009 07:51
Motor speed sensing with the Jaguar motor controller? mminutto FRC Control System 5 13-01-2009 18:13
Motor Limit? ForgottenSalad Motors 2 10-01-2006 16:08
How do you set a speed limit on the servo Fares Programming 6 01-01-2003 15:04


All times are GMT -5. The time now is 22:42.

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