PDA

View Full Version : BS2SX and servo controller



hank van buren
07-31-2005, 12:24 AM
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

Chris Savage
07-31-2005, 12:27 AM
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 (mailto:csavage@parallax.com)

Jon Williams
07-31-2005, 12:37 AM
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 Williams
07-31-2005, 12:38 AM
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 buren
07-31-2005, 12:49 AM
Thanks a lot it is working 1021 is the # for the bs2sx next time I won't forget thanks again Hank