Skip to content
/ pydps Public
forked from Ultrawipf/pydps

A small helper library using minimalmodbus for the popular DPSXXXX power supply modules

License

Notifications You must be signed in to change notification settings

jkunczik/pydps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A small helper library using minimalmodbus for the popular DPSXXXX power supply modules.

Dependencies:

  • minimalmodbus
  • pyserial

Basic usage:

import pydps

 # connect, using port name and slave address
dps = pydps.PyDPS('COM3', 1)

# Show model
print(dps.get_model())

# Lock keys on embedded interface
dps.set_key_lock(True)

# Set voltage to 12 V
dps.set_voltage(12)

# Enable output
dps.set_output(True)

# Get current output voltage and current
print(dps.get_voltage())
print(dps.get_current())

# Get all variables at once
dat = dps.get_full_data()

# Disable output
dps.set_output(False)

# Unlock keys again
dps.set_key_lock(False)

About

A small helper library using minimalmodbus for the popular DPSXXXX power supply modules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%