Thanks markrages and JackDoan!
Modified by me to record measurements in a loop and write into a csv.
pip install -r requirements.txt
- pyserial: read measurements
- pandas, numpy, matplotlib: future features (plot measurements)
usage: measure_hm305.py [-h] --port PORT [--voltage VOLTAGE] [--current CURRENT] [--csv CSV] [--debug]
optional arguments: -h, --help show this help message and exit
--port PORT serial port
--voltage VOLTAGE set voltage
--current CURRENT set current
--csv CSV path to csv, if set write measurements to csv
--debug enable verbose logging
measure_hm305.py controls the HM305P power supply from Hanmatek (and others). These supplies are USB controllable, but they just show as an CH341 serial port. The protocol is described by http://nightflyerfireworks.com/home/fun-with-cheap-programable-power-supplies