Inverter Firmware 5.35.R

User avatar
Romale
Posts: 523
Joined: Fri May 20, 2022 4:16 pm
Location: Romania
Has thanked: 303 times
Been thanked: 75 times

Re: Inverter Firmware 5.35.R

Post by Romale »

johu wrote: Mon Mar 24, 2025 7:14 pm 8) yes a more or less known limitation. If syncadv doesn't solve it I have no idea :(
The syncadv parameter is set for each of its units of value by how many units will the syncofs parameter change? will it change for the better or for the less?
when I increase the syncofs value by 1500, acceleration becomes controllable when moving forward, but it gets out of control earlier when moving backward. if the syncofs is reduced, then on the contrary, control returns for backward movement, but earlier it is lost when moving forward.
if reducing the syncadv will shift the angle of the syncofs towards an increase in the chosen direction of movement, then yes, this can definitely solve this problem.
you just need to know the ratio, by how many units does the syncofs change from the syncadv change?
evil neodymium :twisted:
User avatar
johu
Site Admin
Posts: 6618
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 341 times
Been thanked: 1484 times
Contact:

Re: Inverter Firmware 5.35.R

Post by johu »

The formula is

Code: Select all

advancedAngle = angle + dir * syncadv * frq
So syncadv=10 means at 100 Hz syncofs is shifted by 1000 digits in the direction of rotation. With what you observe it should rather be 15 then?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Romale
Posts: 523
Joined: Fri May 20, 2022 4:16 pm
Location: Romania
Has thanked: 303 times
Been thanked: 75 times

Re: Inverter Firmware 5.35.R

Post by Romale »

This is valuable information!
I'll definitely check it out.
yes, it is likely that the correct syncadv will be 15

is it equal for every 100 hz? (200 hz = offset by 2000?) or once when a given frequency is reached?
evil neodymium :twisted:
User avatar
johu
Site Admin
Posts: 6618
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 341 times
Been thanked: 1484 times
Contact:

Re: Inverter Firmware 5.35.R

Post by johu »

It is linear with frequency
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Romale
Posts: 523
Joined: Fri May 20, 2022 4:16 pm
Location: Romania
Has thanked: 303 times
Been thanked: 75 times

Re: Inverter Firmware 5.35.R

Post by Romale »

so. the correct syncofs was 600.
when the fwcurmax is -210, the motor does not stop (syncadv = 10), setting the syncofs to 1100 stops the motor perfectly at syncadv 10
. next, I returned the syncofs to the correct 600 units, and syncadv = 15. the motor did not stop. I increased by 5 and then by 10 units, and only at syncadv = 100 did the motor start to stop!!! this is probably a very big offset.
for understanding: the battery voltage in this experiment is 45 volts, the load on the motor shaft is 0 (gearbox only)
. I conducted the experiments on an electric motorcycle that I am currently building with a rear Outlander motor and a Honda ima inverter.
IMG_20250325_155726.jpg
params_Ural.json
(1.61 KiB) Downloaded 328 times
evil neodymium :twisted:
User avatar
Romale
Posts: 523
Joined: Fri May 20, 2022 4:16 pm
Location: Romania
Has thanked: 303 times
Been thanked: 75 times

Re: Inverter Firmware 5.35.R

Post by Romale »

I think it's worth checking the change in the syncadv parameter in the countryside on a forest road without people and cars, under load.
but it won't be soon. The weather doesn't allow it yet.
When I check it, I will definitely give you feedback.
evil neodymium :twisted:
P.S.Mangelsdorf
Posts: 1049
Joined: Tue Sep 17, 2019 8:33 pm
Location: Raleigh, NC, USA
Has thanked: 221 times
Been thanked: 257 times

Re: Inverter Firmware 5.35.R

Post by P.S.Mangelsdorf »

johu wrote: Mon Mar 24, 2025 11:18 am Well you could try pinswap=PWMOutput13 but you'd also have to physically swap encoder A/B channel
Doing that solved it, thank you!
If at first you don't succeed, buy a bigger hammer.

1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024

https://www.youtube.com/@MangelsdorfSpeed
User avatar
johu
Site Admin
Posts: 6618
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 341 times
Been thanked: 1484 times
Contact:

Re: Inverter Firmware 5.35.R

Post by johu »

Thats great! So I guess I will pre-program that as it seems that way around for most drive units
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
P.S.Mangelsdorf
Posts: 1049
Joined: Tue Sep 17, 2019 8:33 pm
Location: Raleigh, NC, USA
Has thanked: 221 times
Been thanked: 257 times

