This document provides a technique for improving real-time control of an internal indexer bipolar stepper motor driver like the DRV8811/18/21/24/25. It details how to implement programmable acceleration and deceleration profiles, speed control, and position control using a microcontroller like the MSP430. The technique uses the microcontroller to send control signals to the motor driver over an I2C interface to control the stepper motor's speed, position, acceleration, and deceleration in a precise manner.