Inverter Firmware v4.76.R

User avatar
johu
Site Admin
Posts: 6708
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 367 times
Been thanked: 1536 times
Contact:

Inverter Firmware v4.76.R

Post by johu »

I released a new firmware that, most noticeably, fixes issues with the rev limiter. In both FOC and sine version it would cause over current trips when hit. Also filtered various other values that were flickering too much, which will improve driving on FOC.

https://github.com/jsphuebner/stm32-sin ... ag/v4.76.R
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
arber333
Posts: 3562
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 134 times
Been thanked: 335 times
Contact:

Re: Inverter Firmware v4.76.R

Post by arber333 »

Hi Johannes

I must commend you...
Today I tried the latest Sine firmware 4.76R and lo and behold! I have no more regen shaking and surging. This is so smooth i am thrilled.
I noticed at low end RPM there is still some shaking but only in 2nd gear which i think has some gear rattle. So it is a mechanical in nature not software.

I really only wish for resolver code in ACIM code. Can this be done?

Another thing i noticed in old code was OC trip once in a while. System attributed this to throttle signal.
I cleaned the rev2 board with nitro thinner and dried it i uploaded new firmware and there were no more OC trips. I went and checked for errors and i got several warnings. It seems throttle signal was falling out. I tried to record the throttle movement very slowly and i got attached pic.
Why do you think that would happen?

tnx
Attachments
throttle error.jpg
User avatar
johu
Site Admin
Posts: 6708
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 367 times
Been thanked: 1536 times
Contact:

Re: Inverter Firmware v4.76.R

Post by johu »

arber333 wrote: Fri Mar 06, 2020 2:22 pm Hi Johannes

I must commend you...
Today I tried the latest Sine firmware 4.76R and lo and behold! I have no more regen shaking and surging. This is so smooth i am thrilled.
I noticed at low end RPM there is still some shaking but only in 2nd gear which i think has some gear rattle. So it is a mechanical in nature not software.
Good! Not even sure what I changed since 4.12
arber333 wrote: Fri Mar 06, 2020 2:22 pm I really only wish for resolver code in ACIM code. Can this be done?
Test attachment at your own risk, I haven't Polo-tested it. I basically removed all synchronous code so now asynchronous mode is selected regardless of the shaft feedback type.
arber333 wrote: Fri Mar 06, 2020 2:22 pm several warnings. It seems throttle signal was falling out. I tried to record the throttle movement very slowly and i got attached pic.
Why do you think that would happen?
Hmm, bad power connection to throttle? Because both channels show the same drop
Attachments
stm32_sine.zip
(64.7 KiB) Downloaded 416 times
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Re: Inverter Firmware v4.76.R

Post by yaroslav »

Can I add an temperature sensor the inverter of this type KTY81/110,112?

https://www.chipdip.ru/product/kty81-11 ... st_product
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Re: Inverter Firmware v4.76.R

Post by yaroslav »

User avatar
johu
Site Admin
Posts: 6708
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 367 times
Been thanked: 1536 times
Contact:

Re: Inverter Firmware v4.76.R

Post by johu »

You want to add it? sure. misc/temp_sensor.ods and copy last column to calc_temp.h and add new lookup table to calc_temp.c in various spots. param_prj.h needs the enum extended.
Is this for motor or inverter heatsink?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Re: Inverter Firmware v4.76.R

Post by yaroslav »

This is for the inverter, Check it correctly.
Attachments
param_prj.h
(20 KiB) Downloaded 513 times
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Re: Inverter Firmware v4.76.R

Post by yaroslav »

I will try to add it in the file temp_sensor.ods
User avatar
johu
Site Admin
Posts: 6708
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 367 times
Been thanked: 1536 times
Contact:

Re: Inverter Firmware v4.76.R

Post by johu »

Yes do that, I can add it to code if you want. param_prj is a bit tricky, you can't have "," in an enum because it's the delimiter. And also the max limit must be extended.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
arber333
Posts: 3562
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 134 times
Been thanked: 335 times
Contact:

Re: Inverter Firmware v4.76.R

Post by arber333 »

johu wrote: Fri Mar 06, 2020 5:58 pm Hmm, bad power connection to throttle? Because both channels show the same drop
I think i need to buy a Prius throttle pedal connector. I thought i could get away with small 3mm fastons but i guess they are somehow loosened up on the header.
Lesson learned again; "car is high vibration enviroment!" we need to designaccordingly.

A
User avatar
SciroccoEV
Posts: 370
Joined: Thu Oct 10, 2019 1:50 pm
Location: Luton UK
Been thanked: 15 times

Re: Inverter Firmware v4.76.R

Post by SciroccoEV »

arber333 wrote: Sat Mar 07, 2020 10:34 am I think i need to buy a Prius throttle pedal connector. I thought i could get away with small 3mm fastons but i guess they are somehow loosened up on the header.
Lesson learned again; "car is high vibration enviroment!" we need to designaccordingly.
Which connector is that, the small one, or the larger type? I have some of the larger type in stock and some of the smaller on their way.
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Re: Inverter Firmware v4.76.R

