# Minimalist version of USB arm control to show how simple it could be! (c) N Polwart, 2011 import usb.core, time dev = usb.core.find(idVendor=0x1267, idProduct=0x0000) if dev is None: raise ValueError('Device not found') # if device not found report an error dev.set_configuration() datapack=0x40,0,0 # change this to vary the movement bytesout=dev.ctrl_transfer(0x40, 6, 0x100, 0, datapack, 1000) time.sleep(1) # waits for 1 second whilst motors move. datapack=0,0,0 bytesout=dev.ctrl_transfer(0x40, 6, 0x100, 0, datapack, 1000)
A version with some more detailed comments / documentation and user feedback when it runs is available to download arm_0.py
There programs all require the pyUSB library - which can be downloaded from sourceforge. This is the version I am using. Download it, extract the zip file and run "python setup.py install" and it should be done.