Inverter Firmware v4.56.R
- johu
- Site Admin
- Posts: 7182
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 552 times
- Been thanked: 1913 times
- Contact:
Inverter Firmware v4.56.R
Decided to draft another release for the simple reason that v4.55.R had broken the charge mode.
Moreover I decided to test the unified FOC firmware in Touran today and after some small correction it seemed to run well. So this is also the first release where you can choose to use FOC!
https://github.com/jsphuebner/stm32-sin ... ag/v4.56.R
Moreover I decided to test the unified FOC firmware in Touran today and after some small correction it seemed to run well. So this is also the first release where you can choose to use FOC!
https://github.com/jsphuebner/stm32-sin ... ag/v4.56.R
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
doobedoobedo
- Posts: 264
- Joined: Sat Jan 12, 2019 12:39 am
- Location: UK
- Been thanked: 1 time
-
arber333
- Posts: 3795
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 166 times
- Been thanked: 411 times
- Contact:
Re: Inverter Firmware v4.56.R
Compiled files please? I would love to test it in Mazda.johu wrote: ↑Fri Sep 27, 2019 7:54 pm Decided to draft another release for the simple reason that v4.55.R had broken the charge mode.
Moreover I decided to test the unified FOC firmware in Touran today and after some small correction it seemed to run well. So this is also the first release where you can choose to use FOC!
https://github.com/jsphuebner/stm32-sine/tree/v4.56.R
-
doobedoobedo
- Posts: 264
- Joined: Sat Jan 12, 2019 12:39 am
- Location: UK
- Been thanked: 1 time
Re: Inverter Firmware v4.56.R
Here you go, zip contains both FOC and SINE variants.
- Attachments
-
- v4.55.R.zip
- (52.34 KiB) Downloaded 144 times
-
arber333
- Posts: 3795
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 166 times
- Been thanked: 411 times
- Contact:
Re: Inverter Firmware v4.56.R
Hi
I dont know why, but i can only upload hex files. Bin files lock up Olimex
EDIT: I found Johannes post with both codes here: https://github.com/jsphuebner/stm32-sin ... ag/v4.56.R
My question is if i can use FOC to drive ACIM motor with AB encoder?
tnx
-
doobedoobedo
- Posts: 264
- Joined: Sat Jan 12, 2019 12:39 am
- Location: UK
- Been thanked: 1 time
- johu
- Site Admin
- Posts: 7182
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 552 times
- Been thanked: 1913 times
- Contact:
Re: Inverter Firmware v4.56.R
Oh, wrong link from my side. Will correct it.arber333 wrote: ↑Sat Sep 28, 2019 6:07 pm EDIT: I found Johannes post with both codes here: https://github.com/jsphuebner/stm32-sin ... ag/v4.56.R
My question is if i can use FOC to drive ACIM motor with AB encoder?
Never been tried. Somehow I doubt it will work out of the box because there is no slip being generated (unless FOC magically does that)
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
doobedoobedo
- Posts: 264
- Joined: Sat Jan 12, 2019 12:39 am
- Location: UK
- Been thanked: 1 time
Re: Inverter Firmware v4.56.R
I think I've found a bug in the FOC.
First my setup - arduino with a pot and a button - pot is read and the value is sent via CAN, but only if the button is pressed, otherwise zero is sent. I can plot this as potnom. Quick presses of the pot work as expected. However if I hold the button down for a while then release, the motor continues to run for quite some time. This is different to the experimental FOC branch which worked exactly as expected. I've attached my parameters.
First my setup - arduino with a pot and a button - pot is read and the value is sent via CAN, but only if the button is pressed, otherwise zero is sent. I can plot this as potnom. Quick presses of the pot work as expected. However if I hold the button down for a while then release, the motor continues to run for quite some time. This is different to the experimental FOC branch which worked exactly as expected. I've attached my parameters.
- Attachments
-
- params (2).json
- (1.09 KiB) Downloaded 167 times
-
doobedoobedo
- Posts: 264
- Joined: Sat Jan 12, 2019 12:39 am
- Location: UK
- Been thanked: 1 time
Re: Inverter Firmware v4.56.R
here is a plot of motor speed vs pot/potnom you can see the motor continues to run at max rpm (in fact rpm actually rises slightly) following zeroing of pot
- johu
- Site Admin
- Posts: 7182
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 552 times
- Been thanked: 1913 times
- Contact:
Re: Inverter Firmware v4.56.R
Ah yes. So you set fweak to 15Hz and idweak to 1A/Hz. So above 15Hz it will start injecting field weakening current. Since your syncofs isn't 100% correct this also contains a small torque producing component and your motor keeps spinning. Try setting fweak to 1000 for now to disable that and you should have the old behaviour back.
BTW I found it quite dangerous to rev the permanent magnet motor without load.
BTW I found it quite dangerous to rev the permanent magnet motor without load.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
doobedoobedo
- Posts: 264
- Joined: Sat Jan 12, 2019 12:39 am
- Location: UK
- Been thanked: 1 time
-
arber333
- Posts: 3795
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 166 times
- Been thanked: 411 times
- Contact:
Re: Inverter Firmware v4.56.R
I think we blew one Volt power stage because of this, despite Fault pin triggering. I had DC link at 380Vdc and i went to 10000rpm and i think backemf were higher than 450Vdc when DC contactor tripped.... Poor inverter.
-
doobedoobedo
- Posts: 264
- Joined: Sat Jan 12, 2019 12:39 am
- Location: UK
- Been thanked: 1 time
Re: Inverter Firmware v4.56.R
Ah OK thanks, I'm running it at 60V on the bench, so I think I should be fairly safe then?
I've started removing all the ICE stuff from the car, slow but steady progress. I won't be going full voltage until the motor is in the car.
I've started removing all the ICE stuff from the car, slow but steady progress. I won't be going full voltage until the motor is in the car.
-
doobedoobedo
- Posts: 264
- Joined: Sat Jan 12, 2019 12:39 am
- Location: UK
- Been thanked: 1 time
- johu
- Site Admin
- Posts: 7182
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 552 times
- Been thanked: 1913 times
- Contact:
Re: Inverter Firmware v4.56.R
So if syncofs is off and commanding pure d-current will also contain a q component, i.e. the motor will spin. Once you get past fweak the inverter maintains a certain, supposed, d-current and there is no way to stop the motor gracefully. You can send the stop command and hope that back EMF is below 2x IGBT max voltage.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- johu
- Site Admin
- Posts: 7182
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 552 times
- Been thanked: 1913 times
- Contact:
Re: Inverter Firmware v4.56.R
Can you try allowing -1% regen?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9