Shop OBEX P1 Docs P2 Docs Learn Events
How to reset servo conroller? — Parallax Forums

How to reset servo conroller?

demodemo Posts: 19
edited 2006-11-14 17:35 in General Discussion
Hi,

I tried sample codes for servo controller and it didn't work out too well, I have one servo spinnign around and green light blinking on servo controller, can't make it stop.
How do I reset the controller, so I can start from beginning?

Comments

  • PARPAR Posts: 285
    edited 2006-11-13 20:35
    demo said...
    Hi,

    I tried sample codes for servo controller and it didn't work out too well, I have one servo spinnign around and green light blinking on servo controller, can't make it stop.
    How do I reset the controller, so I can start from beginning?
    Are you using the PSCI interactive program to control the PSC directly, or are you downlooading/running PBasic programs from the PBasic editor to control the PSC ?

    If the latter, then post your program to this forum for help. If the former, then slide the slider controlling the spinning servo so as to stop/center it.

    It sounds like you are using continuous-rotation servos ("...servo spinning around...)?

    PAR
  • demodemo Posts: 19
    edited 2006-11-14 17:35
    I'm using PBasic editor to control PSC, and seems like I can get connection to PSC, I'm using this code:

    ' {$STAMP BS2sx}
    ' {$PBASIC 2.5}
    Sdat PIN 15
    Baud CON 396
    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

    I have Serial version of PSC, is it possible to use interactive program with it?
Sign In or Register to comment.