Skip to main content

pykinisi

Python package for kinisi motor controller. This package is used to control the kinisi motor controller via serial interface.
Description of the commands can be found in Kinisi Motion Controller framework documentation

Installation

Install pykinisi with pip:

pip install pykinisi

Controlling Single Motor

This example shows how to connect to the motor controller and control a single motor.\

import time
from pykinisi import *

port = "COM3"

controller = KinisiController()
if not controller.connect(port):
    print(f"Can't open serial connection. Port: {port}")
    exit()

# Motor test
motor_index = MotorIndex.Motor0
speed = 40 # Speed in percentage

# Is motor reversed 
is_reversed = False
 
controller.initialize_motor(motor_index, is_reversed)

# Set motor speed to speed
controller.set_motor_speed(motor_index, speed)
time.sleep(5)

# Stop motor
controller.stop_motor(motor_index)

More Examples

There are several examples in the examples folder which show how to use the pykinisi package to control the kinisi motor controller.
Run the examples with:

cd examples
python <example_file> <serial_port>

Package Development

Install pykinisi for development:

pip install -e .

Update KinisiCommands.py file:

cd tools
pip install -r requirements.txt
python update-commands.py --branch=main

Links

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pykinisi-1.0.6.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pykinisi-1.0.6-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file pykinisi-1.0.6.tar.gz.

File metadata

  • Download URL: pykinisi-1.0.6.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.0

File hashes

Hashes for pykinisi-1.0.6.tar.gz
Algorithm Hash digest
SHA256 205925059d8bb6f12406de33b654db9d3c42cc037e60bb64ae5acfce7d93987d
MD5 1e10ce4fd1cbc3d685d1165cc5324c21
BLAKE2b-256 5be748327a3651040d5babf09970142bc5822c442a4fe7ed069fe40c8f4b6b29

See more details on using hashes here.

File details

Details for the file pykinisi-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: pykinisi-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.0

File hashes

Hashes for pykinisi-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ee937fe39ae495b5fdb8df9374e532eb606f368f817d7b79eb6819eefcee7561
MD5 e0c585701460fffcbd8ea78ce1d18254
BLAKE2b-256 e490b228fac61c2eb635b81cb3e08c67e9982dd427ea362bb000480e82610e35

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 files

1.0.4.1

2 files

1.0.4

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page