I’m new to the forum and new to the Propeller chip but not new to the SSC32 servo controller. I would like to communicate to the servo controller with Spin.
Is anyone dabbling with the two together.
I’ve tried the Full Dulex serial object, but getting no response. I’ved used the servo32 object just fine. (servo to propeller chip)
I’ve gotten the BlueSmirf to work great with the SSC32 at the moment!
Can you talk to a PC serial port with the full duplex command? If so you should be ok(SSC32 talks to PCs too). If not you may need to invert the signal.
I finally figured it out. Woohoo!
Learning a new langauge takes alot of tinkering and guessing… and tinking and guessing…
Using the Full Delux serial object, I wrote;
SSC.str(string("#0 P1500 S1000",13))
or if I wanted to use the time command that the SSC-32 has, I’d write;
Thanks for responding Acidtech!
Ya, hopefully I can figure out how to get the SSC-32 to talk back.
That would be cool.
My next problem is, taking in an input, say an accelerometer, and having the servo move accordingly. I’m having a hard time figuring out how to change the ASCII number in the command line.
In Mbasic, you just through in the “dec variable” in the middle of the line and the variable can change to whatever, which is convenient. I can’t do that in Spin.