BMW LIM based CCS2 Controller

Development and discussion of fast charging systems eg Chademo , CCS etc
User avatar
asavage
Posts: 328
Joined: Sat May 14, 2022 10:57 pm
Location: Oak Harbor, Washington, USA
Has thanked: 269 times
Been thanked: 103 times
Contact:

Re: BMW LIM based CCS2 Controller

Post by asavage »

alexbeatle wrote: Wed Jun 22, 2022 5:51 pm On the subject of the contactors. I'm trying to understand. Does the LIM economise the HV contactors?

From earlier in this thread:

muehlpower wrote: Thu Jun 03, 2021 9:32 am The Contactors are controlled by PWM, as jou can see at the OSZi, so it would be fine to use contactors without economizer, like the original Tesla Model 3.
Image
Al Savage
2014 RAV4 EV
NissanDiesel
alexbeatle
Posts: 141
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 40 times
Been thanked: 13 times

Re: BMW LIM based CCS2 Controller

Post by alexbeatle »

bitterandreal wrote: Mon Oct 04, 2021 10:01 am
muehlpower wrote: Sat Oct 02, 2021 2:29 pm
EV_Builder wrote: Sat Oct 02, 2021 1:07 pm

Yeah; i agree the current VCU controller would be usable because it has 2 CAN interfaces. One for the LIM and one for the vehicle integration.
So that's covered.
In my setup there is a DUE that communicates with the LIM and my Tesla GEN3 charger via CAN 1. It also has the necessary 6 hardware lines for the charger and a simulation for the fuel filler flap for the LIM. It also queries the temperature at the CP and a button to cancel charging. The connection to the car, especially with the BMS, current sensor and cooling system is via CAN 0. This DUE is only in operation during charging, AC or DC, and also controls precharge and main contactors, which are switched by Damien's LDU board while driving.
I'm also planning to use a separate charge controller as a gateway between the vehicle CAN bus and the charging CAN bus.
image.png
How is your DUE code comparable with Damien's LIM code for the zombieVerter? And is it open source?
Jon volk's hardware would also be a perfect fit to have the voltage measure board and contactor driver included.
muehlpower uses Arduino the zombieVerter VCU uses libopencm3 and Jon volk wants to use STM HAL/FreeRTOS.
What are your considerations to chose one HAL/ framework above the other?
Sorry if a little off topic, but what controls the main contactors in this setup? They'd need to be closed for any of the charging and non-polarized to be able to interrupt charging, if I understand correctly.
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: BMW LIM based CCS2 Controller

Post by EV_Builder »

That depends on design but what I have seen is key switches battery positive coil.
VCU or BMS switches battery negative coil en pre-charge.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
larsrengersen
Posts: 101
Joined: Tue May 28, 2019 9:42 am
Has thanked: 8 times
Been thanked: 22 times

Re: BMW LIM based CCS2 Controller

Post by larsrengersen »

In other words, in that setup 'nothing controls the main contactors'. The LIM just needs a "yes, ready to receive charge" from the car. How you get to that point is up to you and like EV_Builder says there are many possibilities.
I prefer the option where the BMS does contactor control (main+, main-, precharge and charger contactor).
User avatar
DkubusEV
Posts: 81
Joined: Sat Sep 17, 2022 4:22 am
Location: Australia
Has thanked: 130 times
Been thanked: 15 times

Re: BMW LIM based CCS2 Controller

Post by DkubusEV »

