View Full Version : 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
Alan Anderson
07-02-2010, 00:30
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.
Im leaning towards the 2 choice. what do i hook up to the multiply terminals.
Greg McKaskle
07-02-2010, 07:40
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
Alan Anderson
07-02-2010, 14:04
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.
Thank you very much. Got it to work:D :D :D :D
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.