Tesla Large Drive Unit Support Thread

Topics concerning the Tesla front and rear drive unit drop-in board
Locked
P.S.Mangelsdorf
Posts: 772
Joined: Tue Sep 17, 2019 8:33 pm
Location: Raleigh, NC, USA
Has thanked: 96 times
Been thanked: 94 times

Re: Tesla Large Drive Unit Support Thread

Post by P.S.Mangelsdorf »

invokeperformance wrote: Mon Feb 17, 2020 3:37 pm Damien, I read threw the entire LDU support thread and collected all of the setup and calibration information/FAQ. If you approve I would like to share this information guide I made with your open source information to help new users. If i missed anything please feel free to let me know and i will add it for you!! Cheers keep up the good work!!
Great work! This will certainly help to have handy. Only thing that I have seen asked and answered that was not included is the need to swap encoder pins on some drive units due to a wiring change.
If at first you don't succeed, buy a bigger hammer.

1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed 2023 Hot Rod Drag Week
bulletbug
Posts: 94
Joined: Thu Sep 26, 2019 5:12 pm
Location: West Jordan, Utah USA

Re: Tesla Large Drive Unit Support Thread

Post by bulletbug »

invokeperformance wrote: Mon Feb 17, 2020 8:19 pm My pleasure! Im glad it helped!!
Thank you so much for putting this together. This will be extremely helpful in getting me going, even though I'm using a SDU.
invokeperformance
Posts: 45
Joined: Fri Feb 14, 2020 4:23 pm
Location: Atlanta
Been thanked: 2 times
Contact:

Re: Tesla Large Drive Unit Support Thread

Post by invokeperformance »

bulletbug wrote: Sat Feb 22, 2020 2:49 pm
invokeperformance wrote: Mon Feb 17, 2020 8:19 pm My pleasure! Im glad it helped!!
Thank you so much for putting this together. This will be extremely helpful in getting me going, even though I'm using a SDU.
Cheers ;)
bulletbug
Posts: 94
Joined: Thu Sep 26, 2019 5:12 pm
Location: West Jordan, Utah USA

Re: Tesla Large Drive Unit Support Thread

Post by bulletbug »

What wire gauge (AWG or MM) is correct to use for the Molex (23 pin on LDU or 20 pin on SDU) connector that connects to the brain board?
jon volk
Posts: 572
Joined: Wed Apr 10, 2019 7:47 pm
Location: Connecticut
Been thanked: 2 times

Re: Tesla Large Drive Unit Support Thread

Post by jon volk »

bulletbug wrote: Sat Feb 29, 2020 12:12 am What wire gauge (AWG or MM) is correct to use for the Molex (23 pin on LDU or 20 pin on SDU) connector that connects to the brain board?
I used this, which comes with 20awg wire.

https://www.diyautotune.com/product/ms3 ... r-harness/
Formerly 92 E30 BMW Cabrio with Tesla power
bulletbug
Posts: 94
Joined: Thu Sep 26, 2019 5:12 pm
Location: West Jordan, Utah USA

Re: Tesla Large Drive Unit Support Thread

Post by bulletbug »

jon volk wrote: Sat Feb 29, 2020 3:37 pm I used this, which comes with 20awg wire.
Thank you!
User avatar
dougyip
Posts: 76
Joined: Thu May 09, 2019 2:02 pm
Location: Vancouver, BC
Has thanked: 7 times
Been thanked: 7 times

Re: Tesla Large Drive Unit Support Thread

Post by dougyip »

Finally managed to get our spare LDU disassembled and into the oven to test the thermistors. Not quite as easy as we first thought!

We only manged to get our oven up to 146 degC. The values from 170 to 200 degC are from the Steinhart-Hart equation but should be accurate to within 2%. The stock Tesla controller throttles back power when the temp gets above 150 degC. We hope to run up to 200 with the open source controller.

Resistance/Temp
82800 29
46900, 49
22100 75.6
11600 100.4
6610 124.5
4120 146
2440 170
1990 180
1627 190
1337 200

Steinhart-Hart Equation Coefficients: A = 8.72E-04, B=1.43E-04,C=5.60E-07

The two motor thermistors are the same, but are in different locations. We think one is in the end windings and one in the middle, so if one value is used, it should be the max of the two temperatures.

Johannes, are you able to add code into the throttle limit section for motor temp limiting? Is it possible to have the setpoints adjustable and saved as parameters stored on EEProm? Thanks in advance!
User avatar
Roadstercycle
Posts: 118
Joined: Mon Sep 23, 2019 10:28 pm
Location: California
Has thanked: 3 times
Been thanked: 2 times
Contact:

Deleted

Post by Roadstercycle »

Deleted
Bentto
Posts: 27
Joined: Thu Feb 13, 2020 6:55 pm
Location: The Netherlands

Re: Tesla Large Drive Unit Support Thread

Post by Bentto »

