attie / koradctl

Control utility for Korad / Tenma power supplies
BSD 3-Clause "New" or "Revised" License
13 stars 4 forks source link

koradctl - Power Supply Control Utility and Library

koradctl is a simple python library to support the control and automation of Korad KAxxxxP series power supplies. These supplies are also rebadged as other brands including Tenma and Vellerman (see here for a more complete list).

koradctl has been tested with bench power supplies that respond with the following firmware identification. Please let me know if you have successfully used koradctl with other power supplies.

Install

pip install koradctl

Usage

# Output off
koradctl -e off

# Toggle the output
koradctl -e toggle

# 12v, 400mA, Output on, Monitor with readings once every 10 seconds
koradctl -v 12 -i 0.4 -e on -M -f 10

# 3.3v, 250mA, OCP on, OVP off, Output on, Monitor once
koradctl --ocp on --ovp off -v 3.3 -i 0.25 -e on -m

# 5v, 150mA, Output on, Monitor with default interval, Turn output off on ^C
koradctl -v 5 -i 0.15 -e on -M -o

# further usage information:
koradctl --help

Power Supply API

Development Setup

virtualenv -p python3 venv
. venv/bin/activate
./setup.py develop

Todo