Hi i hope somebody can help me out, i'm using arduino, easystepper and Nema 17 steppermotor.
Everything works when i press te push button the motor turns, but when i put pressure on the motorshaft it has no power i can holt it with my hand.
here below code and in attachmend layout wiring. Maybe i missing something?????
#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;
  }
 }
}
i'm using a nema 17 45Ncm(63.7 oz.in) 2A 2,2V for power i use pc power Supply.
i try this code below and it gifs good power torque.
What i need is that the motor moves 20 steps i pusch the button but with good torque
void setup()
{
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
}
void loop()
{
 digitalWrite(3,!(digitalRead(3)));
for (int I=0;I<7000;I) // As the easy stepper driver is in microstepping mode
             // We need to increase the step count.
 {
 digitalWrite(2,HIGH);
 digitalWrite(2,LOW) ;
 delayMicroseconds(2000);
 }
}
Your motor requires 2A (per coil) to run at its biggest torque.
The easy driver can only deliver 0.15A (min) - 0.75A (max) per coil. That is too low to drive the motor at its max possible torque.
But, at 0.75A it should already produce so much torque that you cannot hold it with your hand.
i try this code below and it gifs good power torque
In your first post you said, there is no power; now you say, that with (another?) code you got good torque ??
Torque is mainly based on your power supply, (a bit) micro stepping and speed (the more speed, the less torque, depending on the characteristics of your stepper).
Questions:
What external power supply (voltage / current values needed!) do you use to power the easy driver?
-> you said: PC power supply, so 12V? 24V/3A would be much better if you want more speed and torque.
Did you adjust the easy driver current to its max?
Here i made a video what the motor does, it has no power
What do you expect? Running the stepper motor "under powered", maybe even below easy driver's max. potential and then you torture the stepper motor holding it with a level (I thought you would have tried to just hold the plain shaft)...
Pls answer my questions in #5 and we'll know better where your problem lies.
Did you adjust the easy driver current to its max?
Yes i turn it to max
Sorry for my bad English
i did use this code, i can hold the motorshaft with my hand
#define DISTANCE 100
int StepCounter = 0;
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);
  delay(5);    Â
  digitalWrite(9, LOW);
  delay(5);
  StepCounter = StepCounter + 1;
  if (StepCounter == DISTANCE)
  {
   StepCounter = 0;
   Stepping = false;
  }
 }
}
then i tested the motor with this code. the motor moves forward and backwards and i cant hold the shaft, so somethings wrong with the first code thats the one i need, but i dont know what could be wrong
void setup()
{
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
}
void loop()
{
 digitalWrite(3,!(digitalRead(3)));
for (int I=0;I<7000;I) // As the easy stepper driver is in microstepping mode
             // We need to increase the step count.
 {
 digitalWrite(2,HIGH);
 digitalWrite(2,LOW) ;
 delayMicroseconds(2000);
 }
}
Aside for the pin numbers, the only (material) difference between the two codes is the time between steps - 2 milliseconds in one case, and 5 in the other case.
First step is for you to explain why you change pins from one code to the other.