|
Re: Can any one help us with programing the encoder to control the motor by ticks?
So, now you are missing code to read the encoder and compare the value of the encoder to the value that you want it to be. Then set the motor either forward, backward, or stopped depending on the error. Once you get it working to some degree, you can look at adding PID to make it be better controlled.
Greg McKaskle
|