i3 controller hacking from diyelectriccar.com

User avatar
MrX
Posts: 20
Joined: Tue Aug 17, 2021 2:19 pm
Location: Down Under 🦘

Re: i3 controller hacking from diyelectriccar.com

Post by MrX »

Simple issue after all! Looks like my SCK signal was being voltage divided between RN1 and RN2 on the Mainboard, meaning that my "Low" level was 1.7V (3.36V / 2 on my board). Therefore I wasn't getting a SCK down to the i3 gatedriver as it was constant-high signal after going through the line driver of the adaptor.

I just bypassed resistor number 3 of RN1 (pin 3 to pin 6) on the mainboard to drive the signal rail to rail.

Well, we have DC bus voltage and phase temps now. Next onto some tuning!
Resistor 3 bypass RN1
Resistor 3 bypass RN1
voltage divided SCK before bypass
voltage divided SCK before bypass
MOSI and *CS signals
MOSI and *CS signals
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: i3 controller hacking from diyelectriccar.com

Post by johu »

Oh... but do you have the board with 3 line drivers (5 pin chip next to header)?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
MrX
Posts: 20
Joined: Tue Aug 17, 2021 2:19 pm
Location: Down Under 🦘

Re: i3 controller hacking from diyelectriccar.com

Post by MrX »

johu wrote: Thu Apr 28, 2022 9:28 pm Oh... but do you have the board with 3 line drivers (5 pin chip next to header)?
Yes, this is the release adaptor PCBA, it arrived a week ago, after a few months getting to the other side of the world. *edit* I migrated the missing parts from old board to the new on Tuesday and have been tinkering since. However, I suspect this is the issue I was having previously with the prototype version adaptor PCBA as well.

I will say that I measured SCK before and after the line driver with the scope. The “low” level was too high and causing the line driver to be in a constant “high” state without the bypass wire. I’m planning on putting a 100 ohm resistor in parallel with resistor 3 of RN1 to provide some impedance protection to the output of the STM32, but still low enough so that the voltage waveform is okay for the line driver “low” input level.
User avatar
MrX
Posts: 20
Joined: Tue Aug 17, 2021 2:19 pm
Location: Down Under 🦘

Re: i3 controller hacking from diyelectriccar.com

Post by MrX »

It seems like the gate driver power consumption from the HV side keeps collapsing whenever I try to switch the IGBTs. Johannes, just in case you had something specific in your setup, was there a minimum voltage you had on the DC bus to make the inverter work? Also, do you have any information on the approximate power consumption on the 12V system when switching? My standby current seems very low, less than 0.5A on the 12V circuit.

I have a benchtop supply at 65V, 3A max for supplying the DC bus for initial testing, but I'm wondering if I need to go up in DC bus voltage to get things working.
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: i3 controller hacking from diyelectriccar.com

Post by johu »

So it's not the 32V supply that collapses but DC bus voltage? Are all IGBTs good? deadtime set to 63? All gate drive signals sane when they arrive on the IGBT board?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Scott166
Posts: 106
Joined: Thu Jun 04, 2020 12:23 pm
Location: Dorset, England
Has thanked: 1 time
Been thanked: 1 time

Re: i3 controller hacking from diyelectriccar.com

Post by Scott166 »

Hi folks
I'm working in making the inverter package fit in the Mini, I'll have some progress up soon
A quick question with this HV filter assembly, do I only need to keep the two circled connectors?
Can I get rid of the rest?
Tia
Attachments
IMG_20220506_120708_688~2.jpg
Restoring and converting a Classic Mini, I have mad ideas, semi sensible ideas and NO idea if I’ll ever get it done :lol:
Look me up on YouTube https://youtube.com/channel/UCxmP1hLys6Z5tHZpK5mn6eg to see my progress
User avatar
MrX
Posts: 20
Joined: Tue Aug 17, 2021 2:19 pm
Location: Down Under 🦘

Re: i3 controller hacking from diyelectriccar.com

Post by MrX »

Scott166 wrote: Fri May 06, 2022 11:11 am Hi folks
I'm working in making the inverter package fit in the Mini, I'll have some progress up soon
A quick question with this HV filter assembly, do I only need to keep the two circled connectors?
Can I get rid of the rest?
Tia
That's right Scott, although you should try to keep the filter capacitors as well if possible (as shown in this edit).
filter components edit.jpg
johu wrote: Wed May 04, 2022 8:11 pm So it's not the 32V supply that collapses but DC bus voltage? Are all IGBTs good? deadtime set to 63? All gate drive signals sane when they arrive on the IGBT board?
Sorry for the delay Johannes: The 32V rail is pretty solid, but with some ripple on the DCDC. I didn't get to measure gate drive signals yet, but I'm going to mod my mainboard for the SCK line tomorrow (parallel 100R on R1) and measure them while I have it on the bench.
Scott166
Posts: 106
Joined: Thu Jun 04, 2020 12:23 pm
Location: Dorset, England
Has thanked: 1 time
Been thanked: 1 time

