An example of controlling a motor/gearbox's shaft position using an absolute encoder, an optional speed sensor and PID. bool encoder_inverted = false; // if the encoder does not read positive for left ...
We always think it is interesting that a regular DC motor and a generator are about the same thing. Sure, each is optimized for its purpose, but inefficiencies aside, you can use electricity to rotate ...