4-channel BMS with daisychain bus

Topics concerning OEM and open source BMSes
Post Reply
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

Have you prepared the first board? It needs to R6 to be moved over to R5 (pull-down instead of pull-up)
Have you swapped the diodes on all other boards (i.e. not the first)? Not important for first tests but will generate a 1mA drain.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Oskar
Posts: 21
Joined: Mon Aug 19, 2019 5:46 pm
Location: Sweden

Re: 4-channel BMS with daisychain bus

Post by Oskar »

Thanks. That did the trick. The last email I got from you instructed me to move R12 to R5 instead of R6 ;)
I have swapped all diodes and also added standard JST connectors on all boards.
johu wrote: Thu Oct 01, 2020 6:52 am Have you prepared the first board? It needs to R6 to be moved over to R5 (pull-down instead of pull-up)
Have you swapped the diodes on all other boards (i.e. not the first)? Not important for first tests but will generate a 1mA drain.
Oskar
Posts: 21
Joined: Mon Aug 19, 2019 5:46 pm
Location: Sweden

Re: 4-channel BMS with daisychain bus

Post by Oskar »

Everything was fine until I changed slaveop to FWUpgrade and now it's on WaitAddr again. Leds on first board are solid as long as it's connected to master unit.
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

Oh, remote firmware upgrade gone wrong... just reflash the cell boards and you're back to good.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Matthew100
Posts: 7
Joined: Mon Oct 12, 2020 11:20 am
Location: Perth, Australia

Re: 4-channel BMS with daisychain bus

Post by Matthew100 »

Would it be possible in a future revision to be able to simulate a smaller virtual battery?
say for example a hybrid or PHEV you want to primarily use as a PEV. We take a gen2 prius, put 10/20kwh of batteries in it.
The oem system wouldn't use that very well but if artificially suggesting constant higher SOC encouraging the use of more power from the battery until we got down to to a predetermined point and then switched to a small virtual battery that the hybrid system would try and maintain the soc.
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by Jack Bauer »

After agonising on how best to connect the bms wires to the slave boards I settled on these solder shrink connectors. Will see how they go the 2 x 100s packs in the E65.
Attachments
2020-10-28 10.30.39.jpg
2020-10-28 10.30.34.jpg
I'm going to need a hacksaw
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by arber333 »

Jack Bauer wrote: Wed Oct 28, 2020 10:33 am After agonising on how best to connect the bms wires to the slave boards I settled on these solder shrink connectors. Will see how they go the 2 x 100s packs in the E65.
You can also buy just the red or white shrink wraps.
User avatar
bexander
Posts: 834
Joined: Tue Jun 16, 2020 6:00 pm
Location: Gothenburg, Sweden
Has thanked: 63 times
Been thanked: 89 times

Re: 4-channel BMS with daisychain bus

Post by bexander »

johu wrote: Thu Aug 06, 2020 5:11 pm I decided to push things forward by publishing some stuff. So:
The Isolator/Master will see one more iteration. Some component values will be changed and it will get the ability to turn itself off. So see for yourself if you're fine with the current version.

JLCPCB does not fit any of the connectors so you need to find them somewhere else and solder them yourself.

As always, use the forum. Don't dare privately messaging me if you run into issues but do please post here (or in a dedicated build thread)

The posted binary version of the master firmware is preliminary but good enough for testing.
What is the status of the next iteration?
Is ordering directly from JLCPCB the only way to get the boards? No other source available?

I will, most likely, need a new bms for my new batterypack and this is a good option.
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by Jack Bauer »

So I have a string of 23 V5.2 boards running in my E65 front battery just fine. Calibrated and programmed two new V5.3 boards to finish out the 100s pack. When added these two slave boards do not address and also none of the others address. Jumper fitted between pins 4 and 2 on the icsp header. Any help much appreciated:)
I'm going to need a hacksaw
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

Whats the value of R6 and C5?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by Jack Bauer »

R6=4k7
C5=1n
I'm going to need a hacksaw
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by Jack Bauer »

Thanks to Johannes's help I now have calibrated and programmed my first boards and now have 100 cell monitoring up and running on the E65 front pack.
I'm going to need a hacksaw
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

Looking forward to a semi-exciting video to dislike :D
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
ChazFisher
Posts: 53
Joined: Wed Jul 03, 2019 1:32 am
Location: Central Virginia, USA

Re: 4-channel BMS with daisychain bus

Post by ChazFisher »

johu wrote: Thu Aug 06, 2020 5:11 pm I decided to push things forward by publishing some stuff. So:
The Isolator/Master will see one more iteration. Some component values will be changed and it will get the ability to turn itself off. So see for yourself if you're fine with the current version.

JLCPCB does not fit any of the connectors so you need to find them somewhere else and solder them yourself.

As always, use the forum. Don't dare privately messaging me if you run into issues but do please post here (or in a dedicated build thread)

The posted binary version of the master firmware is preliminary but good enough for testing.
I placed my JLCPCB order today. Plan is to start learning how the BMS works with a simple stack of 18650 cells, before committing to the battery pack for my e-motorcycle. Now to go back and read this thread in detail - first order of business is to learn how to calibrate the slaves.
Chaz Fisher
Slowly creeping up on that e-motorcycle.
User avatar
arturk
Posts: 146
Joined: Wed Oct 02, 2019 3:58 am
Location: United States, MD
Has thanked: 1 time
Been thanked: 2 times

Re: 4-channel BMS with daisychain bus

Post by arturk »

