Dobot Magician Speed setting


#1

Hi all,
I am new with Dobot Robot programming, and I like to use python script control the Dobot Robot.

First of all, I like to control the speed of the Dobot Robot, I saw there are 2 API which are SetPTPJointParams and SetPTPCoordinateParams to control the speed.

I try to search for the details of using those API, but don’t really find it.

Could anyone tell me or provide me the details of using it, for example, what is max value I can input into the arguments? And what is the differences between these 2 API?

Please kindly help and thanks in advance.
Kah Lee


#2

I wrote an article recently for Servo Magazine showing how to create a simple library that allows RobotBASIC to control the Dobot Magician. The code can be downloaded from the In The News tab at RobotBASIC.org (see article #42). Studying the code should help you see how control can be done with almost any language, including python (without API’s etc -just build your own library as I did). The library just sends rs-232 data out over the USB cable to the Magician. All you need is the port numbers used - easy to get from the device manager etc.


#3

Hi John,

Thank you very much on the reply.

Are you referring to this link http://www.robotbasic.org/in-the-news/

However, I cannot find the article #42, can you show me where is the web-link.

Best regards.
Kah Lee


#4

Hi John,

I think I got it.

Is it this link http://www.robotbasic.org/app/download/4692536/DobotMagicianPrograms.zip

Kindly advise.
Kah Lee


#5

Yes - that is the link. Just scroll down to #42. It is NOT the article itself (you have to subscribe to Servo for that) but you can download a zip file that has all the source code. You can also see the code in action by viewing this YouTube video (hopefully that will help you understand what is going on in the program):