In recent years, the application of photovoltaic (PV) power generation has become increasingly widespread, driven by the global push for renewable energy. The solar inverter, as a core component in PV systems, converts direct current (DC) from solar panels into alternating current (AC) for grid integration. The controller of a solar inverter plays a critical role in ensuring efficient power conversion, stability, and safety. Traditional controller designs often rely on single processors like DSP, ARM, or FPGA, but these approaches face limitations in handling complex control strategies, real-time processing, and multifunctional requirements simultaneously. For instance, a single DSP may struggle with real-time performance when implementing advanced control algorithms, while an ARM-based system might lack precision in control tasks. FPGA designs, though flexible, are complex to program and debug. To address these challenges, I propose a novel controller architecture based on a digital signal processor (DSP28335) and dual ARM microcontrollers. This design leverages the high-speed processing capabilities of DSP for core control functions, while the dual ARMs handle auxiliary tasks such as safety monitoring and human-machine interaction. This paper details the hardware and software design of this solar inverter controller, including system architecture, key circuit modules, control algorithms, and experimental validation on a 10kW prototype. The results demonstrate the feasibility and effectiveness of this approach, offering a robust solution for modern solar inverter applications.
The controller hardware system is structured around a master-slave configuration, with the TMS320F28335 DSP serving as the primary control chip and two ARM Cortex-M3 microcontrollers (LPC1768) acting as auxiliary processors. This “DSP + dual ARM” architecture optimizes resource allocation: the DSP focuses on data sampling, pulse-width modulation (PWM) signal generation, fault detection, and control algorithms like maximum power point tracking (MPPT), voltage-current loop control, and phase-locked loop (PLL) synchronization. One ARM, referred to as ARM_SLAVE, assists in safety-critical functions such as temperature monitoring and fault handling, while the other ARM, ARM_LCD, manages human-machine interface (HMI) tasks like data display and parameter setting. This division of labor enhances system reliability and scalability, allowing for easy upgrades and customization. The solar inverter topology adopted in this design is a two-stage configuration, comprising a three-level Boost circuit for DC voltage step-up and a diode-clamped three-level inverter for DC-AC conversion. An LCL filter is used at the output to suppress harmonics and ensure smooth grid connection. The overall system block diagram illustrates the interconnection between these components, with the DSP coordinating communication via serial interfaces (SCIA and SCIC) to exchange data with the ARMs.

The core hardware circuits are essential for the reliable operation of the solar inverter. These include current conditioning circuits, drive circuits, current protection circuits, and zero-crossing detection circuits. Each module is designed to meet the stringent requirements of a high-power solar inverter system. For the current conditioning circuit, I use current sensors (e.g., model 4640-X400) with a ratio of 1:1000 to measure grid-connected currents. The sensor output is converted to a voltage signal across a 100Ω resistor, then processed through operational amplifiers (e.g., TL0741) to scale and bias the signal for DSP analog-to-digital conversion (ADC). The output range is adjusted to 0.071V to 2.928V, corresponding to a peak current of ±21.43A, which aligns with the DSP’s input specifications. The transfer function for this conditioning can be expressed as:
$$ V_{out} = 1.5 + k \cdot I_{grid} $$
where \( k \) is a scaling factor derived from the sensor and amplifier gains. A table summarizing key components in this circuit is provided below:
| Component | Value/Type | Function |
|---|---|---|
| Current Sensor | 4640-X400 (1:1000) | Measures grid current |
| Resistor | 100Ω | Converts current to voltage |
| Op-Amp | TL0741 | Signal conditioning and buffering |
| Bias Voltage | 1.5V | DC offset for unipolar ADC input |
The drive circuit is responsible for amplifying and isolating the PWM signals from the DSP to control the IGBT power switches. I employ optocoupler drivers (TLP350) that provide high-speed switching up to 50kHz. When the DSP outputs a high signal on the drive input, the optocoupler conducts, applying a positive voltage to the IGBT gate, thus turning it on. Conversely, a low signal blocks conduction. This ensures electrical isolation between the low-voltage control side and the high-power inverter stage. The current protection circuit monitors the maximum grid current to prevent overcurrent faults. A comparator circuit compares the conditioned current signal with a 2.5V reference; if the current exceeds the threshold, a fault signal is generated to immediately disable the IGBT drives via buffer chips (74VC541AW). This hardware-based protection adds a layer of safety to the solar inverter. The zero-crossing detection circuit converts the grid voltage sinusoidal waveform into a square wave pulse, enabling the DSP to precisely detect voltage zero crossings for PLL synchronization. An operational amplifier compares the scaled grid voltage with a 1.5V reference, producing a pulse that toggles at each zero crossing. This signal is critical for maintaining phase alignment in the solar inverter.
In terms of software design, the DSP program is structured around a 20kHz interrupt routine that handles real-time tasks. Upon initialization, the DSP configures peripherals such as ADC, PWM, and communication modules, then enters a waiting state where it reads user parameters from ARM_LCD via SCIA. These parameters include safety thresholds and operational settings. The DSP then performs system checks for faults, insulation resistance, and leakage current. If all conditions are normal, it proceeds to control the Boost circuit to raise the DC bus voltage, followed by enabling the grid relay and executing core control algorithms. The MPPT algorithm combines constant voltage and perturb-and-observe (P&O) methods to maximize power extraction from the solar panels. The algorithm can be summarized with the following logic: if a constant voltage mode flag is set, the reference voltage is adjusted based on comparisons with 80% of the open-circuit voltage; otherwise, a variable-step P&O method is used, where the step size depends on the power change magnitude. Mathematically, the MPPT process can be described as:
$$ \Delta V_{ref} = \begin{cases}
\pm V_{step1} & \text{if } MPPT_{\text{Const}} = 1 \text{ and } V_{pv} > 0.8V_{open} \\
\mp V_{step1} & \text{if } MPPT_{\text{Const}} = 1 \text{ and } V_{pv} \leq 0.8V_{open} \\
\pm V_{step2} & \text{if } |P(k) – P(k-1)| > P_1 \\
\pm V_{step3} & \text{otherwise}
\end{cases} $$
where \( V_{ref} \) is the reference voltage, \( V_{step1} > V_{step2} > V_{step3} \) are step sizes, and \( P(k) \) is the instantaneous power. The voltage-current dual-loop control ensures stable DC bus voltage and sinusoidal grid current output. The outer voltage loop regulates the DC bus voltage \( V_{dc} \) to track the reference \( V_{dcref} \) from MPPT, producing a reference active current \( i_{dref1} \). An additional component \( i_{dref2} \) is derived from power balance considerations, yielding the total active reference \( i_{dref} \). The inner current loop uses Park and Clarke transformations to convert three-phase currents \( i_a, i_b, i_c \) into dq-components, which are compared with references and processed through PI controllers to generate modulation signals. The control equations are:
$$ i_{dref} = k_{1p}(V_{dcref} – V_{dc}) + k_{2p} \cdot \frac{P_{in}}{V_{grid,avg}} $$
$$ i_{qref} = 0 $$
$$ D_d = PI(i_{dref} – i_d) $$
$$ D_q = PI(i_{qref} – i_q) $$
where \( D_d \) and \( D_q \) are duty cycles in the dq-frame, and \( PI \) denotes proportional-integral control. The phase-locked loop (PLL) synchronizes the solar inverter output with the grid voltage. A software-based PLL in the synchronous reference frame is implemented, where the grid voltage is transformed to dq-components, and a PI controller adjusts the frequency to drive the q-component to zero. The PLL output phase \( \theta_1 \) is used for Park transformations. The structure is represented as:
$$ \omega_1 = PI(V_{1q}) + \omega_0 $$
$$ \theta_1 = \int \omega_1 \, dt \mod 2\pi $$
where \( \omega_0 \) is the nominal grid frequency. The ARM_SLAVE program runs independently, sampling temperature sensors and communicating with the DSP via SCIC. If any fault is detected, it sends a lock signal to disable the inverter drives. The ARM_LCD program handles the HMI, allowing users to set parameters and view real-time data such as voltage, current, power, and system status. This modular software design enhances the solar inverter’s adaptability and maintainability.
To validate the controller design, I built a 10kW solar inverter prototype and conducted experiments in a controlled environment. The experimental setup includes PV simulators, a DC bus, the inverter unit, and grid connection through a circuit breaker. Measurement instruments like power analyzers and oscilloscopes were used to capture waveforms. The solar inverter was tested under various grid conditions to assess performance. Key results include the inverter output phase voltage, grid voltage, and grid current waveforms. For instance, the inverter output phase voltage showed a stable three-level waveform with minimal distortion, as expected from the three-level topology. The grid voltage and current waveforms demonstrated synchronization, with the current being sinusoidal and in phase with the voltage. A table summarizing the phase differences between grid voltage and inverter current at different grid frequencies is presented below, confirming that the phase error is within 3.5°, which meets grid-connection standards for solar inverters.
| Grid Frequency (Hz) | Phase Difference φ (°) |
|---|---|
| 49.996 | 3.24 |
| 49.997 | 3.07 |
| 49.998 | 3.15 |
| 49.999 | 2.54 |
| 50.000 | 2.50 |
| 50.001 | 2.87 |
| 50.002 | 2.58 |
| 50.003 | 3.42 |
| 50.004 | 3.28 |
Additionally, the RMS values of the inverter output voltage and current were measured and found to be stable over time, indicating good regulation. The MPPT efficiency was evaluated under varying irradiance conditions, and the controller successfully tracked the maximum power point with minimal oscillations. The hardware protection circuits responded promptly to overcurrent and overtemperature faults, safeguarding the solar inverter from damage. These experiments collectively verify that the DSP28335 and dual ARM-based controller achieves high performance, reliability, and safety for solar inverter applications. The design offers advantages such as cost-effectiveness, ease of development, and scalability, making it suitable for commercial and industrial solar inverter systems.
In conclusion, this paper presents a comprehensive design of a solar inverter controller using a DSP28335 and dual ARM architecture. The hardware system efficiently distributes tasks among processors, with the DSP handling core control algorithms and the ARMs managing auxiliary functions. Key circuit modules, including conditioning, driving, protection, and detection circuits, are designed to ensure robust operation. The software incorporates advanced control strategies like MPPT, voltage-current dual-loop control, and PLL, all implemented in real-time. Experimental results on a 10kW prototype confirm that the solar inverter outputs stable sinusoidal currents synchronized with the grid voltage, with phase errors within acceptable limits. The controller demonstrates feasibility, meeting the demands of modern PV systems for efficiency, reliability, and smart grid integration. Future work could explore integration with energy storage or advanced grid-support functions, further enhancing the versatility of solar inverters. This design contributes to the ongoing development of high-performance solar inverter technologies, supporting the global transition to renewable energy.
