Skip to main content

Command line tool to set the output voltage for VFLEX devices

Project description

An unofficial cli for setting the voltage on VFLEX devices with MIDI control

Why? I dunno, I like the idea of being able to work this without needing a website?

Installation

This requires that you have pipx installed on your system, using Python 3.12 or later.

Using pipx, install this tool with:

pipx install vflexctl

Usage

Reading your VFlex

To read your VFlex’s current state, use the read command:

$ vflexctl read
VFlex Serial Number: <your serial here>
Current Voltage: 12.00
LED State: Always On

You can set either your voltage, LED state (always on or not always on), or both:

vflexctl set -v <voltage> -l <always-on|disabled>

Voltage is set with the --voltage or -v flag, with your volts as XX.XX. For example:

vflexctl set -v 12 # Sets to 12V
vflexctl set -v 5.50 # Sets to 5V
vflexctl set -v 48.5 # Sets to 48.5V (if this exists?)
vflexctl set -v 12.0000001 # Rounds to 12.00, and sets 12V

The VFlex communication over MIDI limits the max that you can set this to be around 65.5V (the limit of a 16-bit integer) Trying to set higher than this will prevent setting voltage.

LED state is set using the --led or -l flag, with the value as either:

vflexctl set -l always-on # The default "LED always on" behaviour
vflexctl set -l disabled # The non-default "LED is off after a few minutes, except for error"

To set both, use both flags (as defined above) in any order.

Current state

This seems to be working. Setting values takes a bit longer than the web, since I’ve set this up to do the “startup dance” every time we try to set something (read serial, then read LED, then read Voltage).

An improvement could be to test if the setting works if it only reads the serial, and re-waking the device might not be needed since most operations are less than 5 seconds.

The plan is that this will work as long as you only have one inserted. Unless it’s extremely important, building selection is more work than what’s needed.

This is an independent hobby project. It is not affiliated with, endorsed by, or connected to any company. All product names, trademarks, and brands are the property of their respective owners.

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

vflexctl-0.1.1.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vflexctl-0.1.1-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file vflexctl-0.1.1.tar.gz.

File metadata

  • Download URL: vflexctl-0.1.1.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.0 Darwin/24.6.0

File hashes

Hashes for vflexctl-0.1.1.tar.gz
Algorithm Hash digest
SHA256 54447b82dde23359b56e0c17761f0e921ef37fd9eedfda4b28db84ac914df6af
MD5 42d354fb94f8b98cb1912a1c3c9bd96c
BLAKE2b-256 1f92854840a4e8c1da4fb8cc19ef12b7732964f1193dae32acce74f0feceec63

See more details on using hashes here.

File details

Details for the file vflexctl-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: vflexctl-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.0 Darwin/24.6.0

File hashes

Hashes for vflexctl-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7abe7ead7781e73e56b3e6d63fca307991c8b938e89d9b21fd5b07214ec05478
MD5 36dc65839fd0d2db979ca4bc249be716
BLAKE2b-256 65692606c4b2602a05ea3449e043a0a989671bd71ecc9feff7673a965e4472e1

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