Shop OBEX P1 Docs P2 Docs Learn Events
BS2p and Servo Help — Parallax Forums

BS2p and Servo Help

bdrew7bdrew7 Posts: 38
edited 2007-05-21 02:59 in BASIC Stamp
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
·

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-05-19 01:28
    So, what does your program do?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • bdrew7bdrew7 Posts: 38
    edited 2007-05-19 01:34
    It prints "Finding PSC" continually.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-05-19 02:06
    How are you powering the PSC? How is it connected? Is the green light blinking and the red light solid?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • FranklinFranklin Posts: 4,747
    edited 2007-05-19 04:35
    Change your serin line to go somewhere other than the top of the loop and print a debug message to see if the stamp is resetting or the serin is timing out. For testing you could also increase the time it waits at the serin.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • bdrew7bdrew7 Posts: 38
    edited 2007-05-19 17:34
    The psc is powered from the cpu board via a three pin header and a Parallax three pin cable.· The header pins·are·ground, 5 volts, and signal from P11 on the cpu.· The cable is plugged into the three pins nearest the mounting hole in the psc connector.· The signal from cpu P11 is connected to serial in on psc socket.

    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.
  • bdrew7bdrew7 Posts: 38
    edited 2007-05-19 17:44
    I put a timeout of 5000, and I put a Test subroutine with a debug message. Evidently the Serin times outs, because it prints the Test subroutine debug message. I am beginning to believe I have a fried psc.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-05-21 02:59
    Contact us in Tech Support tomorrow directly and we can issue an RMA number to send it in for testing.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.