stuartpittaway / diyBMSv4

Version 4 of the diyBMS
Other
909 stars 222 forks source link

diyBMS cooperation with the 160S high-voltage battery #175

Open PiotrSin opened 9 months ago

PiotrSin commented 9 months ago

I have a li-ion battery from an electric car (car floor). Currently, this battery works with a Chinese BMS and a HYD 20 KTL-3PH inverter. It works well but lacks features available in diyBMS. I have built a PCB to run diyBMS with such a battery, but the problem is that diyBMS only supports batteries up to 128S. Please change the program code for 160S or more batteries. I will be happy to share my knowledge and present my project. I understand the difficulties with high voltage batteries. I know they are dangerous. I have the appropriate qualifications to work with high voltage. thank you for your support

stuartpittaway commented 9 months ago

Hi, how are you with compiling code? Using vscode?

I suggest that we could use the diybms alongside the existing BMS, particularly if you just want monitoring and reporting features.

Which diybms cell modules do you have?

PiotrSin commented 9 months ago

I count on the author's help to change the code in BMS. I'm not good at programming. Combining two different BMS systems does not seem to be a good solution I have prepared 1 Controller 4.6 board and 10 ModuleV490-AllInOne boards

stuartpittaway commented 9 months ago

What cell chemistry is it? What voltage range per cell?

I was suggesting using 2 BMS whilst this is tested and proven reliable, rather than risk damage or worst

PiotrSin commented 9 months ago

Li-lion 2,8V > 4,2V I use the range of 3V to 4.1V to increase durability

stuartpittaway commented 9 months ago

Great, you fitted the 4.5V reference in the modules?

PiotrSin commented 9 months ago

yes

stuartpittaway commented 9 months ago

Ok, give me a day or two to review the code.

Might be worth while connecting up at least 1 of the modules to a bank for testing.

PiotrSin commented 9 months ago

ok, I'll wait, thanks for your help, I'll take your suggestion

stuartpittaway commented 9 months ago

Hi @PiotrSin, here is a controller firmware which should support up to 192 cells.

I would start with a 16S pack/bank and then grow the cells as needed.

On the communication speed setting - use 5K.

Instructions for cabling up the 16S monitor board is here... https://github.com/stuartpittaway/diyBMSv4/issues/162

192-cell-esp32-controller-firmware-complete.zip

PiotrSin commented 9 months ago

Thank you very much and I'll start testing. Thanks also for the tip How can I support this project or buy you a coffee :)

PiotrSin commented 9 months ago

bms Update done, looks good. Tomorrow I will test it, first I will test it on 16S, then I will connect it to 10x16S. I will write how the tests turned out

stuartpittaway commented 9 months ago

How can I support this project or buy you a coffee :)

You can also send beer tokens via Paypal - https://paypal.me/stuart2222

How are you going to control over current limits?

The DIYBMS doesn't include any current breakers that are often found in the Chinese BMS boards (MOSFETs) the reason is that the BMS can support very small and very large deployments, so didn't want to limit the flexibility. The idea is that you would use a current shunt trip (via a controller relay) to trigger an external breaker.

Additionally, are you planning to use the current shunt/monitor? That has an absolute voltage maximum of 85V input, so you would have to do something creative (resistor divider?) to use that.

PiotrSin commented 9 months ago

This is exactly my plan, the BMS controls a relay to a high voltage contactor that disconnects the battery. There are two more safeguards

For this set I will use a shunt developed by the user from this thread: https://community.openenergymonitor.org/t/isolated-high-voltage-isolated-current-shunt-based-on-ads1115/24249

PiotrSin commented 9 months ago

I have another question about programming the V490-AllInOne Module,

stuartpittaway commented 9 months ago

You can't program the V490 boards directly from the controller - they use the STM32 chip not the ATMEL ones found on the older boards.

All the pre-compiled code is in the release section.

If you are NOT using the DIYBMS current sensor/monitor then you will also not be able to use the CANBUS integration (Pylontech/Victorn) if that is on your plan.

PiotrSin commented 9 months ago

image Tries to perform voltage calibration on individual battery cells. This is only possible on 1 battery cell, but changing the multiplier does not introduce a corrected voltage value. The remaining accumulator targets cannot be edited Where to look for a solution to the problem? image

stuartpittaway commented 9 months ago

The calibration settings has no affect on the v490 module, there shouldn't be any need for calibration as the design uses higher accuracy parts.

Why are your voltage levels so different?