huawei_modbusRTU

所属分类:通讯编程
开发工具:HTML
文件大小:0KB
下载次数:0
上传日期:2023-10-02 16:17:39
上 传 者sh-1993
说明:  华为太阳能逆变器的ModbusRTU接口,
(ModbusRTU Interface for Huawei Solar Inverters,)

文件列表:
3d/ (0, 2023-10-02)
3d/HuaweiInverterMODBUS_pcb.step (17009265, 2023-10-02)
3d/HuaweiInverterModbusRTU_complete.stp (30561542, 2023-10-02)
LICENSE (35149, 2023-10-02)
altium/ (0, 2023-10-02)
altium/HuaweiInverterMODBUS.BomDoc (41653, 2023-10-02)
altium/HuaweiInverterMODBUS.PcbDoc (8143872, 2023-10-02)
altium/HuaweiInverterMODBUS.PcbDoc.htm (4377, 2023-10-02)
altium/HuaweiInverterMODBUS.PrjPcb (61356, 2023-10-02)
altium/HuaweiInverterMODBUS.PrjPcbStructure (153, 2023-10-02)
altium/Sheet1.SchDoc (221696, 2023-10-02)
altium/Sheet2.SchDoc (166912, 2023-10-02)
documents/ (0, 2023-10-02)
documents/HuaweiModbusProtocol.pdf (1183863, 2023-10-02)
enclosure/ (0, 2023-10-02)
enclosure/din_clip.STL (183084, 2023-10-02)
enclosure/modbusPCB_Part_A.stl (1440283, 2023-10-02)
enclosure/modbusPCB_Part_B.stl (910999, 2023-10-02)
images/ (0, 2023-10-02)
images/energyFlow.jpg (26141, 2023-10-02)
images/esphome_panel.jpg (237244, 2023-10-02)
images/huaweiConnector.jpg (153144, 2023-10-02)
images/image1.jpg (135208, 2023-10-02)
images/image2.jpg (189591, 2023-10-02)
images/image3.jpg (214154, 2023-10-02)
images/image4.jpg (88193, 2023-10-02)
images/image5.jpg (158177, 2023-10-02)
images/jumpers.jpg (28601, 2023-10-02)
images/modbusRTU_interface.jpg (92519, 2023-10-02)
images/pcb_3d.jpg (129904, 2023-10-02)
manufacturing/ (0, 2023-10-02)
manufacturing/PCB/ (0, 2023-10-02)
manufacturing/PCB/BOM-HuaweiInverterMODBUS.xlsx (14123, 2023-10-02)
manufacturing/PCB/Gerbers&NCDrills.zip (72532, 2023-10-02)
manufacturing/PCB/PickPlace-HuaweiInverterMODBUS.csv (4843, 2023-10-02)
scripts/ (0, 2023-10-02)
scripts/huawei-inverter.yaml (30952, 2023-10-02)

Buy Me a Coffee at ko-fi.com [![Support via PayPal](https://cdn.rawgit.com/twolfson/paypal-github-button/1.0.0/dist/button.svg)](https://www.paypal.me/jcortizronda/) # huawei_modbusRTU ModbusRTU Interface for Huawei Solar Inverters This is a custom design of a pcb for MODBUS bus reading for Huawei inverters or similar. It includes an ESP32S3-MINI-N4 microcontroller and allows the reading of the RS485 bus thanks to an integrated converter. Unlike other existing integrations, this one allows you to have your inverter connected through ESPHome, fully configurable by the user. I have hand-soldered my unit, so it's possible to do it! The benefits of this integration are: * Power the modbusRTU interface directly from your AC panel * Calculating electricity cost and compensation for spanish billing system * Translate fault and state codes to the corresponding strings * Getting the home power and current consumptions * Add a nice tesla-style-solar-power-card to your front-end * Doing some basic monitoring of the solar yield of each of your strings (string ratio) * Get notified when something goes wrong in your inverter You can see images of real product in [images](images/) folder # PCB Includes the following: * ESP32-S3mini N8 * RS485 to TTL Converter * AC/DC Module * AC Overvoltage and Overcurrent protection * USB-C Programming Connector * JTAG Connector * Custom IO Connector All files for manufacturing are included in pcb folder: * [BOM-HuaweiInverterMODBUS](manufacturing/PCB/BOM-HuaweiInverterMODBUS.xlsx) * [PickPlace-HuaweiInverterMODBUS](manufacturing/PCB/PickPlace-HuaweiInverterMODBUS.csv) * [Gerbers&NCDrills](manufacturing/PCB/Gerbers&NCDrills.zip) ATTENTION! The PCB has two jumper resistors to select the COM connection of the RS485 port (Ground or Earth). I recommend to solder [GND = COM]. SOLDER ONLY ONE # Mounting You will need the following elements: 1) PCB ModbusRTU Interface soldered 2) 3D Enclosure (modbusPCB_Part_A, modbusPCB_Part_B and din_clip) 3) 4x Screws M3x12 (for enclosure mounting) 4) 4x Screws M3x6 (for din clip mounting) # Wiring You have two options for powering ModbusRTU interface * Connect L and N to your AC * Connect 5V and GND to a 5V DC Adapter Then, you must connect 1. Connect the A modbusRTU interface to your inverter's COM port (Pin 1) 2. Connect the A modbusRTU interface to your inverter's COM port (Pin 2) 3. Connect the GROUND modbusRTU interface to your interver's COM port (Pin 5) If using shielded cable, connect only one side to GROUND. Note: Inverter's COM port pin number are visible in the in the port itself. WARNING: I recommend turning off the inverter through the switch, and the protections of the electrical panel that feed the inverter before making any connection. # Setup 1. Config [huawei-inverter.yaml](scripts/huawei-inverter.yaml) with your parameters. 2. Connect USB-C to modbusRTU interface and flash the file. 3. Make the connections previously explained. 4. Connect ESPHome device to HomeAssistant and add ESPHome device. Home Assistant should discover the new device. ### Configuration part in huawei-inverter.yaml ```yml # Enable Home Assistant API api: encryption: key: !secret huawei-inverter-encryption ota: password: !secret huawei-inverter-ota wifi: ssid: !secret wifi_ssid password: !secret wifi_password # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Huawei-Inverter Fallback Hotspot" password: !secret huawei-inverter-fallback ``` ### HomeAssistant Card and information You will get all the information that your inverter provides through the COM port, and you will be able to configure it to your liking. You can use the [tesla-solar-card](https://github.com/reptilex/tesla-style-solar-power-card) to see in real time the energy flow of your home. # Acknowledgments Thanks to jesusrop for his work in his [repository](https://github.com/jesusrop/esphome_huawei_sun2000), on which I have based my work. ### Wanna a Plug&Play ModbusRTU Converter? Write me and I will do my best to send you one at the best price.

近期下载者

相关文件


收藏者