How to read values from ssc-32 board of servos?

Hello everyone,

I am messing around with Hexapod. I have connected SSC-32 with BoatBoarduino.
I was able to send commands to Servos the following way.
the default values on these servos is 1500.

void setup(){ Serial.begin(115200): while(!Serial){ ; } } void move1(){ Serial.println( "#1P1700#9P1700T1000") delay(2000); } void move2(){ Serial.println("#1P1500#9P1500T1000") delay(2000); } void loop() { move1(); move2(); }
Also if I can make them appear them on my Monitor from BotBoarduino?
The code does not do anything except that it picks up legs connected to these servos on hexapod and come back to their original position again.

Now what I want to know is that, I am sending commands to servo #1 #9, is there a way I can read if the values of servos from SSC-32 really are at these positions?
I want to do something like this.

read(#1) = value; if (value = 1500){ do something } else{ Serial.println(#1P1500) }
Also, you guys can see that I am really horrible at coding, is there a better way I can send these commands and make different function?
I have lot more questions, but for now I would like to know about this.

Thank you in advance.

You can open the Arduino serial terminal and see the commands being sent. Ensure you use the right Baud rate.

Unfortunately unlike smart servos, you cannot read the actual servo position of a normal RC hobby servo. You can query the position command which the SSC-32 is sending to each pin though, and assume that’s where the servo really is.

CBenson thank you replying.

And how Exactly would I query the position command?

I am sorry, I am really new at this stuff.

Happy to help. Take a look here:
lynxmotion.com/images/html/b … tm#qpwidth

I just happened to stumbled onto this post and saw your Arduino serial code through the SSC-32 to your Hexabot…Great I thought…just what I needed to get me going with my 17DOF Bot… I could not get it to compile though and made a couple of “punctuation” revisions…and got it to compile… now to test with my BotBoardDuino/SSC-32U/ and 17DOF…

[code]void setup(){
Serial.begin(115200);
while(!Serial){

}
}
void move1(){
Serial.println( “#1P1700#9P1700T1000”);
delay(2000);
}
void move2(){
Serial.println("#1P1500#9P1500T1000");
delay(2000);
}
void loop() {
move1();
move2();
}[/code]