If the two small 15.3Ohm dc charge contactors are in or at the main battery box or Junction then wouldn't it be safer to not require the "main contactors" to be energised? This way the length of cable exiting towards the dc charge port isn't "live" whilst driving (upto the dc contactors set-up/box etc. ??
1998 Mercedes R170 SLK gs450h project
2003 Smart-Roadster hillclimb EV (DC)zilla2k
1976 Purvis-Eureka EV kit car
2011 Ford focus EV (DC)Soliton1
1990 Daihatsu charade G100 3 door DC conversion.
User avatar
muehlpower
Posts: 570
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 96 times

Re: BMW LIM based CCS2 Controller

Post by muehlpower »

In my case the motor is in the back, the battery box with the main contactors in the middle, AC charger with the fast DC contactors and the voltage sensing board in the front and the charge port in the front bumper. Auxiliary units branch off from the charger. When driving or charging, all devices are live. The advantage is that the DC-DC converter, A/C, battery heater, fan and water pump work while charging. As long as no 12V goes into the battery box, no 400V comes out either. That means you can work safely on the car. I have a lockable switch for that. that makes the TÜV happy. Actually, only the motor while charging is unnecessary under Voltage and the AC charger while driving.
Attachments
HV Schaltbild.png
User avatar
larsrengersen
Posts: 101
Joined: Tue May 28, 2019 9:42 am
Has thanked: 8 times
Been thanked: 22 times

Re: BMW LIM based CCS2 Controller

Post by larsrengersen »

DkubusEV wrote: Sun Sep 18, 2022 3:58 am wouldn't it be safer to not require the "main contactors" to be energised?
I'd always ensure your BMS has the direct possibility to open the charger contactor in case of an emergency.
In my V1 high voltage design I had the following setup:
- Aux devices (DC/DC, aircon, heater) on in charge and discharge mode
- Inverter only energized in drive/discharge mode
- Charger only connected in charge mode

Now in my V2 high voltage design I do it a bit different:
- In discharge mode, aux devices on and inverter as well
- Charge mode = discharge mode + charger contactor
So now I also energize the inverter in charge mode (which is (ideally) not needed, but simplifies other things.
And in charge mode the BMS can open the charger contactor independently of whatever the DC contactors do.
User avatar
DkubusEV
Posts: 81
Joined: Sat Sep 17, 2022 4:22 am
Location: Australia
Has thanked: 130 times
Been thanked: 15 times

Re: BMW LIM based CCS2 Controller

Post by DkubusEV »

larsrengersen wrote: Sun Sep 18, 2022 5:26 pm
I'd always ensure your BMS has the direct possibility to open the charger contactor in case of an emergency.
In my V1 high voltage design I had the following setup:
- Aux devices (DC/DC, aircon, heater) on in charge and discharge mode
- Inverter only energized in drive/discharge mode
- Charger only connected in charge mode

Now in my V2 high voltage design I do it a bit different:
- In discharge mode, aux devices on and inverter as well
- Charge mode = discharge mode + charger contactor
So now I also energize the inverter in charge mode (which is (ideally) not needed, but simplifies other things.
And in charge mode the BMS can open the charger contactor independently of whatever the DC contactors do.
muehlpower wrote: Sun Sep 18, 2022 2:19 pm In my case the motor is in the back, the battery box with the main contactors in the middle, AC charger with the fast DC contactors and the voltage sensing board in the front and the charge port in the front bumper. Auxiliary units branch off from the charger. When driving or charging, all devices are live. The advantage is that the DC-DC converter, A/C, battery heater, fan and water pump work while charging. As long as no 12V goes into the battery box, no 400V comes out either. That means you can work safely on the car. I have a lockable switch for that. that makes the TÜV happy. Actually, only the motor while charging is unnecessary under Voltage and the AC charger while driving.
Thanks guys, really appreciate the descriptions of how you implemented the system safety with bms control over at least one of the contactors. I'm now thinking perhaps is best to use negative pack contactor (via fuse) to the DC charge contactor (inside battery junction box) so it (pack negative) is operated by bms and then have the DC charging positive contactor on battery side of main "positive pre charge contactor" so that I get the back-up safety of a bms controlled battery contactor (at negative) and without having to pre-charge and energise the main positive contactor. Thus leaving the inverter/motor isolated. My DC/DC is built into my on board charger and if I fit air-conditioning I guess I'll need one extra small contactor just to keep all "high voltage" and the related contactors inside the battery breakout-junction box. If I'm not possibly over complicating it but I'd rather not have voltage running anywhere that's not required during either driving or charging. Sincerely appreciate your input and ideas. Thanks guys.

Mike
1998 Mercedes R170 SLK gs450h project
2003 Smart-Roadster hillclimb EV (DC)zilla2k
1976 Purvis-Eureka EV kit car
2011 Ford focus EV (DC)Soliton1
1990 Daihatsu charade G100 3 door DC conversion.
alexbeatle
Posts: 141
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 40 times
Been thanked: 13 times

Re: BMW LIM based CCS2 Controller

Post by alexbeatle »

larsrengersen wrote: Fri Jul 01, 2022 8:15 am In other words, in that setup 'nothing controls the main contactors'. The LIM just needs a "yes, ready to receive charge" from the car. How you get to that point is up to you and like EV_Builder says there are many possibilities.
I prefer the option where the BMS does contactor control (main+, main-, precharge and charger contactor).
Can an inverter get damaged if BMS drops contactors to it? I don't quite understand how, but there was a note on that somewhere here regarding Tesla SDU.
User avatar
larsrengersen
Posts: 101
Joined: Tue May 28, 2019 9:42 am
Has thanked: 8 times
Been thanked: 22 times

Re: BMW LIM based CCS2 Controller

Post by larsrengersen »

alexbeatle wrote: Wed Sep 21, 2022 5:48 am Can an inverter get damaged if BMS drops contactors to it? I don't quite understand how, but there was a note on that somewhere here regarding Tesla SDU.
Depends on the inverter. But yes, this applies to Tesla SDU and LDU and maybe more.
When the motor is spinning there is energy there and without the battery connected there is nowhere to can go.
Azure DMOC645 and Leaf inverter can handle this.
But this is a reason for my V2 design. VCU controls main + and main - and ensures drivetrain is disabled before opening contactors.
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: BMW LIM based CCS2 Controller

Post by EV_Builder »

Without a correct safety handshake this will happen indeed.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
asavage
Posts: 328
Joined: Sat May 14, 2022 10:57 pm
Location: Oak Harbor, Washington, USA
Has thanked: 269 times
Been thanked: 103 times
Contact:

Re: BMW LIM based CCS2 Controller

Post by asavage »

I posted some info on a Plug-n-Charge alternative, in use by EVgo and Fastned, with MAC address implications:

viewtopic.php?p=55416#p55416
Al Savage
2014 RAV4 EV
NissanDiesel
alexbeatle
Posts: 141
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 40 times
Been thanked: 13 times

Re: BMW LIM based CCS2 Controller

Post by alexbeatle »

muehlpower wrote: Tue Jun 01, 2021 1:01 pm i changed my circuit a little and now it's fine. The circuit is required to measure the voltage at the charging connector and to pass it on to the LIM
Sensing.png
I should probably post this here... 🙂
alexbeatle wrote: Mon Jul 24, 2023 11:30 pm What are minimum wire sizes on the HV and LV sides?
User avatar
muehlpower
Posts: 570
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 96 times

Re: BMW LIM based CCS2 Controller

Post by muehlpower »

I would place the board near the HV contactors to avoid unnecessary HV lines running through the car. The cable cross section can be very small because only about 20mA flow through, but there should be sufficient mechanical strength.
so 0.35mm² to 0.5mm²
alexbeatle
Posts: 141
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 40 times
Been thanked: 13 times

Re: BMW LIM based CCS2 Controller

Post by alexbeatle »

bitterandreal wrote: Thu Oct 21, 2021 9:35 am Absolutely agree on this. Very important function.
I thought the LIM pin 1B-15 (CHARGE_E) was a drive interlock signal but will change it in the schematics and in the wiki if it is not.
Any idea what is 1B-15 (CHARGE_E) for? Curious.
User avatar
asavage
Posts: 328
Joined: Sat May 14, 2022 10:57 pm
Location: Oak Harbor, Washington, USA
Has thanked: 269 times
Been thanked: 103 times
Contact:

Re: BMW LIM based CCS2 Controller

Post by asavage »

We were guessing it was a hardware Drive Inhibit signal. It's noted as "not needed" in the Wiki.
Al Savage
2014 RAV4 EV
NissanDiesel
User avatar
muehlpower
Posts: 570
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 96 times

Re: BMW LIM based CCS2 Controller

Post by muehlpower »

this is chrge enable
alexbeatle
Posts: 141
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 40 times
Been thanked: 13 times

Re: BMW LIM based CCS2 Controller

Post by alexbeatle »

Any advise on how to interlock drive when charging? The plan is to have LIM control both AC and DC charging. Using BMW i3 port without a cover.
muehlpower wrote: Tue Aug 22, 2023 5:19 pm this is chrge enable
Input to enable the LIM or output to enable the charger by the LIM?
User avatar
muehlpower
Posts: 570
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 96 times

Re: BMW LIM based CCS2 Controller

Post by muehlpower »

output to enable the charger by Lim
alexbeatle
Posts: 141
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 40 times
Been thanked: 13 times

Re: BMW LIM based CCS2 Controller

Post by alexbeatle »

Must the LIM module be at the end of the CANbus and no workaround?
Reads 120Ohm between the CAN-H and CAN-L.
Attachments
IMG_20240222_172321.jpg
tom91
Posts: 1273
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 201 times

Re: BMW LIM based CCS2 Controller

Post by tom91 »

alexbeatle wrote: Fri Feb 23, 2024 1:48 am Must the LIM module be at the end of the CANbus and no workaround?
Reads 120Ohm between the CAN-H and CAN-L.
You answered your own question there. 120 ohm terminations are the ends of the bus.
Founder Volt Influx https://www.voltinflux.com/
User avatar
asavage
Posts: 328
Joined: Sat May 14, 2022 10:57 pm
Location: Oak Harbor, Washington, USA
Has thanked: 269 times
Been thanked: 103 times
Contact:

Re: BMW LIM based CCS2 Controller

Post by asavage »

I don't have a LIM anymore, but . . . is it possible to disable the LIM's termination? Desolder a resistor on the PCB?
Al Savage
2014 RAV4 EV
NissanDiesel
alexbeatle
Posts: 141
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 40 times
Been thanked: 13 times

Re: BMW LIM based CCS2 Controller

Post by alexbeatle »

Cannot seem to locate the termination resistor. Right on the inputs it has the filter circuit (zeners and chokes), then then traces disappear into another layer.
IMG_20240222_162348~2.jpg
royhen99
Posts: 195
Joined: Sun Feb 20, 2022 4:23 am
Location: N. Wiltshire. UK
Has thanked: 14 times
Been thanked: 94 times

Re: BMW LIM based CCS2 Controller

Post by royhen99 »

From photos here viewtopic.php?p=19851#p19851 the termination is two 60R4 resistors on the reverse of the board.
alexbeatle
Posts: 141
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 40 times
Been thanked: 13 times

Re: BMW LIM based CCS2 Controller

Post by alexbeatle »

Cool. Looks like removing these two 60ohm resistors joined in series removed the CANbus termination, so the LIM can be put anywhere on the bus.
Thanks.
IMG_20240223_153430~2.jpg
IMG_20240223_155007~2.jpg
IMG_20240223_155655.jpg
Edit.
Now that my CANbus is wired and I'm coding my VCU, just wanted to circle back and show that LIM CANbus is alive and talking, so nothing got damaged from removing the components.
image.png
Post Reply