Tesla Model 3 Rear Drive Unit Hacking
-
- Posts: 595
- Joined: Mon Jul 03, 2023 3:17 pm
- Location: CT, central shoreline, USA
- Has thanked: 212 times
- Been thanked: 173 times
Re: Tesla Model 3 Rear Drive Unit Hacking
Does the ncp1060 handle the reverse power flow making the diode unnecessary?
Will your 12v source power supply make enough current by itself for all the drivers?
There's oem design redundancy that might never ever be used to what's sensibly required to that didn't work. And unless you do these designs often it can be really hard to know where the idea falls in this range until you test it.
Is it worth breaking out this part of the design to it's own little PC board to test?
Sometimes removing unnecessary / blocking components from a circuit is more of a mindbender than it should be.
No need to reply, just some ideas to maybe help thinking through the logic / struggle.
Will your 12v source power supply make enough current by itself for all the drivers?
There's oem design redundancy that might never ever be used to what's sensibly required to that didn't work. And unless you do these designs often it can be really hard to know where the idea falls in this range until you test it.
Is it worth breaking out this part of the design to it's own little PC board to test?
Sometimes removing unnecessary / blocking components from a circuit is more of a mindbender than it should be.
No need to reply, just some ideas to maybe help thinking through the logic / struggle.
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
This one is even better. Let's just delete all these pesky parts
Am I really the only person on the friggin planet looking at this stuff?

I'm going to need a hacksaw
-
- Posts: 288
- Joined: Mon Jan 18, 2021 12:39 pm
- Location: Edinburgh, Scotland, UK
- Has thanked: 69 times
- Been thanked: 88 times
Re: Tesla Model 3 Rear Drive Unit Hacking
That's the Font Drive Unit inverter variant is it not? I thought you had one of these. Somebody somewhere said they don't require the extra drive circuitry because it's an induction motor. I am but a humble Mechanical/Software Engineer so don't really understand the implications.
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
I "had" one. Sent back to owner prior to house move messed up my plans 

