Sending data to SSC32 from microcontroller

Hi,
I want to send sequences to the SSC-32 from a microcontroller like PIC. How should i do this?for example “#0p2200

Might help to have some additional information, like what micro-controller, what compiler or interpreter…

But the basics of doing this includes:
a) Connect the SSC-32 to your controller. You need a signal wire and a ground wire. Assuming you are not going through a TTL to RS232 level converter (like a max232), you do this by hooking into the same location like is shown for connecting up the Bot Board 2… lynxmotion.com/images/html/b … tm#aglance. Note: SSC-32 is a 5V device. You need to make sure your pic is compatible with this.

b) Send the data. How depends on several things like, what type of pin you connected to on the PIC. But it is basically the same as sending any text string serially from a PIC. Again don’t know what your set up is. Also don’t have much experiences with Pics, except now with Pic32…

Kurt

I am using PIC16F877, it has serial asynchronous mode that can be used to send data to SSC-32. I am writing my program in assembly language using mplab software from microchip. You said that if i want to send the sequence “#0p2000” from PIC to SSC-32 i should send it as string, which means that this sequence will be sent completely after 8 serial transmissions from ‘#’ to ‘’. Now my qustions are:
1- Even the position 2000 should be sent as characters for example: ‘2’, ‘0’, ‘0’,‘0’???
2- I can not set the baud rate to 9600 or 2400 exactly, it will give me a baud rate around these values. can this work or not, and what is the value of the baud rate to be used with microcontroller??

  1. If you are using the standard #nP1500 format yes the 1500 is sent as Ascii text. More details in the manual: lynxmotion.com/images/html/b … tm#comtype

However there are some versions of the firmware that allow you to send binary commands, which is shown in the document: lynxmotion.com/images/html/build177.htm (There is a link the first document to this one).

  1. Your choices of baud rates to the SSC-32 are 2400, 9600, 38400 and 115200. You need to be pretty close to these baud rates, but can usually get away with about a 1-2% deviation. The slower baud rates are the most forgiving as the bit widths are quite large, so usually not hard to get close enough.

Kurt

How can i know if my SSC-32 is a standard one or from the newer versions??
should i make a time delay between the sending of one character and the other??

If you purchased it in the last year or two it is a newer one. The newer ones have an Atmega168 processor. However the firmware that ships on the boards does not support Binary mode. To use binary mode you need to update the firmware to something like version 2.07EGP. You can download the firmware from the SSC-32 product page: lynxmotion.com/p-395-ssc-32- … oller.aspx You then can update the firmware use the Lynxterm program, with the SSC-32 connected to your PC at 115200. A link to the Lynxterm program is on the SSC-32 product page as well.

Kurt

Thank you, I did it using both strings and binary commands