(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:
Are these DIP switch settings suitable for a 2.8A NEMA 23 motor?
What microstepping setting is recommended if I want high speed but still good torque?
Is lower microstepping generally better for torque and speed?
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?
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.
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).
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.
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 )
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.