Shop OBEX P1 Docs P2 Docs Learn Events
BS2SX and servo controller — Parallax Forums

BS2SX and servo controller

hank van burenhank van buren Posts: 57
edited 2005-07-30 17:49 in BASIC Stamp
Please Help I just purchased a servo controller but it don't want to work. I have tried To identify firmware version number and set the baudrate. I have a steady red led and a blinking green led on the servo controller also the servo is locked I assume in mid range I am using #15 pin for serout. what am I doing wrong??· Hank

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-07-30 17:27
    Hello,

    ·· Since you are using a BS2sx, have you set the baud rate parameters correct for a BS2sx?· The ones in the demo code are for the BS2, which is different.· The help files can tell you the correct baud rate parameters for your Stamp Module.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-07-30 17:37
    Baud parameters get people every time.· I have this block of code in my standard template that "fixes" the baud parameter for the BASIC Stamp module I happen to be using.

    #SELECT $STAMP
    · #CASE BS2, BS2E, BS2PE
    ··· T1200······ CON···· 813
    ··· T2400······ CON···· 396
    ··· T4800······ CON···· 188
    ··· T9600······ CON···· 84
    ··· T19K2······ CON···· 32
    ··· TMidi······ CON···· 12
    ··· T38K4······ CON···· 6
    · #CASE BS2SX, BS2P
    ··· T1200······ CON···· 2063
    ··· T2400······ CON···· 1021
    ··· T4800······ CON···· 500
    ··· T9600······ CON···· 240
    ··· T19K2······ CON···· 110
    ··· TMidi······ CON···· 60
    ··· T38K4······ CON···· 45
    · #CASE BS2PX
    ··· T1200······ CON···· 3313
    ··· T2400······ CON···· 1646
    ··· T4800······ CON···· 813
    ··· T9600······ CON···· 396
    ··· T19K2······ CON···· 188
    ··· TMidi······ CON···· 108
    ··· T38K4······ CON···· 84
    #ENDSELECT

    SevenBit······· CON···· $2000
    Inverted······· CON···· $4000
    Open··········· CON···· $8000

    Baud··········· CON···· T9600

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-07-30 17:38
    Follow-up: For the PSC, you might want to define two baud contants:

    BaudSlow······· CON···· T2400 + Open
    BaudFast······· CON···· T38K4 + Open


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • hank van burenhank van buren Posts: 57
    edited 2005-07-30 17:49
    Thanks a lot it is working 1021 is the # for the bs2sx next time I won't forget thanks again Hank
Sign In or Register to comment.