Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicoretti/ka3005p
Command line tool to remote control Korad, Tenma, RS, Velleman, Stamos, power supplies and other clones.
https://github.com/nicoretti/ka3005p
hacktoberfest ka3000 ka3005p konrad korad power-supply pyo3 python remote-control rs serial stamos tenma velleman
Last synced: 2 days ago
JSON representation
Command line tool to remote control Korad, Tenma, RS, Velleman, Stamos, power supplies and other clones.
- Host: GitHub
- URL: https://github.com/nicoretti/ka3005p
- Owner: Nicoretti
- License: mit
- Created: 2020-07-19T09:31:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-01T12:15:16.000Z (5 months ago)
- Last Synced: 2024-11-12T09:51:10.625Z (4 days ago)
- Topics: hacktoberfest, ka3000, ka3005p, konrad, korad, power-supply, pyo3, python, remote-control, rs, serial, stamos, tenma, velleman
- Language: Rust
- Homepage:
- Size: 4.73 MB
- Stars: 24
- Watchers: 5
- Forks: 7
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Rust](https://github.com/Nicoretti/ka3005p/workflows/Rust/badge.svg)
[![Crates.io](https://img.shields.io/crates/v/ka3005p.svg)](https://crates.io/crates/ka3005p)
[![documentation](https://docs.rs/ka3005p/badge.svg)](https://docs.rs/ka3005p)
![Crates.io](https://img.shields.io/crates/d/ka3005p)
![GitHub](https://img.shields.io/github/license/Nicoretti/ka3005p)# KA3005P
Command line tool to control power supplies created by Korad, Tenma, RS, Velleman, Stamos, (and other clones) via their serial interface.
## Usage
Example (Getting Help):
```bash
> ka3005p -h
ka3005p 0.2.2
Controls a KA3005P bench power supply through its serial interfaceUSAGE:
ka3005p [OPTIONS]FLAGS:
-h, --help Prints help information
-V, --version Prints version informationOPTIONS:
-d, --device Manually select power supply serial deviceSUBCOMMANDS:
beep Enable/Disable Beep
current Set the current of the ouput or config
help Prints this message or the help of the given subcommand(s)
interactive Read commands from stdin and execute them
list list possible power supply devices
load Loads config settings of specified no
ocp Enable/Disable over current protection
ovp Enable/Disable over voltage protection
power Turns on or off the ouput of the power supply
save Saves current pannel settings to specified config
status Return status inforation about the power spply
voltage Set the voltage of the ouput or config
``````bash
# Get the current status of the power supply. Note the power supply is automatically detected
> ka3005p status
Voltage: 12.00, Current: 0.304, Channel1: CV, Channel2: CV, Lock: Off, Beep: On, Output: On> ka3005p power off
> ka3005p status
Voltage: 12.00, Current: 0.305, Channel1: CV, Channel2: CV, Lock: Off, Beep: On, Output: Off> ka3005p voltage 12.1
> ka3005p status
Voltage: 12.10, Current: 0.303, Channel1: CV, Channel2: CV, Lock: Off, Beep: On, Output: Off# If you need to manually specify the power supply e.g. If you have multiple plugged in
> ka3005p -d /dev/ttyUSB0 status
Voltage: 12.10, Current: 0.302, Channel1: CV, Channel2: CV, Lock: Off, Beep: On, Output: Off
```## Installation
1. Grab the latest binaries from the [Releases](https://github.com/JackNewman12/ka3005p/releases)
2. Run the binary!
3. Optionally copy to your bin folder for system wide access
```bash
mv ka3005p-x86_64-unknown-linux-musl /usr/bin/ka3005p
```
## Building
Building of the musl versions should be as simple as
```bash
git clone [email protected]:Nicoretti/ka3005p.git
cd ka3005p
cargo build --release --target x86_64-unknown-linux-musl
```If you wish to build the gnu versions you will need to download the libudev dependency.
```bash
sudo apt install libudev-dev
```## Known working power supplies
If this tool works for you please add your device to this list:
* Korad KA3005P
* Tenma 72-2540
* RS PRO RS6005p## Interactive Mode
Using the interactive mode you can send continues stream of commands to the power supply.
This can be used e.g. to apply an automated voltage ramp.```bash
> python3 ramp.py -f 10 -t 20 -p 10 | ka3005p interactive
```For more details check out the `ramp.py` script in `scripts/ramp.py`.
# License
Licensed under either of- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
http://www.apache.org/licenses/LICENSE-2.0)- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.