hi,
Im planning to use arduino mega 2560 to control 2 stepper motor driver SD02B from cytron. for the first driver, i have to connect its Tx0 of Arduino's Rx0 and its Rx to Arduino' Tx0. this is shown in the manual of the stepper motor driver SD02B. so i assume that for the second driver, i just connect it's Tx to arduino's Rx1 and and it's Rx to Arduino's Tx1.
in the Arduino IDE, i just modify the code provided by Cytron: i just added Serial1.begin(9600) in void setup() and and add few lines in void loop() Serial1.print('O'),Serial1.print('S') and so on, exactly copied the example given, but just added "1" in Serial.print and Serial.write.
but after i upload the program, nothing happened to the second motor, thou the first motor works. i checked the driver with test button on the driver, and the motor moved, which means motor and driver arent broken.
my question:
is it arduino's IDE problem? (since some example from arduino's website also cannot be uploaded, the IDE dont recognize some of the commands in the examples given)
or is it arduino mega 2560 hardware problem? (because i tested with some other simple program, but Serial 1, 2, and 3 still doesnt work)
or is it my lack of understanding of how to connect the second driver to the arduino hardware? ( if so, how how i actually connect them?)