Page 1 of 2

[FIRST DRIVE] BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Wed Mar 22, 2023 11:28 pm
by mario
Yet Another OpenInverter BMW e39 conversion

Hi forum members,

I follow EV and OI scene for a long time now and got here when forum started. Always liked idea of converting good ICE car and keeping performance. Professionally I do business app programming and have a full time job for over 20 years. I know very little about electronics but I like to learn and try things. I have some hobby experience from the past in mechanics.

I've decided that I will do some conversion when I was watching Damien's video in 2012. about his e39 first conversion. Thanks to his and work of other guys in the OI community, and information they provide, this conversion was possible for me.

I was watching for affordable parts for some time and got Azure palet delivered, wanted to use DMOC but that didn't work for me at the end. I did manage to get motor running in the air with power supply and hand built damiens board but connecting all sensors and inputs revealed more things that I didn't know how to address. At that time, guys published work on Toyota stuff and that was huge push forward.

I've received Prius Gen3 v1d board, my friend easily populated things that needed to be soldered, we put board in inverter and inverted was working. :)
At that time, I was driving my 528iA as a daily for the six years, did all maintenance tasks on it and was very pleased with the car. So, It was great candidate for conversion. :)

Here is list of parts used...
Parts used:
Motor Siemens 1PV5135-WS14
Inverter Toyota Prius Gen3 - with v1d board
Gearbox ZF GS6 53DZ with 528iA diff 3.07
Charger/DCDC Mitsubishi Outlander
Vacuum pump Hella UP32
Vacuum sensor VW/Audi
Servo pump Opel Zafira
Battery Samsung 25R 96S20P
Heater - not in the car yet

While doing conversion I've found a way around Arduino framework and did all needed coding. There are multiple ESP32 devices and all are communicating by WiFi using mqtt.
All code can be found on https://github.com/mmadzar in GN02475xxx repositories:
GN02475acc - control charger, DC/DC, simulate e39 ICE can, reads sensor and controls vacuum pump, servo pump
GN02475ike - I-bus comms, controls High IKE display and various car functions, simulates tank level using digipots
GN02475inv - replaces inverters WiFi module, mqtt comms
GN02475ivts12 - monitors 12V power by reading can messages from the shunt
GN02475ivtsHV - monitors HV power and controls precharge and main relay

and some pictures with parts and conversion progress...
motor_palet.JPG
out_528.JPG
gearbox_motor.JPG
motor_noinverter.jpg
manual_in.jpg
main_relay_fuse.png
esp32_12V_can1.jpg
test_esp32_incar.jpg

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Sun Mar 26, 2023 11:22 pm
by mario
Here is some more pictures...

Motor cover plate removed to check position sensor - of course, not needed, all like new. :)
motor_rear1.jpg
motor_rear2.jpg
Battery in progress
battery_inprogress.jpg
One battery box weights under 19 kg. There are six of them
battery_box_bms1.jpg
Testing battery position behind rear seats
test_battery_in_car1.jpg
test_battery_in_car2.jpg
test_battery_in_car3.jpg
BMS setup for test drive :)
test_battery_in_car4.jpg
test_battery_incar.jpg
bms_test.jpg

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Sun Mar 26, 2023 11:41 pm
by mario
I want to share some logs from my last test drive...

Inverter has v1d board and 5.25.R-sine firmware and I used parameters available online both, for inverter and motor, with minimal changes. I have parameter sinecurve set to Simultaneous.

Road is only about 200m long so not too much space for testing, also because there is a brick wall at the end. :) I was hitting over 60 km/h during tests. :) Test took about 15 mins and this is complete log.
td_15min.png
td_15min_2.png
Car drives great. Weight of the car (I estimate about 100 kg less than original) is not a problem at all for the Prius inverter and Siemens motor. It just goes.
Logs show that inverter easily pulls over 120 kW from the battery. During previous testing I also logged over 130 kW, so, lots of performance available.
td_3min.png
td_3min_2.png
invweb_screen_ilmaxblue_idcred.png
Very pleased with results, and, even if there is some more work to make it all street legal, I'm looking forward to use this car as a daily.

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Mon Mar 27, 2023 4:59 am
by Bratitude
awesome work, just a note of criticism because internet ;)

your bms cell taps look unfused. this i see again and again, even with high end conversion shops. its a big nono!

cell level fuses!

unfused bms taps are the main cause of fires.

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Mon Mar 27, 2023 7:30 am
by Doig5710
Would it be ok to use un fused milspec wire? Something like 24 ga cable? The milspec wire should melt and not hurt the insulation so no fire risk

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Mon Mar 27, 2023 8:39 am
by johu
120 kW with Prius, wow! Is that with power stages paralleled? What's the system voltage?

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Mon Mar 27, 2023 8:59 am
by mario
johu wrote: Mon Mar 27, 2023 8:39 am 120 kW with Prius, wow! Is that with power stages paralleled? What's the system voltage?
Nope, no paralleled stages, just MG2.
Battery is 96S and this test was not with full battery, voltage was something under 370V.
Voltage and current are measured using ISA shunt and this 120+ kW is from the battery.

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Mon Mar 27, 2023 10:23 am
by Pete9008
Nice! I think you may have the record for power on a Gen3 inverter there :)

I've been worrying about this for a while now (there is another thread somewhere about it) but you've put my mind at rest that the 100kW I'm aiming for should be easily achievable :)

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Mon Mar 27, 2023 10:41 am
by Bigpie
Could you post your params file please?

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Mon Mar 27, 2023 6:44 pm
by mario
This is file with inverter parameters used for the run shown in charts...

