diyBMSv4 icon indicating copy to clipboard operation
diyBMSv4 copied to clipboard

diyBMS cooperation with the 160S high-voltage battery

Open PiotrSin opened this issue 2 years ago • 19 comments

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

PiotrSin avatar Dec 02 '23 14:12 PiotrSin

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?

stuartpittaway avatar Dec 02 '23 15:12 stuartpittaway

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

PiotrSin avatar Dec 02 '23 16:12 PiotrSin

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

stuartpittaway avatar Dec 02 '23 16:12 stuartpittaway

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

PiotrSin avatar Dec 02 '23 16:12 PiotrSin

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

stuartpittaway avatar Dec 02 '23 16:12 stuartpittaway

yes

PiotrSin avatar Dec 02 '23 16:12 PiotrSin

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.

stuartpittaway avatar Dec 02 '23 16:12 stuartpittaway

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

PiotrSin avatar Dec 02 '23 16:12 PiotrSin

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

stuartpittaway avatar Dec 04 '23 12:12 stuartpittaway

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 avatar Dec 04 '23 16:12 PiotrSin

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

PiotrSin avatar Dec 04 '23 17:12 PiotrSin

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.

stuartpittaway avatar Dec 05 '23 09:12 stuartpittaway

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

  • additional voltage comparators for each 16S section
  • overcurrent protection and additionally implemented temperature and fire protection with detection of gases from leaking batteries

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 avatar Dec 05 '23 18:12 PiotrSin

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

  • I don't see this version in the AVR programmer tab, where can I find the correct version? / this link doesn't work https://github.com/stuartpittaway/diyBMSv4ESP32/tree/all-in-one/STM32All-In-One#readme

  • where can I find the wiring diagram for programming cables from the ISP connector?

PiotrSin avatar Dec 05 '23 21:12 PiotrSin

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.

stuartpittaway avatar Dec 06 '23 12:12 stuartpittaway

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

PiotrSin avatar Dec 09 '23 21:12 PiotrSin

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?

stuartpittaway avatar Dec 10 '23 11:12 stuartpittaway