Re: i3 controller hacking from diyelectriccar.com

Post by Scott166 »

Thanks Xavier
Restoring and converting a Classic Mini, I have mad ideas, semi sensible ideas and NO idea if I’ll ever get it done :lol:
Look me up on YouTube https://youtube.com/channel/UCxmP1hLys6Z5tHZpK5mn6eg to see my progress
Scott166
Posts: 106
Joined: Thu Jun 04, 2020 12:23 pm
Location: Dorset, England
Has thanked: 1 time
Been thanked: 1 time

Re: i3 controller hacking from diyelectriccar.com

Post by Scott166 »

Are those filter capacitors absolutely necessary?
Or is there a smaller alternative I could use as I can't fit it in and it no longer needs to connect to the DC side of things 🤞
Restoring and converting a Classic Mini, I have mad ideas, semi sensible ideas and NO idea if I’ll ever get it done :lol:
Look me up on YouTube https://youtube.com/channel/UCxmP1hLys6Z5tHZpK5mn6eg to see my progress
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: i3 controller hacking from diyelectriccar.com

Post by EV_Builder »

What do you mean with not to the DC side of things? The capacitors are there for the DC bus...
The idea is that when the current flows and suddenly needs to stop it wants to go somewhere...by having those capacitors it will absorb that energy...
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
Scott166
Posts: 106
Joined: Thu Jun 04, 2020 12:23 pm
Location: Dorset, England
Has thanked: 1 time
Been thanked: 1 time

Re: i3 controller hacking from diyelectriccar.com

Post by Scott166 »

If anyone's interested there is a new vid on my channel of my attempts to shorten the inverter housing.
Still some bits to work out, how to get the coolant to flow correctly, how to prevent coolant from going everywhere.
I tried the aluminium brazing sticks but the heat dissipated too quickly to melt them on the inverter base and starting to melt the top before the sticks melted!
I also cut the top too short one side but it's not critical.
Attachments
IMG_20220506_114357_913.jpg
Restoring and converting a Classic Mini, I have mad ideas, semi sensible ideas and NO idea if I’ll ever get it done :lol:
Look me up on YouTube https://youtube.com/channel/UCxmP1hLys6Z5tHZpK5mn6eg to see my progress
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: i3 controller hacking from diyelectriccar.com

Post by EV_Builder »

Yes! That's what I meant!
Now for the coolant you could make two plates 12mm thick to cover up the holes and if you need to bridge/ make a passage you add two tube barbs (90 degress knee) and a piece of hose in between.
The welding is best using TIG since it's casting you need a balance of like 60% to 'clean' the weldpool...
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
Scott166
Posts: 106
Joined: Thu Jun 04, 2020 12:23 pm
Location: Dorset, England
Has thanked: 1 time
Been thanked: 1 time

Re: i3 controller hacking from diyelectriccar.com

Post by Scott166 »

EV_Builder wrote: Fri May 13, 2022 6:56 pm What do you mean with not to the DC side of things? The capacitors are there for the DC bus...
The idea is that when the current flows and suddenly needs to stop it wants to go somewhere...by having those capacitors it will absorb that energy...
Sorry for the confusion, I meant the DC to DC has been removed leaving only the power supply to the inverter

Would the capacitors in the inverter not do the same job? Sorry for my ignorance
Restoring and converting a Classic Mini, I have mad ideas, semi sensible ideas and NO idea if I’ll ever get it done :lol:
Look me up on YouTube https://youtube.com/channel/UCxmP1hLys6Z5tHZpK5mn6eg to see my progress
User avatar
MrX
Posts: 20
Joined: Tue Aug 17, 2021 2:19 pm
Location: Down Under 🦘

Re: i3 controller hacking from diyelectriccar.com

Post by MrX »

Scott166 wrote: Fri May 13, 2022 10:23 pm If anyone's interested there is a new vid on my channel of my attempts to shorten the inverter housing.
Damn! You made short work of that Scott. I don’t think the filter caps in the HV connector junction will be absolutely critical. I would say leave them out for now. Looks mean :evil: I would say that you may need to try welding a blanking plate on, but castings are usually too porous for welding. Brazing will be the best way to go, just try finding a brazing rod with a lower melt temperature.
Scott166
Posts: 106
Joined: Thu Jun 04, 2020 12:23 pm
Location: Dorset, England
Has thanked: 1 time
Been thanked: 1 time

Re: i3 controller hacking from diyelectriccar.com

Post by Scott166 »

Once I'm happy with everything I'll pop some cut lines and dimensions up here so you can all learn from my mistakes 😂

