Universal motor speed control by a microcontroller (arduino)