Hi!
I'm going to make a steady platform using an accelerometer and a brushless DC motor. The motor controller takes a step (rising edge) and a direction signal to step the motor. A PID regulation will also be added for smoother movements.
If the platform moves, the Arduino will have to send hundreds of pulses to step the motor in the other direction. I've been thinking about using a timer, but as far as I've understood the timer event will happened 'every' millisecond or what ever time I set. Is there a simple way to step the motor proportional with the PID output using a timer?