Page 5 of 10

Re: 4-channel BMS with daisychain bus

Posted: Thu Oct 01, 2020 6:52 am
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.

Re: 4-channel BMS with daisychain bus

Posted: Thu Oct 01, 2020 12:31 pm
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.

Re: 4-channel BMS with daisychain bus

Posted: Tue Oct 06, 2020 11:14 am
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.

Re: 4-channel BMS with daisychain bus

Posted: Tue Oct 06, 2020 11:36 am
by johu
Oh, remote firmware upgrade gone wrong... just reflash the cell boards and you're back to good.

Re: 4-channel BMS with daisychain bus

Posted: Tue Oct 13, 2020 4:17 pm
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.

Re: 4-channel BMS with daisychain bus

Posted: Wed Oct 28, 2020 10:33 am
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.

Re: 4-channel BMS with daisychain bus

Posted: Wed Oct 28, 2020 1:06 pm
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.

Re: 4-channel BMS with daisychain bus

Posted: Fri Nov 06, 2020 6:42 pm
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.

Re: 4-channel BMS with daisychain bus

Posted: Tue Nov 10, 2020 1:58 pm
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:)

Re: 4-channel BMS with daisychain bus

Posted: Tue Nov 10, 2020 3:56 pm
by johu
Whats the value of R6 and C5?

Re: 4-channel BMS with daisychain bus

Posted: Tue Nov 10, 2020 4:10 pm
by Jack Bauer
R6=4k7
C5=1n

Re: 4-channel BMS with daisychain bus

Posted: Wed Nov 11, 2020 12:13 pm
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.

Re: 4-channel BMS with daisychain bus

Posted: Wed Nov 11, 2020 1:43 pm
by johu
Looking forward to a semi-exciting video to dislike :D

Re: 4-channel BMS with daisychain bus

Posted: Wed Nov 25, 2020 9:10 pm
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.

Re: 4-channel BMS with daisychain bus

Posted: Sun Nov 29, 2020 4:20 am
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.

Re: 4-channel BMS with daisychain bus

Posted: Sun Nov 29, 2020 10:29 pm
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

Re: 4-channel BMS with daisychain bus

Posted: Mon Nov 30, 2020 8:51 pm
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.

Re: 4-channel BMS with daisychain bus

Posted: Wed Dec 02, 2020 2:45 am
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. :)

Re: 4-channel BMS with daisychain bus

Posted: Wed Dec 02, 2020 1:19 pm
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.

Re: 4-channel BMS with daisychain bus

Posted: Mon Dec 07, 2020 1:33 am
by TonyV
Any time line as to when these are for sale to the masses? :)

Re: 4-channel BMS with daisychain bus

Posted: Wed Dec 09, 2020 7:15 am
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.

Re: 4-channel BMS with daisychain bus

Posted: Wed Dec 09, 2020 9:20 am
by langoo
Did you do the oscillator-calibration correctly? It looks like the lights on the slaves are blinking in different frequencies.

Re: 4-channel BMS with daisychain bus

Posted: Wed Dec 09, 2020 11:03 am
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.

Re: 4-channel BMS with daisychain bus

Posted: Wed Dec 09, 2020 4:20 pm
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.

Re: 4-channel BMS with daisychain bus

Posted: Sat Dec 12, 2020 6:26 am
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?