I need to design a model of grid, including "high voltage" feeder, a Delta/star transformer and "low-voltage" lines, to show how it is controlled and how single phase/3 phase loads and distributed generation do affect voltage quality. Obviously, there is no high voltage involved, the grid is running around 24Vac (the voltage display are hacked to show 230V between phase and neutral)
I already did such model using a VESC+motor mechanically coupled to a generator (=another brushless motor) to feed the grid, and a custom app to control output voltage (increasing duty cycle when the measured motor current would increase, up to a threshold meaning a fault) and startup ramps. (picture https://www.facebook.com/aimontefiore/photos/a.1680954238683719/16809584...).
Now I want to make it lighter and more efficient, using directly the VESC + 3 phase LC output filter to feed my "grid" at constant frequency / controlled voltage. (to simulate the transformer substation taps)
First question: what is the simplest way to do it, preferably with a custom app (ie without need to change mcpwm_foc.c) It seems relatively similar to running with fixed foc_openloop_rpm and controlled duty mode ?
Otherwise, there will be strong current imbalance (the model is here to show how unbalanced current affect voltage quality much more) - is it a potential issue ?