Can't get any regen with LDU, help!  [SOLVED]

Topics concerning the Tesla front and rear drive unit drop-in board
User avatar
Ev8
Posts: 801
Joined: Sat Jan 30, 2021 11:05 am
Has thanked: 41 times
Been thanked: 149 times

Re: Can't get any regen with LDU, help!

Post by Ev8 »

mane2 wrote: Tue Aug 08, 2023 10:03 am Do people really connect a pot for regen? I would really love to have working pedal regen, and not adding any pots of paddles to adjust it. When it works well, there is no need for that.

As my pot2 shows value of 27, I changed pot2min to 0 and pot2max to 27 to overcome that, but there was no change in regen. Still always only 26kW regen power and pretty mild. I did not see any change to earlier setting, where I had 4095 for both (min and max).
The pot is used to vary the maximum amount of regen, It affects both off pedal and brake switch activated regen, to do without it you may have to pull the input high to +5v maybe place a current limiting resistor inline and set pot2 min=0 pot2 max =4095 then you will have 100% of your selected regen settings available.

Ps having a pot that proportionally scales the 2 regen modes is actually very useful In icy conditions
User avatar
mane2
Posts: 177
Joined: Fri Jan 13, 2023 6:32 am
Location: Finland
Has thanked: 20 times
Been thanked: 8 times

Re: Can't get any regen with LDU, help!

Post by mane2 »

P.S.Mangelsdorf wrote: Wed Aug 09, 2023 12:29 am In my experience, this should be basically undrivable, the regen is that strong. I've got no clue what's going on here.
I also noticed now two times that when battery drops to 36%, some kinda limit hits. I get only max 35kW power out. My guess is that it's somehow related to voltage. I had to use that hidden parameter udcgain to lower the voltage that inverter sees, to match measured voltage (from terminals). I haven't had time to plot that yet, but I think the voltage be now wrong on the lower end, and goes to somekind of limp mode.

36% of battery in my case is about 243V (100% is 302V). I wonder if LDU itself has some additional limp mode if voltage is too low?

But not sure how that can affect regen... Or how to investigate that even?
User avatar
muehlpower
Posts: 575
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 103 times

Re: Can't get any regen with LDU, help!

Post by muehlpower »

Can it be that your udcmin and udcmax limit the performance or regeneration? Maybe you have cables that are too thin and too long, with a high resistance!
User avatar
mane2
Posts: 177
Joined: Fri Jan 13, 2023 6:32 am
Location: Finland
Has thanked: 20 times
Been thanked: 8 times

Re: Can't get any regen with LDU, help!

Post by mane2 »

muehlpower wrote: Thu Aug 10, 2023 7:53 pm Can it be that your udcmin and udcmax limit the performance or regeneration? Maybe you have cables that are too thin and too long, with a high resistance!
If voltage is calculated wrongly, it might be udcmin and max - but my settings are correct to my setup:
"udcmin": 216,
"udcmax": 300,

I have 70mm2 cables, 10 tesla modules at front and 2 at back. Cables are short and those should be good. I get good power when accelerating, it's the regen that just does not work well.

Btw, related to voltage .. my uaux parameter, what should state 12V voltage, says 16V constantly, even though it's 13,6 or so. Could that be related? Or is that uaux param not working in Tesla boards? My Tesla charger board shows that correctly though.
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1025 times
Contact:

Re: Can't get any regen with LDU, help!

Post by johu »

uaux doesn't work on Tesla boards.

Just set udcmax to 350 or so just to test of it's the culprit
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
mane2
Posts: 177
Joined: Fri Jan 13, 2023 6:32 am
Location: Finland
Has thanked: 20 times
Been thanked: 8 times

Re: Can't get any regen with LDU, help!

Post by mane2 »

Ev8 wrote: Thu Aug 10, 2023 5:58 pm The pot is used to vary the maximum amount of regen, It affects both off pedal and brake switch activated regen, to do without it you may have to pull the input high to +5v maybe place a current limiting resistor inline and set pot2 min=0 pot2 max =4095 then you will have 100% of your selected regen settings available.
Just checked the code related to this. If you have pot2min and pot2max set to 4095 (max), code will clamp the pot2 value between those. If it's not in range, it will be set to min value (4095). So no need to have pot connected or pulled high.

EDIT: There is also "DigitsToPercent" code related to pot handling, where it checks if min and max if the same value, and returns 100% if so.
User avatar
mane2
Posts: 177
Joined: Fri Jan 13, 2023 6:32 am
Location: Finland
Has thanked: 20 times
Been thanked: 8 times

Re: Can't get any regen with LDU, help!

Post by mane2 »

I noticed that when I have D selected, firmware shows dirmode = Reverse. Could this play a factor here?

I wonder why it shows reverse, when motor is not installed in reverse. Inverter on the right, gearbox closer to nose, and motor on left. It this normal? Does firmware do something differently when in reverse?
User avatar
mane2
Posts: 177
Joined: Fri Jan 13, 2023 6:32 am
Location: Finland
Has thanked: 20 times
Been thanked: 8 times

Re: Can't get any regen with LDU, help!  [SOLVED]

Post by mane2 »