testrun17_params.json
(1.54 KiB) Downloaded 64 times

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Mon Mar 27, 2023 6:49 pm
by Bigpie
Thanks, forgot the Siemens is induction motor.

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Mon Mar 27, 2023 8:34 pm
by MattsAwesomeStuff
*applause*

I'm using a Gen2, so I can expect I think 75% of your results, but, bottom line to me is that it's good enough.

Also I'm using an induction motor, so, it's an even closer parallel to my work. Hurray :)

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Tue Apr 04, 2023 8:42 pm
by mario
Another test run with latest v5.26.Y firmware... Some logs and parameters attached.
I'm very pleased with performance and probably will leave it as is for now.


v0404_tdcp_params.json
(1.36 KiB) Downloaded 56 times
2023-04-04 220809_a.png
2023-04-04 221532_3m1.png
2023-04-04 221835_3m2.png

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Wed Apr 05, 2023 6:22 am
by Mhs
Very impressive numbers!

I'm interested in your battery details, do you mind sharing some numbers (volts, number of 18650(?) In each box, kWh?,...)? And what is the BMS you are using?

Thanks and good luck with the rest of the project!

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Wed Apr 05, 2023 9:43 am
by mario
Mhs wrote: Wed Apr 05, 2023 6:22 am Very impressive numbers!

I'm interested in your battery details, do you mind sharing some numbers (volts, number of 18650(?) In each box, kWh?,...)? And what is the BMS you are using?

Thanks and good luck with the rest of the project!
Check previous posts for more details...

This is cell info
INR18650-25R-datasheet.pdf
(860.58 KiB) Downloaded 67 times
Generic chinese BMS
https://www.currentconnected.com/product/jbd/

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Sat Apr 08, 2023 3:18 am
by Bratitude
Doig5710 wrote: Mon Mar 27, 2023 7:30 am Would it be ok to use un fused milspec wire? Something like 24 ga cable? The milspec wire should melt and not hurt the insulation so no fire risk
cell level fusing isnt that hard. i dont think that having sense leads melting arbitrarily is a good thing. having a fuse cut connection to a cell will reduce chances of a runaway event. not just a wire fire

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Sat Apr 08, 2023 3:30 am
by m.art.y
Bratitude wrote: Sat Apr 08, 2023 3:18 am cell level fusing isnt that hard. i dont think that having sense leads melting arbitrarily is a good thing. having a fuse cut connection to a cell will reduce chances of a runaway event. not just a wire fire
Thanks, do you have any examples of fuses that we could use?

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Sat Apr 08, 2023 6:37 am
by Ev8
All this talk of cell tap wire fires is scaring me! As I currently have 240 of the things! All unfused, and no easy way to implement fusing

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Sat Apr 08, 2023 6:37 pm
by johu
How about a very thin wire strand to start out the tap? Like 0.1mm enameled copper wire. It melts at around 1A

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Sun Apr 09, 2023 1:56 am
by Bratitude
Ev8 wrote: Sat Apr 08, 2023 6:37 am All this talk of cell tap wire fires is scaring me! As I currently have 240 of the things! All unfused, and no easy way to implement fusing
lik johu said, thin copper or Nickle wire. just like tesla and other oems.

potting is a big thing too. i think un potted batteries will be a thing of the past. in the future cells will be encased in potting compound. just so much safer.

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Tue Apr 11, 2023 11:03 pm
by mario
Can someone help me with pre-charging?

I want to shorten my pre-charge time, as I think it takes too long to get to the referent voltage.
Battery pack is 96s and it's sitting at 366V. I use 10kOhm 25W resistor (big one with radiator) to do pre-charge. When I connect my resistor across, measured voltage reaches 230V in 10 seconds. In next 10 seconds it gets to cca 300V, and in next 60 seconds it gets just to 330V.

I was expecting voltage to get to 360V or so, in a few seconds (3-5) and just close main relay.

Here is chart showing described behaviour.
precharge.png
What I'm doing wrong.
Thanks

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Tue Apr 25, 2023 7:05 am
by jason_arnold
10KOhm is orders of magnitude too big. Precharge time is function of how fast you fill your device's capacitors - a high value resistor will slow this current to a trickle at the expense of time. OEM use something in the ballpark of 25 Ohms (yes, 1/400th of your current value). A 33 Ohm 100W unit is fairly common in this community - something like the Ohmite HS100 33R.

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Tue Apr 25, 2023 7:30 am
by johu
Second that. I'm also a fan of high resistance precharge resistors because they can be smaller due to lower inrush current. You've taken that idea a bit far with 10k ;) Highest I ever used was 1k in Polo. Also keep in mind there is also a discharge resistor in every device that has a bus capacitor. In the Leaf inverter it is 100k, probably similar in Prius. So you'll never get above Vbat*100k/(100k+10k)

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Wed Apr 26, 2023 2:20 pm
by mario
Thanks you guys very much for explanations...

I did some reading and came to the same conclusion. I've also seen that 33R is common in conversions.

My initial plan was to use DMOC 665 inverter but that failed. Since I had that at table, I've used precharge resistor from that inverter and that is where 10k came from. Later I learned that DMOC is an "old" tech and HW things are different with Prius and similar inverters. They draw a lot less power and needs lower resistance resistor.
However, In my local shop I was able to find only 3.3k 10W ceramic resistors so I've put 3 of them in parallel for now - that is about 1.1k 30W total. Now precharge takes about three seconds and I'm ok with it.
I've ordered 33R 100W resistor and will use that finally.

Re: BMW e39 + Siemens motor + Prius Gen3 OI - Yanoibe39 conversion

Posted: Wed Apr 26, 2023 2:30 pm
by Aragorn
33 ohm, not 33k?