What's the history of this board? Is it a tested board from Damien's webshop or one you made yourself? Can you post a high resolution photo showing the complete board?
Tesla Small Drive Unit Support Thread
- Kevin Sharpe
- Posts: 1345
- Joined: Fri Dec 14, 2018 9:24 pm
- Location: Ireland and US
- Been thanked: 8 times
Re: Tesla Small Drive Unit Support Thread
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.
- Jack Bauer
- Posts: 3638
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 273 times
- Contact:
- nesto1972
- Posts: 48
- Joined: Sat Jan 11, 2020 7:14 pm
- Location: Austria
- Been thanked: 2 times
- Contact:
Re: Tesla Small Drive Unit Support Thread
I tryed this before no change!
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
330
V 0 1000 450
udcmax
460
V 0 1000 520
iacmax
800
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
460
dig 0 4095 0
potmax
2370
dig 0 4095 4095
pot2min
4095
dig 0 4095 4095
pot2max
4095
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
100
%/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
320
V 0 1000 330
udcswbuck
540
V 0 1000 540
tripmode 0 2 0
- Aux PWM
pwmfunc 0 3 0
pwmgain
100
-100000 100000 100
pwmofs
0
dig -65535 65535 0
- Communication
canspeed 0 3 0
canperiod 0 1 0
- Testing
fslipspnt
0
Hz -100 1000 0
ampnom
0
% 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 Off l r
TX RX
lasterr HICUROFS2 l r
TX RX
udc 169.9 V l r
TX RX
idc 0 A l r
TX RX
il1 0 A l r
TX RX
il2 0 A l r
TX RX
ilmax 0 A l r
TX RX
uac 0 V l r
TX RX
il1rms 0 A l r
TX RX
il2rms 0 A l r
TX RX
boostcalc 2200 dig l r
TX RX
fweakcalc 220 Hz l r
TX RX
fstat 0 Hz l r
TX RX
speed 0 rpm l r
TX RX
turns 0 l r
TX RX
amp 0 dig l r
TX RX
angle 0 ° l r
TX RX
pot 50 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 0 °C l r
TX RX
tmpm 190 °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 Error l r
TX RX
din_desat Ok l r
TX RX
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
330
V 0 1000 450
udcmax
460
V 0 1000 520
iacmax
800
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
460
dig 0 4095 0
potmax
2370
dig 0 4095 4095
pot2min
4095
dig 0 4095 4095
pot2max
4095
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
100
%/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
320
V 0 1000 330
udcswbuck
540
V 0 1000 540
tripmode 0 2 0
- Aux PWM
pwmfunc 0 3 0
pwmgain
100
-100000 100000 100
pwmofs
0
dig -65535 65535 0
- Communication
canspeed 0 3 0
canperiod 0 1 0
- Testing
fslipspnt
0
Hz -100 1000 0
ampnom
0
% 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 Off l r
TX RX
lasterr HICUROFS2 l r
TX RX
udc 169.9 V l r
TX RX
idc 0 A l r
TX RX
il1 0 A l r
TX RX
il2 0 A l r
TX RX
ilmax 0 A l r
TX RX
uac 0 V l r
TX RX
il1rms 0 A l r
TX RX
il2rms 0 A l r
TX RX
boostcalc 2200 dig l r
TX RX
fweakcalc 220 Hz l r
TX RX
fstat 0 Hz l r
TX RX
speed 0 rpm l r
TX RX
turns 0 l r
TX RX
amp 0 dig l r
TX RX
angle 0 ° l r
TX RX
pot 50 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 0 °C l r
TX RX
tmpm 190 °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 Error l r
TX RX
din_desat Ok l r
TX RX
- Jack Bauer
- Posts: 3638
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 273 times
- Contact:
Re: Tesla Small Drive Unit Support Thread
I just pulled a board at random and re ran the current sensor circuit test thinking I may have missed something. All tests out fine with the default parameter set loaded on the SDU boards at time of shipping. Between 0.1v and 5.2v on the current sensor inputs the dinocur is normal as expected. Outside those values generates a fault as expected.
Suggest investigating the following :
Voltage across R15 : should be approx 3.5v during normal operation and approx 0v during fault condition.
Voltages across c11 and c14 set the window comparator value. Should be approx 0.05v and 3.2v depending on the value of ocurlim set.
Can some people with experience running the SDU please chime in and help? or am I asking too much?
Suggest investigating the following :
Voltage across R15 : should be approx 3.5v during normal operation and approx 0v during fault condition.
Voltages across c11 and c14 set the window comparator value. Should be approx 0.05v and 3.2v depending on the value of ocurlim set.
Can some people with experience running the SDU please chime in and help? or am I asking too much?
I'm going to need a hacksaw
- Kevin Sharpe
- Posts: 1345
- Joined: Fri Dec 14, 2018 9:24 pm
- Location: Ireland and US
- Been thanked: 8 times
Re: Tesla Small Drive Unit Support Thread
Can anyone help with this? I can ask the obvious diagnostic steps but don't have enough SDU knowledge to help the forum memberJack Bauer wrote: ↑Tue Feb 04, 2020 1:10 pm Can some people with experience running the SDU please chime in and help? or am I asking too much?

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.
Re: Tesla Small Drive Unit Support Thread
I don't have SDU specific experience... but are your "udcsw" set correctly for your test voltage?
(1) warn:PWMSTUCK
(10) warn:HICUR0FS1
(10) warn:HICUR0FS2
(501)Stop:Precharge <-----?
- nesto1972
- Posts: 48
- Joined: Sat Jan 11, 2020 7:14 pm
- Location: Austria
- Been thanked: 2 times
- Contact:
Re: Tesla Small Drive Unit Support Thread
Can this make the mess?
C48!
On R15 i can read 4.97 Volt on the Meter!??
C14 is 1.86V (ocurlim 1200 A)
C48!
On R15 i can read 4.97 Volt on the Meter!??
C14 is 1.86V (ocurlim 1200 A)
- Kevin Sharpe
- Posts: 1345
- Joined: Fri Dec 14, 2018 9:24 pm
- Location: Ireland and US
- Been thanked: 8 times
Re: Tesla Small Drive Unit Support Thread
Looking at the V6 schematic (here) it's clear C48 is one of several bulk decouplers and unlikely to be an issue if it's not connected.
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.
- Kevin Sharpe
- Posts: 1345
- Joined: Fri Dec 14, 2018 9:24 pm
- Location: Ireland and US
- Been thanked: 8 times
Re: Tesla Small Drive Unit Support Thread
You don't say which side of R15 you're measuring (It's a pull-up to the 5V rail).
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.
- Kevin Sharpe
- Posts: 1345
- Joined: Fri Dec 14, 2018 9:24 pm
- Location: Ireland and US
- Been thanked: 8 times
Re: Tesla Small Drive Unit Support Thread
Can you report C11 and C14 at several ocurlim settings?
Jack Bauer wrote: ↑Tue Feb 04, 2020 1:10 pm Voltages across c11 and c14 set the window comparator value. Should be approx 0.05v and 3.2v depending on the value of ocurlim set.
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.
- nesto1972
- Posts: 48
- Joined: Sat Jan 11, 2020 7:14 pm
- Location: Austria
- Been thanked: 2 times
- Contact:
Re: Tesla Small Drive Unit Support Thread
R15 i measured on the right side next to whole is 4.9Volt on the other side is 0.02!
C11: 3.31v .no change with ocurlim!
C14:1,87v@1200 ,2,7v@500 ,3.31v @-500
Anyone have an idea what here happen?Thank you for your support!
C11: 3.31v .no change with ocurlim!
C14:1,87v@1200 ,2,7v@500 ,3.31v @-500
Anyone have an idea what here happen?Thank you for your support!
Re: Tesla Small Drive Unit Support Thread
Hi Nesto,
I have done all the similar tests that you have done with similar results, haven't been able to find a problem so far.
Interesting point on your settings I see your tmphs = 0 mine is reading 25*C which is the ambient in my workshop and changes during the day/night,
your tmpm = 190*C and mine reads 52*C which I know that it is not that hot, it would be around the same as the ambient since it hasn't run yet, wondering if these readings are have something to do with our problems.
I'm continuing to get a Warn-throttle message from the error every time l push the start button and lasterr-precharge
Cheers
I have done all the similar tests that you have done with similar results, haven't been able to find a problem so far.
Interesting point on your settings I see your tmphs = 0 mine is reading 25*C which is the ambient in my workshop and changes during the day/night,
your tmpm = 190*C and mine reads 52*C which I know that it is not that hot, it would be around the same as the ambient since it hasn't run yet, wondering if these readings are have something to do with our problems.
I'm continuing to get a Warn-throttle message from the error every time l push the start button and lasterr-precharge
Cheers
- Jack Bauer
- Posts: 3638
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 273 times
- Contact:
Re: Tesla Small Drive Unit Support Thread
Seeing as my hopes for community support are going the same way as those for today's general election I figure I'll jump in.
So, if we are seeing 5v across R15 this means that one or more of the comparators in IC4 has tripped and pulled low thus sending an ocur error to the mcu. Next thing we need to do is check the voltages across C5 and C8. If these are outside of the window set by the voltages across C11 and C14 then we have our problem.
So, if we are seeing 5v across R15 this means that one or more of the comparators in IC4 has tripped and pulled low thus sending an ocur error to the mcu. Next thing we need to do is check the voltages across C5 and C8. If these are outside of the window set by the voltages across C11 and C14 then we have our problem.
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3638
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 273 times
- Contact:
Re: Tesla Small Drive Unit Support Thread
Also voltage across R7. Should be approx 1.7v.
I'm going to need a hacksaw
- nesto1972
- Posts: 48
- Joined: Sat Jan 11, 2020 7:14 pm
- Location: Austria
- Been thanked: 2 times
- Contact:
Re: Tesla Small Drive Unit Support Thread
Here are my measures:
C11 = 3.31V
C14 = 1.85V
C5 = 3.8V
C8 =3.8V
R7 = 4.6V
Do we have the problem!?
C11 = 3.31V
C14 = 1.85V
C5 = 3.8V
C8 =3.8V
R7 = 4.6V
Do we have the problem!?
- Jack Bauer
- Posts: 3638
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 273 times
- Contact:
Re: Tesla Small Drive Unit Support Thread
Ok we have our problem. The voltage across R7 is the center reference for the opamp. it should be approx 1.7v. The fact it's 4.6v is skewing the outputs outside the comparator window and tripping the overcurrent. With the power off can you measure the values of R8 and R7. Should be 4k7 and 3k16 respectively.
I'm going to need a hacksaw
- nesto1972
- Posts: 48
- Joined: Sat Jan 11, 2020 7:14 pm
- Location: Austria
- Been thanked: 2 times
- Contact:
Re: Tesla Small Drive Unit Support Thread
Ok
on my R7 i measured 6k!
Change this ?
@ sparky61
You can run the motor with this fault(ocurlim err)?
on my R7 i measured 6k!
Change this ?
@ sparky61
You can run the motor with this fault(ocurlim err)?
- tom91
- Posts: 2293
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 199 times
- Been thanked: 524 times
Re: Tesla Small Drive Unit Support Thread
Would a manufacturing mistake like wrong components not have been caught when doing the testing before shipping?
Specially one that causes the compactor to not function?
- nesto1972
- Posts: 48
- Joined: Sat Jan 11, 2020 7:14 pm
- Location: Austria
- Been thanked: 2 times
- Contact:
Re: Tesla Small Drive Unit Support Thread
i dont mind!
These mistakes can occur with new versions!I am happy to run the motor in the end and have the benefit to do it for next time much easier!
These mistakes can occur with new versions!I am happy to run the motor in the end and have the benefit to do it for next time much easier!
- Jack Bauer
- Posts: 3638
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 273 times
- Contact:
Re: Tesla Small Drive Unit Support Thread
Yes it would have. In fact when Nesto reported the problem I grabbed a board from stock and re ran the current sensor test. All normal. But I've found the problem. JLC fit a 3k3 as they don't have 3k16 so I went ahead and ordered some 3k16 from Farnell. Boards arrive and I test them. All good. Then before shipping each order I swap out the 3k3 for a 3k16. Trouble is, the bag says 3k16, the order says 3k16 but they shipped me 6k2! Apologies everyone. Damien screwed up. Again. You can fit a 3k3 as the difference is only a few amps on the top end of the current limit. There will be four boards out there with this error (including Nesto) so if anyone wants me to rework their board or ship a replacement resistor please contact me via email.
I'm going to need a hacksaw
- tom91
- Posts: 2293
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 199 times
- Been thanked: 524 times
Re: Tesla Small Drive Unit Support Thread
That is really shit from Farnell, I have yet to run into that issue myself luckily.
Atleast it now has been caught and can be easily resolved.
Atleast it now has been caught and can be easily resolved.
- Jack Bauer
- Posts: 3638
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 273 times
- Contact:
Re: Tesla Small Drive Unit Support Thread
Yeah only happened to me once before a few years back. It was a cut tape in a bag so I'm guessing someone just put the wrong part in the wrong bag. I never even checked. Just bunged them on.
I'm going to need a hacksaw
- Kevin Sharpe
- Posts: 1345
- Joined: Fri Dec 14, 2018 9:24 pm
- Location: Ireland and US
- Been thanked: 8 times
Re: Tesla Small Drive Unit Support Thread
Thank you for your forbearing and support

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.
-
- Posts: 8
- Joined: Fri Jan 17, 2020 8:35 pm
- Location: San Diego
- Contact:
Re: Tesla Small Drive Unit Support Thread
Is my board one of the 4? I'll be collecting it from the post office on Saturday.
Thanks
Martin
Thanks
Martin
Building the CyberSeven: Lotus inspired, Tesla powered roadster