Page 2 of 8
Re: Tesla Small Drive Unit Support Thread
Posted: Sun Sep 08, 2019 6:00 pm
by tom91
Kevin Sharpe wrote: ↑Sun Sep 08, 2019 4:39 pm
We've been ... in a project
Mind sharing the parameters you have been using?
Re: Tesla Small Drive Unit Support Thread
Posted: Sun Sep 08, 2019 7:51 pm
by Jack Bauer
Same as in the parameter thread.
Re: Tesla Small Drive Unit Support Thread
Posted: Sun Sep 08, 2019 8:00 pm
by tom91
No compensation for the voltage? Makes the drive unit quite laggy down low.
Re: Tesla Small Drive Unit Support Thread
Posted: Mon Sep 23, 2019 12:23 pm
by iak78612
Just busted my current sensor

and if you can't tell from my question then I'll say it explicitly. I'm a noob.
My replacement current sensors will be getting here in a couple of days. Do I just pull out the old sensors from the "goo" and drop the new ones in? or is there something more involved?
Thanks!
Re: Tesla Small Drive Unit Support Thread
Posted: Tue Sep 24, 2019 8:58 am
by Jack Bauer
Yes they go back into the goo. Just be aware of the orientation mark on the device.
Re: Tesla Small Drive Unit Support Thread
Posted: Wed Sep 25, 2019 5:01 pm
by Lee Malo
when I replaced the sensor I took a few pics . This is how the 2 sensors are oriented in that camel snot . lol
Lee
Re: Tesla Small Drive Unit Support Thread
Posted: Mon Sep 30, 2019 1:37 am
by iak78612
Lee Malo wrote: ↑Wed Sep 25, 2019 5:01 pm
when I replaced the sensor I took a few pics . This is how the 2 sensors are oriented in that camel snot . lol
Lee
Thanks!
Got em in. Should we refill the void in the "camel snot" left from pulling out the old sensors? The new sensors seem pretty secure as is.
Re: Tesla Small Drive Unit Support Thread
Posted: Mon Sep 30, 2019 7:21 am
by Jack Bauer
Recommend everyone update to the latest software release here :
https://github.com/jsphuebner/stm32-sine/releases
For Tesla use :
https://github.com/jsphuebner/stm32-sin ... 2_sine.bin
Also read and try to understand the parameters before powering up :
https://openinverter.org/docs/index.htm ... rs,24.html
A lot of the most common questions have already been answered in the support threads so try the search function first.
Re: Tesla Small Drive Unit Support Thread
Posted: Tue Oct 08, 2019 11:57 am
by cloudy
Hi all, I notice in V2/3/4 PCBs the following connections are warning as single pin, ie: pin 20 tacho-drive is not longer routed to anything - previously went to an ULN2003ADR
Single pin net ENC_Z_54 on IC1.P$54 at 525.04,466.23
Single pin net SPEED_OUT_25 on IC1.P$25 at 524.04,454.38
Single pin net TACHO_DRIVE on CONN2.20 at 542.92,567.05
Single pin net USER_PWM_62 on IC1.P$62 at 521.04,466.23
Are these functions deprecated and safely ignored?
Thanks all
Re: Tesla Small Drive Unit Support Thread
Posted: Thu Oct 10, 2019 6:09 pm
by Jack Bauer
Those functions are no longer required on Tesla boards and have been deleted.
Re: Tesla Small Drive Unit Support Thread
Posted: Tue Oct 15, 2019 3:35 am
by Sparky 61
Can some please confirm the following, on the TSDU low voltage diagram;
Pin 5 shows forward direction in black is this a positive or negative supply
Pin 12 shows reverse direction in blue is the a positive or negative supply
because on the TSDU 12 volt connection diagram
Pin 5 shows forward direction in red as a positive 12v
pin 12 shows reverse direction in red as a positive 12v
Re: Tesla Small Drive Unit Support Thread
Posted: Tue Oct 15, 2019 3:41 am
by Sparky 61
TSDU Brake Pedal Position Sensor, where can i source one of these.
Re: Tesla Small Drive Unit Support Thread
Posted: Tue Oct 15, 2019 6:43 am
by Jack Bauer
Direction signals are 12v active high.
Re: Tesla Small Drive Unit Support Thread
Posted: Wed Oct 16, 2019 8:33 pm
by Jack-Lee
Hi,
a little question... How high i could go with the input DC Voltage? I use 60Ah 300Amax Cells, and i would get the most power out of it

Tesla Small Drive Unit reset ??
Posted: Mon Oct 21, 2019 3:15 pm
by Lee Malo
I did a idiot move ! , I played with some setting without saving before

What file do I load to reset the parameters ? I feel like an idiot asking this question and sorry to bother you with this NOOB question .
the board is a V4 with the latest software .
Re: Tesla Small Drive Unit Support Thread
Posted: Mon Oct 21, 2019 5:10 pm
by Jack Bauer
Re: Tesla Small Drive Unit Support Thread
Posted: Wed Oct 30, 2019 12:14 pm
by Jack-Lee
Does anyone know what about the maximum supply voltage?
Re: Tesla Small Drive Unit Support Thread
Posted: Wed Oct 30, 2019 1:26 pm
by Kevin Sharpe
Jack-Lee wrote: ↑Wed Oct 30, 2019 12:14 pm
Does anyone know what about the maximum supply voltage?
AFAIK no one has tested the limits of a small drive unit so I guess 400V is a safe assumption given they use 600V IGBT's in the LDU;
viewtopic.php?f=10&t=76&hilit=tesla+igbt#p515
Re: Tesla Small Drive Unit Support Thread
Posted: Thu Oct 31, 2019 1:28 pm
by Jack-Lee
Ok, thanks. So it should be ok to usw 100 cells in a row instead of 96
Re: Tesla Small Drive Unit Support Thread
Posted: Thu Oct 31, 2019 10:51 pm
by Kevin Sharpe
Jack-Lee wrote: ↑Thu Oct 31, 2019 1:28 pm
Ok, thanks. So it should be ok to usw 100 cells in a row instead of 96
You're going to find out

Anything outside of the Tesla default environment is an experiment. If you want to play safe copy what Tesla have done.
Re: Tesla Small Drive Unit Support Thread
Posted: Sun Nov 03, 2019 2:39 pm
by Jack Bauer
Some good news on board supply. I have now acquired a much more reliable pcb manufacturer here in Ireland and boards will be in stock for immediate dispatch. No more silly delays and boards are being built on an automated smd line so quality is much improved.
Re: Tesla Small Drive Unit Support Thread
Posted: Sun Nov 03, 2019 7:08 pm
by JaniK
Looking good

