DIYBMS v4

Hey my fellow DIYBMS’ers!!!
Good to be back!!!

So I’m curious if anyone has posted a tutorial on setting up a battery / energy monitor using the DIYBMS?

For instance getting influxDB and MQTT setup with Grafana and then having the dashboard displayed on a small screen…

A while back with help from another member I was able to get grafana up and running using the DIYBMS but it’s been so long I forget how to.

EDIT:
Well I think I found the answer to my question. If anyone else is interested here is a guide on how to set this up

https://github-wiki-see.page/m/stuartpittaway/diyBMSv4/wiki/Visualize-data-from-the-diyBMS

1 Like

Ok, as the full charge voltage wasn’t reached it looks like it stopped charging too early.

I would manually set the state of charge to 75% and repeat the charging process.

No mather what value I enter it say settings safed but SOC dosn’t change.
Remark. I already tried the SOC seting several times until now it was never successfull.
Remark 2: I already updated the controler to your last release (moduls not and also shunt is still old)

i am close but no data in grafana yet, need to spend a few more days on it.

you have to update the shunt

The state of charge is calculated by the shunt, update that firmware

Updated my older controllers to 2023-10-30-10-43. Like the bargraph display… the problem with sdcard storage not working is fixed… unfortunately the controllers are stopping after 10-20 hours.


version

If you click the “diagnostics” you might see something like the below.

This may help me to narrow down the problem.

Additionally - connecting a serial monitor to the USB port of the controller is the only real way to get the error message that I would need to help debug any random reboots.

Core dump task: Tmr Svc, cause:0x41 Download

Guru Meditation Error:Tmr Svc
PC: 0x40092764
EXC_A: 0x800908c8 0x3ffcd8d0 0x3ffbf6f8 0xb33fffff 0xabab 0x60023 0x60023 0xcdcd 0xb33fffff 
EXCCAUSE: 0x41
EXCVADDR: 0x0
EXCTCB: 0x3ffbd670
EPCX_REG_BITS: 0x111111
DUMPVER: 256
CORRUPTED: true
ELF file SHA256: b84b599cccbf0997

Backtrace: 0x40092764:0x0 0x400908c5:0x0 0x4008eb3c:0x0 

Turns out to be coincidental to the update…
BMS wasn’t stopping it was just detaching from wifi.
The nearby dd-wrt AP had reset itself to factory defaults so they were connecting to something much further away and presumably giving up after some time. Should’ve check the signal strength… is that on the web page somewhere?
Thanks for the help, I assume all will be well again now.

Seemed like I had to reflash 2023-10-30-10-43 to get the BMSs to use nearest AP?
They still seemed wedded to the AP seen at the previous flash.

You should have been able to reset that by pressing the SPACE bar during BMS power up (USB Serial console connection) and entering the new details.

Its only on the TFT display (if fitted) and it also gets output into the log files in the latest code.

No new details just which AP it was choosing, ie not the strongest signal just the last one it had used.

My issues were really a result of the improved features like remote flashing so I never looked at the display :roll_eyes:

I noticed the OpenBK SW includes this in their web pages which is handy if you look for it:

Wifi RSSI: Excellent (-43dBm)

I’ll take a look at adding RSSI into the web interface.

1 Like

is your Deye communicating via CAN bus with the diy BMS?

I’m trying with a Deye-12k-SG04LP3-EU…
But only get CAN errors…
Bus terminated on both sides with 120 Ohm

Hey Mate,

I’m looking to build my own battery pack for a future project, but I want to look at using Sodium-Ion cells which can be purchased here Sib 33140 Sodium-ion Battery 3.0v Cells 10ah Manufacturer Sodium Ion Producers 120wh/kg Scooter Hina Battery - Buy Bateria Sodowo-jonowa Natrium-ionen-batterie Batterie Aux Ions De Sodium Natrium Ion Batterij Bateri Ion Natrium Bateria De Ion,Sodyum Iyon Pil Bateria De Iones De Sodio Batteria Agli Ioni Di Sodio Baterai Ion Natrium Natriumioni Akku Baterai Natron Energy,Bateria Sodowa Natriumbatterie Batterie Au Sodium Natrium Batterij Bateri Natrium Bateria De Sodio Sodyum Pil Bateria De Sodio B Product on Alibaba.com

Is the BMS able to be configured for Sodium-Ion chemistry? Or has this change been already made?

Regards
Paul F.

I don’t think anyone has tried this yet - however as long as the cell voltage is between 1.5 and 4.5Vs then the DIYBMS 16S monitor board can use it.

@Bingo take a look at this issue on GITHUB - PYLON CAN protocol to Deye Inverter not working for "charge prevented" · Issue #216 · stuartpittaway/diyBMSv4ESP32 · GitHub

Can I suggest contacting user Adasbms or olterion who have been using DEYE inverters with DIYBMS.

I don’t have this type of inverter, so can’t help with debugging.

Hello Guys,

i build my 16S1 battery pack in August 2022 with the respective firmeware for the controller board (v4.4), modules (v4.4) and the smart shunt.
Now i recognized the FW update for the controller with dynamic charging, which is an great feature!

Is there anything to consider by updating the FW of the controller to the newest version, by an finished powerwall?
E.g.: Do i have to disconnect the power supply of the board before connecting the USB cable from the laptop?
Is it mandatory to update the shunt, if the board is on the new Firmware_2023-10-30-10-43?

Many thanks in advance!

BR

Hi @RoBu - yes unplug power from both controller and modules and shunt if you are planning to upgrade them.

Once you update to the latest release, the future controller updates can be done over WIFI.

So once again, power down the battery and disconnect!

1 Like