Driver for PoLabs PoStep256 written in Python and using PyUSB package. See the postep_test.py
file for usage example of the library.
This library is under development and implementas basic functions. It assumes the driver is priperly configured though PoStep256 configuration application prior to use.
Features available currently allow for the position control of the attached motor and to set it to operate at constant speed.
- See this repo for installation of
pyusb
- download
libusb DLL version 1.0
from the link in the code comment (line 28). You can use this link if you happen to run into trouble with the original one. - save
libusb-1.0.dll
intoC:/Windows/System/libusb/x64
folder (orC:/Windows/System32/libusb/x86
if you are using a 32-bit version)
- If the first test run fails in backend recognition, you can replace line 37 in
postep256usb.py
with full path to your DLL 1.0 library. - Occasionally,
NotImplementedError
is raised. In this case, download and install Zadig and follow these steps:- Click
Device
>Create New Device
- select
Options
>List All Aevices
- select
PoStep60-256
from the list - you will see the existing driver on the left hand side. On the right hand side select
WinUSB
and clickReplace Driver
- Click
The correct libusb
is now installed to run PoStep60-256.
Re-try running the Python postep_test.py
.