Re: Inverter Firmware 5.35.R

Post by P.S.Mangelsdorf »

johu wrote: Wed Mar 26, 2025 7:04 am Thats great! So I guess I will pre-program that as it seems that way around for most drive units
Yeah, and I'm almost certain I had previously had to swap AB to get it running, so basically I just swapped them back to stock.
If at first you don't succeed, buy a bigger hammer.

1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024

https://www.youtube.com/@MangelsdorfSpeed
User avatar
johu
Site Admin
Posts: 6618
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 341 times
Been thanked: 1484 times
Contact:

Re: Inverter Firmware 5.35.R

Post by johu »

Romale wrote: Tue Mar 25, 2025 12:58 pm when the fwcurmax is -210, the motor does not stop (syncadv = 10), setting the syncofs to 1100 stops the motor perfectly at syncadv 10
. next, I returned the syncofs to the correct 600 units, and syncadv = 15. the motor did not stop. I increased by 5 and then by 10 units, and only at syncadv = 100 did the motor start to stop!!! this is probably a very big offset.
I just thought of the difference between a static syncofs offset and the dynamic syncadv: syncofs is applied to both forward and backward Clarke tranformation wheres syncadv is only applied to backward transformation.
Makes me wonder should I maybe apply syncadv to forward Clarke and 2*syncadv to backward Clarke?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Romale
Posts: 523
Joined: Fri May 20, 2022 4:16 pm
Location: Romania
Has thanked: 303 times
Been thanked: 75 times

Re: Inverter Firmware 5.35.R

Post by Romale »

johu wrote: Mon Mar 31, 2025 12:48 pm I just thought of the difference between a static syncofs offset and the dynamic syncadv: syncofs is applied to both forward and backward Clarke tranformation wheres syncadv is only applied to backward transformation.
Makes me wonder should I maybe apply syncadv to forward Clarke and 2*syncadv to backward Clarke?
if the syncadv parameter does exactly the same thing as syncofs, but precisely in the current direction of movement, then this will forever solve the problem of uncontrolled acceleration!!
evil neodymium :twisted:
User avatar
Romale
Posts: 523
Joined: Fri May 20, 2022 4:16 pm
Location: Romania
Has thanked: 303 times
Been thanked: 75 times

Re: Inverter Firmware 5.35.R

Post by Romale »

I am ashamed, but I am not familiar with Clark))
however, I am absolutely sure that if every 1 syncadv shifts the real syncofs by 100 values, then with a syncadv value of 20 we are guaranteed to permanently solve the problem of loss of control.
evil neodymium :twisted:
Zieg
Posts: 339
Joined: Mon Apr 25, 2022 3:31 am
Has thanked: 142 times
Been thanked: 138 times

Re: Inverter Firmware 5.35.R

Post by Zieg »

Sorry, does this bit of control theory apply to induction only, or pmsm as well? I've been playing with syncadv on my leaf motor too, not sure if this discussion applies to it though.
User avatar
Romale
Posts: 523
Joined: Fri May 20, 2022 4:16 pm
Location: Romania
Has thanked: 303 times
Been thanked: 75 times

Re: Inverter Firmware 5.35.R

Post by Romale »

Zieg wrote: Mon Mar 31, 2025 7:43 pm , ...or pmsm as well? ...
It's about pmsm (foc)
evil neodymium :twisted:
User avatar
johu
Site Admin
Posts: 6618
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 341 times
Been thanked: 1484 times
Contact:

Re: Inverter Firmware 5.35.R

Post by johu »

Here is a test where syncadv is applied for forward transform and applied 2x for backward transform. I'm too afraid to test it with full 400V ;)

https://github.com/jsphuebner/stm32-sin ... 4215111311
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Romale
Posts: 523
Joined: Fri May 20, 2022 4:16 pm
Location: Romania
Has thanked: 303 times
Been thanked: 75 times

Re: Inverter Firmware 5.35.R

Post by Romale »

I don't have any projects with 400 volts right now.
only 130 volts are at hand, but I will definitely check!
evil neodymium :twisted:
User avatar
Romale
Posts: 523
Joined: Fri May 20, 2022 4:16 pm
Location: Romania
Has thanked: 303 times
Been thanked: 75 times

Re: Inverter Firmware 5.35.R

Post by Romale »

