Can any one help us with programing the encoder to control the motor by ticks?

i wonder if any one knows how to set up the motor to move to ticks?
making a motor into a absolute value like a servo…
any help here?

any oneee???

Motors alone cannot do this. If you add a pot or an encoder, then you have a shot. Another way to go about this is with limit switches.

It is reasonable to think of a servo as a motor, a pot, and a loop that quickly adjusts the motor speed based on whether the pot is too low, too high, or just right. If you get a pot or encoder hooked up, try making a periodic task to read the pot and set the motor.

Greg McKaskle

i got the encoders from the kit already set up and mounted on a banebot motor we are using to control our lazy susan

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