How can we use the encoder details to drive a DC motor to a certain position. Let's say I want to drive the motor 1200 pulses clockwise, How I can do that.
I know I can switch the motor ON state and count the number of pulses using Encoder.h library. But how can I compare that value of 1200 counts? Like what kind of statement are we talking about here. Just Confused!