Giter Club home page Giter Club logo

csps-power-esp32's Introduction

光宝,华为系列电源功率,电压电流,风扇转速读取程序

本程序使用Arduino开发,在 华为/光宝 PS-2461-1H-12C上调试通过

感谢【霜秋凛然FRPS】插拔服务器电源笼 https://oshwhub.com/frostautumn/re-cha-ba-csps-dian-yuan-bei-ban_copy

感谢杭州的星星大佬,感谢BH4TDV,提供的技术支持

功能

  1. 2个XT60主输出 12V 共30A(具体功率不同的电源可能不一样)
  2. 1个XT30辅助电源 12VSB 2.5A输出,永不停电,可以接光猫等不能断电的设备
  3. 1个4Pin 风扇接口,可以连接12v风扇
  4. 支持oled显示和web监控,通过网络控制电源开关

使用ESP32和ESP32 S3 GPIO的顺序不一样,可以修改,下面是ESP32的编号,源代码里的GPIO是ESP32-S3的

通过ESP32的26,27连接电源的SDA,SCL口,电源内置上拉,可以直接连接 通过ESP32的21,22连接oled的SDA,SCL口,显示

oled的型是SSD1306,4针I2C接口的,注意是VCC开头,不是gnd开头

This is an Arduino program designed to read power, voltage, current, and fan speed data from the Power Supply Units of the Huawei and Delta brands. It has been tested on the Delta PS-2461-1H-12C power supply.

This program supports both OLED display and web display. It connects to the power supply's SDA and SCL pins via the ESP32's 26 and 27 pins, respectively. The power supply has built-in pull-ups, so it can be connected directly. The SSD1306 OLED display is connected to SDA and SCL pins via the ESP32's 21 and 22 pins, respectively.

The OLED display uses a 4-pin I2C interface.

ESP32 PS-2461-1H  128*64 OLED PS-2461-1H  full top bottom

arduino编译之前,需要安装 u8g2的库

csps-power-esp32's People

Contributors

hicaoc avatar sxjack 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.