I'm currently working on a project in which I want to operate a LDU in a static test environment. Therefore the initial spinup test is basically my whole setup and I need it to work flawlessly. But I have issues:
The LDU won't spin faster than 12.8 RPM, except when alowing for more rotor slip (about 23 RPM than)
I constantly get Encoder Errors but I have checked the cable shield, the continuity and even swapped the sensor
I often loose the connection between ESP and STM
Here is a video in which I go over my parameters and setup:
If you have any suggestions or questions feel free to comment, I will try to try them as soon as I'm back in the shop.
Re: My LDU won't spin up correctly
Posted: Fri Apr 17, 2026 6:53 pm
by catphish
Very slow speed is almost always the result of an encoder problem, and if you are getting encoder errors then that re-enforces this assumption. The first thing to try would be to swap the two data lines to the encoder, in case it is running backwards, and also triple check that its power supply polarity is correct. If possible, attach an osilloscope to the encoder data lines and turn the motor by hand, and see if they show clean signals.
To explain why this happens, the way the motor control works is that the sine wave sent to the motor is a specific frequency higher than the speed of the rotor (as measured by the encoder). So if the encoder always reads zero, then the sine wave frequency will always be the slip.
Losing connection between the ESP and the STM is a common problem, though I've never properly understood what causes it.
Re: My LDU won't spin up correctly
Posted: Mon Apr 20, 2026 12:08 pm
by OtterTech
Before changing the encoder cable I did the pin swap and also had an oscilloscope attached to the data lines. I also tried a new encoder. Here are the results:
Cable swap to a properly shielded one: no change
Pin swap: no change
Encoder swap: no change
The oscilloscope had an incredibly noisy but recognizable quadrature signal.
I will definitively hook up an oscilloscope again and check the pinout.
Is there a reliable reference for the pinout as I had trouble finding something about the order of connection on the encoder side. The 23 pin is well documented.
Re: My LDU won't spin up correctly
Posted: Tue Apr 21, 2026 11:34 am
by OtterTech
Some updates but no change in the issues:
I connected a scope to the encoder on the oi board, directly to the STM pins here is the image I captured at 12.8 RPM:
I also swapped the A and B pins on the encoder again without a change in behaviour.
Re: My LDU won't spin up correctly
Posted: Tue Apr 21, 2026 11:36 am
by P.S.Mangelsdorf
Please share your parameters
Re: My LDU won't spin up correctly
Posted: Tue Apr 21, 2026 12:40 pm
by OtterTech
All default except UDCmin, throttle via CAN and disabled regen. The end of the video has a slow scroll through
I will try again using these parameters. Yes they are generic default. I assumed that they would work as a starting point for further tuning.
Re: My LDU won't spin up correctly
Posted: Wed Apr 22, 2026 12:17 am
by P.S.Mangelsdorf
OtterTech wrote: ↑Tue Apr 21, 2026 3:59 pm
Yes they are generic default. I assumed that they would work as a starting point for further tuning.
The best thing about the OI control board is you have control of every parameter. The worst thing about the OI control board is you have control of every parameter.
Its always good to start with a known set of parameters for that specific inverter/motor combination, if its available. There are plenty of parameters that are set-and-forget, that are the EV equivalent of telling an ECU "how many cylinders" or "displacement" or "cam profile", which may be very different between different inverters. You might get motion if they're wrong, but you won't get a good result.
The ones Johannes shared are a good starting point. I've also attached my old base tune. I've got to pull a more recent one off my workshop laptop at some point, but this one was a pretty good street tune with a base LDU.
Re: My LDU won't spin up correctly
Posted: Wed Apr 22, 2026 9:18 am
by OtterTech
P.S.Mangelsdorf wrote: ↑Wed Apr 22, 2026 12:17 am
The ones Johannes shared are a good starting point. I've also attached my old base tune. I've got to pull a more recent one off my workshop laptop at some point, but this one was a pretty good street tune with a base LDU.
I will also have a look at those. Let's hope they work on performance LDU with the sole goal of running on a teststand.
Re: My LDU won't spin up correctly
Posted: Wed Apr 22, 2026 9:30 am
by OtterTech
OtterTech wrote: ↑Tue Apr 21, 2026 11:34 am
Some updates but no change in the issues:
I connected a scope to the encoder on the oi board, directly to the STM pins here is the image I captured at 12.8 RPM:
Image
I also swapped the A and B pins on the encoder again without a change in behaviour.
Any additional ideas reguarding the encoder setup? As far as I understand swapping the encoder A and B should result in notably different performance, which is does not for me. I'm still capped at 12.8 RPM, reguardless of voltage (tested 24-80V). Therefore I think that there is a different problem interfering with the performance before encoder issues can show.
Also there is a lot of noise on the signal that gets higher the more current flows through the inverter. I.e. when accelerationg and taking away throttle I have more noise. The signal is clean when idle (and turning the motor by hand).
Re: My LDU won't spin up correctly
Posted: Wed Apr 22, 2026 9:53 am
by johu
No additional ideas, first try one of the parameter sets and report back. The noise might also couple into the test leads.
Be aware that not all parameters are shown (to keep you from changing them). Using the upload parameter function will apply them anyway. It means that trying to apply parameters manually will miss the most important ones.
Re: My LDU won't spin up correctly
Posted: Wed Apr 22, 2026 11:47 am
by P.S.Mangelsdorf
OtterTech wrote: ↑Wed Apr 22, 2026 9:18 am
I will also have a look at those. Let's hope they work on performance LDU with the sole goal of running on a teststand.
Yes, a base tune will work in a sport/performance LDU. The sport version just allows you to turn up the power, which I've mostly done by raising fslipmax and lowering fweak. (I switched from a base to sport inverter)
There are two LDU tuning threads, on one of them Jon Volk has a good outline of what he found while tuning his LDU. What I've learned in addition to that is that the LDU is a bit sensitive to traction. If you have a lot of traction, it will very easily draw too much current and the phases will shut themselves down, requiring a full power cycle to restart. Jon's tune got a bit more aggressive than mine, I believe that was in part because he reached wheelslip before me. I'm still working on changes to chassis and tire setup to soften the hit and let me have more power.
Re: My LDU won't spin up correctly
Posted: Wed Apr 22, 2026 5:32 pm
by OtterTech
johu wrote: ↑Wed Apr 22, 2026 9:53 am
Be aware that not all parameters are shown (to keep you from changing them). Using the upload parameter function will apply them anyway. It means that trying to apply parameters manually will miss the most important ones.
I would have expected the hidden ones to be set by some flags in the hardware and should never be adjusted because they are correct for that hardware. I.e. number of phases on LDU won't change ever. I was already wondering why AB and BA encoder mode are not available anymore but you have to instead change the pins on the plug.
But if they have to be adjusted what is the correct way of going about it except uploading and maybe modifying a working tune? Downloading the parameters from the inverter does also hide the protected ones.
Re: My LDU won't spin up correctly
Posted: Wed Apr 22, 2026 5:35 pm
by OtterTech
P.S.Mangelsdorf wrote: ↑Wed Apr 22, 2026 11:47 am
Yes, a base tune will work in a sport/performance LDU. The sport version just allows you to turn up the power, which I've mostly done by raising fslipmax and lowering fweak. (I switched from a base to sport inverter)
There are two LDU tuning threads, on one of them Jon Volk has a good outline of what he found while tuning his LDU. What I've learned in addition to that is that the LDU is a bit sensitive to traction. If you have a lot of traction, it will very easily draw too much current and the phases will shut themselves down, requiring a full power cycle to restart. Jon's tune got a bit more aggressive than mine, I believe that was in part because he reached wheelslip before me. I'm still working on changes to chassis and tire setup to soften the hit and let me have more power.
Well I won't ever experience any wheelslip as I won't have wheels
The setup is for a motor test stand to check drive units for bearing defects or inbalances. The whole thing will be used for motor repair in an independant EV repais shop.
Re: My LDU won't spin up correctly [SOLVED]
Posted: Wed Apr 22, 2026 7:58 pm
by johu
OtterTech wrote: ↑Wed Apr 22, 2026 5:32 pm
I would have expected the hidden ones to be set by some flags in the hardware and should never be adjusted because they are correct for that hardware
Yes this would make sense in most cases. Just recently someone ran a synchronous motor with an SDU inverter, for whatever reason. It's niche but cool that it is possible.
What I do for the boards on the shop is flash a binary image with correct parameters and the ones hidden that mustn't be changed.
You can unhide by typing "flag <name> !hidden" to show it again.
johu wrote: ↑Wed Apr 22, 2026 7:58 pm
Yes this would make sense in most cases. Just recently someone ran a synchronous motor with an SDU inverter, for whatever reason. It's niche but cool that it is possible.
What I do for the boards on the shop is flash a binary image with correct parameters and the ones hidden that mustn't be changed.
You can unhide by typing "flag <name> !hidden" to show it again.
I have now managed to correctly spin up the motor.
Loading the parameters from file / website proved difficult but the "flag <name> !hidden" command made it possible to merge my settings with the provided hidden ones.
I would think that an option like enabeling android dev mode by repeatadly sending the same command via CAN or tapping a button on the web UI might make it easier to do the initial setup or to simply check is somethin is a miss. -- Just a thought
Interestingly the Borad was bought directly from you but I might have reset it somehow at one time. Well now its running in AB mode with 36 PPR istead of Single mode with 60 PPR (and many more changes).
Re: My LDU won't spin up correctly
Posted: Mon Apr 27, 2026 5:42 pm
by johu
Yes maybe you hit the set default button at some point that was still displayed in old web frontends. It is now removed.
Good idea with dev mode, I'm sure Claude will do it for us
Re: My LDU won't spin up correctly
Posted: Tue Apr 28, 2026 10:38 am
by OtterTech
I think I reset via the CAN tool after it didnt work