Driving directly a stepper motor used for Vehicle’s Instrument Gauges.


The motor must be removed during the Sketch Loading (disconnect from USB pins) .


This kind of motors can be driven directly by the Trinket.
The motor follows the potentiometer.


The Sketch is the same used in the “Arduino Driving a Micro Stepper Motor” in this blog, just change the pin mapping to use the Trinket .


Change the definitions in “Gauge_Pot01.ino”:

#define  STEPS  720    // steps per revolution (limited to 315°)
#define COIL1  1
#define COIL2  3
#define COIL3  4
#define COIL4  0
#define POTIN  1

The YouTube video…