Update README.md

This commit is contained in:
Ireneusz Zielinski
2019-08-26 23:15:45 +01:00
committed by GitHub
parent 4032206e79
commit 51ddc3be92

View File

@ -5,34 +5,36 @@ 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 ** ** I ACCEPT NO RESPONSIBILTY FOR ANY DAMAGE CAUSED, PROCEED AT YOUR OWN RISK **
Features: # Features:
- Low cost (around 20$ in total). * Low cost (around 20$ in total).
- Adds WiFi capability to your Pylontech US2000B battery. * Adds WiFi capability to your Pylontech US2000B battery.
- Device exposes web interface that allows to: * Device exposes web interface that allows to:
* send console commands and read response over WiFi (no PC needed) * send console commands and read response over WiFi (no PC needed)
* battery information can be retrevied also in JSON format for easy parsing * battery information can be retrevied also in JSON format for easy parsing
- Easy to modify code using Arduino IDE and flash new firmware over WiFi (no need to disconnect from the battery). * 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](https://youtu.be/7VyQjKU3MsU): See the project in action on [Youtube](https://youtu.be/7VyQjKU3MsU):
[![See the project in action on YouTube](https://img.youtube.com/vi/7VyQjKU3MsU/1.jpg)](https://www.youtube.com/watch?v=7VyQjKU3MsU) [![See the project in action on YouTube](https://img.youtube.com/vi/7VyQjKU3MsU/0.jpg)](https://www.youtube.com/watch?v=7VyQjKU3MsU)
Parts needed:
- [Wemos D1 mini microcontroller](https://www.amazon.co.uk/Makerfire-NodeMcu-Development-ESP8266-Compatible/dp/B071S8MWTY/). # Parts needed:
- [SparkFun MAX3232 Transceiver](https://www.sparkfun.com/products/11189). * [Wemos D1 mini microcontroller](https://www.amazon.co.uk/Makerfire-NodeMcu-Development-ESP8266-Compatible/dp/B071S8MWTY/).
- Cable with RJ10 connector (some RJ10 cables have only two wires, make sure to buy one that has all four wires present). * [SparkFun MAX3232 Transceiver](https://www.sparkfun.com/products/11189).
- Capacitors C1: 10uF, C2: 0.1uF (this is not strictly required, but recommended as Wemos D1 can have large current spikes). * Cable with RJ10 connector (some RJ10 cables have only two wires, make sure to buy one that has all four wires present).
* Capacitors C1: 10uF, C2: 0.1uF (this is not strictly required, but recommended as Wemos D1 can have large current spikes).
![Schematics](Schemetics.png) ![Schematics](Schemetics.png)
How to get going:
- Get Wemos D1 mini # How to get going:
- Install arduino IDE and ESP8266 libraries as [described here](https://averagemaker.com/2018/03/wemos-d1-mini-setup.html) * Get Wemos D1 mini
- Open [PylontechMonitoring.ino](PylontechMonitoring.ino) in arduino IDE * Install arduino IDE and ESP8266 libraries as [described here](https://averagemaker.com/2018/03/wemos-d1-mini-setup.html)
- Specify your WiFi login and password at the top of the file (line 13-14) * Open [PylontechMonitoring.ino](PylontechMonitoring.ino) in arduino IDE
- Upload project to your device * Specify your WiFi login and password at the top of the file (line 13-14)
- Connect Wemos D1 mini to the MAX3232 transreceiver * Upload project to your device
- Connect transreceiver to RJ10 as descibed in the schematics (all three lines need to be connected) * Connect Wemos D1 mini to the MAX3232 transreceiver
- Connect RJ10 to the serial port of the Pylontech US2000 battery. If you have multiple batteries - connect to the master one. * Connect transreceiver to RJ10 as descibed in the schematics (all three lines need to be connected)
- Connect Wemos D1 to the power via USB * Connect RJ10 to the serial port of the Pylontech US2000 battery. If you have multiple batteries - connect to the master one.
- Find what IP address was assigned to your Wemos by your router and open it in the web-browser * Connect Wemos D1 to the power via USB
- You should be able now to connunicate with the battery via WiFi * 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