Inverter Firmware 5.35.R
Re: Inverter Firmware 5.35.R
Okay, adjusting syncadv seems to have fixed the high speed unintended acceleration after full throttle, but I had to set it to 9, not 11. I don't understand the physics well enough, but I was wondering if maybe that's because the motor is mounted in reverse?
Well either way, I'm just happy It's fixed, thank you.
Well either way, I'm just happy It's fixed, thank you.
- johu
- Site Admin
- Posts: 6227
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 228 times
- Been thanked: 1273 times
- Contact:
Re: Inverter Firmware 5.35.R
Neither do I it seems. Unexpected result!
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Re: Inverter Firmware 5.35.R
Regarding the boat mode, I was investigating an issue with the motor keeping its pace even if pot is set to 0, so guess the boat mode will not be able to deal with this as it is regulating the pot, right? I'm unsure if my issue is due to wrong syncofs or something else. Seems to be related to the amount of resistance from the propeller, as if I test at the dock, motor is always following pot, but when running at speed motor is not obeying pot. When I disable field weakening, motor is always "behaving", both at dock and at speed, but with limited RPM.
-
- Posts: 268
- Joined: Sun Jan 03, 2021 6:12 am
- Has thanked: 69 times
- Been thanked: 24 times
Re: Inverter Firmware 5.35.R
Is it possible to scale the regen from ibooster (CAN messaging) if using dual-channel wired throttle?
- johu
- Site Admin
- Posts: 6227
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 228 times
- Been thanked: 1273 times
- Contact:
Re: Inverter Firmware 5.35.R
Not directly but you can pick up the ibooster info and put it into the regenpreset field of the inverter control message
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 268
- Joined: Sun Jan 03, 2021 6:12 am
- Has thanked: 69 times
- Been thanked: 24 times
Re: Inverter Firmware 5.35.R
oh! That makes sense!
So when I started sending my auto-start via CAN control message, I set everything else in the CAN message as 0. This is probably why I lost my regen at the same time. I'll try to play with the regenpreset. Thank you!
Re: Inverter Firmware 5.35.R
Does this new version allow can control of one oi board from another? If so can you give an example of what the tx and Rx settings would be? Thanks
Re: Inverter Firmware 5.35.R
Follow up to this, I increased my fwcurmax after realizing it should probably be -500 instead of -400. That got be better acceleration at higher speeds (BMS reported 130-some kW and the battery wasn't even full!) but as soon as I let off the accelerator, it started accelerating on its own again.
I noticed the parameters wiki page says this about syncadv: "Must be set so that ud remains at 0 when coasting below field weakening speed". So I did some slow-speed coasting and ud was bouncing between 500 and almost -1500. How close to 0 SHOULD it be? Or is it more like it should be 'centered' around 0? I tried reducing syncadv from 9 to 6 and that seemed to shift the numbers to something closer to +/- 1000. I didn't dare drive faster at that setting though.
Is it possible that I should be setting syncadv to something like -10 (Or, I guess, 65525) because the motor is running in reverse?
- johu
- Site Admin
- Posts: 6227
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 228 times
- Been thanked: 1273 times
- Contact:
Re: Inverter Firmware 5.35.R
yes
No, that is handled in code
Code: Select all
advancedAngle = angle + dir * FP_TOINT(FP_MUL(Param::Get(Param::syncadv), frqFiltered));
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Re: Inverter Firmware 5.35.R
Okay, perfect, thanks. I'll grab another log with frequency and iq as soon as I'm able. I'll have to do some more testing with different numbers but it's looking like I'll end up somewhere around 6 for syncadv. Very interesting, I'm glad you left it as a parameter rather than hard coding it!
-
- Posts: 268
- Joined: Sun Jan 03, 2021 6:12 am
- Has thanked: 69 times
- Been thanked: 24 times
Re: Inverter Firmware 5.35.R
I know Tesla cars limit regen when battery >90%.
On my conversion I set the following. Is there perhaps a more elegant way of doing it? (BMS_SOC is in 0.1%, and I have 5% buffer)
On my conversion I set the following. Is there perhaps a more elegant way of doing it? (BMS_SOC is in 0.1%, and I have 5% buffer)
Code: Select all
if (BMS_SOC>=900) {Drive_Cmd_RegenPreset=0;} //apply no regen
if (BMS_SOC<=850) {Drive_Cmd_RegenPreset=100;} //apply fully defined regen
- johu
- Site Admin
- Posts: 6227
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 228 times
- Been thanked: 1273 times
- Contact:
Re: Inverter Firmware 5.35.R
You could make it more gradual. Like
Code: Select all
RegenPreset=100 - (BMS_SOC - 850) * 2
RegenPreset = MAX(0, RegenPreset)
RegenPreset = MIN(100, RegenPreset)
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9