Home > Driving Motors, Trinket Projects > Arduino Trinket and Gauge Stepper Motor

Arduino Trinket and Gauge Stepper Motor

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
  1. Robert Schemmel
    June 14, 2014 at 12:21 PM

    where’s the code ?

    • June 14, 2014 at 4:44 PM

      in the post “Arduino Driving a Micro Stepper Motor”
      ” just change the lines as described.

      • Robert Schemmel
        June 14, 2014 at 5:33 PM

        https://arduining.com/?s=driving+a+stepper+motor

        Wnen I realized I needed to do a search I found the above link and the code works great !
        Thanks !

      • Gérald Charbonier
        August 6, 2015 at 6:17 PM

        How to define number of steps the stepper motor VID29 ?

    • August 18, 2014 at 8:15 AM

      Now the link is included, thanks for your comments.

  2. May 30, 2015 at 3:48 PM

    Can I connect to the Trinket more powerful stepping motor through the driver A4988? what needs to change in the sketch? Thanks!

  3. May 30, 2015 at 3:50 PM

    and is it possible to control two motors with two potentiometers?

  4. Gérald Charbonier
    August 6, 2015 at 6:16 PM

    How to define number of steps the stepper motor ?

  5. March 8, 2016 at 10:28 AM

    Respected sir,

    I work as a cameraman sir I want to make a
    focus control for a dslr camera lens.Earlir I made one with a hobby servo
    Arduino and potentiometer and used arduino example skech servo knob,but
    it has got some limitations like loud noise and only 180 degrees movement.

    sir I want to control astepper motor, nema 17, using a easy driver v 4.0,
    and I am new with Arduino and do not have adequate knowledge.

    sir I want that the
    stepper motor should respond to the potentiometer movement ie. it
    should rotate 0-360 degrees and 360-0 degrees, one single rotation
    according to potentiometer movement.

    sir in arduino example skech stepper motor Knob there are four coil
    connections are there coil 1,2,3,4 sir that skech work fine with driver
    ULN2003 and L298, where four indiviual coil connections can be defined.

    But here in easy driver have only two connections step and direction

    sir how can i achieve the same result by using a easy driver or

    u can suggest some code for this, pleas throw some light on this.

    Hope to be favoured please.

    Thanking You.

    Manas

    • Robert Schemmel
      March 9, 2016 at 12:09 PM

      The arduino Stepper library has a “Stepper Knob ” example similar to the Servo Knob example

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: