The stepper motor rotate during NC state ( i.e when the relays are activated ) . The problem I am facing is that one of the motor on J9 connector doesn't step , it doesn't even vibrate when the relays are activated. I am not facing this issue which the motor when connected to J10 connector .
DRV8825 is in working condition since , I have tested both of them , motor runs when i place it on J10 Connector but not on J9 connector.
I have attached the schematic . J-10 and J-9 connectors are where stepper motors are connected
I am using NEMA 17 , 200 steps stepper motors , and the DRV8825 is in 1/32 microstepping mode
I am using 12 V , 12.5 A power supply . This board is used for switching the controls from my 3d printer board to my custom pcb board , both the boards use two common stepper motors .
The system works only if the motors are connected to the connector, after power supply is switched on .
Why isn't the DRV8825 producing an output voltage?
Code: Select all
#include <AccelStepper.h>
AccelStepper stepper1(1, 9, 8);
AccelStepper stepper(1, 7, 6);
const int stepPin1 = 9;
const int dirPin1 = 8;
const int stepPin = 7;
const int dirPin = 6 ;
const int Motor1 = A0;
const int Motor2 = A1;
const int Motor3= A2;
const int Motor4 = A3;
const int Motor5 = A4;
const int Motor6 = A5;
const int Motor7= 3;
const int Motor8 = 2;
void setup() {
pinMode(dirPin1, OUTPUT);
pinMode(stepPin1, OUTPUT);
pinMode(dirPin, OUTPUT);
pinMode(stepPin, OUTPUT);
pinMode(Motor1,OUTPUT);
pinMode(Motor2,OUTPUT);
pinMode(Motor3,OUTPUT);
pinMode(Motor4, OUTPUT);
pinMode(Motor5,OUTPUT);
pinMode(Motor6,OUTPUT);
pinMode(Motor7,OUTPUT);
pinMode(Motor8, OUTPUT);
stepper1.setMaxSpeed(500);
stepper1.setSpeed(500);
stepper.setMaxSpeed(500);
stepper.setSpeed(500);
}
void loop()
{
digitalWrite(Motor1, HIGH);
digitalWrite(Motor2, HIGH);
digitalWrite(Motor3, HIGH);
digitalWrite(Motor4, HIGH);
digitalWrite(Motor5, HIGH);
digitalWrite(Motor6, HIGH);
digitalWrite(Motor7, HIGH);
digitalWrite(Motor8, HIGH);
stepper1.runSpeed();
stepper.runSpeed();
}