Post by yaroslav »

I measured the parameters and filled in a new table, the work was long
Attachments
temp_sensors.ods
(46.43 KiB) Downloaded 522 times
User avatar
Thatguyoverthere
Posts: 34
Joined: Fri Jun 28, 2019 5:04 am
Location: California, USA
Been thanked: 1 time

Re: Inverter Firmware v4.76.R

Post by Thatguyoverthere »

For the Prius throttle pedal connector, search "7283-1968" on AliExpress, and if you don't mind waiting, you can order them from there. I got mine and test fitted, everything fits like oem.
https://github.com/kaelinwilson
Leaf Motor/Gen1 Camry Inverter
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Re: Inverter Firmware v4.76.R

Post by yaroslav »

Hi, Johu
did you ne add a temperature sensor to code?
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Re: Inverter Firmware v4.76.R

Post by yaroslav »

I understand that the maximum glide can be set to 10 Hz, then can I extend this range, for example, I need 50 Hz?
User avatar
johu
Site Admin
Posts: 6708
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 367 times
Been thanked: 1536 times
Contact:

Re: Inverter Firmware v4.76.R

Post by johu »

Sorry, I was away. Just a question: you say you measured the parameters? Why didn't you just use the table in the data sheet? Is this a motor temperature sensor on the dual 500 Ohm input?
yaroslav wrote: Mon Mar 16, 2020 8:31 pm I understand that the maximum glide can be set to 10 Hz, then can I extend this range, for example, I need 50 Hz?
What is glide?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
arber333
Posts: 3562
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 134 times
Been thanked: 335 times
Contact:

Re: Inverter Firmware v4.76.R

Post by arber333 »

johu wrote: Wed Mar 25, 2020 7:55 am Sorry, I was away. Just a question: you say you measured the parameters? Why didn't you just use the table in the data sheet? Is this a motor temperature sensor on the dual 500 Ohm input?
yaroslav wrote: Mon Mar 16, 2020 8:31 pm I understand that the maximum glide can be set to 10 Hz, then can I extend this range, for example, I need 50 Hz?
What is glide?
I think he means slip. It is a google translate thing...
But 50Hz slip is way too much. That would give a very weak magnetic force at huge field rotation.
Maybe he mixed up FW frequency value with maxslip? Which parameter would that be?
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Re: Inverter Firmware v4.76.R

Post by yaroslav »

johu wrote: Wed Mar 25, 2020 7:55 am Sorry, I was away. Just a question: you say you measured the parameters? Why didn't you just use the table in the data sheet? Is this a motor temperature sensor on the dual 500 Ohm input?
yaroslav wrote: Mon Mar 16, 2020 8:31 pm I understand that the maximum glide can be set to 10 Hz, then can I extend this range, for example, I need 50 Hz?
What is glide?
slip
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Re: Inverter Firmware v4.76.R

Post by yaroslav »

The translator translated it incorrectly
User avatar
johu
Site Admin
Posts: 6708
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 367 times
Been thanked: 1536 times
Contact:

Re: Inverter Firmware v4.76.R

Post by johu »

Of course it can be extended, but more than 10Hz is beyond any reason. Why would you need more?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Re: Inverter Firmware v4.76.R

Post by yaroslav »

I once asked the possibility of combining the inverter with the motor on the combined winding, here:

viewtopic.php?f=3&t=501

I think that it needs more sliding for proper operation, if who knows what is the difference between the sliding and current control of these motors from the standard ones?
User avatar
johu
Site Admin
Posts: 6708
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 367 times
Been thanked: 1536 times
Contact:

Re: Inverter Firmware v4.76.R

Post by johu »

Slip frequency solely depends on the electric properties of the rotor, not the stator.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Re: Inverter Firmware v4.76.R

Post by yaroslav »

I have a good start and good acceleration dynamics on this engine, if slipmin=7hz then maybe you have recommendations for what to put slipmax?
arber333
Posts: 3562
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 134 times
Been thanked: 335 times
Contact:

Re: Inverter Firmware v4.76.R

Post by arber333 »

yaroslav wrote: Wed Mar 25, 2020 7:58 pm I have a good start and good acceleration dynamics on this engine, if slipmin=7hz then maybe you have recommendations for what to put slipmax?
Hm... 7Hz is a small motor. I would suggest 2x slipmin maybe 2.5x. That would certainly require more than 14Hz.

Try to setup slipmin according to this procedure down on the end of page https://openinverter.org/wiki/Parameters
yaroslav
Posts: 176
Joined: Tue Aug 13, 2019 4:32 pm
Location: Russia, Stavropol
Has thanked: 14 times
Been thanked: 5 times

Re: Inverter Firmware v4.76.R

Post by yaroslav »

According to the recommendation, my need to put a 14 Hz slip or a little more, but I can't put it because of the 10 Hz limit
Post Reply