Page 5 of 8

Re: Tesla Small Drive Unit Support Thread

Posted: Tue Feb 04, 2020 10:35 am
by Kevin Sharpe
nesto1972 wrote: Tue Feb 04, 2020 8:58 am led 1is blinking,led2 on
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?

Re: Tesla Small Drive Unit Support Thread

Posted: Tue Feb 04, 2020 10:47 am
by nesto1972
Yes it a tested Board from Daimen V6!

Re: Tesla Small Drive Unit Support Thread

Posted: Tue Feb 04, 2020 11:21 am
by Jack Bauer
Set ocurlim to 1200

Re: Tesla Small Drive Unit Support Thread

Posted: Tue Feb 04, 2020 11:44 am
by nesto1972
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

Re: Tesla Small Drive Unit Support Thread

Posted: Tue Feb 04, 2020 1:10 pm
by Jack Bauer
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?

Re: Tesla Small Drive Unit Support Thread

Posted: Tue Feb 04, 2020 2:56 pm
by Kevin Sharpe
Jack 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?
Can anyone help with this? I can ask the obvious diagnostic steps but don't have enough SDU knowledge to help the forum member :(

Re: Tesla Small Drive Unit Support Thread

Posted: Tue Feb 04, 2020 3:42 pm
by rikohm
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 <-----?

Re: Tesla Small Drive Unit Support Thread

Posted: Tue Feb 04, 2020 5:07 pm
by nesto1972
Can this make the mess?
C48!
On R15 i can read 4.97 Volt on the Meter!??
C14 is 1.86V (ocurlim 1200 A)

Re: Tesla Small Drive Unit Support Thread

Posted: Tue Feb 04, 2020 8:45 pm
by Kevin Sharpe
nesto1972 wrote: Tue Feb 04, 2020 5:07 pm Can this make the mess?
C48!
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.
Screenshot 2020-02-04 at 20.40.49.png

Re: Tesla Small Drive Unit Support Thread

Posted: Tue Feb 04, 2020 8:50 pm
by Kevin Sharpe
nesto1972 wrote: Tue Feb 04, 2020 5:07 pm On R15 i can read 4.97 Volt on the Meter!??
You don't say which side of R15 you're measuring (It's a pull-up to the 5V rail).
Screenshot 2020-02-04 at 20.47.53.png

Re: Tesla Small Drive Unit Support Thread

Posted: Tue Feb 04, 2020 8:57 pm
by Kevin Sharpe
nesto1972 wrote: Tue Feb 04, 2020 5:07 pm C14 is 1.86V (ocurlim 1200 A)
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.

Re: Tesla Small Drive Unit Support Thread

Posted: Wed Feb 05, 2020 8:27 am
by nesto1972
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!

Re: Tesla Small Drive Unit Support Thread

Posted: Fri Feb 07, 2020 12:08 pm
by Sparky 61
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

Re: Tesla Small Drive Unit Support Thread

Posted: Sat Feb 08, 2020 10:17 am
by Jack Bauer
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.

Re: Tesla Small Drive Unit Support Thread

Posted: Sat Feb 08, 2020 11:41 am
by Jack Bauer
Also voltage across R7. Should be approx 1.7v.

Re: Tesla Small Drive Unit Support Thread

Posted: Sat Feb 08, 2020 12:00 pm
by nesto1972
Here are my measures:

C11 = 3.31V
C14 = 1.85V
C5 = 3.8V
C8 =3.8V
R7 = 4.6V
Do we have the problem!?

Re: Tesla Small Drive Unit Support Thread

Posted: Sat Feb 08, 2020 2:29 pm
by Jack Bauer
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.

Re: Tesla Small Drive Unit Support Thread

Posted: Sat Feb 08, 2020 3:17 pm
by nesto1972
Ok
on my R7 i measured 6k!

Change this ?

@ sparky61

You can run the motor with this fault(ocurlim err)?

Re: Tesla Small Drive Unit Support Thread

Posted: Sat Feb 08, 2020 3:44 pm
by tom91
nesto1972 wrote: Tue Feb 04, 2020 10:47 am Yes it a tested Board from Daimen V6!
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?

Re: Tesla Small Drive Unit Support Thread

Posted: Sat Feb 08, 2020 4:06 pm
by nesto1972
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!

Re: Tesla Small Drive Unit Support Thread

Posted: Sat Feb 08, 2020 4:19 pm
by Jack Bauer
tom91 wrote: Sat Feb 08, 2020 3:44 pm
nesto1972 wrote: Tue Feb 04, 2020 10:47 am Yes it a tested Board from Daimen V6!
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?
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.

Re: Tesla Small Drive Unit Support Thread

Posted: Sat Feb 08, 2020 4:20 pm
by tom91
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.

Re: Tesla Small Drive Unit Support Thread

Posted: Sat Feb 08, 2020 4:25 pm
by Jack Bauer
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.

Re: Tesla Small Drive Unit Support Thread

Posted: Sun Feb 09, 2020 11:03 am
by Kevin Sharpe
nesto1972 wrote: Sat Feb 08, 2020 4:06 pm 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!
Thank you for your forbearing and support :)

Re: Tesla Small Drive Unit Support Thread

Posted: Thu Feb 13, 2020 4:39 am
by Hassleweed
Is my board one of the 4? I'll be collecting it from the post office on Saturday.
Thanks
Martin