Skip to main content

Control utility for Korad / Tenma power supplies

Project description

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.

  • TENMA 72-2540 V2.1

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

  • Misc
    • get_identity()
    • is_tested()
    • get_status()
  • Output State
    • get_output_state()
    • set_output_state(enabled)
  • Voltage and Over Current Protection
    • get_ovp_ocp_state()
    • set_ocp_state(enabled)
    • set_ovp_state(enabled)
  • Setpoint Control
    • Voltage
      • get_voltage_setpoint()
      • set_voltage_setpoint(voltage)
    • Current
      • get_current_setpoint()
      • set_current_setpoint(current)
  • Output Readings
    • get_output_voltage()
    • get_output_current()
    • get_output_power()
    • get_output_readings()

Development Setup

virtualenv -p python3 venv
. venv/bin/activate
pip install -r requirements.txt

Project details


Download files

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

Source Distribution

koradctl-0.5.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file koradctl-0.5.tar.gz.

File metadata

  • Download URL: koradctl-0.5.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/20.7.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.5.2

File hashes

Hashes for koradctl-0.5.tar.gz
Algorithm Hash digest
SHA256 f2ca36a26ed557dd790ac04faac5d544bd4c97c7664dc04ee11d93e5d4bc5e09
MD5 6bbe5a977eae533003a372d5aabd0b94
BLAKE2b-256 cdb3fb56b58c529b044e2ac76fabd0629f417f2640cc48c74c565ef9c3f66903

See more details on using hashes here.

Supported by

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