Question on Using the Sparkfun Prodriver Stepper Motor Driver

Currently I am using a DRV8825 stepper motor driver with a Teensy 4.1 which is working well and now am converting over to the Sparkfun Prodriver with the TC78H670FTG and have a couple of questions.

  1. Setting Vref? On the DRV8825 I set have to set vref but I did not see anything in the hook up guide on how to do this. However looking at the datasheet it looks like Current = 1.1 x Vref, so Vref = Current / 1.1. Assuming that for a 1amp per coil stepper that vref should be about 0.91. Measure vref on the board is showing about 0.93 volts which seems a bit high. Measurement is done just 12v applied to the barrel jack. So can I just adjust this with the pot?
  2. While libraries are nice and convenient it hard to learn whats under the hood you might say so I rolled my own. Can I use the board without using your library? Are there any gotcha’s I need to know?
  3. How do you control speed? or moveto position etc

Thanks in advance
Mike

  1. Yep, see here SparkFun ProDriver and Mini Stepper Motor Driver Hookup Guide - SparkFun Learn (scroll WAY down, ~80%)…there’s a Vref pin as well :smiley:

  2. Certainly, though we don’t have much advice…you can fork our library and do whatever :smiley: GitHub - sparkfun/SparkFun_ProDriver_TC78H670FTG: Breakout board for the Toshiba TC78H670FTG: a Clock-in and Serial controlled Bipolar Stepping Motor Driver

  3. Via code…check out the examples (further in the guide above, right side has sections)