Arduino pen plotter , cnc shield v3 , drv 8825 (stepper motor not working solution)

i am making a 2d pen plotter like this " DIY Arduino Writing/ Drawing Machine - 2D Pen Plotter - YouTube ",
i am using cnc shield v3 and arduino uno r3 , drv8825 stepper motor driver , NEMA 17 17HD34008-22B motors x2 . i uploaded grbl v9 to the uno and ugs detected the board and it shows the board is idle , when i try to move the motors using jogger or try to move the servo using console commands , it dosent work , when i press the button on cnc shield , in ugs it shows everything is ok as in picture


i used jogger to move the motors but they dont move , in console it shows ok

1 Like

Sender programs don't care if your motors are moving or not.
They may say they are moving when there is a problem.
What that problem is could be one of many.
No power to the drivers.
Bad motor connections.
Blown drivers or incorrectly set drivers.
Bad or incorrect GRBL setting's.

So the pictures in this case don't tell us much.

UGS send bunch of commandos in one single line and not waiting at "ok" answer.
i use
https://grbl-plotter.de/?setlang=en

by following the youtube video i have done eveything step by step , Im using the exact products as listed below , please check and tell me if I missed something
Motors : NEMA 17 17HD34008-22B stepper motor 3D printer CNC
Drv8825 driver : https://www.amazon.com/dp/B07XF2LYC8?psc=1&ref=ppx_yo2ov_dt_b_product_details
Cnc shield v3
https://evakw.com/products/a1093
Arduino uno
https://evakw.com/products/1673437715

regarding the 3 jumper caps that are to be put below the drivers, I soldered them from below the board as I didn’t have jumper caps
I uploaded grbl v9 to it ,
ugs is the latest version, I haven’t changed any settings in ugs , please tell me if I should adjust any settings in ugs as per my motors NEMA 17 17HD34008-22B stepper motor 3D printer CNC
, I haven’t adjusted the drv8825 drivers as I don’t have multimeter but i will get to it soon, and I don’t think current adjustment on the drv8825 is an issue cuz when I tried to move the servo motor using commands in ugs console, it dosent move, don’t you think the servo should move at least ? or it is becuz of the drivers .
I bought a second Arduino uno and cnc shield again to see if anything changes but no success.





Welcome to the forum.

You have build a project and then it does not work. But no experienced Arduino user does that.
When building a project, do it step by step and check everything on its own. Check if the voltages and currents are okay, then try a stepper motor, then try the communication, and so on. That is what Ballscrewbob is telling you in post #2. You have to know if there is power and if you can turn the motors.

Can you try the AccelStepper library and set it in the STEP and DIRECTION mode ? Then try if you can write a small sketch to turn a stepper motor.

I know this will take time :mantelpiece_clock: but we are no magicians :mage: We can not pinpoint the problem when there can be dozens of causes for the problem.

im a complete begginer in arduino and id ont know how to code .

In the Arduino IDE 2.1.1 is the "Library Manager" icon in the left bar. It looks like a bunch of books.
Install the "AccelStepper" by Mike McCauley.
Then look in the menu for examples for that Library.
You have to change it for DIRECTION and STEP. The main page for the AccelStepper is here: http://www.airspayce.com/mikem/arduino/AccelStepper/

This simple example for the AccelStepper library is in Wokwi simulation: AccelStepperRandom - Wokwi ESP32, STM32, Arduino Simulator

sure i will try it and update you soon .

Soldering the jumpers might have been a mistake.
Jumpers are cheap or even FREE from old electronics such as computers.

You certainly need a multimeter to set the current for the motors.
Guessing may cost you the driver boards.

Also suspect the PSU you have may prove inadequate.
Don't see it connected to the shield ?

i soldered them from below the board and im sure it have not done any damage to other components .i live in kuwait , its the worst worst country for hobbyists trust me , the only thing this country is good for is vape and other nonsense .
okay leave that , just now i followed this youtube video Nema 17 Stepper Motor with Arduino CNC Sheild V3 (A4988 Driver) | 100% Working Arduino Code - YouTube and i successfull got to test both the motors using a4988 drivers , but drv8825dosent work , may be the code is diffrent for drv8825 , but apart from that i confirmed both my motors are fine and the wiring in fine too .

okay so i have used drv8825 this time along with this code , for all the drivers the motor first spins a little then stops and makes a small humming sound , i m using 12 1a psu for this , i will try with the 2 amp psu and see if anything changes

this is the code
#define EN 8

//Direction pin
#define X_DIR 5

//Step pin
#define X_STP 2

//A498
int delayTime = 30;
int stps=6400;

void step(boolean dir, byte dirPin, byte stepperPin, int steps)
{
digitalWrite(dirPin, dir);
delay(100);
for (int i = 0; i< steps; i++)
{
digitalWrite(stepperPin, HIGH);
delayMicroseconds(delayTime);
digitalWrite(stepperPin, LOW);
delayMicroseconds(delayTime);
}
}

void setup()
{
pinMode(X_DIR, OUTPUT); pinMode(X_STP,OUTPUT);
pinMode(EN, OUTPUT);
digitalWrite(EN,LOW);
}
void loop()
{
step(false, X_DIR, X_STP, stps);
delay(1000);
step(true, X_DIR, X_STP, stps);
delay(1000);
}

It does not matter which driver you use.
Too low a voltage and current will still be an issue.
More so without a DMM to set the drivers correctly.
My preferred voltage is 24 or 36 volt with at least 5 amps (prefer 10 or more amps)
Until you sort out some of the basics there will not be too much help we can give apart from single instance motor sketches etc.

thank you very much , btw the motors im using are rated for 1.7 amps , so its okay to use 12 volts 2 amps psu right?

i have used the exact same devices as in the youtube video DIY Arduino Writing/ Drawing Machine - 2D Pen Plotter - YouTube

i will try to resolve all the possible issues and update

okay guys finally after trying everything , i tried to just turn the little cross on the drivers and it works the motor does work and im very happy . i just need a multimetre to make further adjustments nothing else.

thank you very much for helping me and suggesting way to resolve the issues

No.

There will be dips and peaks in the current drawn and if you have two peaks at the same time you will probably find that something goes wrong.
It could be something such as a skipped step which may ruin your projects.
Or it could result in an electronics failure.

I do understand your excitement in wanting to finish this as soon as possible but don't let that overshadow your aim. Step back and ensure you fix the things that everyone tells you about.
That will mean you have a project that is reliable.

alright , but in the youtube video the person have used 12 volts 2 amps psu and he showed it just worked fine , and the problem is i dont have higher amps psu available so