Torque problem
hi hope can me out, i'm using arduino, easystepper , nema 17 steppermotor.
everything works when press te push button motor turns, when put pressure on motorshaft has no power can holt hand.
here below code , in attachmend layout wiring. maybe missing something?
?
everything works when press te push button motor turns, when put pressure on motorshaft has no power can holt hand.
here below code , in attachmend layout wiring. maybe missing something?



code: [select]
#define distance 100
int stepcounter = 30;
int stepping = false;
void setup() {
pinmode(8, output);
pinmode(9, output);
digitalwrite(8, low);
digitalwrite(9, low);
pinmode(3,input);
}
void loop() {
if (digitalread(3) == low && stepping == false)
{
stepping = true;
}
if (stepping == true)
{
digitalwrite(9, high);
delaymicroseconds(500);
digitalwrite(9, low);
delaymicroseconds(500);
stepcounter = stepcounter + 1;
if (stepcounter == distance)
{
stepcounter = 0;
stepping = false;
}
}
}
you got right voltage on m+ suit motor?
(afaik, nema numbers have nothing motor's electrical / mechanical characteristics, mean layout of mounting holes.)
(afaik, nema numbers have nothing motor's electrical / mechanical characteristics, mean layout of mounting holes.)
Arduino Forum > Using Arduino > Programming Questions > Torque problem
arduino
Comments
Post a Comment