I like the idea of blanking plates and elbows to join the coolant up but might look to glue the blanking plates in place
Restoring and converting a Classic Mini, I have mad ideas, semi sensible ideas and NO idea if I’ll ever get it done :lol:
Look me up on YouTube https://youtube.com/channel/UCxmP1hLys6Z5tHZpK5mn6eg to see my progress
User avatar
SciroccoEV
Posts: 369
Joined: Thu Oct 10, 2019 1:50 pm
Location: Luton UK
Been thanked: 15 times

Re: i3 controller hacking from diyelectriccar.com

Post by SciroccoEV »

MrX wrote: Sun May 15, 2022 2:43 am I would say that you may need to try welding a blanking plate on, but castings are usually too porous for welding.
I'm far from an expert welder, but have welded a fair few cylinder heads sucessfully.

BMW tend to use high pressure die castings, which should wel well.
head weld.jpg
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: i3 controller hacking from diyelectriccar.com

Post by EV_Builder »

It depends on the composition of the casting and the settings of your equipment. @scott any markings on the parts about it's material?

I did the rear Alloy subframe with TIG; Try a high Silicium Rodd and AC Balance of 60% and clean/brush your weld mega clean before you start. If the blankingplate is choosen thick like 6/8mm welding becomes far more easier since you can direct towards the plate when it gets tricky.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
Scott166
Posts: 106
Joined: Thu Jun 04, 2020 12:23 pm
Location: Dorset, England
Has thanked: 1 time
Been thanked: 1 time

Re: i3 controller hacking from diyelectriccar.com

Post by Scott166 »

I couldn't see any markings showing info about the material 😕
Restoring and converting a Classic Mini, I have mad ideas, semi sensible ideas and NO idea if I’ll ever get it done :lol:
Look me up on YouTube https://youtube.com/channel/UCxmP1hLys6Z5tHZpK5mn6eg to see my progress
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: i3 controller hacking from diyelectriccar.com

Post by EV_Builder »

Scott166 wrote: Mon May 23, 2022 8:13 am I couldn't see any markings showing info about the material 😕
Mhhh you sometimes see it near the stamp with the arrow about production.

Best thing is to test/try then. I would start with a high grade% Silicium rod.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
aesthetect
Posts: 21
Joined: Fri Jun 03, 2022 6:15 am
Has thanked: 4 times
Been thanked: 1 time

Re: i3 controller hacking from diyelectriccar.com

Post by aesthetect »

Is it possible to alter the BMW i3 IPM motor/controller to run it in reverse with full functionality, efficiency, max speed, etc? Would be hoping to use the OEM motor controller + openinverter board and software but would be open to other options if need be. Would it be the same vector control algorithms as forwards?

I have seen that the OEM hardware limits reverse speeds but I am wondering if the unit can be reconfigured as a whole.

(The reason for the question is because I would like to use two of these on two opposing wheels to get a torque-vectoring setup, but the only way I can see getting them to fit is with one rotated 180.)
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: i3 controller hacking from diyelectriccar.com

Post by johu »

openinverter firmware has no reverse speed limit. Motor and inverter don't care either. Only if you use the stock transmission you'll likely run into issues running it reverse
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: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: i3 controller hacking from diyelectriccar.com

Post by johu »

On another note I think there is an error on the mini mainboard resulting in lack of CAN communication. The slew rate pin is floating but needs to be tied to ground with a resistor. I scratched the GND plane a bit and soldered in a 10k resistor. Can be any value from like 0R to 20k whatever is in your parts bin (the value controls the slew rate)
Attachments
IMG_20220602_223441.jpg
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
aesthetect
Posts: 21
Joined: Fri Jun 03, 2022 6:15 am
Has thanked: 4 times
Been thanked: 1 time

Re: i3 controller hacking from diyelectriccar.com

Post by aesthetect »

johu wrote: Fri Jun 03, 2022 7:59 am openinverter firmware has no reverse speed limit. Motor and inverter don't care either. Only if you use the stock transmission you'll likely run into issues running it reverse
Thank you very much for the quick response and confirmation. Would I be able to simply flip polarity somewhere? Or just within openinverter I would command it backwards?

Indeed the gearbox is the other question. Looking into it, axial loads in the wrong direction from helical gears running backwards would seem to be the biggest issue. Getting some confidence from the fact that its software limited to 50 kph. Would love to hear any other main suggestions to consider, but not to take off topic..

At least having that confirmation makes me a bit more willing to purchase one and start testing, but will be looking into gearbox some more first. Thanks again.
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: i3 controller hacking from diyelectriccar.com

Post by johu »

Just select reverse direction
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
aesthetect
Posts: 21
Joined: Fri Jun 03, 2022 6:15 am
Has thanked: 4 times
Been thanked: 1 time

Re: i3 controller hacking from diyelectriccar.com

Post by aesthetect »

Thank you again. Back to happily and eagerly lurking on y'all's experiences with these.
Post Reply