I am completely new to Arduino and electronics in general.
I have:
arduino uno r3
nema 17 longrunner 17HD48002-22B
driver A4988
external power supply 12V 2A
I was able to make the stepper motor works perfectly but there is one thing that I don't understand.
I took a multimeter and measured voltage and current on the motor circuit.
Voltage close to 12V
Current is only 50mA, how is that possible?
The datasheet of this nema 17 shows that rated current is 1.7A (this is the reason I bought a 2A power supply), so I was expecting the motor to draw more...
You must set the current limit on the A4988 driver appropriately for the motor. Since the A4988 can handle only 1 Ampere per winding without additional cooling, that is the maximum possible.
Pololu has a good video explaining this, but the setting formula they give is valid only for their drivers, or an exact clone. Most clones and imitations are not exact. See the A4988 data sheet for the full details.
To set the current limit you will need to know the value of the sense resistor on your A4988 driver board. There are different Rsense values for different manufacturer's boards.
What you need to know is the value of the current sense resistor. Post a clear, focused, close up photo of your driver, and hopefully a forum member can spot the resistor. It is one of the larger rectangular blobs on the PCB.
The formula for the current setting is given in the A4988 data sheet, and depends on the resistor value.