[font=Arial]Hi,
Thank you for getting back to me!
Tried onboard “Test” button, it works just fine.
When I try to run motor with Arduino, then the motor randomly stalls with only 2 LEDs ON (as image in attachment). While this happens, I can see from oscilloscope that the signal on EN, PULSE, DIRECTION are all correct.
The code is like this:
#define PULSE 8
#define DIRECTION 9
#define EN 10
int steps = 0;
int delayMicroSecond = 1000;
String inString = “”; // string to hold input
void setup()
{
pinMode(PULSE, OUTPUT);
pinMode(DIRECTION, OUTPUT);
pinMode(EN, OUTPUT);
digitalWrite(EN, HIGH); //set EN pin on motor driver
digitalWrite(DIRECTION, LOW); //set DIRECTION pin on motor driver
}
void loop()
{
digitalWrite(PULSE, HIGH); //set pulse pin on motor driver
delayMicroseconds(delayMicroSecond);
digitalWrite(PULSE, LOW); //clear pulse pin on motor driver
delayMicroseconds(delayMicroSecond);
}
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<[/font][font=Arial][font=Arial]The wiring diagram as attached.
Could you please take a look at this and let me know the problem?
Thanks!
PS:
I[/font][/font][font=Arial][font=Arial][font=Arial][font=Arial]plugged in[/font][/font]a previous model driver (SD02B) and it works fine with the exact same code. It doesn’t randomly stop as I experienced with SD02C driver, only thing is that the current is a bit higher at around 1A with SD02B.
Is this telling the SD02C needs extra setup to work? Specifically, do you see any concern in [/font][/font][font=Arial][font=Arial]stepper motor (RB-Soy-03: Sy42sth38-0406A) working with SD02C?
Thanks![/font][/font]