I'm going to need a hacksaw
-
- Posts: 288
- Joined: Mon Jan 18, 2021 12:39 pm
- Location: Edinburgh, Scotland, UK
- Has thanked: 69 times
- Been thanked: 88 times
Re: Tesla Model 3 Rear Drive Unit Hacking
Ah, forgot the history on that one. I spotted a slightly crispy FDU from a fire damaged car near me...sadly they're looking for silly money otherwise it would be an an ideal dev unit. There don't seem to be a lot of drive units from newer cars about at the moment. Mostly seem to be the older ones like we already have.
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
yeah interesting. I'll keep an eye out but wont let it stop progress. I'll setup the board to do the dual psus and can always leave some parts unpopulated.
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
Found this on the US 'bay. If you look at the secondary side current regs there is no an option of a 0 ohm resistor to bypass the whole thing and just feed the secondaries from the transformers into the high side drivers.
https://www.ebay.com/itm/395809630591
Also seems the sods have deleted the JTAG connector!
https://www.ebay.com/itm/395809630591
Also seems the sods have deleted the JTAG connector!
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
In fact that reminds me of a Trek line " Shunt the deuterium from the main cryo pump straight to the auxilliary tank"
I'm going to need a hacksaw
-
- Posts: 288
- Joined: Mon Jan 18, 2021 12:39 pm
- Location: Edinburgh, Scotland, UK
- Has thanked: 69 times
- Been thanked: 88 times
Re: Tesla Model 3 Rear Drive Unit Hacking
They have had fun. Looks like they've removed the HVIL current sense resistors. Couple of current sense resistor whose purpose I can't remember have gone too (maybe to do with the resolver exciter I think). CAN termination is gone on both busses I think. Who only know what the forest of footprints on the LHS is up to.
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
I think the missing bits on the "logic" side are for detonating the also missing pyro on the center bus bar.
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
- dimonlipko
- Posts: 47
- Joined: Thu Apr 02, 2020 9:28 pm
- Location: Ukraine, Kiev
- Has thanked: 7 times
- Been thanked: 10 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
Damien, you are crazy!))) Very powerful project! I want to be one of the first tester. My Tesla motor wait in garage)
Remind me why it is impossible to only replace the native chip to STM32 with adapter board?
Remind me why it is impossible to only replace the native chip to STM32 with adapter board?
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
I am a bit crazy:) It is indeed possible to fit an STM32 board but the level of skill required to solder it safely in place is very high and so I decided it was not practical for most people. I decided at the begining that whatever solution I developed had to be universal and repeatable and of course open. Here is a video from last year where I tested out a modboard :
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
Nearly home....Just B and C phase High side power supplies to track.
I'm going to need a hacksaw
- dimonlipko
- Posts: 47
- Joined: Thu Apr 02, 2020 9:28 pm
- Location: Ukraine, Kiev
- Has thanked: 7 times
- Been thanked: 10 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
Am I correct understand that the software is the same for solution with new board and for OEM board with change MCU?
Is it possible to make more motor power than in Tesla?
Is this board work with model 3 front drive unit?
Is it possible to make more motor power than in Tesla?
Is this board work with model 3 front drive unit?
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
Yep same stm32-foc openinverter firmware.dimonlipko wrote: ↑Wed Jan 08, 2025 9:14 pm Am I correct understand that the software is the same for solution with new board and for OEM board with change MCU?
Is it possible to make more motor power than in Tesla?
Is this board work with model 3 front drive unit?
Don't know about power until I test. Certainly possible in theory.
Should work in any drive unit that the board will fit.
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
She done:) Passes critical drc. Of course it wont work but will look cool and get clicks.
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
Board layout and schematic for those playing along at home.
- Attachments
-
M3DUBoard_V1.pdf
- (2.27 MiB) Downloaded 500 times
-
output.pdf
- (988.32 KiB) Downloaded 449 times
I'm going to need a hacksaw
Re: Tesla Model 3 Rear Drive Unit Hacking
I bet the price will be around 500 usd?Jack Bauer wrote: ↑Thu Jan 09, 2025 3:21 pm She done:) Passes critical drc. Of course it wont work but will look cool and get clicks.
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
No idea on price yet but yeah hopefully something like that. Will depend a lot on the non JLC parts
I'm going to need a hacksaw
- uhi22
- Posts: 1113
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 204 times
- Been thanked: 609 times
Re: Tesla Model 3 Rear Drive Unit Hacking
Impressive work. Just few cents from my side:
- unconnected pins are not marked as "intentionally unconnected" with the "x" mark. Not sure whether this leads to checker warnings.
- https://www.mouser.de/datasheet/2/389/t ... 852101.pdf says absolute maximum Vs is 15V. I propose to use an amplifier that at least withstands 20V.
- xtal of the STM32 does not have a series resistor. Not sure where I found this, but some designs use a serial resistor.
- C29 to 32 are elcaps (using plus symbol) in the schematic. Is this intended? Maybe use ceramic caps for these?
- input voltage limitation of the controller is missing. E.g. BRAKE has a divider 4k7/1k5 to BRAKE_IN which feeds PE4.
PE4 is a 5-V-tolerant pin ("FT", according to table 5 of the data sheet). The FT pins do not tolerate any current injection (according to chapter 5.3.13). Data sheet: https://www.st.com/content/ccc/resource ... 191185.pdf Would it make sense to add TVS or diode to 3v3 to avoid unintended current injection?
- C39, 40 have polarized symbols, which is surprising for 22pF.
- unconnected pins are not marked as "intentionally unconnected" with the "x" mark. Not sure whether this leads to checker warnings.
- https://www.mouser.de/datasheet/2/389/t ... 852101.pdf says absolute maximum Vs is 15V. I propose to use an amplifier that at least withstands 20V.
- xtal of the STM32 does not have a series resistor. Not sure where I found this, but some designs use a serial resistor.
- C29 to 32 are elcaps (using plus symbol) in the schematic. Is this intended? Maybe use ceramic caps for these?
- input voltage limitation of the controller is missing. E.g. BRAKE has a divider 4k7/1k5 to BRAKE_IN which feeds PE4.
PE4 is a 5-V-tolerant pin ("FT", according to table 5 of the data sheet). The FT pins do not tolerate any current injection (according to chapter 5.3.13). Data sheet: https://www.st.com/content/ccc/resource ... 191185.pdf Would it make sense to add TVS or diode to 3v3 to avoid unintended current injection?
- C39, 40 have polarized symbols, which is surprising for 22pF.
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
Working on the BOM today. A real joy. Given the cost of the assembled boards a supporter is going to 3d print a test fit version for me. Included a step file in case anyone else wants to play.
- Attachments
-
- M3DUBoard_V1_step.zip
- (2.01 MiB) Downloaded 482 times
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3660
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 334 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
Ok folks, need some component id help in the gate driver section:
Going to take a guess that VN17 diode is a 600V 1A fast recovery. Going with : MURA160T3G as is an onsemi part.
An STTH112A is used on the STGAP eval board.
Diode 2H2 on the same eval board is a STPS3L40-Y 3A 40V schottky. Will try a SS34.
No Info on G1 so trying a B5819WS.
Finally a pair of Sot-23 P and N mosfets marked WVS and WSB respectively. No info on these.
Any help much appreciated.
Going to take a guess that VN17 diode is a 600V 1A fast recovery. Going with : MURA160T3G as is an onsemi part.
An STTH112A is used on the STGAP eval board.
Diode 2H2 on the same eval board is a STPS3L40-Y 3A 40V schottky. Will try a SS34.
No Info on G1 so trying a B5819WS.
Finally a pair of Sot-23 P and N mosfets marked WVS and WSB respectively. No info on these.
Any help much appreciated.
I'm going to need a hacksaw