This research implements a PI controller based on harmony search (HS) optimization algorithm for voltage source inverter to improve the output performance under step load change conditions. The HS algorithm aims to handle the trial and error procedure used in finding the PI parameters and then apply the proposed control algorithm via the eZdsp TMS320F28355 board to link the inverter prototype with the Matlab Simulink. The mean absolute error (MAE) is used as an optimization problem to minimize the output voltage error for the developed controller (PI-HS) as compared to the PI controller based particale swarm optimization algorithm (PI-PSO). Based on the experimental results obtained, it is noted that the proposed controller (PI-HS) provides a good dynamic performance, robustness, constant voltage amplitude, and fast response in terms of overshoot, transient, and steady-state. © 2017 Institute of Advanced Engineering and Science. All rights reserved.