ChazFisher wrote: Wed Nov 25, 2020 9:10 pm ...first order of business is to learn how to calibrate the slaves...
I will be looking into it very soon as well since I am going to use this BMS in my conversion.

While I am waiting for "cell modules boards" I started working on "master/isolator" (CAN v2).
Q: Is WiFi interface software available for download? The only one I see on GitHub is for Inverter.
1998 Jaguar XJR, GS450h drivetrain, 48kWh/96s BMW battery
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

The wifi software is universal - thanks to a defined interface ;)
I will at some BMS specific dash board with voltage bar graphs and such
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
arturk
Posts: 146
Joined: Wed Oct 02, 2019 3:58 am
Location: United States, MD
Has thanked: 1 time
Been thanked: 2 times

Re: 4-channel BMS with daisychain bus

Post by arturk »

Thank you for clarification Johannes.
johu wrote: Sun Nov 29, 2020 10:29 pm The wifi software is universal - thanks to a defined interface ;)
I will at some BMS specific dash board with voltage bar graphs and such
I suspected it and loaded latest "esp8266-web-interface" hoping to see some BMS functionality based on earlier post:
johu wrote: Wed Jun 17, 2020 7:34 pm ... you can see individual cell voltages and other things that wouldn't make much sense to constantly put on the CAN bus ...
I understand now it is still under development.
1998 Jaguar XJR, GS450h drivetrain, 48kWh/96s BMW battery
TonyV
Posts: 87
Joined: Sat Nov 14, 2020 9:00 pm
Location: Toronto
Has thanked: 1 time
Been thanked: 8 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by TonyV »

Hi everyone,
kinda of a new guy here,
I have a question about the wiring of the "1st cell group" battery management board.
I'm I missing something here but, shouldn't Batt 2 wire be connected to the cell below it?
Image

I hope I don't sound like an idiot. :)
I'll figure this out sooner or later
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

TonyV wrote: Wed Dec 02, 2020 2:45 am I hope I don't sound like an idiot. :)
Not at all, an extra cell slipped in there ;) Never noticed.
The diagram is slightly outdated as isolator and master are no longer split.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
TonyV
Posts: 87
Joined: Sat Nov 14, 2020 9:00 pm
Location: Toronto
Has thanked: 1 time
Been thanked: 8 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by TonyV »

Any time line as to when these are for sale to the masses? :)
I'll figure this out sooner or later
User avatar
arturk
Posts: 146
Joined: Wed Oct 02, 2019 3:58 am
Location: United States, MD
Has thanked: 1 time
Been thanked: 2 times

Re: 4-channel BMS with daisychain bus

Post by arturk »

After couple of days of hard work programming and calibrating I was finally able to run first, somewhat successful test with CAN Isolator v2 and 2 Cell Modules v5.2 on 12s test battery pack.


It seems to work however I do not see any values from BMS reported in the "Spot Values" section on WiFi interface, all values show '0' :(
Modules seem to be addressing and communicating, so at this point I would expect to see some real values for Pack Voltage, average
and perhaps individual cells voltages.

I have no prior experience with OpenInerter platform and unified WiFi interface so I could have missed something.
Any tips would be greatly appreciated.
Attachments
WiFi_2_20201209-012916.jpg
WiFi_1_20201209-011551.jpg
IMG_20201209_012253.jpg
1998 Jaguar XJR, GS450h drivetrain, 48kWh/96s BMW battery
User avatar
langoo
Posts: 65
Joined: Thu May 09, 2019 6:27 pm
Location: Varberg, Sweden

Re: 4-channel BMS with daisychain bus

Post by langoo »

Did you do the oscillator-calibration correctly? It looks like the lights on the slaves are blinking in different frequencies.
Robin Hellström
MR Electronics AB
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

It looks like the cell modules receive the "set address" command fine as they stop blinking. But the master does not receive it back. Can you try switching polarity from 2nd module back to master?

EDIT: I have also had trouble with filtering. You can try replacing R14 with 1M or 470k and removing C20 if still not working.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
arturk
Posts: 146
Joined: Wed Oct 02, 2019 3:58 am
Location: United States, MD
Has thanked: 1 time
Been thanked: 2 times

Re: 4-channel BMS with daisychain bus

Post by arturk »

Success!

It was polarity as, silly mistake of me not checking it.
I am getting voltages of my 8 cells reported as well as averages and temps

Also, checked signal quality on the return channel (U6.4) and looks pretty clean, at least in this simple test setup. I will keep an eye on it as I expand system.

Next step is to update my calibration rig to get ADC calibration more accurate (just used series of resistors for this first test :) ) . I am good on clock/oscillator.
langoo wrote: Wed Dec 09, 2020 9:20 am Did you do the oscillator-calibration correctly? It looks like the lights on the slaves are blinking in different frequencies.
Very important point indeed. I made sure oscillators were calibrated as difference prior calibration was really huge. This may be hard judge from the video since I plugged in batteries by hand individually. Using Arduino Micro with timer programmed to generate 2kHz signal. It is pretty accurate.
1998 Jaguar XJR, GS450h drivetrain, 48kWh/96s BMW battery
User avatar
arturk
Posts: 146
Joined: Wed Oct 02, 2019 3:58 am
Location: United States, MD
Has thanked: 1 time
Been thanked: 2 times

Re: 4-channel BMS with daisychain bus

Post by arturk »

Johannes, do you see any possibility of adding external temperature sensor support to cell module?
I know we do not have any more "free" pins available but was about PA3.
It seems like it was intended as 3V reference but is it really being used that way?
1998 Jaguar XJR, GS450h drivetrain, 48kWh/96s BMW battery
Post Reply