Control Nema 34, with ESP32 and DM860T

Hey there,

I am working on a Project where I want to rotate a big Stepper motor E Serie Nema 34 Schrittmotor Bipolar 1.8deg 8.2 Nm(1161.45oz.in) 6.0A 86x86x114mm 4 Drähte - 34HE45-6004S STEPPERONLINE (omc-stepperonline.com), which is driven by Digitaler Schrittantrieb 2.4-7.2A 18-80VAC oder 36-110VDC für Nema 34 Motor - DM860T STEPPERONLINE (omc-stepperonline.com). I want to use the AccelStepper.h library, because it seems quite easy to handle.

As I mentioned in the topic I was trying to use a ESP32 for that, as I plan on making it work with Bluetooth and also it has to communicate with other devices. So far I made an easy code with an Arduino Uno run the motor quite smooth:

#include <AccelStepper.h>
#define dirPin 9
#define stepPin 8
#define interface 1

AccelStepper stepper=AccelStepper(interface,stepPin,dirPin);

void setup()
{  
  stepper.setSpeed(150);
  stepper.setMaxSpeed(2000); //20000 steps/second max
  stepper.setAcceleration(500); 
}

void loop()
{  
   stepper.moveTo(8000);
   stepper.runToPosition();
   delay (1000);

   stepper.moveTo(0);
   stepper.runToPosition();
   delay (1000);
}

as I move it to the ESP32 Wroom

with the only change of the pins :

#define dirPin 5
#define stepPin 18

instead, the motor seems to work, but not that smooth as before.
I use a logic level converter from the Signal of the ESP to the DM860T, so the input Signal has 5 V, cause I thought this was the reason for the bad baviour. But this didn't change anything.

Has some one an idea, what could be the problem?

I attach the wiring as picure.

Thanks in advance,
Daniel

A link to the power supply could provide help....
What's the brand? Chinese? They often supply either the voltage or the amp but not both at the same time.
As I don't have any ESP here the picture is useless. What's hidden in the silicon behind that position of the capsule?

Hi Railroader,

thanks for the reply.

I am using this one: 350 Watt 48 V 7.3A 115/230 V Schaltnetzteil Schrittmotor CNC Router Kits - S-350-48 STEPPERONLINE (omc-stepperonline.com)

I measured the voltage which is exactly 48 V.

The needed torque I have to get of this motor would be 6 Nm with a speed of 150 1/min.
P = 2 * Pi * M * n = 94,25 W. So the Motor (in theory) would need 1,96 A. The measured ampere is 1.526 A. (Please correct me if I am wrong). But I didn't apply the torque on testing. So this is the ampere without load

But as mentioned, on the Arduino Uno the motor is way smoother than on the ESP. Any Idea on that?

Best regards,
Daniel

pardon me please i would like to ask what simulation software did you use

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.