Hello All,
I would like to share two interessting links with you, if this is a douple post please delete it.
I was searching a few 100 pages until I found them
Both are using a ESP8266 with MAX3232 to convert TTL to RS232 and they are using the DHCP configuration but it can be also changed to fix IP
This is the part I have changed to use a fix IP
Example:
//Connecting to local WiFi
WiFi.mode(WIFI_STA);
WiFi.persistent(false); //our credentialss are hardcoded, so we don't need ESP saving those each boot (will save on flash wear)
WiFi.hostname("UART_Gateway");
IPAddress ip(192, 168, 1, 35);
IPAddress gateway(192, 168, 1, 1);
IPAddress subnet(255, 255, 255, 0);
IPAddress dns(192, 168, 1, 1);
WiFi.config(ip, dns, gateway, subnet);
WiFi.begin(WIFI_SSID, WIFI_PASS);
1. Pylontech Battery Monitoring via Console RJ11, output is done on HTTP Website and jsonOUT
https://github.com/irekzielinski/Pylon ... Monitoring
Some screenshots:
- jsonOut.JPG (14.07 KiB) Viewed 4610 times
- Power.JPG (33.04 KiB) Viewed 4610 times
2. Change PIP settings via WLAN using HTTP Post requests (CRC is included and need to be installed as library to Arduiono IDE)
https://bitbucket.org/twvtec/esp8266-p ... rc/master/
I have added this line to use the MNCHGC commando and it's easy to add also other commands.
...
(tmpCmd.substring(0,6) == "MUCHGC") || //Setting utility max charging current
(tmpCmd.substring(0,6) == "MNCHGC") || //Setting max charging current Dynamically works only with patched Firmware
(tmpCmd.substring(0,4) == "POPM") || //Setting output mode (For 4000/5000)
...
To test the command just download curl and send the following command (need to be repeated within 10s otherwise it change to 0... read the documentation about this command)
Some screenshots:
- curl_cmd.JPG (10.39 KiB) Viewed 4610 times
- curl.JPG (28.85 KiB) Viewed 4610 times
I am also using tasmota software on a ESP8266
https://github.com/arendst/Tasmota/wiki to switch 3 Relais. 1x Standby, 1x AC_IN contactor, 1x AC_OUT contactor
To manage and controll them I am using IOBroker
https://www.iobroker.net/ with Blockly scripts and Node-Red.
I am using this SmartMeter
https://shop.enerserve.eu/smartpi/262/smartpi-2.0
I know it would be possible to use a NodeMCU which can have up to 3x Serial Ports and combine the projects into one but .... but this will take a few months to years for me to learn everything
My Project.
- Inverter SMA with 5.2 kWp (ModBus)
- Inverter Solaredge with 6.5 kWp (ModBus)
- Inverter Steca PLI 5048 with patched firmware from this Forum (ESP8266)
- 1x Pylontech UB2000 Plus (when everything works as expected addition batteries will be added) (ESP8266)
- Smart Meter SmartPi2 (MQTT)
- 3x D1 Mini Pro (ESP8266) for Pylontech (Web Parser), Steca (HTTP), Relais (MQTT)
- Raspberry Pi 4 (IOBroker)
Before I sell the electricity the battery get dynamically charged (1-25A) and there is a automatically switch between Grid and Battery for my 24h consumer like fridge, freezer, Housing Ventilation and Pumps.
- My_Project.JPG (40.91 KiB) Viewed 4610 times
Per Year I have to
Import electricity : 2600 kWh
export electricity : 7000 kWh
Home consumtion : 1600 kWh
With the batterie the Import should be around 1000 kWh per year and the ~6000 kWh should be used in the near future for a e-car
Regards,
Stefan
Thanks to all who helped with opensource software and patched firmware