Problems with servo controller
Karl Wendt
Posts: 7
We are working with the Parallax Servo Controller with the Professional development board with a BS2sx. We are having problems debugging the servo controller with the provided code.
http://www.parallax.com/Portals/0/Downloads/docs/prod/motors/ServoControllerManualRev B v2_4.pdf
I have already modified the Baud code in the third row to what we believe is the prober amount for our chipset but I do not know what else needs to be changed in order for the BS2sx to gain communication with the servo controller.
http://www.parallax.com/Portals/0/Downloads/docs/prod/motors/ServoControllerManualRev B v2_4.pdf
' {$STAMP BS2sx} '{$PBASIC 2.5} Sdat PIN 15 ' Serial Data I/O pin [color=#990000] Baud CON 1021[/color] ' Constant for 2400 baud buff VAR Byte(3) ' temporary variable FindPSC: ' Find and get the version DEBUG "Finding PSC", CR ' number of the PSC. 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 already modified the Baud code in the third row to what we believe is the prober amount for our chipset but I do not know what else needs to be changed in order for the BS2sx to gain communication with the servo controller.
Comments
Kind regards,
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Parallax Tech Support·
We actually have two Servo controllers and both show the same issue. It seems unlikely we fried both or received two defective ones.
What does the following code do exactly?
Thanks so much
But if you are supplying Vin to the servo ports, and that's where the PSC is plugged in, and you are supplying the PSC with more than 5v at Vin, that would be a problem. If you have Vdd as the + supply on the servo ports, then something else is going on.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
We also noticed this time that the green light on the PSC blinks when the BS2sx tries to contact it. It is solid when we hold the STAMP reset button. Something is definitely going to the PSC.
Sorry, we are really new to this
Yes, the logic power is separate from the "servo" power on the PSC.
The fact that the light goes green when the Stamp tries to communicate just means that the Stamp is pulling the serial line low (as it should), i.e., that there *is* activity on the serial line, not necessarily that the activity is valid or that anything is "working"; it is not a reflection of what the PSC is actually doing.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php