Tesla Small Drive Unit Support Thread

Topics concerning the Tesla front and rear drive unit drop-in board
Locked
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Tesla Small Drive Unit Support Thread

Post by cloudy »

OK getting somewhere now. Found S1 was actually floating not just low, so changed bms_in (temp1_out is an alias of this)

digio_prg.h
DIG_IO_ENTRY(bms_in, GPIOC, GPIO8, PinMode::INPUT_FLT) \
to
DIG_IO_ENTRY(bms_in, GPIOC, GPIO8, PinMode::OUTPUT) \

and commented the bms read using this pin in stm32_sine.cpm here to make sure the pin mode wasn't changing dynamically
//Param::SetInt(Param::din_bms, DigIo::bms_in.Get() | ((canio & CAN_IO_BMS) != 0));

S0 and S1 are now cycling through the 4 select states & get a sensible temp reading with standard mapping on HS. Motor temps still wrong, but that's to be expected as those sensors are actually different. I can spend time sorting those :)

This patch obviously stops use of bms_in on other hardware (and in fact I think bms_in is the actual Tesla platform sense) perhaps if we can let Johannes know, he can put in a sensible mode toggle?
User avatar
Kevin Sharpe
Posts: 1345
Joined: Fri Dec 14, 2018 9:24 pm
Location: Ireland and US
Been thanked: 4 times

Re: Tesla Small Drive Unit Support Thread

Post by Kevin Sharpe »

cloudy wrote: Mon Mar 23, 2020 8:22 pm Motor temps still wrong, but that's to be expected as those sensors are actually different. I can spend time sorting those :)
Do these posts help?

viewtopic.php?f=10&t=76&p=7829#p7829

viewtopic.php?f=10&t=618#p7879
This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Tesla Small Drive Unit Support Thread

Post by cloudy »

Thanks, those could be really helpful - I'll compare with some samples on the SDU and see if they look to be the same sensor type.
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Tesla Small Drive Unit Support Thread

Post by cloudy »

SDU Stator temp appears to be a TESLA_100K, the FLUID/CASE inverter temp appear to be J curve, but will need to do a full range test to be sure.

Here my tested mapping on a SDU. Now getting sensible temps for all inputs - hopefully this helps some others out. It would be great if we can get this, and the temp1_out patch integrated into the main code 8-)

EDIT: Not sure the fluid/case sensors are in fact J curve, reading low - should consider those not known yet
EDIT2: Just realised that the divider resistors are different between LDU and SDU boards for TEMP_CASE and TEMP_FLUID pins (150k SDU vs 15k LDU) not sure if this is a typo or deliberate
sdu_map.PNG
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Tesla Small Drive Unit Support Thread

Post by cloudy »

Measured some calibration temps on the case/fluid sensors today. They read out as standard 10k NTC thermistors with a beta of about 4000.

I've created lookup tables for them using the standard 150K pullups on Damien's board and all code is here including the mux and mapping fix
https://github.com/jameswarner62/stm32-sine

Working great for me, hopefully helps some others

These are hardcoded as the hardware sense cannot tell between LDU and SDU. Can we get Johannes to pick up these changes and implement a SDU mode?

Thanks!
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Tesla Small Drive Unit Support Thread

Post by Jack Bauer »

Very much appreciated:)
I'm going to need a hacksaw
Hassleweed
Posts: 8
Joined: Fri Jan 17, 2020 8:35 pm
Location: San Diego
Contact:

Re: Tesla Small Drive Unit Support Thread

Post by Hassleweed »

Cloudy, I barely understand half of the terms used as I am new to this world. So I am admittedly one of those guys who purchased a V6 board in the hopes I can save on the $3,500 commercial quote I received. I am still working on the mechanicals of my car and will eventually work on the electronics, but for now I can tell that you put a lot of effort into this issue and thank you in advance for your contribution! Sorry not to be a helpful contributor (yet).
Martin
Building the CyberSeven: Lotus inspired, Tesla powered roadster
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Tesla Small Drive Unit Support Thread

Post by cloudy »

You are welcome - it is nothing compared to Damien's herculean efforts! Thanks to him we all get to play and learn with this stuff :)
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Tesla Small Drive Unit Support Thread

Post by Jack Bauer »

