How to control the Parallax servo controller?
Hello!
I´d like to be able to control servos using the Parallax servo controller using my·PC´s RS-232 serial port.
The goal is to have a VisualBasic program controlling the servos.
Will it work if i simply connect it to th PC ?
As I understand it, the servocontroller has a single bi-directional serial port.
I´d appreciate any help here!
Best regards
/// Martin ///
·
I´d like to be able to control servos using the Parallax servo controller using my·PC´s RS-232 serial port.
The goal is to have a VisualBasic program controlling the servos.
Will it work if i simply connect it to th PC ?
As I understand it, the servocontroller has a single bi-directional serial port.
I´d appreciate any help here!
Best regards
/// Martin ///
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
I bought a PSC a few days ago, assuming that since I had logic level serial available, I'd be able to send to it. However that seems to not be the case. All I can do now get the serial LED to blink, but it doesn't seem to get any of the commands. Most notably I've tried 2400N1 and 2400N2 so far with no success. At this point I'm wishing I'd bought a a Mini SSC-II, but I hope I'm eventually wrong.
P.S. I'd have waited for the USB version but my robot has to compete in two weeks...
·· Are you having trouble sending commands to the PSC via the PC, or the BS2?· What power supply do you have going into the PSC?· The logic side will get it's power from the BOE if connected to one via the servo cable.· But the servos require power through the screw terminals on the PSC.· Just curious what you have connected there.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
I have a rough circuit diagram attached (sorry for no pin#'s, it's from memory). Things appear to all be working except for setting any commands. The PSC is indicating power and drives all the servos to neutral as expected. When I send serial the green LED blinks. The PSC's circuit diagram shows that the green LED indicates 0 for the TTL serial (I think), which matches what you would expect when sending all 00 or all FF in hex. So I think everything is fine except my translation of the serial interface; I'm pretty certain the command message is correct, but I couldn't find what the serial paramaters should be exactly. It looks like 2400,8N1 from the docs, but that doesn't seem to work. Maybe it expects an inverted signal (0=5V,1=0V)?
·· Actually, as per the docs, the device defaults to 2400bps, no parity, eight data bits, two stop bits, true data open drain (driven low, pulled high).· You must use the AppMod protocol to talk to the device.· I would suggest downloading the most updated datasheet for this device from our website.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com