i am a noob, so be gently, please.
i am sure i attached the arduino with 2 driver correctly, and adjust the code accordingly. the drivers and motors arent broken. the tx and rx 0 works, but tx1 and rx2 doesnt work. am i missing something?
void setup()
{
Serial.begin(9600);
Serial1.begin(9600);
}
void loop()
{
Serial.print('O'); // turn on stepper motor
Serial.print('S'); // set speed
Serial.write(10); // to 10
Serial.print('<'); // rotate counterclockwise
Serial.print('M'); // set micro-stepping to
Serial.write(1); // 1
Serial.print('G'); // run the stepper motor
delay(3000);
Serial1.print('O'); // turn on stepper motor
Serial1.print('S'); // set speed
Serial1.write(10); // to 10
Serial1.print('<'); // rotate counterclockwise
Serial1.print('M'); // set micro-stepping to
Serial1.write(1); // 1
Serial1.print('G'); // run the stepper motor
delay(3000);
}
after i upload this code, only motor that connect to Driver 1 moves. whats the problem?
