Page 1 of 1

Bug in recent active low code

Posted: Sat Nov 09, 2019 4:48 pm
by johu
For a while now I observed that whenever the Touran (i.e. Leaf inverter) was stopped, either manually or by some over current or desat event, it would not start back up. Moreover if it had been turned off e.g. with the stop command and then turned back on with the key switch it would immediately jump to a desat error. Poor thing.

So I investigated this in both active high and active low mode. Active high mode is good, but active low mode looks like in the attachment.

It must happen during timer initialization.

So, if you're using active low mode, always power cycle the inverter after a fault or manual shutdown. Will release a bug fix version ASAP.

Re: Bug in recent active low code

Posted: Sat Nov 09, 2019 7:24 pm
by arber333
johu wrote: Sat Nov 09, 2019 4:48 pm For a while now I observed that whenever the Touran (i.e. Leaf inverter) was stopped, either manually or by some over current or desat event, it would not start back up. Moreover if it had been turned off e.g. with the stop command and then turned back on with the key switch it would immediately jump to a desat error. Poor thing.

So I investigated this in both active high and active low mode. Active high mode is good, but active low mode looks like in the attachment.

It must happen during timer initialization.

So, if you're using active low mode, always power cycle the inverter after a fault or manual shutdown. Will release a bug fix version ASAP.
I always use inverting chip like SN7404N. 6 inputs 6 inverted outputs. Hence i just use positive signal.

Re: Bug in recent active low code

Posted: Sun Nov 10, 2019 8:12 pm
by johu

Re: Bug in recent active low code

Posted: Sun Nov 10, 2019 8:21 pm
by arber333
johu wrote: Sun Nov 10, 2019 8:12 pm Fixed, more tomorrow
https://github.com/jsphuebner/stm32-sin ... ag/v4.65.R
Hm...
Does this mean you will fix the ACIM regen surge also?

Re: Bug in recent active low code

Posted: Sun Nov 10, 2019 9:42 pm
by johu
No ACIM code doesn't contain any PI controllers. This is only the FOC code.