4-channel BMS with daisychain bus
Re: 4-channel BMS with daisychain bus
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.
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.
- 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
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
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
- Teknomadix
- Posts: 27
- Joined: Sun Jul 14, 2019 7:37 am
- Location: Cascadia
- Contact:
- 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
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.
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
- Teknomadix
- Posts: 27
- Joined: Sun Jul 14, 2019 7:37 am
- Location: Cascadia
- Contact:
Re: 4-channel BMS with daisychain bus
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"Teknomadix wrote: ↑Tue Jul 23, 2019 9:27 pm Also. Would like to suggest officially naming this the "Heubner BMS"
- Teknomadix
- Posts: 27
- Joined: Sun Jul 14, 2019 7:37 am
- Location: Cascadia
- Contact:
- 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
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.*)
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
Re: 4-channel BMS with daisychain bus
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
- 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
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
Re: 4-channel BMS with daisychain bus
I've created this wiring diagram for Johannes' BMS and added it to the Wiki as well.
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
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
- 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
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)
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
-
- 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
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.
- 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
They are not up yet but maybe I should do so for pre-orders?
I think 10-15€ should be a realistic price range
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
- 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
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.
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
Re: 4-channel BMS with daisychain bus
"Just a friendly reminder.."
Sign me up for 24 4-cell boards and two CAN isolator boards. If there are any left that is
Sign me up for 24 4-cell boards and two CAN isolator boards. If there are any left that is
Re: 4-channel BMS with daisychain bus
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 ?
could it be compatible with sk innovation 4.4vmax cells ?
-
- 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
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;
}
- Attachments
-
- Decode BMS Canbus.pdf
- (193.36 KiB) Downloaded 203 times
- 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
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
-
- 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
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);
}
For me the basics are covered to get the cell info you want to make the higher level decisions on.
- 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
Yes 756 sounds like a gentle limit (3kV)
Ah yes I also use a target voltage for balancing, the same value for all cells.
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
Re: 4-channel BMS with daisychain bus
ok if it's possible i'm with you for 25 cell board and two isolators .johu wrote: ↑Tue Oct 01, 2019 5:45 pmSo 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.
- 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
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
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
Re: 4-channel BMS with daisychain bus
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?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
Robin Hellström
MR Electronics AB
MR Electronics AB
- 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
Yes, hardware is here: https://github.com/jsphuebner/bms-hardware
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9