New Bedford Research & Robotics Project
A small program to run GCode on Dobot Magician
This github repo includes a dynamic library (and ctypes to allow Python to call C functions from the dynamic library). To run with a Dobot Magician arm, it is also necessary to install DobotStudio since it also installs necessary drivers (CP210x USB to to UART Bridge Drive Installer and Silicon Labs VCP Driver).
When running main.py, it is necessary to run it from the dobot-controller/ directory.
Run with Python 3.13
- Determine a
.gcodefile path. - Enter the file location into
main.py - Make sure the Dobot Magician is not already connected to another platform (like DobotStudio)
- Run the
main.pymodule
- Point to Point (PTP)
- MOVJ - move joint positions to an XYZ Cartesian position
- MOVL - move end effector positions to XYZ Cartesian position (straight line)
- JUMP - MOVL with additional Z lift (like raising pen)
- The Download command in DobotStudio downloads the commands to the Dobot so that it can run when not connected to USB by pressing the "Key" button on the back of the dobot.
- The Dobot commands are placed into a queue, and then run with
SetQueuedCmdStartExecandSetQueuedCmdStopExe. There is a limit to how many commands can be placed in the queue before the Dobot will just become unresponsive. I am unsure of what this limit is yet.
- Dynamic Library and CTypes: In the Dobot Demo v2.3 download
- Dobot Sample Video
- Dobot API Description
- Dobot Demos (V2)