Screenshot_2025-04-02-13-43-56-75_40deb401b9ffe8e1df2f1cc5ba480b12.jpg
it is not possible to download the .bin file
evil neodymium :twisted:
User avatar
johu
Site Admin
Posts: 6618
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 341 times
Been thanked: 1484 times
Contact:

Re: Inverter Firmware 5.35.R

Post by johu »

You need to log in to github
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Romale
Posts: 523
Joined: Fri May 20, 2022 4:16 pm
Location: Romania
Has thanked: 303 times
Been thanked: 75 times

Re: Inverter Firmware 5.35.R

Post by Romale »

johu wrote: Wed Apr 02, 2025 8:32 am Here is a test where syncadv is applied for forward transform and applied 2x for backward transform. I'm too afraid to test it with full 400V ;)

https://github.com/jsphuebner/stm32-sin ... 4215111311

I was able to check so far at low voltage, but even now, with syncadv = 10 and fwcurmax = -210, I accelerated the motor more than twice from the base speed and it is super stable, lowering the throttle position is incredibly smooth, like never before!!!
special thanks for the high charging current !!!!
I think it's a victory.
in the coming days, I will test this on a car with a 300 volt system.
Base speed:
Screenshot_2025-04-03-17-40-35-17_40deb401b9ffe8e1df2f1cc5ba480b12~2.jpg

accelerated speed:
Screenshot_2025-04-03-17-44-58-68_40deb401b9ffe8e1df2f1cc5ba480b12~2.jpg
evil neodymium :twisted:
User avatar
johu
Site Admin
Posts: 6618
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 341 times
Been thanked: 1484 times
Contact:

Re: Inverter Firmware 5.35.R

Post by johu »

Wow, that is super cool!
I might test myself this weekend
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Zieg
Posts: 339
Joined: Mon Apr 25, 2022 3:31 am
Has thanked: 142 times
Been thanked: 138 times

Re: Inverter Firmware 5.35.R

Post by Zieg »

So is the net effect more power in field weakening? One thing I'm still a bit worried about was that at higher speeds (I think about 8000 rpm on a Leaf motor) I was still getting occasional unwanted acceleration. Changing the syncadv seemed to help, but now anything that has to do with syncadv makes me wary, haha.
User avatar
Romale
Posts: 523
Joined: Fri May 20, 2022 4:16 pm
Location: Romania
Has thanked: 303 times
Been thanked: 75 times

Re: Inverter Firmware 5.35.R

Post by Romale »

Zieg wrote: Thu Apr 03, 2025 4:39 pm So is the net effect more power in field weakening? One thing I'm still a bit worried about was that at higher speeds (I think about 8000 rpm on a Leaf motor) I was still getting occasional unwanted acceleration. Changing the syncadv seemed to help, but now anything that has to do with syncadv makes me wary, haha.
I don't know about the power, but the stability has definitely improved. I think this new change will eliminate unwanted acceleration altogether.
evil neodymium :twisted:
Zieg
Posts: 339
Joined: Mon Apr 25, 2022 3:31 am
Has thanked: 142 times
Been thanked: 138 times

Re: Inverter Firmware 5.35.R

Post by Zieg »

Is that how the Clarke transformation functions? I'm not sure what's being calculated there. I did notice that more syncadv caused the unwanted acceleration to happen at lower speeds.
Zieg
Posts: 339
Joined: Mon Apr 25, 2022 3:31 am
Has thanked: 142 times
Been thanked: 138 times

Re: Inverter Firmware 5.35.R

Post by Zieg »

Actually thinking about it a bit more, is the backward transformation used for regen or coasting? I ask because I've dialed my syncadv back to 6 and still get unwanted acceleration at highway speed. It's odd though, it only happens when I am WOT and then snap my foot off the pedal. I have a bit of off throttle regen but not a lot. The effect is that I stop accelerating when I snap my foot back, then an instant later the car starts accelerating again. I have to press the brakes HARD until it suddenly stops trying to accelerate - like a switch being flipped. Wondering if this change might solve that problem. As it stands I don't want ti race the car for fear of it happening on track.
User avatar
johu
Site Admin
Posts: 6618
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 341 times
Been thanked: 1484 times
Contact:

Re: Inverter Firmware 5.35.R

Post by johu »

Forward and backward transformation are constantly run, no matter of the operating mode or torque direction.

Which firmware are you testing with? At which motor rpm do you loose control?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply