using !SCPSD in PSCU but servo still not off at the startup
bhaskarghsh4
Posts: 20
Hello,
I am using PSCU with basic stamp . I used "!SCPSD" to deactivate all the 16 servo channels of PSCU. After burning the code in the basic stamp whenever I start the parallax board & power up the PSCU (but not activating usin !SCPSE) the servo takes a predefined value even though channel is deactivated.
thanks for your kind attention.
I am using PSCU with basic stamp . I used "!SCPSD" to deactivate all the 16 servo channels of PSCU. After burning the code in the basic stamp whenever I start the parallax board & power up the PSCU (but not activating usin !SCPSE) the servo takes a predefined value even though channel is deactivated.
thanks for your kind attention.
Comments
I did it
I used the following code
FOR lup=0 TO 15
SEROUT PSC, baud+$8000, ["!SCPSD", lup, CR]
NEXT
That should work if you have the VAR for PSC pin declared correctly.
Could you post your entire code and maybe a picture of your setup?
Does the PSCU respond to normal servo commands?
to
396 is the correct setting for 2400 Baud on a BS2e. (Default mode on the PSCU).
But I am sorry to say that it didn't fix the problem.
The SUB vehi_swch:
1) Disables all servos.
2) Enables rw, lw, and vs.
3) Sends a position command.
The PSCU will send the current position then the updated position. Is this the expected behavior?
The code base is large and complex. Create a simple program specifically for testing servo enable and disable. This will verify enable and disable commands function as expected. Once verified you'll know if the problem is the PSCU or a bug in the code.