An application for controlling a Velleman LABPS3005D bench PSU and any compatible ones.
Project description
PSUcontrol
This is an application for controlling a Velleman LABPS3005D bench PSU and any compatible ones.
The project is still a work-in-progress and has only been tested with the aforementioned Velleman. That said, the basics do work fine for me.
CAVEATS
These PSUs tend to be buggy in multiple different ways and I have seen some mentions online about some of them just randomly having far longer delays in responding to commands than usual. The Velleman I have is missing e.g. the ability to control the audible beeps and the ability to lock/unlock the physical controls despite the protocol documentation saying otherwise. Without the ability to upgrade their firmwares this project is entirely YMMV and no guarantees are given.
INSTALLATION
The recommended approach:
pipx install psucontrol
(If you are not familiar with pipx, take a look here)
You can also grab one of the binary releases from the Releases-section but they are rather large because they bundle an entire Python-environment inside. Do also note that the Windows Defender is practically guaranteed to falsely flag the .exe-files as containing viruses -- this is a false positive but there is really not much I can do about it.
DEVELOPMENT
Install poetry. I, again, recommend pipx for this.
To modify the GUI:
git clone --recurse-submodules https://github.com/WereCatf/psucontrol
cd psucontrol
export PYSIDE_DESIGNER_PLUGINS="external/indicatorlabel;external/lcdlabel"
poetry install
poetry run pyside6-designer
If you have made any GUI or resource-file changes, you can rebuild the relevant files with:
cd psucontrol # If not already in there
poetry run pyside6-project build
# There is seemingly no way of making either pyside6-project or pyside6-uic to correctly generate the imports
# so we have to always fix the imports, or at least I have not found a way to do this automatically.
sed -i 's/^import rc_/import psucontrol.rc_/g' src/psucontrol/*.py
If you don't plan to touch the GUI-stuff, you can just do:
git clone --recurse-submodules https://github.com/WereCatf/psucontrol
cd psucontrol
poetry install
TODO
- Fill out this README more
- Implement the memory-buttons functionality
- Add toggleable graphing
- CLI-interface
- TUI-interface
- Maybe see about dumping the firmware (with Chipwhisperer?)
- Add support for more PSUs?
- Add support for multiple channels?
License
This project is licensed under the BSD 3-Clause License - see the LICENSE file for details. The project uses the Noto Sans-font - see the LICENSE file for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file psucontrol-0.8.0.tar.gz.
File metadata
- Download URL: psucontrol-0.8.0.tar.gz
- Upload date:
- Size: 1.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d844c99d229d8060fdceca01684f7e5b1cc847f4b883d12b30a471abc2e9abfd
|
|
| MD5 |
863cfae6c2dab85e4fff97e5644b48d4
|
|
| BLAKE2b-256 |
2e09ffb89da12a5b9aeba993baaa39900ed9cf398f1cf8424a43f1af8730cbad
|
Provenance
The following attestation bundles were made for psucontrol-0.8.0.tar.gz:
Publisher:
buildandpublish.yaml on WereCatf/psucontrol
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
psucontrol-0.8.0.tar.gz -
Subject digest:
d844c99d229d8060fdceca01684f7e5b1cc847f4b883d12b30a471abc2e9abfd - Sigstore transparency entry: 1506165792
- Sigstore integration time:
-
Permalink:
WereCatf/psucontrol@8b2065ca28dbed29464e0987e4911ae7ed0223e0 -
Branch / Tag:
refs/tags/v0.8.0 - Owner: https://github.com/WereCatf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
buildandpublish.yaml@8b2065ca28dbed29464e0987e4911ae7ed0223e0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file psucontrol-0.8.0-py3-none-any.whl.
File metadata
- Download URL: psucontrol-0.8.0-py3-none-any.whl
- Upload date:
- Size: 1.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29a82298f91c06d4feb96bc4305e4ff4204e2ed59bad425299c2960755f82649
|
|
| MD5 |
628f47f0f71f5f52096f8f89a3b6466a
|
|
| BLAKE2b-256 |
39c579471094fb19903477e32a0029985c73cea0d5488cfd8075376f7172508b
|
Provenance
The following attestation bundles were made for psucontrol-0.8.0-py3-none-any.whl:
Publisher:
buildandpublish.yaml on WereCatf/psucontrol
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
psucontrol-0.8.0-py3-none-any.whl -
Subject digest:
29a82298f91c06d4feb96bc4305e4ff4204e2ed59bad425299c2960755f82649 - Sigstore transparency entry: 1506165953
- Sigstore integration time:
-
Permalink:
WereCatf/psucontrol@8b2065ca28dbed29464e0987e4911ae7ed0223e0 -
Branch / Tag:
refs/tags/v0.8.0 - Owner: https://github.com/WereCatf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
buildandpublish.yaml@8b2065ca28dbed29464e0987e4911ae7ed0223e0 -
Trigger Event:
push
-
Statement type: