Git Product home page Git Product logo

pylontech-battery-monitoring's Introduction

Pylontech Battery Monitoring via WiFi

This project allows you to control and monitor Pylontech US2000B, US2000C and US3000C batteries via console port over WiFi. It it's a great starting point to integrate battery with your home automation.

I ACCEPT NO RESPONSIBILTY FOR ANY DAMAGE CAUSED, PROCEED AT YOUR OWN RISK

Features:

  • Low cost (around 20$ in total).
  • Adds WiFi capability to your Pylontech US2000B/C or US3000C battery.
  • Device exposes web interface that allows to:
    • send console commands and read response over WiFi (no PC needed)
    • battery information can be retrevied also in JSON format for easy parsing
  • MQTT support:
    • device pushes basic battery data like SOC, temperature, state, etc to selected MQTT server
  • Easy to modify code using Arduino IDE and flash new firmware over WiFi (no need to disconnect from the battery).

See the project in action on Youtube:
See the project in action on YouTube

Parts needed and schematics:

  • Wemos D1 mini microcontroller.
  • SparkFun MAX3232 Transceiver.
  • US2000B: Cable with RJ10 connector (some RJ10 cables have only two wires, make sure to buy one that has all four wires present).
  • US2000C: Cable with RJ45 connector (see below for more details).
  • Capacitors C1: 10uF, C2: 0.1uF (this is not strictly required, but recommended as Wemos D1 can have large current spikes).

Schematics

US2000C/US3000C notes:

This battery uses RJ45 cable instead of RJ10. Schematics is the same only plug differs:

  • RJ45 Pin 3 (white-green) = R1IN
  • RJ45 Pin 6 (green) = T1OUT
  • RJ45 Pin 8 (brown) = GND image

How to get going:

  • Get Wemos D1 mini
  • Install arduino IDE and ESP8266 libraries as described here
  • Open PylontechMonitoring.ino in arduino IDE
  • Make sure to copy content of libraries subdirectory to libraries of your Arduino IDE.
  • Specify your WiFi login and password at the top of the file (line 13-14)
  • If you want MQTT support, uncomment line 17 and fill details in lines 21-24
  • Upload project to your device
  • Connect Wemos D1 mini to the MAX3232 transreceiver
  • Connect transreceiver to RJ10/RJ45 as descibed in the schematics (all three lines need to be connected)
  • Connect RJ10/RJ45 to the serial port of the Pylontech US2000 battery. If you have multiple batteries - connect to the master one.
  • Connect Wemos D1 to the power via USB
  • Find what IP address was assigned to your Wemos by your router and open it in the web-browser
  • You should be able now to connunicate with the battery via WiFi

pylontech-battery-monitoring's People

Contributors

irekzielinski avatar karlomblus 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.