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

wpid-20140131_232948.jpg

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

wpid-IMG_20140131_235102.jpg

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

IMG_0009

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 .

https://arduining.com/2012/04/22/arduino-driving-a-micro-stepper-motor/

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…

 

Advertisements