The average exergy efficiency of the case 2p*2p compared with case 2s*2s was55.9%.• The average exergy efficiency of the case 2p*2p compared with case 4p was63.69%. • The average exergy efficiency of the case 2p*2p compared with case 3p*1s was78.9%. It is well known that photovoltaic (PV) can be connected in parallel, series, and parallel series. In this study, four PV panels are connected in four different ways, i.e., 4panels parallel (4p), 3panels parallel*1panel series (3p*1s), 2panels parallel*2panels parallel (2p*2p) connected in series, and 2panels series *2panels series (2s*2s) connected in parallel, to determine the best PV panels configuration for supplying DC power to the Variable Speed Compressor (VSC) with the highest average exergy efficiency and minimum exergy losses under sunny daylight hours. Experimental data is used to calculate the exergy efficiency of the mentioned configurations. The best results are delivered by (2p*2p) configuration with average exergy efficiency of 43.77% and exergy efficiency of 88.05%. Whereas the percentage of improvement for the average exergy efficiency of this configuration compared with the (2s*2s), (4p), and (3p*1s) are (55.93%), (63.69%) and (78.9%) respectively.