what am I missing ? " Derate - Currentlimit "
Posted: Tue Nov 05, 2019 2:25 pm
by Lee Malo
I am going cross eyed with looking at this . I am doing something wrong and I have not found my mistake . Could someone point me in the correct direction
Name Value Unit Minimum Maximum Default
- Motor
boost
2200
dig 0 37813 1700
fweak
220
Hz 0 1000 90
fconst
800
Hz 0 1000 180
udcnom
0
V 0 1000 0
fslipmin
2
Hz 0 10 1
fslipmax
6
Hz 0 10 3
fslipconstmax
6
Hz 0 10 5
polepairs
2
1 16 2
respolepairs
1
1 16 1
encmode 0 5 0
fmin
1
Hz 0 400 1
fmax
600
Hz 21 1000 200
numimp
36
ppr 8 8192 60
dirchrpm
100
rpm 0 2000 100
dirmode 0 3 1
syncofs
0
dig 0 65535 0
snsm 12 14 12
- Inverter
pwmfrq 0 4 1
pwmpol 0 1 0
deadtime
63
dig 0 255 63
ocurlim
-1200
A -65536 65536 100
minpulse
1000
dig 0 4095 1000
il1gain
-1.5
dig/A -100 100 4.68
il2gain
-1.5
dig/A -100 100 4.68
udcgain
7.56
dig/V 0 4095 6.15
udcofs
0
dig 0 4095 0
udclim
450
V 0 1000 540
snshs 0 5 0
- Derating
bmslimhigh
90
% 0 100 50
bmslimlow
-100
% -100 0 -1
udcmin
315
V 0 1000 450
udcmax
341
V 0 1000 520
iacmax
1000
A 0 5000 5000
idcmax
500
A 0 5000 5000
idcmin
-500
A -5000 0 -5000
throtmax
100
% 0 100 100
ifltrise
10
dig 0 32 10
ifltfall
0
dig 0 32 3
- Charger
chargemode 0 4 0
chargecur
0
A 0 50 0
chargekp
80
dig 0 100 80
chargeflt
8
dig 0 10 8
chargemax
90
% 0 99 90
- Throttle
potmin
210
dig 0 4095 0
potmax
2630
dig 0 4095 4095
pot2min
22
dig 0 4095 4095
pot2max
36
dig 0 4095 4095
potmode 0 2 0
throtramp
10
%/10ms 0.09 100 100
throtramprpm
20000
rpm 0 20000 20000
ampmin
5
% 0 100 10
slipstart
40
% 10 100 50
- Regen
brknompedal
-40
% -100 0 -50
regenramp
1
%/10ms 0.09 100 100
brknom
30
% 0 100 30
brkmax
-30
% -100 0 -30
brkrampstr
50
Hz 0 400 10
brkout
-100
% -100 -1 -50
- Automation
idlespeed
-100
rpm -100 10000 -100
idlethrotlim
50
% 0 100 50
idlemode 0 2 0
speedkp
1
0 100 0.25
speedflt
5
0 16 5
cruisemode 0 1 0
- Contactor Control
udcsw
318.18
V 0 1000 330
udcswbuck
540
V 0 1000 540
tripmode 0 2 0
- Aux PWM
pwmfunc 0 3 0
pwmgain
0
-100000 100000 100
pwmofs
0
dig -65535 65535 0
- Communication
canspeed 0 3 0
canperiod 0 1 0
- Testing
fslipspnt
1.53
Hz -100 1000 0
ampnom
4.53
% 0 100 0
Spot Values
Show Gauges Show Data Logger
Name Value Unit Plot CAN Id Position Bits Gain Map to CAN
version 4.57.R-sine l r
TX RX
hwver Tesla l r
TX RX
opmode Run l r
TX RX
lasterr CURRENTLIMIT l r
TX RX
udc 1.56 V l r
TX RX
idc 0 A l r
TX RX
il1 0 A l r
TX RX
il2 0.65 A l r
TX RX
ilmax 1.84 A l r
TX RX
uac 0 V l r
TX RX
il1rms 1.03 A l r
TX RX
il2rms 2.15 A l r
TX RX
boostcalc 2200 dig l r
TX RX
fweakcalc 220 Hz l r
TX RX
fstat 1.53 Hz l r
TX RX
speed 0 rpm l r
TX RX
turns 0 l r
TX RX
amp 110 dig l r
TX RX
angle 0 ° l r
TX RX
pot 198 dig l r
TX RX
pot2 21 dig l r
TX RX
potnom 0 % l r
TX RX
dir Neutral l r
TX RX
tmphs 19.68 °C l r
TX RX
tmpm 44.68 °C l r
TX RX
uaux 16.43 V l r
TX RX
pwmio 59136 l r
TX RX
canio l r
TX RX
din_cruise Off l r
TX RX
din_start Off l r
TX RX
din_brake Off l r
TX RX
din_mprot Ok l r
TX RX
din_forward Off l r
TX RX
din_reverse Off l r
TX RX
din_emcystop Ok l r
TX RX
din_ocur Ok l r
TX RX
din_desat Ok l r
TX RX
din_bms Off l r
TX RX
cpuload 76.09 % l r
TX RX
Plot
Start Plot Stop Plot Pause Plot Limit data points to:
1000
Burst length:
10
Re: Tesla Small Drive Unit Support Thread
Posted: Tue Nov 05, 2019 2:54 pm
by arber333
After you find out what were the best settings you can post that here for future reference?
https://openinverter.org/wiki/Configuration_Files
I think Damien has that on github?
https://github.com/damienmaguire/Tesla-Front-Drive-Unit
Re: Tesla Small Drive Unit Support Thread
Posted: Tue Nov 05, 2019 6:02 pm
by Jack Bauer