BS2p and Servo Help
bdrew7
Posts: 38
I am attempting to run the software below to read the version of my servo controller board.·
The cpu is a BS2P and the servo controller is a serial Parallax Servo Controller, Rev B.· The cpu is mounted on a Super Carrier Board.· The signal from the cpu for the servo controller goes through a 22k resistor from pin 11 on the cpu to the signal pin closest to·the board mounting hole·on the servo controller.
The controller lights up, but I have no communcations with it.
Thanks in advance for any suggestions.
bdrew7
' {$STAMP BS2p}
' {$PBASIC 2.5}
Sdat····· PIN···· 11
Baud····· CON···· 1021
buff····· VAR···· Byte(3)
FindPSC:
· DEBUG "Finding PSC", CR
· SEROUT· Sdat, Baud+$8000, [noparse][[/noparse]"!SCVER?",CR]
· SERIN·· Sdat, Baud, 500, FindPSC, [noparse][[/noparse]STR buff\3]
· DEBUG·· "PSC ver: ", buff(0), buff(1), buff(2), CR
· STOP
·
The cpu is a BS2P and the servo controller is a serial Parallax Servo Controller, Rev B.· The cpu is mounted on a Super Carrier Board.· The signal from the cpu for the servo controller goes through a 22k resistor from pin 11 on the cpu to the signal pin closest to·the board mounting hole·on the servo controller.
The controller lights up, but I have no communcations with it.
Thanks in advance for any suggestions.
bdrew7
' {$STAMP BS2p}
' {$PBASIC 2.5}
Sdat····· PIN···· 11
Baud····· CON···· 1021
buff····· VAR···· Byte(3)
FindPSC:
· DEBUG "Finding PSC", CR
· SEROUT· Sdat, Baud+$8000, [noparse][[/noparse]"!SCVER?",CR]
· SERIN·· Sdat, Baud, 500, FindPSC, [noparse][[/noparse]STR buff\3]
· DEBUG·· "PSC ver: ", buff(0), buff(1), buff(2), CR
· STOP
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
The red led is·brightly lit on the psc, and the green led is flickering faintly.· The measured voltage on psc vcc·pad is +4.97 volts.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support