#define ENABLE_PIN 2 // Pin connected to EN on TMC2209 #define DIR_PIN 3 // Pin connected to DIR on TMC2209 #define STEP_PIN 4 // Pin connected to STEP on TMC2209 #define REQ_PIN 11 // Pin connected ...
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 ...