Hello,
i am currently trying to build a Hexapod. I managed to write Sequences on the Arduino IDE and control the Servo´s over TX/RX with the SSC32U. What i did was putting delays between the commands like :
Serial.println(“#0 P 1500 T1000);
delay(1100);
Serial.println(”#0 P 1200 T1000);
delay(1100);
Which did work fine! But as next Step i want to control the Speed with a external variable
therefore i want to request the movement Status with command QP( SO i wont send the next command while movement isnt finished). For some Reason i just get -1 in the Serial Monitor which stands for “no Data received” . Arduino and SSC32U are Grounded together. Below ist my Test with QP.
Serial.println(“QP0”);
position = Serial.read();
Serial.print("POSITION ");
Serial.println(position);
Is there someone who could provide a example code with arduino + SS32U for so i could test? Maybe it´s a hardware Error on Arduino/SSC32U?
Is there another way “blocking” the next command and to wait till actual movement has finished ?
Greets from Germany