Motor control class for Arduino