I have created a rotary encoder using a slotted ir switch and an encoder wheel with 60 cut outs. I was wondering what the conventional way of driving a simple two wheeled robot in a straight line would be using the encoder information.
ie. should I drive both motors forward for a certain amount of time and then check the encoder pulses and correct accordingly. Or should I drive each motor alternately forward one pulse at a time?
Any information would be much appreciated.
Thanks in advance