4-channel BMS with daisychain bus

Topics concerning OEM and open source BMSes
sonachan1
Posts: 64
Joined: Sat Dec 15, 2018 5:46 pm
Location: Cheshire, UK

Re: 4-channel BMS with daisychain bus

Post by sonachan1 »

Hi all,

I'm looking into getting a batch of boards made. If you're interested, can you let me know by Friday 7th June so I can get a rough idea of numbers. I'll get a quote based on the number we need, then you'll have the opportunity to commit to buying them or not based on the quote.

PM me if you're interested.
User avatar
johu
Site Admin
Posts: 6198
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 225 times
Been thanked: 1259 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

I didn't get around to posting the firmware properly on github, so here are the binaries for now.

Fuses on the cell board must be
- efuse 0xFE
- hfuse 0xD7
- lfuse 0xE2
Attachments
bms-firmware.zip
(10.39 KiB) Downloaded 211 times
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Teknomadix
Posts: 27
Joined: Sun Jul 14, 2019 7:37 am
Location: Cascadia
Contact:

Re: 4-channel BMS with daisychain bus

Post by Teknomadix »

removed
User avatar
johu
Site Admin
Posts: 6198
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 225 times
Been thanked: 1259 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

Very cool. Will start a wiki page for the BMS so you know how to use it. https://openinverter.org/wiki/4-cell_BMS
Thanks for the upcoming support, I'm very grateful that I don't have to organize shipping and such.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Teknomadix
Posts: 27
Joined: Sun Jul 14, 2019 7:37 am
Location: Cascadia
Contact:

Re: 4-channel BMS with daisychain bus

Post by Teknomadix »

removed
nailgg
Posts: 119
Joined: Sat Dec 22, 2018 8:40 pm

Re: 4-channel BMS with daisychain bus

Post by nailgg »

Teknomadix wrote: Tue Jul 23, 2019 9:27 pm Also. Would like to suggest officially naming this the "Heubner BMS" 8-)
Johannes is probably too kind to do this, but I feel compelled to correct this before you have hundreds of them manufactured: It's "Huebner" not "Heubner" :)
User avatar
Teknomadix
Posts: 27
Joined: Sun Jul 14, 2019 7:37 am
Location: Cascadia
Contact:

Re: 4-channel BMS with daisychain bus

Post by Teknomadix »

removed
User avatar
johu
Site Admin
Posts: 6198
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 225 times
Been thanked: 1259 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

Nail, thanks for pointing it out :)

I have updated the documentation: https://openinverter.org/wiki/4-cell_BMS

If anyone feels inclined to design the CAN version then here is your starting point: https://github.com/jsphuebner/bms-hardware (Isolator-2.0.*)
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada
Been thanked: 1 time

Re: 4-channel BMS with daisychain bus

Post by dima »

Hey Johannes have you looked at "fastboot" as UART bootloader for ATTiny? I did an unrelated project with attiny and it was working great even with Attiny13! Very small written in assembly (510 bytes) here is a copy https://github.com/dimecho/ATtiny13-Pla ... r/fastboot
User avatar
johu
Site Admin
Posts: 6198
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 225 times
Been thanked: 1259 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

Hi Dima, on the cell modules there is no UART but the custom protocol. The boot loader works quite well and takes up 500 bytes (written in C)
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
sonachan1
Posts: 64
Joined: Sat Dec 15, 2018 5:46 pm
Location: Cheshire, UK

Re: 4-channel BMS with daisychain bus

Post by sonachan1 »

I've created this wiring diagram for Johannes' BMS and added it to the Wiki as well.
Huebner BMS Wiring Diagram.jpg
This diagram has been edited. The connections on the 1st isolator module connector JP2 were reversed. Also swapped the position of JP2 and JP3 on the diagram to match the actual PCB
User avatar
johu
Site Admin
Posts: 6198
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 225 times
Been thanked: 1259 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

Beauty :)
On other news my top secret China contact will be sending me 100 populated boards in about 3 weeks.
Some are reserved for Damien and Andy and a few other chaps who dropped out of my head (hope will remember later)
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
JaniK
Posts: 395
Joined: Sun Aug 25, 2019 12:39 pm
Location: Finland
Has thanked: 55 times
Been thanked: 14 times

Re: 4-channel BMS with daisychain bus

Post by JaniK »

johu wrote: Wed Sep 11, 2019 7:00 pm Beauty :)
On other news my top secret China contact will be sending me 100 populated boards in about 3 weeks.
Some are reserved for Damien and Andy and a few other chaps who dropped out of my head (hope will remember later)
I did not find it in shop, how much you ask for the boards?
Any opinions are my own, unless stated otherwise. I take no responsibility if you follow my way of doing things and it doesn't work. Please double check with someone who knows what they are doing.
User avatar
johu
Site Admin
Posts: 6198
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 225 times
Been thanked: 1259 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

They are not up yet but maybe I should do so for pre-orders?
I think 10-15€ should be a realistic price range
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
johu
Site Admin
Posts: 6198
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 225 times
Been thanked: 1259 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

Meanwhile I have lost track of who was interested in 4-cell boards. Could everyone please speak up here.

On other news I will design a CAN isolator board based on a Blue Pill that is otherwise through-hole. I expect quantities to be rather low to begin with, so through hole makes more sense also as it won't be many components. The isolator will also have a differential input for a current sensor, a relay, an open collector PWM output and an open collector analog output for faking fuel tank pots.

Concerning the CAN protocol I'd like to reuse an existing one, so what is your favorite BMS CAN protocol, compatible with SimpBMS?