Due to the Covid-19 restrictions some areas are not accepting postal shipments. This is causing delays in my shipping timetable for Tesla and other boards to customers. Where possible alternative arrangements will be made with private couriers (DHL etc) to effect delivery. If no delivery service is available then the item will be retained until normal service resumes. If you are waiting for an item and feel this may have affected you then please contact ino@evbmw.com to check with me.
I'm going to need a hacksaw
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: Tesla Small Drive Unit Support Thread

Post by johu »

Alright, time to speak up I guess.
So as mentioned I will be taking over the distribution of the Tesla LDU/SDU logic boards. If I remember correctly about 9 LDU boards are on their way here from Ireland, so these will become available first. A few weaks after I will issue a JLCPCB order to make the others available also.

The boards will be listed on openinverter.org/shop . As for the Leaf boards I will build a test rig and run an automated test procedure. Also the boards will be flashed with software AND parameters in one go, i.e. no manual step here.

As opposed to Damien I will not sell the boards as "fully built" i.e. you will have to solder at least one component. The reason for that is the more relaxed legislation for kits as opposed to ready to use electronics.

One thing I do not have and will never have is a drive unit, let alone a car with it. So when it comes to development work I have to rely on someone who has.

I may put and en to this thread and rather have people create a thread for each specific problem.

First amendment: Do not send me e-mails asking when the boards will become available. They are available when they show up in the web shop.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
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: Tesla Small Drive Unit Support Thread

Post by EV_Builder »

Ok, i will wait until you have them in the shop then.
(this morning Damien cancelled my order :D)...

I have a question tough. What about EMC has somebody used the board and succesfully succeded?
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
jason_arnold
Posts: 21
Joined: Wed Sep 11, 2019 4:42 pm
Location: Canada
Has thanked: 1 time
Been thanked: 2 times

Re: Tesla Small Drive Unit Support Thread

Post by jason_arnold »

In before the thread gets shut down ;)

Does anyone have an actual quantity for how much gearbox oil should be added to the front SDU? I found numbers for the LDU within 5 minutes on Google, but so such luck for the small motors!

EDIT: found the fluid types for the front SDU on TMC, but no mention of quantities:
Front drive unit part number 1035000-00-F and earlier: Mobil SHC 629

Front drive unit part number 1035000-00-J and later: DEXRON VI (DEXRON 6) automatic transmission fluid
User avatar
Kevin Sharpe
Posts: 1345
Joined: Fri Dec 14, 2018 9:24 pm
Location: Ireland and US
Been thanked: 4 times

Re: Tesla Small Drive Unit Support Thread

Post by Kevin Sharpe »

jason_arnold wrote: Fri May 01, 2020 11:24 pm Does anyone have an actual quantity for how much gearbox oil should be added to the front SDU?
It's in one of the service manuals, can't remember which one;

viewtopic.php?f=10&t=84
This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: Tesla Small Drive Unit Support Thread

Post by johu »

Update on SDU:
I have ordered all missing parts for the SDU boards.

I don't have a bare board for creating the test rig so I will test these boards manually for now.

I have to create a default parameter set. Is there a good one out there that uses udcnom?
I have hidden away everything that only has adverse effects when changed. In addition I could program the openinverter CAN standard by default.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Tesla Small Drive Unit Support Thread

Post by cloudy »

Thanks! I think Damien has a decent parameter set on his GitHub - works for me... While you are focused on the Tesla side, are you able to add support for the sensor types and pins used in the SDU? They are different to the LDU so I have to run edited firmware to get accurate/all temps. I put some detail in this thread a few pages back...
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: Tesla Small Drive Unit Support Thread

Post by johu »

The Tesla SDU boards will spawn in the webshop this Friday.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Tesla Small Drive Unit Support Thread

Post by Jack Bauer »

Prepare for the zombie onslaught:)
I'm going to need a hacksaw
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: Tesla Small Drive Unit Support Thread

Post by johu »

Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Kevin Sharpe
Posts: 1345
Joined: Fri Dec 14, 2018 9:24 pm
Location: Ireland and US
Been thanked: 4 times

Re: Tesla Small Drive Unit Support Thread

Post by Kevin Sharpe »

johu wrote: Fri Jun 05, 2020 9:47 am Here you go: https://openinverter.org/shop/index.php ... duct_id=62
Many thanks :)
This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: Tesla Small Drive Unit Support Thread

Post by johu »

So at this point in time I will lock this support thread. If you have questions scroll over the existing topics and consider posting there or create a new topic if you don't find anything appropriate.
I think it is easier to find answers when things are grouped in topics.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Locked