Page 8 of 8

Re: Tesla Small Drive Unit Support Thread

Posted: Mon Mar 23, 2020 8:22 pm
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?

Re: Tesla Small Drive Unit Support Thread

Posted: Mon Mar 23, 2020 8:53 pm
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

Re: Tesla Small Drive Unit Support Thread

Posted: Mon Mar 23, 2020 9:11 pm
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.

Re: Tesla Small Drive Unit Support Thread

Posted: Mon Mar 23, 2020 9:52 pm
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

Re: Tesla Small Drive Unit Support Thread

Posted: Wed Mar 25, 2020 7:22 pm
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!

Re: Tesla Small Drive Unit Support Thread

Posted: Thu Mar 26, 2020 6:02 pm
by Jack Bauer
Very much appreciated:)

Re: Tesla Small Drive Unit Support Thread

Posted: Fri Mar 27, 2020 5:03 pm
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

Re: Tesla Small Drive Unit Support Thread

Posted: Fri Mar 27, 2020 6:30 pm
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 :)

Re: Tesla Small Drive Unit Support Thread

Posted: Fri Apr 03, 2020 8:57 am
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.

Re: Tesla Small Drive Unit Support Thread

Posted: Mon Apr 20, 2020 2:24 pm
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.

Re: Tesla Small Drive Unit Support Thread

Posted: Tue Apr 28, 2020 10:28 pm
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?

Re: Tesla Small Drive Unit Support Thread

Posted: Fri May 01, 2020 11:24 pm
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

Re: Tesla Small Drive Unit Support Thread

Posted: Sat May 02, 2020 12:50 am
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

Re: Tesla Small Drive Unit Support Thread

Posted: Mon May 04, 2020 5:29 pm
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.

Re: Tesla Small Drive Unit Support Thread

Posted: Mon May 04, 2020 9:46 pm
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...

Re: Tesla Small Drive Unit Support Thread

Posted: Wed Jun 03, 2020 8:18 am
by johu
The Tesla SDU boards will spawn in the webshop this Friday.

Re: Tesla Small Drive Unit Support Thread

Posted: Wed Jun 03, 2020 8:45 am
by Jack Bauer
Prepare for the zombie onslaught:)

Re: Tesla Small Drive Unit Support Thread

Posted: Fri Jun 05, 2020 9:47 am
by johu

Re: Tesla Small Drive Unit Support Thread

Posted: Fri Jun 05, 2020 1:59 pm
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 :)

Re: Tesla Small Drive Unit Support Thread

Posted: Mon Jun 08, 2020 11:12 am
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.