Nema 23 and TB 6600 help guidance

Hello Arduino Forum,
I am not an eletrical genious honestly thats why I am asking you.

I am working on connecting a NEMA 23 stepper motor to a TB6600 stepper driver, controlled by an Arduino UNO R4 WiFi.

See below current wiring:

(Notice its not a DM860A driver its TB6600 I am using)

I would like to check if my wiring and DIP switch settings are correct / best practice.
My goal is to get the best possible performance, meaning both high speed and good torque.

  • Manufacturer Part No: 23HS22-2804S.
  • Motor type: bipolar
  • Step Angle:1.8 Degree
  • Holding Torque: 1.26 Nm.
  • Rated current, phase: 2.8A
  • Phase resistance: 0.9 ohms
  • Inductance: 2.5 mH +/- 20 % (1 kHz).

On the TB6600, I currently have the DIP switches set like this:

  • Switch 1 = OFF
  • Switch 2 = OFF
  • Switch 3 = ON
  • Switch 4 = OFF
  • Switch 5 = ON
  • Switch 6 = ON

AC connection For the black and yellow cable I am using an AC adapter 12V.

Here is the code:

const int stepPin = 2;
const int dirPin = 3;
const int enPin = 4;

void setup() {

pinMode(stepPin, OUTPUT);
  pinMode(dirPin, OUTPUT);
  pinMode(enPin, OUTPUT);
  digitalWrite(enPin, LOW);   // Keeps the driver enabled
  digitalWrite(dirPin, HIGH);  // Permanent single direction

// ACCELERATION RAMP: Start slow and build up speed so it doesn't stall

for (int delayTime = 2000; delayTime >= 300; delayTime -= 2) {

digitalWrite(stepPin, HIGH);
    delayMicroseconds(delayTime);
    digitalWrite(stepPin, LOW);
    delayMicroseconds(delayTime);

}

}

void loop() {

// CRUISE SPEED: Once it has caught up, it can spin continuously at top speed

digitalWrite(stepPin, HIGH);
  delayMicroseconds(300); // This matches your target high speed
  digitalWrite(stepPin, LOW);
  delayMicroseconds(300);

}

My questions are:

  1. Are these DIP switch settings suitable for a 2.8A NEMA 23 motor?

  2. What microstepping setting is recommended if I want high speed but still good torque?

  3. Is lower microstepping generally better for torque and speed?

  4. What is the recommended wiring between the Arduino UNO R4 WiFi and the TB6600? For example, should PUL/DIR/ENA be wired as common anode or common cathode?

  5. Is there anything specific I should consider when using the Arduino UNO R4 WiFi compared to an older Arduino UNO, since the UNO R4 uses 5V logic but has different hardware?

My goal is to make the motor run as fast and stable as possible without losing steps, while keeping as much torque as possible.

Thanks in advance!

Then you want to use the highest possible power supply voltage, which you have not mentioned!

I am currently using an AC adapter 12V If that is what you meaning
For black and yellow cable.

You didn't post specs for your motor, but you likely do not get best speed/torque from that with 12V supply voltage.

Oh I see I updated the post with the details:
Manufacturer Part No: 23HS22-2804S.
Motor type: bipolar
Step Angle:1.8 Degree
Holding Torque: 1.26 Nm.
Rated current, phase: 2.8A
Phase resistance: 0.9 ohms
Inductance: 2.5 mH +/- 20 % (1 kHz).

I would use 36V supply voltage and 2.8A current setting for maximum performance.

Change SW2. 2.5 Amp is maximum. Don't use more. 3.5 is too much.

High and good are quite subjective terms. How high is high and how good is good?

Will that stepper even provide the required speed and torque for your application no matter what settings you use?

can you clarify the answer please
so you mean I am turn on switch 2 and turn off switch 6?

Thanks in advance

Quoted answer is not mine.

Anyway, there are many slightly different TB6600 drivers around with different current settings. If yours has 2.8A setting, pick that, if not pick next below.

The first 3 swiches, SW1, SW2 and SW3 set the current. The label tells the value.

To be sure, please post the label of a real TB6600. My ones look different.

I just noticed I actually think I am using the wrong Motor driver for this purpose the old one I had laying was:

Twotrees Stepper Motor Driver,
TB6600 4A 9-42V Nema 17/23
CNC Control Single Shaft Hybrid - Enhanced Version 1

When it comes to upgrade the adapter do you recommend this one?

Power Supply, S-350-36 Power Supply 36V 350W Security Surveillance Industrial Power Supply 10A Output Voltage: 36V

See post #8

The torgue need to handle at least 6-10 kg max.
So in the box on the image is filled with catsand

Meanwhile the small cogwheel controlled by wormgear mechanism toghether with the big cogwheel.

The faster the better as you see it takes a while to spin the big cogwheel.

You posted the wrong driver label and that's misleading. Forget my posts.

I never saw a TB6600 where S1-3 set the current. SW1-3 always set the microstepping. ( be aware, that the picture in post #1 is wrong - it doesnt show a TB6600 )

Why? The TB6600 should be able to drive your stepper.

That's a power supply and not a stepper driver. And it's much to big for your stepper. You don't need that much power for your MENA23 stepper.

For high torque and speed, use fullstep. All data of your stepper datasheet is at full step.
With microstepping you lose speed and torque ( and noise :wink: )

What you mean I posted wrong driver label? I mention in the post I am not using the DM860A

I am using TB6600
or what do you mean?

If you look at the torque speed curve for your motor you will need to run it pretty slow to get the torque you need, probably less than 75 RPM

Is that fast enough?

I don't really understand what you are doing here and what's the reason to use stepper. Do you need the positioning capability of the stepper? Steppers are vere inefficient motors and have a lot of drawbacks. But iti is easy position it and to set a defined rotation speed. Only if you use these features you should use a stepper.

When you need 'The faster the better' a stepper is usually not the best choice.

Then why post a misleading picture of a useless label and writing about pin settings?

Again, forget the attempt to assist You.