Shop OBEX P1 Docs P2 Docs Learn Events
Help With SSC for UAV system — Parallax Forums

Help With SSC for UAV system

DirxionDirxion Posts: 2
edited 2007-06-12 19:05 in Robotics
Hey everyone,

I purchased an SSC controller to replace our old glitchy controller and now I cant seem to figure out how to use the SSC because it wont except any commands i give to it. Its a REV B board and I am using a Axys watchman 500 to control the SSC. From the electronics point of view our watchman 500 outputs -+ 6V using RS232 (with no load). However when the port is connected to the SSC the port is outputting standard TTL. Out of curiousity do I need a pull up resistor to the input of the port? Is there any other problems you can see from the electronics point of view?

For the software that was designed I've tried several different techniques to send information out of the port to the SSC. The serial port settings used were 2400 baud, no parity, 8 data·bits and 2 stop bits. I tried everything from sending individual characters out of the port, then tried with delay in between each character, then tried it as a string and finally tried switching from the USART port over to the UART port and still nothing happened. The data being output is this:


!SCXRPPH

Where:

X·8bits long·containing the servo channel
R 8 bits long containing ramp rate
PP 16 bits long containing position
H 8 bits long which is the carriage return

I've checked the information coming out and it seems to be exactly what I ouputted above. Any suggestions as to why this isn't working would be very very useful.

Thankyou

Comments

  • roboneticsrobonetics Posts: 16
    edited 2007-06-12 16:44
    hello,

    ········ if you can give·post a sample of the coding your using,·i will let you know where your going wrong with the ssc board. but i do have a question for you? is this board the ssc-32 ? this is the board i use in my robots but i control them with the basic atom mini bot board.

    thankz
    chaz
  • roboneticsrobonetics Posts: 16
    edited 2007-06-12 18:21
    here is a link you can use to check the wiring layout & manual of the ssc control board. hope this helps with the problem your having.

    http://www.lynxmotion.com/ViewPage.aspx?ContentCode=electronics&CategoryID=70#serv

    if you need more help, just ask.

    thankz
    chas
  • DirxionDirxion Posts: 2
    edited 2007-06-12 19:05
    typedef union

    {

    uint16_t real;

    uint8_t raw[noparse][[/noparse]2];

    }union16;

    void servo(uint8_t servo, uint8_t ramp,·uint16_t position·)

    {

    ·char cr = 0x0D;

    //Place position into union to be broken up into low and high bytes

    union16 position1.real = position;

    //output variables as a string

    se_printf(servoPort.portID, "!SC%c%c%c%c%c", servo, ramp, position1.raw[noparse][[/noparse]0],·position1.raw[noparse][[/noparse]1], cr);

    delay(1000); // delay 1 second

    }

    void main()
    {

    do{

    servo(0, 250, 0);
    delay(1000);
    servo(0,1250,0);
    delay(1000);

    }whlie(1);

    }

    This is the code i have tried. I've also outputted individual characters out the port as well rather then a string and that did not work either. As well my port settings are 2400 baud, 2stop, no parity and 8 data bits. ·ANy more suggestions. This is the board I am using as well:
    http://www.parallax.com/detail.asp?product_id=28023

    Post Edited (Dirxion) : 6/12/2007 7:11:32 PM GMT
Sign In or Register to comment.