I am using an Arduino MEGA and a TB6600 motor driver to control a NEMA 17 stepper motor. It is very noisy. It sounds like water boiling when it isn't moving. When it is moving, it sounds like its slightly grinding. I was under the impression that the TB6600 was supposed to help with the noise. My code is attached below. Any suggestions for troubleshooting?
/* Example sketch to control a stepper motor with TB6600 stepper motor driver, AccelStepper library and Arduino: acceleration and deceleration. More info: https://www.makerguides.com */
// Include the AccelStepper library:
#include <AccelStepper.h>
// Define stepper motor connections and motor interface type. Motor interface type must be set to 1 when using a driver:
#define dirPin 2
#define stepPin 3
#define motorInterfaceType 1
// Create a new instance of the AccelStepper class:
AccelStepper stepper = AccelStepper(motorInterfaceType, stepPin, dirPin);
void setup() {
// Set the maximum speed and acceleration:
stepper.setMaxSpeed(2000);
stepper.setAcceleration(2500);
}
void loop() {
// Set the target position:
stepper.moveTo(500);
// Run to target position with set speed and acceleration/deceleration:
stepper.runToPosition();
delay(1000);
stepper.moveTo(0);
// Run to target position with set speed and acceleration/deceleration:
stepper.runToPosition();
delay(1000);
}
Tells the mechanical mounting and tells nothing about the electrical characteristics.
Post a link to its datasheet and tell what current setting You use.
I use the TB6600 and a lot bigger stepper without problems.
Looking at your link to the motor, I see this specification: "Rated current 1.0 A & resistance 3.5ohms. ". That value is for EACH winding of the motor. The motor has two coils and they are operated in parallel by the controller. So the controller needs 2.0 amps for the supply to operate the motor.
For some reason when I post the link it leads to the original. I am using the 17HS4401S variation, it is 1.5A. It can be selected from the link I posted.
It's not a simple as that. Normally there is only one coil active, except when microstepping.
When two coils are active at the same time, total current does not exceed 140%.
Supply current is less than motor current, because these drivers work like buck converters.
Less current is drawn from a supply with a higher voltage.
Leo..