I use Easy Driver to move the stepper motor. It was working normally, but from one day to the next, it stopped working out of nowhere. I bought another Easy Driver thinking this might be the problem, but it did not work. I have tested all the electronics and they are working perfectly. I will attach my code and if you can give me any idea about the problem it will help me a lot.
The circuit and the source I use are in the attachment.
Before, with this same circuit it worked perfectly, but the measured amperage in the source decreases in a significant amount (from 0.21 to 0.13). I already tested all the wires and they are working, I do not know what could have happened.
Don't post code as an image. That makes it impossible for us to copy the code to our own IDE and test things.
Post it as text, using the code tags as noted in the 'how to use this forum' sticky post at the top of this forum.
And I do not see any circuit diagram in your attachment.
I use a 5-wire stepper motor and an Easy Driver.
This is not a datasheet. There are a lot of 5 wire motors. Shall we guess? (hint, no)
Where did you buy it? Go look for links there to the datasheet for the motor.
And a link to the driver.