With a potentiometer there is a resistance track connected at each end to a terminal.
A third terminal connects to a movable contact that wipes over the track, hence the wiper.
to start with the DRV8825, I take an old stepper motor from a printer.
I have no information for this motor, so I power the motor with a 9V battery and I start with vref at its lowest value, nothing happened, then i turned the potentiometer a little and the motor start turning perfectly.
then I decided to replace the 9V battery by a 12V power supply, but nothing happened and I don't know I check all the wires and they are OK
You need to measure the motor winding resistance to estimate the current needed. All motors of
similar size have roughly the same power dissipation (this is a thermal dissipation limit really),
so you can use this estimate of power plus the winding resistance to estimate the current since
P = I^2 R
Set your DRV8825 board to the relevant Vref for that current.
Any other issues will be wiring, power supply which you troubleshoot with a multimeter.
In fact, I obtained the 12 volt by division with 2 same resistor on a 24V/5A power supply.
I decided to remove the 2 resistors and supply directly with 24V and everything worked well!
So I decided to use the original stepper motor that I want to use from the begining which is 1A/phase and 14ohm/phase.
I measured Vref and i obtained 0.125V which correspond to 0.250A, I said ok I can connect the motor there no risk, so connected if and the motor turned perfectly!!!
I don't know why I decided to turn a very, very little the Pot on the DRV8825, I powered and nothing happened, I get back to the initial position and nothing again, I decided to check continuity with multimeter, and I find continuity between Vmot and GND!!!
Is my DRV KO?
You probably just measured the impedance of the decoupling capacitors that way. Check Vref without
the motor attached and power down, reconnect motor and then try.
I check the decoupling capacitors C1 (4.7µF), C2(0.1µF) and C3(0.1µF) on the DRV8825 board and it seems that they are shorted (continuity between the 2 extremity), do you have any idea about how is it possible?