I am new to stepper motors, and would like to know how to get the best possible torque out of my motor.
i have EM 326, from epson, sadly i am having a hard time looking for its datasheet.
I already know the code to make it spin from a guide i saw.
void StepForwardDefault()
{
Serial.println("Moving forward at default step mode.");
digitalWrite(dir, LOW); //Pull direction pin low to move "forward"
for(x= 1; x<5000; x++) //Loop the forward stepping enough times for motion to be visible
{
digitalWrite(stp,HIGH); //Trigger one step forward
delay(1);
digitalWrite(stp,LOW); //Pull step pin low so it can be triggered again
delay(1);
}
}
But anyway, i would like if somebody could teach me a code to get the highest torque?
Thank you im going to watch it after posting this.
jremington:
The code has little or nothing to do with torque, unless you are attempting to step the motor too quickly.
Factors that affect torque: motor driver, power supply voltage, speed.
I am using an easy stepper motor driver , 27 volt battery ( 3x 9volt battery), as for speed im fine with anything for now. Will you be able to help me with this sir?
If you are using 3 x PP3 style 9v batteries you can't expect much. They are not intended for powering motors - they cannot provide enough current.
When stationary a stepper motor will have maximum torque (preventing it from turning) when the current is at the max permitted - i.e. a higher current would damage the motor. A new motor comes with details of its torque and max permitted current. Without the datasheet all you can do is guess and experiment. It would be normal for the motor to be so hot it would be uncomfortable to touch. But it should also be clear that the temperature has stopped rising.
When the motor starts turning the magnetic forces make it difficult to get the maximum current through the coils and the faster it turns the greater is this effect. Again, manufacturer datasheets should provide a graph showing how the torque declines with speed. A higher voltage power supply will help to "force" the current through so it can work at higher speeds. But it is essential that the motor driver limits the current to protect the motor.