Roadstercycle wrote: Mon Mar 16, 2020 10:01 pm I talked to my Tesla motor provider today about getting you a Tesla model 3 motor for testing. He said that a company in Canada developed a controller for the 3 and ended up buying all his stock and future stock of motors. Bummer.
Actually the company has not developed the controller yet. I talked to them and they are still working on it. They are just buying up motors to get ahead of the game.
[/quote]

What company is that?
User avatar
Kevin Sharpe
Posts: 1345
Joined: Fri Dec 14, 2018 9:24 pm
Location: Ireland and US
Been thanked: 4 times

Re: Tesla Large Drive Unit Support Thread

Post by Kevin Sharpe »

Please keep this thread focused on LDU support topics...
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.
invokeperformance
Posts: 45
Joined: Fri Feb 14, 2020 4:23 pm
Location: Atlanta
Been thanked: 2 times
Contact:

Re: Tesla Large Drive Unit Support Thread

Post by invokeperformance »

20 pin connector on logic board to 23 pin amp seal external connector question.

Hey guys I know this may be a stupid question but is there a guide that will tell me exactly where the 20 Ampseal pins on the logic board correspond to to the 23 pins of the ampseal external connector?
I found the "V3 schematic" on GIT hub that outlines the connectors from the logic board and i have the "ampseal pin out V2" .


I just wanted to confirm this is the best way to make the correct connections from the logic board 20 pin connector to my 23 pin external connector. I see the v3 board schematic labels what each amp pin does on the board but I also know there are some unused and linked pins on the 23 out connector and i wanted to ensure the correct wiring.

Finally does the ampseal 1-20 pin count from the logic board start from the top row left to right and bottom row left to right when facing 20 pin outs on the board.
20 pin - "facing pins"
1,2,3,4,5,6,7,8,9,10
11,12,13,14,15,16,17,18,19,20

I already have the 1-23 count layout to the 23 pin ampseal

Thanks
57 Chevy
Posts: 37
Joined: Fri Jan 24, 2020 10:43 pm
Location: New Zealand

Re: Tesla Large Drive Unit Support Thread

Post by 57 Chevy »

Just saw the comment that there are no hardware interlocks on the SDU and LDU gate drivers(!) This is doin me a small concern, I wonder how much work is involved in adding interlocks. Must investigate now that we have a mandatory four weeks of garage isolation
User avatar
Kevin Sharpe
Posts: 1345
Joined: Fri Dec 14, 2018 9:24 pm
Location: Ireland and US
Been thanked: 4 times

Re: Tesla Large Drive Unit Support Thread

Post by Kevin Sharpe »

dougyip wrote: Sat Mar 14, 2020 9:50 pm Johannes, are you able to add code into the throttle limit section for motor temp limiting? Is it possible to have the setpoints adjustable and saved as parameters stored on EEProm? Thanks in advance!
Some recent developments on the SDU support thread;

viewtopic.php?f=10&t=77&p=8232#p8232
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.
wigman
Posts: 32
Joined: Thu Mar 26, 2020 5:40 pm
Location: Pittsburgh PA

Starting for the first time error codes

Post by wigman »

Hello, I read through the forum and guides and searched for my problems but could not find the answer.

I'm testing my motor with one Chevy Volt battery that gives 89VDC.

Everything is wired correctly. I started by calibrating the accelerator pedal values. No issues.

Secondly, I changed my UDCMIN to 0 and my UDCSW to 79.

When I flip the ignition switch the precharge relay comes on and I measure 86.6VDC out of the contactor to the motor. The precharge resistor stays on and does not turn off after the ignition is turned on.
I get the following error messages with the ignition on-

302- derate- TMPHSMAX
11- warn- HICUROFS1
1- warn- PWMSTUCK

When I flip my start switch the precharge relay goes off and the main contactor clicks on and off. I get the following messages after the start switch is pushed-

3894 derate CURRENTLIMIT
3895 warn HICUROFS1
3866 derate TMPHSMAX
3894 stop OVERCURRENT.

Is this happening just because I'm testing with lower voltage? I don't want to damage any components and it seems like these codes refer to too much current draw and too high of temperatures.

This board came fully populated and I did not adjust any parameters besides the ones mentioned above.

Thanks!
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Tesla Large Drive Unit Support Thread

Post by cloudy »

What is your ocurlim and idcmax limit set to?
Have you tried uploading a known config like this? https://github.com/damienmaguire/Tesla- ... arams.json
wigman
Posts: 32
Joined: Thu Mar 26, 2020 5:40 pm
Location: Pittsburgh PA

Re: Tesla Large Drive Unit Support Thread

Post by wigman »

idcmax is 5000
ocurlim is -2500

those were the parameters the board came with.

I have not tried anyone's parameter settings.

I see the ocurlim default is 100 but my board came with -2500 as the setting. Should I change it to 100?
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Tesla Large Drive Unit Support Thread

Post by cloudy »

Try lower udcmax of like 100 , looks like you are allowing more current than your overall current limit?
wigman
Posts: 32
Joined: Thu Mar 26, 2020 5:40 pm
Location: Pittsburgh PA

Re: Tesla Large Drive Unit Support Thread

