You might look at my Sunny Island agent ... there's no docs but all the logic is controlled by javascript - easy to read. I use a raspberry PI with a CAN/RS485 hat as a BMS/controller for the SI.
Here's the code:
https://github.com/sshoecraft/solardirector/tree/main/agents/si
Here's the hat...
Sorry haven't checked in here in a while ... and not getting email reminders for activity anymore.
Here's a static compiled version for debian bullseye (11) 64-bit made on a RPI4B+
If you want to use bluetooth you would probably want to use the ESP32 - you might look previously in this thread as shadowsteve has already done this. Using the ESP32 it would be pretty easy to control it via an android app. There are a ton of vids on youtube showing how to control a relay (to...
I added an -X option to jbdtool to "reset" the BMS but I'm not totally sure what it does (it's not documented and I only learned of it from debugging the bluetooth stuff).
You might try it and see if it works for you. I think it might also "unstick" the BMS if it has an error.
I just tried this on a freshly written esp - it connected to my phone's hotspot.
Then I connected my computer to the same hotspot and was able to connect to the ESP page.
I make changes to the BMS via my grafa page - but it calls a web service on my RPI which in turn just calls jbdtool.
I have some of these active balancers and have been thinking about doing exactly that (controlling a relay to turn it on via the esp). I would say it's possible, yes. I...
The RS485 is the UART bms with the 485 dongle. It depends on how you are going to read it. Will you use the UART on the rPI or will you get a USB RS485 for the rPI?
for balance, it's an eeprom parameter: BatteryConfig
use -r BatteryConfig to read it
-w BatteryConfig <value> to write it
use -n for numeric outout only (no translation)
I used the attached SMA design for my system. It works extremely well and I much prefer AC coupled to DC coupled.
I am running 3xSB6.0-US and 4xSI6048-US.
I've seen the yasdi2mqtt and it seems like a pretty good product. I think daklein runs it - you might ask him what he thinks.
My software was created just for the DIY lithium batts and grew from there. Nowadays I have JavaScript scripts and I can write directly to influxdb so no need for...
I currently use 50A breakers on mine. I have 4 Sunny Islands. I have seen surges of 31k watts (5 ton AC starting up and dryer running) and it didnt trip the breakers although I think constant use definitely would do it. Then again, if I'm using anywhere near 160 amps (80%/breaker * 4) for...
The SI agent (agents/si) acts as a "BMS" to the Sunny Island. I have an actual hardware BMS (JBD) on my battery packs. I then have a Raspberry PI with a CAN/RS485 card which is connected to the Sunny Island. The si agent talks to the Sunny Island via the CAN bus and acts as the external BMS...