Stepper randomly jitter for a moment when turn on psu(energized)

hello
I was working on a project with 5 stepper motor nema17 rated 1.68a (i set vref 0.85 on drv8825) and i had spindle dc motor rs775
the arduino powered from usb laptop
psu 12v 30a for 5 stepper and different psu 12v 20a for dc motor spindle
that 2 psu powered from one AC line
i connect all earth ground psu and motor spindle casing
the problem

  1. when i turn the psu for 5 stepper, all the stepper jitter only for a moment after that stop and if i run g code all the stepper run perfectly (without spindle motor turn on)
  2. whenever i turn the second psu that energize dc motor spindle all the stepper ofter jitter and loose step
  3. i thought maybe its RF interference from dc motor but i try to plug the soldering gun to power line that all the psu plug in and the stepper jitter for a moment

i think it is the power line noise interfere the stepper
could anyone help me with this problem
thx

You need to provide more information. For example how is the wiring routed? Why do you think it may be causing interference?

How much (how many steps) do the motors move during this unwanted jitter period?

What happens if you energize the spindle motor first? - i.e. before the stepper motors?

What program are you running on the Arduino?

Is the Arduino active before the stepper power supply is activated?

Is the Arduino power completely independent of the motor power?

Are the stepper drivers connected like in the Pololu DRV8825 web page?

...R

the jitter is random i think maybe 10 step or more
is not about the program, it happen when the program not running .
the arduino is active before the stepper psu activated and it is powered from my laptop usb(if that what you mean independent)
yes exactly the same like pololu drv8825 instruction on wiring full step mode

this is the video when the program is idle and the soldered gun plug to the AC power line and the stepper jitter

Wiring diagram

Image from Reply #3 so we don't have to download it. See this Simple Image Guide

...R

The only thing I can think of is a problem with the power supply or with the distribution socket you are using.

Do you have any code in the Arduino that would let you know whether it is resetting? - for example a message that is printed from setup().

...R

Thx for the reply mr.robin.
Today i try powering the dc motor from 12v car battery with different earth ground and it is working no jittering, i think its the power line noise or earth ground noise. Is there simple guide for power line noise filter etc.
I dont understand what you mean by resetting in the program.

and_jap:
i think its the power line noise or earth ground noise. Is there simple guide for power line noise filter etc.

That is above my pay grade :slight_smile:

I dont understand what you mean by resetting in the program.

I was wondering if the power problems are causing the Arduino to reset?

...R

How to know arduino is reseting ?
When i run the g code program with the dc motor on the stepper jitter occasionally but it run until end of gcode and back to home position but the home position not accurate cause by the jitter.

Add a Serial.print() statement in setup(), if you get something on the serial monitor you'll know it's been reset.
Similarly, you can make the on board LED turn on for a second. Or make it turn on and stay, then have the program run when you push a button.

CrossRoads:
Add a Serial.print() statement in setup(),

I told him that in Reply #5 :slight_smile:

...R

I try it but i didnt reset when the jitter happen. The jitter is happen when you plug electrical device into the same power line ac, when turn the dc motor, and when the gcode program was running and its random.

and_jap:
I try it but i didnt reset when the jitter happen. The jitter is happen when you plug electrical device into the same power line ac, when turn the dc motor, and when the gcode program was running and its random.

Then all I can do is refer you to the first paragraph in Reply #5

...R

Is your cabling neat and every signal has its own ground return alongside it? I suspect not.

Yes the motor cable has shielded cable and the shield connect to ground. Yesterday i try to put filter capacitor accros the driver and its improve, i will try to put the right cap value on it.

Hi,
Can you edit your circuit diagram and include ALL power wiring, labeling postiive and negative/gnd wires.

I see power connections of ONE wire not TWO to make a circuit.

Are you controlling the RS775 motor, what ever that is supposed to be?

Is the gnd of the Arduino, what model, connected to the gnd/neg terminal of the stepper motor supply.
Are all connections that are made to the power supply made to that terminal in a star formation, or are you daisy chaining the gnd/neg connections one after the other?

Can you post a picture of your project so we can see your component layout?

Tom... :slight_smile: