Mini Mainboard design flaw

Post Reply
User avatar
johu
Site Admin
Posts: 6297
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 245 times
Been thanked: 1303 times
Contact:

Mini Mainboard design flaw

Post by johu »

I'm currently working on the Zoe inverter, more specifically on the rotor exciter controller. While testing I noticed a strange, periodic sound from my little test inductor. Scoping the PWM showed it dropping out every second

To cut it short it turned out to be caused by the SDO bursts from the wifi module. The CAN transceiver pulls so much power from the 3.3V rail that the ADC reference voltage dips and thus all ADC readings are off:
grafik.png
Regular periodic CAN messages have the same effect, just not as pronounced:
grafik.png
I also checked the 5V rail but it is not or hardly at all affected.

I think the problem never showed because nobody used oic or ESP for periodic data polls. Also the other channels use more of the ADC dynamic range. The 50 mV/A from the exciter current feedback completely vanish in the noise floor and the P controller diligently tries to counter the seemingly excessive current by shutting down the PWM.

I will look for various hardware fixes, probably just more decoupling for the CAN transceiver. I'm thinking not all hardware may be affected because mostly a stronger 3.3V LDO is used and also more decoupling. Most of all Tesla boards have chunky tantalum caps on the 3.3V rail. The Mini mainboard is a bit minimalist in that regard.
Also I think the sine firmware won't care at all as it only uses heavily filtered ADC readings.

For now the recommendations are, mostly for Mini Mainboard based designs:
- Do not poll large amounts of data via OIC or the ESP wifi module while driving
- Try to use 100ms CAN send interval if practical
- Try to stuff most data into a single CAN message
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
johu
Site Admin
Posts: 6297
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 245 times
Been thanked: 1303 times
Contact:

Re: Mini Mainboard design flaw

Post by johu »

Added 110 uF of decoupling, still 30 mV
grafik.png
It could be the 3.3V LDO is just too weak
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
johu
Site Admin
Posts: 6297
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 245 times
Been thanked: 1303 times
Contact:

Re: Mini Mainboard design flaw

Post by johu »

Ok, decoupling doesn't really help. What yields much better results is installing a separate LDO for the CAN transceiver:
grafik.png
It's the super cheap JLC Basic part, so no sweat
https://jlcpcb.com/partdetail/TorexSemi ... 2MRG/C5446

Here's how I did it
1730827278612.jpg
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
janosch
Posts: 323
Joined: Tue Jun 30, 2020 9:23 am
Location: London, UK
Has thanked: 90 times
Been thanked: 81 times
Contact:

Re: Mini Mainboard design flaw

Post by janosch »

Good timing, we were about to test the mini board with our little motor on the desk for the EV kit.

Saved me a headache, surprised this didn't show up on previous mainboard iterations, or did you re-work the power supply for mini?
User avatar
johu
Site Admin
Posts: 6297
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 245 times
Been thanked: 1303 times
Contact:

Re: Mini Mainboard design flaw

Post by johu »

No, it's been like that for ages. It doesn't seem to noticeably affect operation otherwise, that's why nobody noticed.

The previous larger V3 mainboard still had the larger 1117 800mA regulator. Also all of Damiens designs use that one. So I reckon the problem might not be as pronounced on those
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
rstevens81
Posts: 373
Joined: Sun Dec 22, 2019 10:36 am
Location: Bristol, UK
Has thanked: 28 times
Been thanked: 105 times

Re: Mini Mainboard design flaw

Post by rstevens81 »

this problem would also probably made worse by the esp8266? although its obsoleted by the lillgo tcan now.
Rule 1 of EV Club is don't buy a rust bucket....
Which rule does everyone forget 🤪
User avatar
bexander
Posts: 857
Joined: Tue Jun 16, 2020 6:00 pm
Location: Gothenburg, Sweden
Has thanked: 67 times
Been thanked: 96 times

Re: Mini Mainboard design flaw

Post by bexander »

In my car (Yaris OI-board) I have patched in a MCP2562 CAN-tranciever. It is powered from 5V and can have the I/O signals from 3,3V.
MCP2562
MCP2562
I also use a separate 3,3V LDO to power the WiFi-module.

All this to avoid having spikes in the current and angle measurements due to fluctuating voltage to the ADC-reference.

The history can be found here:
viewtopic.php?p=19522#p19522
viewtopic.php?t=1085
User avatar
manny
Posts: 62
Joined: Sun Jan 23, 2022 4:15 pm
Location: Netherlands
Has thanked: 12 times
Been thanked: 50 times

Re: Mini Mainboard design flaw

Post by manny »

It is not the current handling abillitie of the regulator but the load transient response.

Had a look at the XC6206 datasheet cant realy beleave what it shows but.
XC6206.PNG
For a load increase from 1mA to 40mA the voltage sags 0,5V :shock:

The 1117 on the other hand specs the drop in mV
1117.PNG
With a load jump from 100mA to 800mA voltage sags 13mV
User avatar
johu
Site Admin
Posts: 6297
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 245 times
Been thanked: 1303 times
Contact:

Re: Mini Mainboard design flaw

Post by johu »

Oh wow, that's a huge difference. So will go back to the 1117 then.
rstevens81 wrote: Tue Nov 05, 2024 8:15 pm this problem would also probably made worse by the esp8266? although its obsoleted by the lillgo tcan now.
Fortunately on the mini mainboard there is no wifi module. Actually that was the reason to go for the smaller regulator. Never knew there could be such differences in transient response. Something new learned ;)
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply