Embedded software design for a microcontroller-based data logger for stepper motor fault diagnosis