Setting custom frequency for nxt motor

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
aswin0
Posts: 201
Joined: 29 Sep 2010, 06:58

Re: Setting custom frequency for nxt motor

Post by aswin0 »

Hi,

You should not try to control the speed of the motor. Instead you should try to control the position of the motor. This is far more direct and has the possibility to recover from previous errors. I know NXT-G will allow you to control the position of a NXT motor, but I do not know how good this is. If it is not good enough you should write a PID-controller to control the position of the motor even better.

But even then the task will be difficult. The position of the NXT motors is known to the degree. This resolution won't be enough to keep a camera exactly focused to a specific star. So you will need to increase the resolution by gearing down the motors. However, gearing down the motors with lego gears introduces slack, this can be quite a lot, too much for your purpose. But you could try to use levers (made from liftarms) instead. This will limit the range of your device, hopefully not too much.

Aswin
My blog: nxttime.wordpress.com
h-g-t
Posts: 552
Joined: 07 Jan 2011, 08:59
Location: Albania

Re: Setting custom frequency for nxt motor

Post by h-g-t »

Slack is not too much of a problem if you use worm drives and avoid the Lego gearbox, then most of the slack is in the Lego motor gear train.

The weight of the camera/ scope usually means that the tilting gears are always in contact even after changes in direction (unless your tilting axle is very stiff!).

When panning, you can build in an extra motor movement at each change in direction to take up the slack.

You can get a good estimate of the amount to take up using the MK 1 eyeball by writing a short program which just reverses the motor on command and displays the rotation count.

Run in one direction, stop and note the count, reverse until the rig starts moving again, stop and note the new count.
Last edited by h-g-t on 28 Jul 2013, 13:06, edited 1 time in total.
A sophistical rhetorician, inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination that can at all times command an interminable and inconsistent series of arguments to malign an opponent and to glorify himself.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests