Programming

Hi, does anyone have any relevant information as how to program servo motors for the AL5B Robotic arm. This information should be compatible with the 8051 micro-controller.

Many thanks.

Hi and welcome Dave,

Sorry, I am not sure about what your programming question is.

I have not used an 8051, but I have used many others. If you are wanting to directly control the servos of the Arm, then you need to have the 8051 generate the appropriate pulses for servos. A quick goggle of terms like: “8051 servo”, gives you several hits. Again I have not done it, so I don’t know how well that controller can generate pulses for all of the arms servos.

If on the other hand you wish to continue to use the SSC-32 to control the servos and simply to have the 8051 to tell the SSC-32, then you need to connect your board to the SSC-32. Again don’t know your board. I believe the 8051 has one USART, which you may or may not be able to use to connect to the SSC-32. If you can, this is easy. Simply connect up TTL level signals between the appropriate pins and have your program generate the appropriate strings, like: “#0P1500T30\n\r” (don’t need both cr and lf, but…) and send it to the SSC-32. If you can not use the USART, than you need to use some software to generate the serial output. You can usually find software libraries for most controllers that do this. They are often called “Bit Bang Serial” or “Software Serial” …

I would personally start off by first getting you controller to talk to a servo (either directly or indirectly). Then to all of them. Then to write the code to make the arm do whatever your assignment is.

Good Luck
Kurt