Current Loop

The current control loop is the component responsible of controlling the inverter input by providing the control signals in the \(\alpha,\beta\) space. These are used by the SV-PWM driver to generate the PWM signals as well as adjust the current sampling time. The current loop makes use of the estimated phase currents, \(\hat{i}_a,~\hat{i}_b\), and the estimated electrical angle, \(\hat{\theta}\) to apply the principles of Field Oriented Control (FOC). Fig. 14 shows a block diagram that illustrates how all the components are connected.

../../_images/cloop-only-schematic.svg

Fig. 14 Current loop (highlighted blocks)

API

group spinner_lib_control_cloop

Functions

void cloop_start(void)

Start current loop.

void cloop_stop(void)

Stop current loop.

void cloop_set_ref(float i_d, float i_q)

Set current loop working point.

Parameters:
  • i_d[in] i_d current value.

  • i_q[in] i_q current value.