We’re using the arm with optional wrist rotate.
First, everything works well when using the USB and free sequencer utility from a pc.
My question concerns connecting directly to the ssc32 from a microprocessor. We are trying to connect the same way (using the same connector) as the “Bidirectional TTL Serial Communication” part of the diagram on this page: lynxmotion.com/images/html/b … #ssc32feat
with no luck. It is possible that we don’t have the stop and start bits, parity, and other things (non-)inversion] correct, though we are reasonably confident on the baud rate. Is there a document pointing to that information? Any hints before we really get in to it?
Thanks!
First, please note that if you are using a USB connection than you most probably have the SSC-32U and not the older SSC-32 (with a DE-9 connector instead of a USB device port [mini B]).
We recommend that you check out the SSC-32U manual here. You should definitely check out pages 24-26 for more details on the protocol for the SSC-32U.
The UART communication is by default 9600 baud rate, 8 data bits, 1 stop bits, no parity. Generally speaking, you should only need three wires: TX>RX, RX>TX and a common ground (GND) between both boards.
Please provide one or more pictures showing clearly your SSC-32U, its jumpers and all connections to it (servomotors, power cables, serial communication). Make sure to also show your microcontroller and all of its connections and any other components part of the circuit. Please add notes to the images as required to make everything clear.
You can attach images to your reply by going into Full Editor mode and opening the Attachments bar above the 4 orange buttons; Preview, Submit, Save draft and Cancel.
Sincerely,
We had been all over the manual many times, but didn’t find the necessary information. The picture is attached:
Thank you for the image. Unfortunately, it is not clear where your wires are going exactly, so we’ll have to assume the RX from the SSC-32U is going to the TX of your microcontroller board and that the GND of each boards are connected together.
Since the SSC-32U can be used by USB, it should have no issue functioning using the exposed TX/RX header directly. The first assumption would be this is either a wiring issue or a code/command issue (or both!). Does the LED A/B on the SSC-32U blink when you transmit data using your microcontroller?
In your picture you have the USB cable connected. Please make sure to only ever use one of the following at any time: USB port, the XBee socket or the exposed TX/RX since they are all internally connected to the same hardware RX/TX pins on the microcontroller on the board. We recommend that you disconnect the USB cable when testing the connection with your microcontroller.
Which information were you looking for that you could not find?
Sincerely,
We have disconnected the usb connection, re-powered everything. When transmitting, the A blinks once. Our Tx is connected to Lynx Rx, our Rx is connected to Lynx Tx, and our vss is connected to Lynx G.
The information we couldn’t find was provided in a previous email (n, 8, 1, etc), thank you.
Hi,
Could you please attach a copy of the code you are using to transmit commands to the SSC-32U? If you prefer not to attach to a public post, you can also send it as a private message, too.
Sincerely,
[highlight=#ffffff][font=arial, sans-serif]No problem posting the code, maybe it will help others. We’re starting simple.
’ {$STAMP BS2}
’ {$PBASIC 2.5}[/font][/highlight]
[font=arial, sans-serif][highlight=#ffffff]SEROUT 9,84,“0 P1500 4 P750 T2500”][/highlight][/font]
Hi,
You may notice in the manual (pages 24-26) that movement commands to a servomotor channel are supposed to start with the character ‘#’ followed by a number, the letter ‘P’ and then the position in us.
But, the ‘#’ character may be a special character in the code you are using. We recommend that you read mote about the SEROUT command and check how to add this character to the string.
Sincerely,