Okay, I was now able to get proper regen. The issue was with fweak being 280 or so. Dropping fweak to 90 made the trick. Wheels lock when -100 regen used. That's what I supposed to happen. Setting that fweak lower, also gave loads of more power!

And then the sad part. I first put the regen to -30, then wanted bit more .. then put -60. Was super fun to see the car skid at 60km/h speeds. Then after first good acceleration, lifted the accelerator. Saw something like -40kW regen .. and all the sudden "click" .. and neutral. Firmware showed OVERCURRENT. I think the inverter is broken :( I'll start another thread with that, as this regen issue is now solved, but was replaced with another .. bigger issue. :(
P.S.Mangelsdorf
Posts: 772
Joined: Tue Sep 17, 2019 8:33 pm
Location: Raleigh, NC, USA
Has thanked: 96 times
Been thanked: 96 times

Re: Can't get any regen with LDU, help!

Post by P.S.Mangelsdorf »

mane2 wrote: Sun Aug 20, 2023 6:42 pm Okay, I was now able to get proper regen. The issue was with fweak being 280 or so. Dropping fweak to 90 made the trick. Wheels lock when -100 regen used. That's what I supposed to happen. Setting that fweak lower, also gave loads of more power!

And then the sad part. I first put the regen to -30, then wanted bit more .. then put -60. Was super fun to see the car skid at 60km/h speeds. Then after first good acceleration, lifted the accelerator. Saw something like -40kW regen .. and all the sudden "click" .. and neutral. Firmware showed OVERCURRENT. I think the inverter is broken :( I'll start another thread with that, as this regen issue is now solved, but was replaced with another .. bigger issue. :(
Did you power cycle and try to restart? I've hit the overcurrent limit with mine many times.

Also, yeah fweak being the culprit makes some sense; lowering does improve acceleration/launch.
If at first you don't succeed, buy a bigger hammer.

1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed 2023 Hot Rod Drag Week
User avatar
Ev8
Posts: 801
Joined: Sat Jan 30, 2021 11:05 am
Has thanked: 41 times
Been thanked: 149 times

Re: Can't get any regen with LDU, help!

Post by Ev8 »

What mode have you got contactor control set to, you absolutely don’t want it to open contactors on an over current, it will kill the Tesla inverter
User avatar
mane2
Posts: 177
Joined: Fri Jan 13, 2023 6:32 am
Location: Finland
Has thanked: 20 times
Been thanked: 8 times

Re: Can't get any regen with LDU, help!

Post by mane2 »

Yeah, I had contactor control set correctly, dcswon (tripmode = 1) after reading some horror stories, but what I didn't realize, was that BMS had default setting of 250A for charge limit. And when that hit, BMS opened main contactors. I verified with multimeter diode mode, it showed something like 0,27. So it's a goner.
User avatar
Ev8
Posts: 801
Joined: Sat Jan 30, 2021 11:05 am
Has thanked: 41 times
Been thanked: 149 times

Re: Can't get any regen with LDU, help!

Post by Ev8 »

That’s a shitter, I feel your pain, sometimes we blow things up!
User avatar
mane2
Posts: 177
Joined: Fri Jan 13, 2023 6:32 am
Location: Finland
Has thanked: 20 times
Been thanked: 8 times

Re: Can't get any regen with LDU, help!

Post by mane2 »

Yeah, I have new motor on a way. But as I have LSD swapped to the broken one, I was thinking if it would be easiest to just swap the inverter side completely? Anyone done that? I've been searching that from youtube for hours, but only video I saw was some youtuber loosening the bolts inside and then just mashing the inverter out as it didn't release and cutting the wires. I think what he missed was that the orange cover needs to be opened and undo the bolts there to free the phase bars.
User avatar
muehlpower
Posts: 575
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 103 times

Re: Can't get any regen with LDU, help!

Post by muehlpower »

Replacing the entire inverter is not a problem. There are two temperature sensors, the three lines to the stator and the temperature lines to the stator. Everything plugged or screwed. To access the screws for the heatsink you have to remove the busbars. You can reach the three screws for the stator cables after removing the small cover. You probably know about the LSD installation. You can see the location and number of heatsink screws in the third picture. You need an extension for the ratchet.
Attachments
20201017_105813.jpg
20201017_103759.jpg
20201017_112926.jpg
User avatar
mane2
Posts: 177
Joined: Fri Jan 13, 2023 6:32 am
Location: Finland
Has thanked: 20 times
Been thanked: 8 times

Re: Can't get any regen with LDU, help!

Post by mane2 »

Awesome! Thanks! Looks like straight-forward job and way easier than pulling the LSD out and putting it into another.
User avatar
mane2
Posts: 177
Joined: Fri Jan 13, 2023 6:32 am
Location: Finland
Has thanked: 20 times
Been thanked: 8 times

Re: Can't get any regen with LDU, help!

Post by mane2 »

Inverter/powerstage swapped and all good again. Thanks for help.

Hopefully this one lasts longer than 3 days :D
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1025 times
Contact:

Re: Can't get any regen with LDU, help!

Post by johu »

Great :) Leave them contactors closed and you should be fine
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply