Skip to content

vlon/pydobot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI

Python library for Dobot Magician

Based on Communication Protocol V1.0.4 (latest version here)

Installation

pip install pydobot

Samples

import time
from glob import glob

from pydobot import Dobot

available_ports = glob('/dev/cu*usb*')  # mask for OSX Dobot port
if len(available_ports) == 0:
    print('no port found for Dobot Magician')
    exit(1)

device = Dobot(port=available_ports[0])

time.sleep(0.5)
device.speed(100)
device.go(250.0, 0.0, 25.0)
device.speed(10)
device.go(250.0, 0.0, 0.0)
time.sleep(2)
device.close()

About

Python library for Dobot Magician

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%