Python Library on Linux for Keigan Motor
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
pykeigan_motor
tests
tools
.gitignore
MIT-LICENSE
Makefile
README.rst
requirements.txt
setup.py

README.rst

Python Library on Linux for Keigan Motor

You can control your Keigan Motor through USB Serial and BLE.

https://www.keigan-motor.com/

At present we support Linux only, because this library depends on bluepy(Python interface to Bluetooth LE on Linux):

https://github.com/IanHarvey/bluepy

Requirement

  • python ≥3.5
  • bluepy
  • serial

Installation

sudo apt install git
cd pykeigan_motor
python setup.py install

USB Serial

from pykeigan_motor import KMControllers
dev=KMControllers.USBContoller('/dev/ttyUSB0')
dev.enable()
dev.speed(1.0)
dev.runForward()

BLE

from pykeigan_motor import KMControllers
dev=KMControllers.BLEController("xx:xx:xx:xx:xx")
dev.enable()
dev.speed(1.0)
dev.runForward()