Tesla Model 3 Rear Drive Unit Hacking

Topics concerning the Tesla front and rear drive unit drop-in board
User avatar
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

Post by Jack Bauer »

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
User avatar
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

Post by Jack Bauer »

Nearly home....Just B and C phase High side power supplies to track.
Attachments
Screenshot from 2025-01-08 14-59-39.png
I'm going to need a hacksaw
User avatar
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

Post by dimonlipko »

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?
User avatar
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

Post by Jack Bauer »

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?
Yep same stm32-foc openinverter firmware.

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
User avatar
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

Post by Jack Bauer »

She done:) Passes critical drc. Of course it wont work but will look cool and get clicks.
Attachments
Screenshot from 2025-01-09 15-17-36.png
I'm going to need a hacksaw
User avatar
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

Post by Jack Bauer »

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
AMP3R
Posts: 125
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 2 times
Been thanked: 53 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

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.
I bet the price will be around 500 usd?
User avatar
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

Post by Jack Bauer »

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
User avatar
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

Post by uhi22 »

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.
User avatar
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

Post by Jack Bauer »

Thanks for the feedback :)
I'm going to need a hacksaw
User avatar
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

Post by Jack Bauer »

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
Screenshot from 2025-01-10 13-26-45.png
M3DUBoard_V1_step.zip
(2.01 MiB) Downloaded 490 times
Screenshot from 2025-01-10 14-10-32.png
I'm going to need a hacksaw
User avatar
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

Post by Jack Bauer »

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.
I'm going to need a hacksaw
royhen99
Posts: 261
Joined: Sun Feb 20, 2022 4:23 am
Location: N. Wiltshire. UK
Has thanked: 22 times
Been thanked: 133 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by royhen99 »

WSB BSS138BK, WVS BSS84AK
User avatar
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

Post by Jack Bauer »

That's great thanks so much:)
I'm going to need a hacksaw
User avatar
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

Post by Jack Bauer »

Working through the BOM ....
Attachments
Screenshot from 2025-01-11 18-44-16.png
I'm going to need a hacksaw
User avatar
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

Post by Jack Bauer »

Latest schematic and PCB layout now on the githyb repo:
https://github.com/damienmaguire/Tesla- ... ter/Design
I'm going to need a hacksaw
User avatar
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

Post by Jack Bauer »

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
nkiernan
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

Post by nkiernan »

Seriously impressive work, move your Salvador D, I'd hang this one the wall :D
User avatar
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

Post by Jack Bauer »

I'm going to need a hacksaw
davefiddes
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

Post by davefiddes »

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.
jrbe
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

Post by jrbe »

I second the JLC fabrication toolkit.
Check out the interactive html bom plugin as well, it's fantastic.
User avatar
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

Post by Jack Bauer »

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....
I'm going to need a hacksaw
User avatar
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

Post by Jack Bauer »

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.
Attachments
P0_0.jpg
20250128_130510.jpg
I'm going to need a hacksaw
User avatar
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

Post by Jack Bauer »

I'm going to need a hacksaw
dsp1108
Posts: 19
Joined: Sat Oct 16, 2021 5:27 pm

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by dsp1108 »

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.
Post Reply