Coder Social home page Coder Social logo

bouwew / pmbus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michael-equi/pmbus

0.0 1.0 0.0 1.69 MB

A python library for interfacing with devices that are based on the PMBus Specification

License: GNU General Public License v3.0

Python 100.00%

pmbus's Introduction

PMBus

A python library for interfacing with devices that are based on the PMBus Specification.

The code from the Michael-Equi/PMBus github was taken as a basis and made to work with the MeanWell HEP-1000:

Temperature: 43.375
Input Voltage: 236.0
Output Voltage: 54.609375
Output Current: 1.5625
Output Power: 85.3271484375

Status: ({'busy': False, 'off': False, 'vout_ov_fault': False, 'iout_oc_fault': False, 'vin_uv_fault': False, 'temp_fault': False, 'cml_fault': False, 'vout_fault': False, 'iout_fault': False, 'input_fault': False, 'pwr_gd': True, 'fan_fault': False, 'other': False, 'unknown': False}, 0)

CURVE_CC: 17.5
CURVE_CV: 59.0
CURVE_FC: 54.599609375
CURVE_TC: 3.0

Charger Status: ({'FULLM': True, 'CCM': False, 'CVM': False, 'FVM': True, 'NTCER': False, 'BTNC': False, 'CCTOF': False, 'CVTOF': False, 'FVTOF': False}, 9)

Curve_Config: ({'CUVS_A': False, 'CUVS_B': False, 'TCS_A': True, 'TCS_B': False, 'STGS': False, 'CUVE': True, 'CCTOE': False, 'CVTOE': False, 'FVTOE': False}, 132)

System Status: ({'DC_OK': True, 'ADL_ON': True, 'INITIAL_STATE': False, 'EEPER': False}, 18)

Systen Config: ({'PM_CTL': True, 'OPER_INIT_A': True, 'OPER_INIT_B': False}, 3)

Commands to use:

python3 test.py to obtain the above output.

python3 program.py to program the HEP-1000, I have only tested with one programming-line uncommented at a time.

Note: there could be bugs, Status is not tested. Charger Status, Curve Config, System Status and System Config are tested and appear to be correct.

pmbus's People

Contributors

bouwew avatar michael-equi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.