Hey guys, I just received my stepper motor and A4988 motor driver in mail, and now I'm trying to set the adjustable resistor on it. I came across this instructable which says to do this:
"To prevent damage to the driver chip, it uses circuitry to limit the maximum current that can be used. This is set via the adjustable resistor on the board, in co-operation with some of the other components, the sense resistors (S1 and S2) and the resistor (R1). As different drivers may have different components (especially generic Chinese imports) its best to check these values before continuing.
For my stepsticks S1 and S2 are marked 'R10' and R1 is marked '303' (in very small writing !). These correspond to 0.1Ohm for S1 and S2 and 30kOhm for R1. The trimpot should be 10kOhm
According to the A4998 datasheet, and substituting those values, gives
VREF max = (TrimpotMaxR/(TrimpotMaXR+R1)) x VDD = (10,000 / (10,000 + 30,000)) * 5 = 1.25V
ITripMAX (effectively max motor current) = VREF / ( 8 x Sense_resistor) = 1.25 / ( 8 * 0.1 ) = 1.5625A
To calculate amps from measured VREF: A = VREF / 0.8
To calculate VREF required for a target current: VREF = A * 0.8
As my stepper motors are 2.0A, I can't get maximum current from this driver, however,if I drive them at 70% (2.0A x 70% = 1.4A) I want to a VREF of 1.4A x 0.8 = 1.12V, plus driving them at 70% will reduce the temperature of the stepper.
I start with the trim pot turned anti-clockwise, and measure the voltage with my multimeter between the logic Gnd pin and the centre of the trimpot itself, slowly turning it up until I get just under 1.12V"
I tried to calculate it, but there's some things I'm not so sure about. For example, this equation "VREF max = (TrimpotMaxR/(TrimpotMaXR+R1)) x VDD = (10,000 / (10,000 + 30,000)) * 5 = 1.25V", what does the VDD mean? He said somewhere before this he was using a 12v 2a wall wart, is it the logic power then(from my arduino)? Also, he says his sense resistors are marked 'R10' which corresponds to .1 ohms, but mine say 'R100' and googling it says it means .1 ohms too. That can't be right, can it? Any ideas anyone?Thanks.
Motor:
- DC2.52V 0.9A 1.8 degrees /STEP
Motor driver: - S1 and S2 resitors are marked 'R100'
- and the R1 resistor is marked '303'