DRV8825 with ESP32 new PCB not moving stepper motors at all, help troubleshooting or seeing the problem

Thread Starter

Adamelli

Joined Sep 14, 2020
66
1687465490955.png
  • Continuity test of all traces between DRV8825s and ESP32
  • Voltage measurements at logic high points
    • Without 24V power (just ESP32)
    • With 24V power
  • Cut between pin 1 and 2. Does not run. No sound, nothing.
  • Cut trace before 1&2. Nothing.
  • No change from changed DAC (pin 1&2 voltage) to
    • 0.6 V (50)
    • 1.3 V (100)
    • 1.9 V (150)
    • 2.6 V (200)
    • 3v3 (255)
  • Put on 24 to 5V regulator. Made loud tone. Changed step delay and the same resulted: 500, 1000, 1200, 1500, 2000, 2500 (us).
  • Put 33kΩ between ground and pin 1&2. No change.
  • Tried incrementing step delay.

Program
C++:
const int stepPinX = 2;

const int stepPinY = 18;

const int  DAC_CH2 = 26; // blue



void setup()
{
  pinMode(stepPinX, OUTPUT);
  pinMode(stepPinY, OUTPUT);


  //  dacWrite(DAC_CH2, 150);      // 2 V

}

void loop()
{
  //  stepX();
  for (int i = 0; i < 800; i++)
  {
    dacWrite(DAC_CH2, 50);
    stepY();
    stepX();
  }

  for (int i = 0; i < 800; i++)
  {
    dacWrite(DAC_CH2, 150);
    stepY();
    stepX();
  }

  for (int i = 0; i < 800; i++)
  {
    dacWrite(DAC_CH2, 200);
    stepY();
    stepX();
  }

  for (int i = 0; i < 800; i++)
  {
    dacWrite(DAC_CH2, 255);
    stepY();
    stepX();
  } 

  delay(1000);
}


void stepX()
{
  digitalWrite(stepPinX, HIGH);
  delayMicroseconds(50);
  digitalWrite(stepPinX, LOW);
  delayMicroseconds(800);
}
void stepY()
{
  digitalWrite(stepPinY, HIGH);
  delayMicroseconds(50);
  digitalWrite(stepPinY, LOW);
  delayMicroseconds(800);
}
Note - just trying to get either X or Y axis working (not Z).

PCB
1687465606879.png

1687465648568.png
There is a large heat sink on top of the driver ICs.

Schematic
1687465726084.png
(The heat sink jumper just connects the top pad to the bottom pad of the driver.)

A previous version of this PCB works. Although, it is not tied to a schematic. So that's why I am trying to get this one to work. Any suggestions or anything you see that should probably be changed?

One PCB with one driver causes a motor to make a sound for about a second or two. Then it seems like the power is cut off completely. Another never causes the motor to make any sounds and just gets very hot.
 

Attachments

sagor

Joined Mar 10, 2019
866
In the data sheet, nhome and nfault are held high with pull-ups. Your schematic does not show those. (Edit, I now see those tied to 3.3v…)
Also, your vxo7805 schematic shows 5v in and 24v out, backwards…
 
Last edited:

BobTPH

Joined Jun 5, 2013
8,108
Did you try reversing the wiring to one of the stepper coils? That is always the first thing to try if the motor makes sounds or vibrates but dies not spin.
 

Thread Starter

Adamelli

Joined Sep 14, 2020
66
Look at the package outline on the left, below the table with pin numbers, pin 1 is +VIN, where your PCB image shows it as +5V.
That image on the right in the datasheet is a front image (facing the pins)

View attachment 297768
Yes, I did not design that part. Upon assembly, it always has been oriented the right way.

Also, I did try reversing the wiring to one of the stepper coils with no luck.
 
Top