Can i make some programe myself to drive the AL5C robotic?

(sorry for my english)
Now, i am doing a project of the university. The teacher bought a arm robotic AL5C. And he told me to study all function of this robotic, the function means that the API for this robotic. And he let me use the api to make a program to realize and achieve a series action of this arm robotic. But he didn’t give me any documents… so , i search the information and document on the internet, but only a document for using the RIOS / SSC-32 Arm Control Software.
So now, i thought maybe i misunderstand my teachers meaning(i study in french,and i speak french poor…), but he said it should be make the program by the C or C++, so what should i do?
There are some libary or some document for my problem?

Can i make some programe myself to drive the AL5C robotic?

Yours sincerely
Cordialement
此致敬礼!

Thanks so much!!

If you have the SSC-32 servo controller then a program can be written in C or C++ to control the arm. Please read the SSC-32 manual.
lynxmotion.com/ViewPage.aspx … ID=70#serv

thanks somuch!

Excuse me, i saw that website, and i found very few things(a little) about the program, is there any function useful of the programe for this robotic? can u show it to me more directly? thanks so much.

or this robotic has some command , i can input these command to the robotic by the ssc-32 servo controller?
and i write the function myself, i only need to transfer the command of the robotic to the robotic servo?

(The notation indicates a number that is one of the parameters to the command. The notation 揫xxx]� indicates an optional part of the command.)

PL

SQ [SM ] [IX ] [PA ] [ONCE]

* PL <p> Specifies player p, either 0 or 1
* SQ <s> Specifies sequence number s, from 0 to 127
* SM <m> Specifies speed multiplier m, from -200 to 200
* IX <i> Specifies starting index i (a.k.a. step number), from 0 to 255
* PA <a> Specifies pause between steps, a, in milliseconds from 0 to 65535
* ONCE Specifies that the sequence is played only one time

like these?

Ok, You have an arm with the SSC-32 servo controller.

Your teacher wants you to make a program for it in C or C++.

You have seen the manual for the SSC-32.

The program you write will send commands to the SSC-32 to make the arm move. The math involved to intelligently move the arm involves inverse kinematics. We have three solutions for this arm…

lynxmotion.com/images/html/proj058.htm
lynxmotion.com/images/html/proj057.htm
lynxmotion.com/images/html/proj073.htm

There are no API’s for the arm itself.

It’s a little hard to understand what it is you are asking, but I assume you want to control the Robotic arm using a custom program written in C or C++. The SSC-32 is like a computer printer, you send commands from the PC to the SSC-32 so it can output servo movements the same way a printer is instructed to output text and graphics. All you need to know is what commands the SSC-32 understands, in other words, the format of the data that is sent to the SSC-32 and the baud rate. All this information is covered in the manual. What you need now is a software program that will send commands to the SSC-32 so the arm can move. Unfortunately, I know nothing about C or C++ programming language so I can’t help you there. You need to break this project up in to segments.

1.) Learn what commands the SSC-32 uses
2.) Learn how to interface with the SSC-32
3.) Acquire the C or C++ IDE to develop your program
4.) Figure out your movements are required and learn what PWM means
5.) Write the program
6.) Run the program and debug any problems.

No, this is the GP sequence player. This will not do what you want. You need to send commands for the servos you are using for the arm directly.

Send example. #0 P1500 #1 P1250 #2 P950 #3 P1450 T1500

The above example will move the servos 0,1,2,3 to the new position (500-2500) and the move will take 1.5 seconds.

thanks so much!

thanks so much!

You know what would be nice, a BASIC interpreter/compiler running on the PC that would simulate most of the BB2 with an AtomBasic or AtomBasicPro chip. Parallel port could be used for some I/O, and one of the serial ports would be used to communicate with the SSC-32. This way, a program could be tried out without having a real BB2 and AtomBasic chip.

There are other BASIC interpreters running on DOS or Windoz, but not with the identical instruction set.

Just thinking out loud.

Alan KM6VV

are you talking about some kind of Mbasic emulator that runs under windows?

Something like that. It would be a good intermediate step to be able to run on a PC, and generate code that could later be re-compiled to run on one or more of the BasicAtoms.

I often write C code modules that can be tested and explored on a PC, and then ported to an embedded project. But then C is probably more portable, and any HAL (hardware abstraction layer) can then accommodate the hardware differences.

Actually, I’m inclined to get back to my full-featured embedded C compilers anyway. But then I couldn’t directly use the BB2. Maybe LM would like to make a PIC chip compatible BB2 (BB2C?) that would take chips directly. Or I suppose I might get around it it. Same form factor, same headers, add a XTAL and RS-232 level converter, that’s about all it would take. 40 pins would be nice, but a surface mount 18F or dsPIC33F chip would be sweet! But I doubt there’s enough of an LM market for such a board. Wasn’t someone working on a board…

Alan KM6VV

I think you have read my mind or something regarding the emulator. It would be great to have thist type of IDE and even have virtual servo motors, LEDs, pizo buzer, etc so you can test its ouput. This would save some time. Virtual robots would be cool but I think that would make things a little complex.

A BB2c is an excellent idea. I would love to see one equiped with the dsPIC33F!

Great minds think alike!

Maybe it’s time we started another “processor board” thread.

For simple bit I/O, the parallel port would work great. However, parallel ports are going away from PC’s, or so it seems. A USB dongle could still be used, I suppose. or a “Bit Whacker” board with it’s USB interface could be used to give the required parallel pins.

LED’s are great for working out a program. Eight LED’s dedicated to the task is not excessive!

I’ve also considered just making a little 28-pin module (carrier) with a dsPIC33F. Then it could directly plug into a BB2. However, one would need a bootloader (available) or and ISP connector to program it in-circuit. And a tiny little JST connector w/cable.

Alan KM6VV