I’m working with MATLAB and I have the positioning commands working well to each of my 3 servos, however when I include a time command to slow down the pace it works only occasionally. Actually, the only consistent command I have working is position. My previous problem with getting positions to work was fixed when I changed the terminator to ‘CR’ instead of ‘LF’… so right now my terminator is set to carriage return. My printf statement looks like this:
fprintf(s, ‘#1P1200T1000’)
Any reason why this would only work occasionally? I can literally repeat the same command and the servos will go slowly for a bit sometimes and then act as if no time command were present other times… thanks!
My gut instinct tells me the SSC-32 is resetting. This would make it treat the servos as if they were being moved for the first time. If it has not moved it before it doesn’t have a starting location to move from, so it can’t do a speed or timed move. A quick way to tell if this is happening is if the green LED on the SSC-32 lights up steady durring a move. The LED is not a power LED, but rather a status LED. On powerup it lights if all is well. After it has received it’s first valid data string from the host, it goes out, and only lights when it is receiving data. This looks like blinky blinky. If it is the SSC-32 resetting then you need to use either a more powerful power supply for the SSC-32 and the servos, or separate the logic from the servo supply.
Man Jim, you’re two for two! My group and I are getting this stuff ready for a senior design project for our engineering program, so we really appreciate the quick feedback, thank you