IRNAS / postep256-pyusb-driver

Driver for PoLabs PoStep256

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

postep256-pyusb-driver

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.

Windows Usage

Installation

  • 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 into C:/Windows/System/libusb/x64 folder (or C:/Windows/System32/libusb/x86 if you are using a 32-bit version)

Test run

  • 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:
    1. Click Device > Create New Device
    2. select Options > List All Aevices
    3. select PoStep60-256 from the list
    4. you will see the existing driver on the left hand side. On the right hand side select WinUSB and click Replace Driver

The correct libusb is now installed to run PoStep60-256.

Re-try running the Python postep_test.py.

Installation Linux

See https://github.com/pyusb/pyusb#installing

About

Driver for PoLabs PoStep256


Languages

Language:Python 100.0%