Hello, I am trying to test a stepper motor but it seems to not work properly. Sometimes it vibrates for a bit, sometimes it beeps, sometimes it does nothing at all.
I have wired a 12V 10A power supply to the cnc shield, on top of the arduino board; the driver is in the correct orientation and position; the stepper motor is wired to the cnc shield.
I have double checked each connection and checked with a multimeter and everything seems fine.
The stepper datasheet says it has 1.50A rate current per phase. Using the formula for the DRV8825 : Vref = Imax / 2 = 1.50 / 2 = 0.75, I have set it to 0.75V.
I am not sure this is totally correct since the 1.50A is the rated current per phase and maybe it isnt the right value for Imax in the formula.
I have asked chatgpt but it gives me this formula:
Itrip_max = 1.50A / 2.5 = 0.60A
Vref = 0.60A × 8.2 = 4.92V
This looks to me very dangerous since the driver, set to 0.75V, already gets very hot.
I tried your simple sketch with my CNC shield V3 and it worked fine. Your Serial.println in every loop cycle slows down the loop a lot, so the stepper will not spin with 200steps/sec, but it spins.
There must be a problem with your hardware. Can you show a photo of your setup and especially show how your motor is wired.
Be aware, that runSpeed does not do any acceleration. So if you set to a higher speed ( and delete the Serial.println ) it may not work and vibrate only.
I now have switched both the driver and the stepper for new ones and It does the exact same thing: the sketch says the stepper should run smoothly at 200 steps/sec (12.5 steps/sec considering I have set 1/16 microstepping) but it just vibrates back and forth.
Should I try buying a new Arduino and CNC shield and Just replace everything?
Hello again, I ended up buying a new Arduino+shield+drivers kit and I Will try again when the hardware gets shipped.
I was thinking tho, that the problem with my previous setup might have bene the fact that the Arduino was placed over the metal plate of the Power supply. Could this have caused some short circuits by accidentally connecting Arduino pins underneath the board??
This is a beginners mistake that I would nobody want to rob from the opportunity falling for it. If you realize you did it, just hit yourself really hard and try to remember next time.
All right, time to close this post as now everything works fine. The problem was Just the motors i bought... I ended up buying a new stepper from twotrees and It works perfectly.
I guess Just dont buy nema 17 from stepperonline.