diy solar

diy solar

Home Brew Victron logger based on ESP microcontrollers

rin67630

Solar Enthusiast
Joined
Apr 29, 2020
Messages
1,068
Location
Nort-Rhine-Westphlia Germany
Hi,
There are a few projects on github to read the values from the EV port of Victron devices using an ESP microcontroller.

I forked that project: https://github.com/datjan/esp8266-victron-mppt-solarchargecontroller which uses (as almost all similar projects) the SoftwareSerial library to process the VE signal. But this solution is unable to reliably process signals at 19200 Baud, making the solution wonky for many MPPT devices.

I made following changes to it:
- SoftwareSerial is not used any more. Instead I used the Serial.swap() command to switch the hardware UART to D7 / D8.
That dramaticallly boosts the performance and the serial crashes are gone.

- On the counterpart the serial monitor is not available any more for reporting over the serial monitor.
Instead, I am now communicating over WiFi using the Telnet protocol.

Beside being much more reliable an efficient, this solution does not need a USB cable between the ESP and your computer any more to control the ESP, you use Telnet instead of the serial monitor.

This has also the invaluable advantage of galvanically separating the solar unit and the communication computer. You now have the tiny ESP module as a dongle on the Victron powered from the battery over a tiny buck converter and no more cables !

https://github.com/rin67630/esp8266-victron-mppt-solarchargecontroller-Telnet

Enjoy !
Outlook: this is just the beginning !
After the Christmas weeks, I will use the resources of my other project Drok-Juntek-on-Steroids: https://github.com/rin67630/Drok-Juntek-on-steroids to build the derived
Victron-on-steroids.

Expect a worldwide accessible dashboard with trends, reporting and statistics with just a single ESP microcontroller for less than 5$ ! .
No additional computer / server / gateway / subscription cost required !

Anybody wishing to join is welcome...

F'up to https://diysolarforum.com/threads/victron-smart-solar-mppt-data-logger-based-on-esp8266.73701/
 
Sounds interesting. I currently use an ESP32 that has two hardware serial ports (rather than the 8266), so avoiding reliability issues with SoftwareSerial.

The galvanic isolation is good, but I only have a Victron Smart Shunt, which unfortunately doesn't have WiFi - only VEBus and Bluetooth. Do you know if your WiFi / Telnet solution might work over BlueTooth as well?

edit - have move my post to your main thread at
 
Back
Top