Next step would be collecting preorders in the shop and when X boards are ordered I'd order a larger batch of like 1000 or so.
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 »

"Just a friendly reminder..;)"

Sign me up for 24 4-cell boards and two CAN isolator boards. If there are any left that is :)
D@F
Posts: 61
Joined: Mon Dec 24, 2018 1:12 pm
Has thanked: 2 times

Re: 4-channel BMS with daisychain bus

Post by D@F »

hello, i'm interrested to make a bms for a 100s battery pack, what do i need to buy ?
could it be compatible with sk innovation 4.4vmax cells ?
tom91
Posts: 1721
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 148 times
Been thanked: 336 times

Re: 4-channel BMS with daisychain bus

Post by tom91 »

johu wrote: Mon Sep 30, 2019 8:10 am Concerning the CAN protocol I'd like to reuse an existing one, so what is your favorite BMS CAN protocol, compatible with SimpBMS?
Since it is 4 cells per board, copying the Mitsubishi outlander responses (see attached info) would be good, so you would be pretending to be an 12 cell slave board.

Balancing in the Mitsubishi Outlander scheme uses a target voltage, I do not know what you have in mind.

If the current sensor info can be shared pretending to be a CAB300/500 that would be easy to reuse too.

Code: Select all

     ID 0x3c2:
  for (int i = 0; i < 4; i++)
  {
    inbox = (inbox << 8) | inMsg.buf[i];
  }
  CANmilliamps = inbox;
  if (CANmilliamps > 0x80000000)
  {
    CANmilliamps -= 0x80000000;
  }
  else
  {
    CANmilliamps = (0x80000000 - CANmilliamps) * -1;
  }

so a simple 32bit signed value in mili-amps
Attachments
Decode BMS Canbus.pdf
(193.36 KiB) Downloaded 203 times
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
johu
Site Admin
Posts: 6198
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 225 times
Been thanked: 1259 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

D@F wrote: Tue Oct 01, 2019 12:42 pm hello, i'm interrested to make a bms for a 100s battery pack, what do i need to buy ?
could it be compatible with sk innovation 4.4vmax cells ?
So for 100S you'd need 25 cell boards and one or more isolators depending on how the cells are distributed in you car. If they are all in one place one isolator is enough. For 4.4V cells the resistor network would be a bit different, will ask the manufacturer if they mind doing different ones on some boards.

@tom Outlander protocol looks reasonably straight forward.

I have the layout of the CAN isolator done, will order some boards maybe next week.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
tom91
Posts: 1721
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 148 times
Been thanked: 336 times

Re: 4-channel BMS with daisychain bus

Post by tom91 »

johu wrote: Tue Oct 01, 2019 5:45 pm @tom Outlander protocol looks reasonably straight forward.
You can see how easily I can add more 'slave postions' if needed. There is no really 'excess' data in the can structure, so if you feel like you need more let me know.

https://github.com/tomdebree/OutlanderP ... anager.cpp

Code: Select all

void BMSModuleManager::decodecan(CAN_message_t &msg)
{
  int Id, CMU = 0;
  
    Id = msg.id & 0x00F;
    CMU = (((msg.id & 0xFF0) - 0x600) >> 4);
    
  modules[CMU].setExists(true);
  modules[CMU].setReset(true);
  modules[CMU].decodecan(Id, msg);
}
The code above and the rest of the structures used currently limit it to 63x12s slaves (756 cells monitored), I would expect the canbus to be the bottle neck before saturating reserved memory.

For me the basics are covered to get the cell info you want to make the higher level decisions on.
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
johu
Site Admin
Posts: 6198
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 225 times
Been thanked: 1259 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

Yes 756 sounds like a gentle limit :) (3kV)
Ah yes I also use a target voltage for balancing, the same value for all cells.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
D@F
Posts: 61
Joined: Mon Dec 24, 2018 1:12 pm
Has thanked: 2 times

Re: 4-channel BMS with daisychain bus

Post by D@F »

johu wrote: Tue Oct 01, 2019 5:45 pm
D@F wrote: Tue Oct 01, 2019 12:42 pm hello, i'm interrested to make a bms for a 100s battery pack, what do i need to buy ?
could it be compatible with sk innovation 4.4vmax cells ?
So for 100S you'd need 25 cell boards and one or more isolators depending on how the cells are distributed in you car. If they are all in one place one isolator is enough. For 4.4V cells the resistor network would be a bit different, will ask the manufacturer if they mind doing different ones on some boards.

@tom Outlander protocol looks reasonably straight forward.

I have the layout of the CAN isolator done, will order some boards maybe next week.
ok if it's possible i'm with you for 25 cell board and two isolators .
User avatar
johu
Site Admin
Posts: 6198
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 225 times
Been thanked: 1259 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

I got the first 3 prototype boards from China today. Tested one and it's good.
I found that I needed another gain correction in hires mode. Basically 4 correction factors for the resistor dividers and one for the internal 20x gain stage. Now the measurement is almost on par with my 34401A meter :)
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
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 »

johu wrote: Thu Oct 10, 2019 9:24 am I got the first 3 prototype boards from China today. Tested one and it's good.
I found that I needed another gain correction in hires mode. Basically 4 correction factors for the resistor dividers and one for the internal 20x gain stage. Now the measurement is almost on par with my 34401A meter :)
Great stuff! I might be interested in some boards for a project of mine. Did you put up an schematic/PCB design and software on GitHub?
Robin Hellström
MR Electronics AB
User avatar
johu
Site Admin
Posts: 6198
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 225 times
Been thanked: 1259 times
Contact:

Re: 4-channel BMS with daisychain bus

Post by johu »

Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply