Tesla Model 3 Rear Drive Unit Hacking
- Jack Bauer
- Posts: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 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: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 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: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 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: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 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: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 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 508 times
-
output.pdf
- (988.32 KiB) Downloaded 456 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: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 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: 1117
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 206 times
- Been thanked: 617 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: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 times
- Contact:
- Jack Bauer
- Posts: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 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 490 times
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 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
- Jack Bauer
- Posts: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 times
- Contact:
- Jack Bauer
- Posts: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 times
- Contact:
- Jack Bauer
- Posts: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
Latest schematic and PCB layout now on the githyb repo:
https://github.com/damienmaguire/Tesla- ... ter/Design
https://github.com/damienmaguire/Tesla- ... ter/Design
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
Needless to say if anyone has any info on the circuit or feedback etc would be much appreciated:)
I'm going to need a hacksaw
-
- Posts: 560
- Joined: Mon Feb 24, 2020 8:59 pm
- Location: Ireland
- Has thanked: 385 times
- Been thanked: 81 times
Re: Tesla Model 3 Rear Drive Unit Hacking
Seriously impressive work, move your Salvador D, I'd hang this one the wall 

- Jack Bauer
- Posts: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 times
- Contact:
-
- Posts: 293
- Joined: Mon Jan 18, 2021 12:39 pm
- Location: Edinburgh, Scotland, UK
- Has thanked: 75 times
- Been thanked: 93 times
Re: Tesla Model 3 Rear Drive Unit Hacking
Couple of comments on the video:
Seems like the STGAP1BS could be pre-supplied to JLCPCB like the QCA7000 on the Foccci for production runs of your board. Sure it adds cost but reflect that in what you charge for the board. No such thing as a free lunch.
I can recommend the "Fabrication Toolkit" from the KiCAD plugin repository. This creates the gerbers, BOM and position files in a form that JLC are happy with (and they recommend it). More details: https://github.com/bennymeg/Fabrication-Toolkit
If you want to make measurements on the Tesla gate driver behaviour with or without HV enabled this is entirely possible provided you are happy with fixed phase PWM values. I don't have a functioning inverter but the gate driver and PWM generation works fine. Shoot me an email if you want assistance.
Seems like the STGAP1BS could be pre-supplied to JLCPCB like the QCA7000 on the Foccci for production runs of your board. Sure it adds cost but reflect that in what you charge for the board. No such thing as a free lunch.
I can recommend the "Fabrication Toolkit" from the KiCAD plugin repository. This creates the gerbers, BOM and position files in a form that JLC are happy with (and they recommend it). More details: https://github.com/bennymeg/Fabrication-Toolkit
If you want to make measurements on the Tesla gate driver behaviour with or without HV enabled this is entirely possible provided you are happy with fixed phase PWM values. I don't have a functioning inverter but the gate driver and PWM generation works fine. Shoot me an email if you want assistance.
-
- Posts: 600
- Joined: Mon Jul 03, 2023 3:17 pm
- Location: CT, central shoreline, USA
- Has thanked: 219 times
- Been thanked: 178 times
Re: Tesla Model 3 Rear Drive Unit Hacking
I second the JLC fabrication toolkit.
Check out the interactive html bom plugin as well, it's fantastic.
Check out the interactive html bom plugin as well, it's fantastic.
- Jack Bauer
- Posts: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
Appreciate that guys thanks. I have had some good feedback on the general pcb layout which I intend to address and had a few kind donations so was able to order from Mouser the bits JLC dont have as of now including the 1BS version of the driver chip.
On a related topic I got a tip on this and was very excited until I saw the price tag :
https://leandesign.com/pdf/Munro-Invert ... -Sales.pdf
If I hate one thing in this game its the duplication of effort.
Gonna guess no one will share any details on the design or schematic. Sigh....
On a related topic I got a tip on this and was very excited until I saw the price tag :
https://leandesign.com/pdf/Munro-Invert ... -Sales.pdf
If I hate one thing in this game its the duplication of effort.
Gonna guess no one will share any details on the design or schematic. Sigh....
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
Thanks to a good friend in Germany with a Prusa XL, we have a 3d printed prototype board for fit tests. Good news is it is a VERY good fit. Bad news is genius here totally forgot about the hole and pads for the HV connection hvil
Would have been quite an expensive mistake even with bare boards.

I'm going to need a hacksaw
- Jack Bauer
- Posts: 3664
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 11 times
- Been thanked: 347 times
- Contact:
Re: Tesla Model 3 Rear Drive Unit Hacking
Hello all.
Previously, projects for Tesla Model 3 and Tesla Plaid inverters were completed. Now I managed to get a printed circuit board for Tesla Cybertruck. I sent the video of the work to the big boss of this site. It probably takes 3-6 months to make a cybertruck. I plan to develop these projects on a non-open basis. Interested enthusiasts can contact me to complete modern projects with Tesla drives.
Previously, projects for Tesla Model 3 and Tesla Plaid inverters were completed. Now I managed to get a printed circuit board for Tesla Cybertruck. I sent the video of the work to the big boss of this site. It probably takes 3-6 months to make a cybertruck. I plan to develop these projects on a non-open basis. Interested enthusiasts can contact me to complete modern projects with Tesla drives.