PEController BSP v4
Board Support Package for PEController from Taraz Technologies
 
Loading...
Searching...
No Matches

Macros

#define PWM_FREQ_Hz   (40000)
 PWM frequency in Hz.
 
#define GRID_FREQ   (50)
 Frequency of the grid in Hz.
 
#define L_OUT   (.0025f)
 Series Output Inductance in Henry.
 
#define BOOST_COUNT   (3)
 Number of Boost Switches to control.
 
#define BOOST_VSET   (720)
 Set point voltage for boost converter.
 
#define KP_BOOST   (0.002f)
 Value of Kp for boost voltage regulation.
 
#define KI_BOOST   (0.1f)
 Value of Ki for boost voltage regulation.
 
#define KP_PLL   (10)
 Value of Kp for PLL.
 
#define KI_PLL   (.5f)
 Value of Ki for PLL.
 
#define KP_I   (60)
 Value of Kp for current loop.
 
#define KI_I   (1000)
 Value of Ki for current loop.
 
#define BOOST_DUTYCYCLE_MAX   (.95f)
 Maximum duty cycle limit for the boost controller.
 
#define GRID_RELAY_COUNT   (4)
 Number of connected relays to grid.
 
#define GRID_RELAY_IO   (13)
 First grid relay IO.
 
#define RELAY_TURN_ON_VDC   (620.f)
 Defines the turn on condition for the relay.
 
#define RELAY_TURN_OFF_VDC   (500.f)
 Defines the turn off condition for the relay.
 
#define INVERTER_DEADTIME_ns   (200)
 Dead time value in nano-seconds for the inverter.
 
#define MIN_MAX_BALANCING_INVERTER   (false)
 Duty cycle balancing disabled for the inverter.
 
#define INVERTER_DUTY_MODE   OUTPUT_DUTY_MINUS_DEADTIME_AT_PWMH
 Inverter dead time subtraction mode selection. Can be selected from duty_mode_t.
 
#define DEFAULT_GRID_FREQ   (50)
 The frequency of the grid 1st time the application is run. Current value can be updated from screen.
 
#define DEFAULT_LOUT_mH   (1.f)
 The output inductance of the inverter 1st time the application is run. Current value can be updated from screen.
 
#define DEFAULT_GRID_VOLTAGE   (220.f)
 The phase voltage of the inverter 1st time the application is run. Current value can be updated from screen.
 
#define DEFAULT_CURRENT_INJ   (3.f)
 The output current of the inverter 1st time the application is run. Current value can be updated from screen.
 
#define MAX_GRID_FREQ   (65)
 The maximum allowed value of the grid frequency.
 
#define MIN_GRID_FREQ   (45)
 The minimum allowed value of the grid frequency.
 
#define MAX_LOUT_mH   (10.f)
 The maximum allowed value of the output inductance.
 
#define MIN_LOUT_mH   (0.5f)
 The minimum allowed value of the output inductance.
 
#define MAX_GRID_VOLTAGE   (250.f)
 The maximum allowed value of grid phase voltage.
 
#define MIN_GRID_VOLTAGE   (40.f)
 The minimum allowed value of grid phase voltage.
 
#define MAX_CURRENT_INJ   (20.f)
 The maximum allowed value of output current to be injected.
 
#define MIN_CURRENT_INJ   (.1f)
 The minimum allowed value of output current to be injected.
 

Detailed Description

Use the configurations to control the PWM for the VFDs. Some control for the VFDs are provided on the external touch screen. While the limits and default values may be controlled from here. Make sure to set these values to proper limits to avoid generation of invalid output.

Note
This application is only supported for the 6-Phase configuration currently.

Macro Definition Documentation

◆ BOOST_COUNT

#define BOOST_COUNT   (3)
Note
Using multiple legs as boost converter reduces the load for each leg making it possible to achieve higher output power.

◆ BOOST_DUTYCYCLE_MAX

#define BOOST_DUTYCYCLE_MAX   (.95f)
Note
This value should be low if working on high input/PV voltage

◆ BOOST_VSET

#define BOOST_VSET   (720)
Note
This should be kept as high as possible to avoid clamping at the top of the output current wave

◆ GRID_RELAY_COUNT

#define GRID_RELAY_COUNT   (4)
Note
The relay IO should start from GRID_RELAY_IO and use consecutive IOs after that

◆ PWM_FREQ_Hz

#define PWM_FREQ_Hz   (40000)
Note
Minimum value is 5000