Hi FYI The truth table for MS pins in your code is incorrect at, you have for 1/16 step 0 0. 1 should be 1 1 1 Also there is no 1/32 step for this module See https://www.pololu.com/product/1182 Regards