Nissan Leaf BMS: Difference between revisions
(Info about white and grey LBC) |
(Categories) |
||
(14 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
Here we collect information about Nissans BMS. | Here we collect information about Nissans BMS. | ||
A well fleshed out comm stack is implemented in the stm32-car project: https://github.com/jsphuebner/stm32-car | |||
=== Connectors === | === Connectors === | ||
Credit goes to Wolftronix for figuring this out. | Credit goes to Wolftronix for figuring this out. | ||
You will also find it on the [https://www.diyelectriccar.com/forums/showpost.php?p=871121&postcount=207 diyelectriccar] forum, you will need to sign up for downloading | You will also find it on the [https://www.diyelectriccar.com/forums/showpost.php?p=871121&postcount=207 diyelectriccar] forum, you will need to sign up for downloading. Pins are counted left to right when looking into the BMS. Cell 1+ is the positive most and 96 the negative most. | ||
{| class="wikitable" | {| class="wikitable" | ||
| colspan="4" |'''P3 32 pin''' | |||
| colspan="4" |'''P4 24 pin''' | | colspan="4" |'''P4 24 pin''' | ||
| colspan="4" |''' | | colspan="4" |'''P5 40 Pin''' | ||
| colspan="4" |'''P6 16 Pin''' | | colspan="4" |'''P6 16 Pin''' | ||
|- | |- | ||
|'''Pin''' | |'''Pin''' | ||
Line 29: | Line 31: | ||
|- | |- | ||
|1 | |1 | ||
|1+ | |||
| | |||
|17 | |||
|1 | |1 | ||
| | |30 | ||
|29 | |||
|13 | |13 | ||
|1 | |1 | ||
|49+ | |||
| | |||
|21 | |21 | ||
|1 | |1 | ||
| | | | ||
| | |85 | ||
|9 | |9 | ||
|- | |- | ||
|2 | |2 | ||
|2 | |2 | ||
|1- | |||
|18 | |||
|2 | |||
|32 | |||
|31 | |||
|14 | |14 | ||
|2 | |2 | ||
| | |50 | ||
|49- | |||
|22 | |22 | ||
|2 | |2 | ||
| | |86 | ||
| | |87 | ||
|10 | |10 | ||
|- | |- | ||
|3 | |3 | ||
|4 | |4 | ||
|3 | |3 | ||
|19 | |19 | ||
|3 | |3 | ||
| | |||
| | |||
|15 | |||
|3 | |||
|52 | |||
|51 | |51 | ||
| | |23 | ||
|3 | |3 | ||
| | |88 | ||
| | | | ||
| | |11 | ||
|- | |- | ||
|4 | |4 | ||
|6 | |6 | ||
|5 | |||
|20 | |||
|4 | |||
| | |||
|33 | |||
|16 | |16 | ||
|4 | |4 | ||
| | |54 | ||
| | |53 | ||
| | |24 | ||
|4 | |4 | ||
| | |90 | ||
| | |89 | ||
|12 | |12 | ||
|- | |- | ||
|5 | |5 | ||
|8 | |8 | ||
|7 | |||
|21 | |||
|5 | |||
|34 | |||
|35 | |||
|17 | |17 | ||
|5 | |5 | ||
| | |56 | ||
| | |55 | ||
| | |25 | ||
|5 | |5 | ||
| | |92 | ||
| | |91 | ||
|13 | |13 | ||
|- | |- | ||
|6 | |6 | ||
|10 | |10 | ||
|9 | |||
|22 | |||
|6 | |||
|36 | |||
|37 | |||
|18 | |18 | ||
|6 | |6 | ||
| | |58 | ||
| | |57 | ||
| | |26 | ||
|6 | |6 | ||
| | |94 | ||
| | |93 | ||
|14 | |14 | ||
|- | |- | ||
|7 | |7 | ||
|12 | |12 | ||
|11 | |||
|23 | |||
|7 | |||
|38 | |||
|39 | |||
|19 | |19 | ||
|7 | |7 | ||
| | |60 | ||
| | |59 | ||
| | |27 | ||
|7 | |7 | ||
| | |96 | ||
| | |95 | ||
|15 | |15 | ||
|- | |- | ||
|8 | |8 | ||
|14 | |14 | ||
|13 | |||
|24 | |||
|8 | |||
|40 | |||
|41 | |||
|20 | |20 | ||
|8 | |||
|62 | |||
|61 | |||
|28 | |||
|8 | |8 | ||
| | | | ||
| | | | ||
|16 | |16 | ||
|- | |- | ||
|9 | |9 | ||
| | | | ||
| | |15 | ||
|25 | |||
|9 | |||
|42 | |||
|43 | |||
|21 | |21 | ||
|9 | |9 | ||
| | |64 | ||
| | |63 | ||
| | |29 | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
|10 | |10 | ||
| | |16 | ||
| | |17 | ||
|26 | |||
|10 | |||
|44 | |||
|45 | |||
|22 | |22 | ||
|10 | |10 | ||
| | | | ||
| | |65 | ||
| | |30 | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
|11 | |11 | ||
|18 | |18 | ||
|19 | |||
|27 | |||
|11 | |||
|46 | |||
|47 | |||
|23 | |23 | ||
|11 | |11 | ||
| | |66 | ||
| | |67 | ||
|31 | |||
| | |||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
|12 | |12 | ||
|20 | |20 | ||
| | |21 | ||
|28 | |||
|12 | |12 | ||
| | |48 | ||
| | | | ||
|24 | |||
|12 | |12 | ||
| | |68 | ||
| | |69 | ||
|32 | |32 | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |||
|13 | |13 | ||
| | |22 | ||
| | |23 | ||
|29 | |29 | ||
| | | | ||
Line 245: | Line 243: | ||
| | | | ||
|13 | |13 | ||
| | |70 | ||
| | |71 | ||
|33 | |33 | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |||
|14 | |14 | ||
| | |24 | ||
| | |25 | ||
|30 | |30 | ||
| | | | ||
Line 262: | Line 260: | ||
| | | | ||
|14 | |14 | ||
| | |72 | ||
| | |73 | ||
|34 | |34 | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |||
|15 | |15 | ||
| | |26 | ||
| | |27 | ||
|31 | |31 | ||
| | | | ||
Line 279: | Line 277: | ||
| | | | ||
|15 | |15 | ||
| | |74 | ||
| | |75 | ||
|35 | |35 | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |||
|16 | |16 | ||
| | |28 | ||
| | | | ||
|32 | |32 | ||
Line 296: | Line 294: | ||
| | | | ||
|16 | |16 | ||
| | |76 | ||
| | |77 | ||
|36 | |36 | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |||
| | | | ||
| | | | ||
Line 313: | Line 311: | ||
| | | | ||
|17 | |17 | ||
| | |78 | ||
| | |79 | ||
|37 | |37 | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |||
| | | | ||
| | | | ||
Line 330: | Line 328: | ||
| | | | ||
|18 | |18 | ||
| | |80 | ||
| | | | ||
|38 | |38 | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |||
| | | | ||
| | | | ||
Line 347: | Line 345: | ||
| | | | ||
|19 | |19 | ||
| | |82 | ||
| | |81 | ||
|39 | |39 | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |||
| | | | ||
| | | | ||
Line 364: | Line 362: | ||
| | | | ||
|20 | |20 | ||
| | |84 | ||
|83 | |||
|40 | |||
| | |||
| | |||
| | |||
| | | | ||
|} | |} | ||
Line 376: | Line 378: | ||
|Notes | |Notes | ||
|- | |- | ||
|16- | |16-pole male | ||
|1473796-1 | |1473796-1 | ||
| | | | ||
|- | |- | ||
|16- | |16-pole female | ||
|1318386-1 | |1318386-1 | ||
| | | | ||
|- | |- | ||
|24- | |24-pole male | ||
| | |1376103-1 | ||
| | | | ||
|- | |- | ||
|24- | |24-pole female | ||
|1318917-1 | |1318917-1 | ||
|- | |- | ||
|32- | |32-pole male | ||
|1473799-1 | |1473799-1 | ||
| | | | ||
|- | |- | ||
|32- | |32-pole female | ||
|1318747-1 | |1318747-1 | ||
| | | | ||
|- | |- | ||
|40- | |40-pole male | ||
|1376113-2 | |1376113-2 | ||
|Solder part, crimp not available | |Solder part, crimp not available | ||
|- | |- | ||
|40- | |40-pole female | ||
|1318389-1 | |1318389-1 | ||
| | | | ||
Line 426: | Line 428: | ||
https://docs.google.com/spreadsheets/d/1EHa4R85BttuY4JZ-EnssH4YZddpsDVu6rUFm0P7ouwg/edit#gid=7 | https://docs.google.com/spreadsheets/d/1EHa4R85BttuY4JZ-EnssH4YZddpsDVu6rUFm0P7ouwg/edit#gid=7 | ||
Dalas repository of CAN | |||
https://github.com/dalathegreat/leaf_can_bus_messages | |||
=== Different Versions === | === Different Versions === | ||
Line 433: | Line 438: | ||
The earlier version has only white input headers while the later version has ONE black HV header and a grey low voltage header. We call the first version the "white" BMS and the later version the "grey" BMS. | The earlier version has only white input headers while the later version has ONE black HV header and a grey low voltage header. We call the first version the "white" BMS and the later version the "grey" BMS. | ||
The BMS cannot limit anything, it only measures voltage and current and it will balance the cells 24/7 as long as it receives +12V on pin 5 (BAT) of the round connector, which is wired to pin 12 of the LB11 connector. | |||
The BMS will only communicate when there is 12V on either IGN (pin 4 round connector, pin 6 or 7 of LB11, for old/new BMS) or CHG IGN (Charging) which is located on pin 21 or 31 (old/new battery type), pin 5 of LB11. | |||
Treated as a black box the main differences are: | Treated as a black box the main differences are: | ||
* Interlock is between Pin 8 and Pin 21 on white BMS as opposed to Pin 8 and Pin 6 on grey BMS | * Interlock is between Pin 8 and Pin 21 on white BMS as opposed to Pin 8 and Pin 6 on grey BMS | ||
Line 439: | Line 446: | ||
* Supposedly the current sensors GND is on Pin 7 but I found Pin 7 internally unconnected and left GND on Pin 15 | * Supposedly the current sensors GND is on Pin 7 but I found Pin 7 internally unconnected and left GND on Pin 15 | ||
So if you have a "grey" wiring loom but a white LBC you need to move Pin 6 over to Pin 21 and Pin 7 to Pin 6. | So if you have a "grey" wiring loom but a white LBC you need to move Pin 6 over to Pin 21 and Pin 7 to Pin 6. | ||
PDF for HV wiring; | |||
https://www.diyelectriccar.com/threads/re-using-complete-leaf-drive-system-w-vcm.151458/page-11?post_id=871121#post-871121 | |||
To mitigate the missing temperature sensor you need to bridge the two input internally behind the input stage. Therefor remove R59. Then Find R62 and bridge it over to the adjacent channel 4. If you want you can use the resistor you just removed. | To mitigate the missing temperature sensor you need to bridge the two input internally behind the input stage. Therefor remove R59. Then Find R62 and bridge it over to the adjacent channel 4. If you want you can use the resistor you just removed. | ||
=== CAN connector pins === | |||
Pins for CAN-H and CAN-L and others as identified by wolftronix in the diagram below. Pins are for LB11 and LB12 connectors in Nissan terminology. | |||
[[File:Nissan Leaf BMS Connector Pins LB11 LB12.png|thumb|LB11 LB12 mappings]] | |||
=== 40kWh BMS === | |||
The pinout for +12V, CAN-H, CAN-L, Ignition and HV is identical o previous versions. | |||
It uses a daisy chain of MAX17823B for sensing cell voltages. | |||
[[File:40kwh Nissan Leaf BMS.jpg|thumb]] | |||
=== Extending Sensing Wires === | |||
People have succesfully extended sensing wires on a 30kWh pack, beware of extending them too much on a 40kWh pack as this can cause a variety of issues [https://openinverter.org/forum/viewtopic.php?t=2737] | |||
[[Category:Nissan]] [[Category:BMS]] [[Category:Battery]] |
Latest revision as of 16:51, 20 December 2024
Here we collect information about Nissans BMS.
A well fleshed out comm stack is implemented in the stm32-car project: https://github.com/jsphuebner/stm32-car
Connectors
Credit goes to Wolftronix for figuring this out.
You will also find it on the diyelectriccar forum, you will need to sign up for downloading. Pins are counted left to right when looking into the BMS. Cell 1+ is the positive most and 96 the negative most.
P3 32 pin | P4 24 pin | P5 40 Pin | P6 16 Pin | ||||||||||||
Pin | Cell | Cell | Pin | Pin | Cell | Cell | Pin | Pin | Cell | Cell | Pin | Pin | Cell | Cell | Pin |
1 | 1+ | 17 | 1 | 30 | 29 | 13 | 1 | 49+ | 21 | 1 | 85 | 9 | |||
2 | 2 | 1- | 18 | 2 | 32 | 31 | 14 | 2 | 50 | 49- | 22 | 2 | 86 | 87 | 10 |
3 | 4 | 3 | 19 | 3 | 15 | 3 | 52 | 51 | 23 | 3 | 88 | 11 | |||
4 | 6 | 5 | 20 | 4 | 33 | 16 | 4 | 54 | 53 | 24 | 4 | 90 | 89 | 12 | |
5 | 8 | 7 | 21 | 5 | 34 | 35 | 17 | 5 | 56 | 55 | 25 | 5 | 92 | 91 | 13 |
6 | 10 | 9 | 22 | 6 | 36 | 37 | 18 | 6 | 58 | 57 | 26 | 6 | 94 | 93 | 14 |
7 | 12 | 11 | 23 | 7 | 38 | 39 | 19 | 7 | 60 | 59 | 27 | 7 | 96 | 95 | 15 |
8 | 14 | 13 | 24 | 8 | 40 | 41 | 20 | 8 | 62 | 61 | 28 | 8 | 16 | ||
9 | 15 | 25 | 9 | 42 | 43 | 21 | 9 | 64 | 63 | 29 | |||||
10 | 16 | 17 | 26 | 10 | 44 | 45 | 22 | 10 | 65 | 30 | |||||
11 | 18 | 19 | 27 | 11 | 46 | 47 | 23 | 11 | 66 | 67 | 31 | ||||
12 | 20 | 21 | 28 | 12 | 48 | 24 | 12 | 68 | 69 | 32 | |||||
13 | 22 | 23 | 29 | 13 | 70 | 71 | 33 | ||||||||
14 | 24 | 25 | 30 | 14 | 72 | 73 | 34 | ||||||||
15 | 26 | 27 | 31 | 15 | 74 | 75 | 35 | ||||||||
16 | 28 | 32 | 16 | 76 | 77 | 36 | |||||||||
17 | 78 | 79 | 37 | ||||||||||||
18 | 80 | 38 | |||||||||||||
19 | 82 | 81 | 39 | ||||||||||||
20 | 84 | 83 | 40 |
Connector part numbers
In case you need to adapt or extend the sense wires, you will need the male and female connectors and the respective pins. Here are the part numbers:
Part | Number | Notes |
16-pole male | 1473796-1 | |
16-pole female | 1318386-1 | |
24-pole male | 1376103-1 | |
24-pole female | 1318917-1 | |
32-pole male | 1473799-1 | |
32-pole female | 1318747-1 | |
40-pole male | 1376113-2 | Solder part, crimp not available |
40-pole female | 1318389-1 | |
Pin male | 1376109-1 | |
Pin female | 1123343-1 |
CAN Messages
Upon powerup the unit spits out messages that contain various useful info. After a while these messages stop and you have to send 50B#00 00 00 C0 00 00 00 to get it going again.
All messages are big endian, i.e. hi-byte, lo-byte!
To get the individual cell voltages, first issue 79B#02 21 02 FF FF FF FF FF. You will receive the first reply looking like this: 7BB#10 C6 61 02 0E C9 0E C0.
Now send 27 times 79B#30 01 00 FF FF FF FF FF and you get 7BB#21 0E C0 0E C2 0E C0 0E. It is one index byte and 7 data bytes. So after 28 messages you will have collected 98 words (16-bit) of data. Every other message it stretches over to the next message. The first the last two words are unknown so we discard them. That leaves us with 96 Words that represent the cell voltages in mV in big endian format.
https://docs.google.com/spreadsheets/d/1EHa4R85BttuY4JZ-EnssH4YZddpsDVu6rUFm0P7ouwg/edit#gid=7
Dalas repository of CAN https://github.com/dalathegreat/leaf_can_bus_messages
Different Versions
Their seem to be at least two different versions of the LBC out there, as discovered here: https://openinverter.org/forum/viewtopic.php?f=13&t=370&start=10
The earlier version has only white input headers while the later version has ONE black HV header and a grey low voltage header. We call the first version the "white" BMS and the later version the "grey" BMS.
The BMS cannot limit anything, it only measures voltage and current and it will balance the cells 24/7 as long as it receives +12V on pin 5 (BAT) of the round connector, which is wired to pin 12 of the LB11 connector. The BMS will only communicate when there is 12V on either IGN (pin 4 round connector, pin 6 or 7 of LB11, for old/new BMS) or CHG IGN (Charging) which is located on pin 21 or 31 (old/new battery type), pin 5 of LB11. Treated as a black box the main differences are:
- Interlock is between Pin 8 and Pin 21 on white BMS as opposed to Pin 8 and Pin 6 on grey BMS
- Ignition input is on pin 6 on white as opposed to pin 7 on grey
- White BMS expects 4 temperature sensors, grey BMS only 3
- Supposedly the current sensors GND is on Pin 7 but I found Pin 7 internally unconnected and left GND on Pin 15
So if you have a "grey" wiring loom but a white LBC you need to move Pin 6 over to Pin 21 and Pin 7 to Pin 6.
PDF for HV wiring; https://www.diyelectriccar.com/threads/re-using-complete-leaf-drive-system-w-vcm.151458/page-11?post_id=871121#post-871121
To mitigate the missing temperature sensor you need to bridge the two input internally behind the input stage. Therefor remove R59. Then Find R62 and bridge it over to the adjacent channel 4. If you want you can use the resistor you just removed.
CAN connector pins
Pins for CAN-H and CAN-L and others as identified by wolftronix in the diagram below. Pins are for LB11 and LB12 connectors in Nissan terminology.
40kWh BMS
The pinout for +12V, CAN-H, CAN-L, Ignition and HV is identical o previous versions.
It uses a daisy chain of MAX17823B for sensing cell voltages.
Extending Sensing Wires
People have succesfully extended sensing wires on a 30kWh pack, beware of extending them too much on a 40kWh pack as this can cause a variety of issues [1]