Battery Balancing

Post Reply
nathanmarlor
Posts: 5
Joined: Mon Oct 17, 2022 12:37 pm

Continued from Facebook post...

I feel like things are slowly improving. After a charge last night I'm on 5.3kw discharged with 45% left (3.3kw) - should end up around 8.6-8.7kw from 9.26kw usable capacity.
Attachments
Screenshot_20230204-103219.png
Can
Posts: 16
Joined: Tue Jan 24, 2023 5:22 pm

If Python is your thing I should be able to give you some PoC code for monitoring the raw values coming out of the BMS (Com) which can be pushed to MQTT (HA hosted Mosquitto) or modbus TCP. It will help with local rapid data measurements of charge rates, high and low cell volts, temps, etc

Hardware costs ~£20 https://github.com/Xinyuan-LilyGO/T-CAN485
nathanmarlor
Posts: 5
Joined: Mon Oct 17, 2022 12:37 pm

Can wrote: Sat Feb 04, 2023 11:30 am If Python is your thing I should be able to give you some PoC code for monitoring the raw values coming out of the BMS (Com) which can be pushed to MQTT (HA hosted Mosquitto) or modbus TCP. It will help with local rapid data measurements of charge rates, high and low cell volts, temps, etc

Hardware costs ~£20 https://github.com/Xinyuan-LilyGO/T-CAN485
Sounds amazing! Would be happy to produce a HA integration if you can point me in the right direction :) I'm guessing it's the same data set which comes from Fox Cloud through the data report?
Can
Posts: 16
Joined: Tue Jan 24, 2023 5:22 pm

Yes, it will be the exact same data but with a ~2 second refresh rate. I can knock some basic PoC up once the boards arrive. Can bus will be set to listen only so it’s a pretty safe system that should not require the BMS cables to be unplugged. I have an assumption that BMS and Com share the same can bus lines, my own board runs on either.

Unlike my own boards, this LilyGO is a mix of 3.3v an 5v ICs so it will have to be externally powered by 12V or USB. Shame really, they could have used a 3.3v RS485 transceiver and that would allow this to be powered from Com on the FoxESS inverter.

https://github.com/Xinyuan-LilyGO/T-CAN ... ematic.pdf
Can
Posts: 16
Joined: Tue Jan 24, 2023 5:22 pm

Quick update.

I have the LilyGo CAN485 running with dual can bus. Pretty nice unit.

Edit: Some screenshots from Home Assistant from BMS can comms (MQTT)

Can
Posts: 16
Joined: Tue Jan 24, 2023 5:22 pm

Quick update, Modbus TCP -> RTU has now been implemented and works with the standard HA setup as a USR-W610. If someone wants to test a prototype let me know.
Post Reply