Post by wigman »

I tried to lower udcmax with no results
I changed ocurlim with no results

I started watching spot values and noticed potnom jumps between 0 and 9%. Tmphs jumps between 100c and 23c and tmpm jumps between 0c abs 23c. I plotted them on a graph and they jump up and down like I see them on auto refresh.

Also my din_ocur always reads error. I Data logged din_ocur and got 0

I data logged all the amp and voltage readings through flipping the Start switch and they read 0 the entire time before and after.

In general the web browser sometimes doesn’t load the parameter and spot data and I have to turn ignition off and open a new browser sometimes multiple times to get it to load.

Could there be something wrong with my board?
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Tesla Large Drive Unit Support Thread

Post by cloudy »

I think that the overtemp is pulling back the throttle (derate) Looks like you have similar temperature reading issues to those I was having - for me it was caused by one of the mux select pins not being set as an output correctly in software. That fix is posted in the small drive thread, but you'll need to remap it for the large drive unit sensors as I didn't have one to go through... Are you experienced with programming?

I found some WiFi cards don't like connecting well to the inverter. I had a windows PC with a wifi dongle that was a nightmare to connect reliably. I found an older dell laptop running Ubuntu and it's been rock solid. Obviously you need to connect to the SSID and load the page after every power cycle...
wigman
Posts: 32
Joined: Thu Mar 26, 2020 5:40 pm
Location: Pittsburgh PA

Re: Tesla Large Drive Unit Support Thread

Post by wigman »

That does explain the derate high temp codes but doesn’t give a reason why the main contactor won’t engage and the overcurrent currentlimit Code’s. Unless there’s another software problem related to that one.

I don’t know programming at all. If there’s a new software file, I can upload it to the board. Otherwise I would need specific instructions on how to enter code. This is why I bought a built LDU board and not a blank one.
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Tesla Large Drive Unit Support Thread

Post by cloudy »

Very true, I would say the overcurrent stop is the reason the main contactor is cutting out immediately - what are your spot current values before start pulse is sent? high current offset you are getting before start when everything should be near zero...
wigman
Posts: 32
Joined: Thu Mar 26, 2020 5:40 pm
Location: Pittsburgh PA

Re: Tesla Large Drive Unit Support Thread

Post by wigman »

One more clue-

I took the ground signal off my main contactor so when the start is pushed the contactor doesn’t operate. I still get overcurrent and currentlimit codes even with no current going to the inverter. That seems like a sensor/software issue to me.
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Tesla Large Drive Unit Support Thread

Post by cloudy »

I don't know the overcurrent behaviour well, but sounds like the fault condition is already there and is only reacted upon when trying to go into start. Can you share your spot values after precharge? Hopefully somebody with more experience will be able to add more suggestions
wigman
Posts: 32
Joined: Thu Mar 26, 2020 5:40 pm
Location: Pittsburgh PA

Re: Tesla Large Drive Unit Support Thread

Post by wigman »

Here are my spot numbers and plots.

The spot numbers are ignition on with a successful precharge (DCV is 106)

The plot shows everything measure in amps before during and after the starter switch is pushed and the main contactor goes on and off within a second.

The gauges show 0 before the starter switch is pushed
The second gauges show the values after the starter switch is pushed.

I updated the firmware to the newest version available.

Any help figuring out the issue is appreciated.

Thanks!
Attachments
IMG_0797.PNG
IMG_0790.PNG
IMG_0792 (1).PNG
IMG_0791 (1).PNG
IMG_0792.PNG
IMG_0794.PNG
IMG_0796.PNG
IMG_0799.PNG
retrEVnoc
Posts: 33
Joined: Sun Aug 11, 2019 8:22 pm
Location: CA & OR, USA
Been thanked: 1 time

Re: Tesla Large Drive Unit Support Thread

Post by retrEVnoc »

I'm having similar issues to wigman's when bench testing the drive unit with board installed (V4.65). I have things wired up correctly as far as I can tell with 3 contactors, precharge resistor, etc.

I was able to get the main contactor to properly cycle on (with 'start' 12V pulse) exactly once. After that, pulsing the start (pin23) still opens the precharge contactor but wouldn't close the main contactor, which should happen simultaneously AFAIK. Lasterr says TMPHSMAX. Not sure how I could be over temp, I haven't even spun the motor, and I'm working in a cold garage. My test battery voltage is about 84V. I did change UCDSW to 70V and UDCMIN to 0. Really, really hoping I haven't fried the inverter...

Couple of other questions: what does the logic board do with regen after battery reaches 100% SOC when driving down a long hill? Want to make sure the regen goes to zero. I'm sure that's in there somewhere just haven't spotted it yet.

Also, I'm having trouble with throttle calibration trying to use a prius accelerator pedal (0-5V). I've got it wired up to the inverter, am getting response on pot and pot2 but nothing on potnom. What gives? Error message Throttle1. Thanks all, even though I'm in a bit over my head, I'm learning and love that the cutting edge of EV conversions is open source!
Locked