Re: Setting custom frequency for nxt motor
Posted: 27 Jul 2013, 11:07
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
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