Water desalination technology has emerged as a critical area of research, particularly with the advent of more cost-effective alternatives to conventional methods, such as reverse osmosis and thermal evaporation. Given the vital importance of water for life and the scarcity of potable water for agriculture and livestock—especially in the Kingdom of Saudi Arabia—the capacitive deionization (CDI) method for removing salt from water has been highlighted as the most economical choice compared to other techniques. CDI applies a voltage difference across two porous electrodes to extract salt ions from saline water. This study will investigate water desalination using CDI, utilizing a compact DC power source under 5 volts and a standard current of 2 amperes. We will convert waste materials like sunflower seeds, peanut shells, and rice husks into activated carbon through carbonization and chemical activation to improve its pore structure. Critical parameters for desalination, including voltage, flow rate, and total dissolved solids (TDS) concentration, have been established. The initial TDS levels are set at 2000, 1500, 1000, and 500 ppm, with flow rates of 38.2, 16.8, and 9.5 mL/min across the different voltage settings of 2.5, 2, and 1.5 volts, applicable to both direct and inverse desalination methods. The efficiency at TDS concentrations of 2000, 1500, and 1000 ppm remains between 18% and 20% for up to 8 min. Our results indicate that the desalination process operates effectively at a TDS level of 750 ppm, achieving a maximum efficiency of 45% at a flow rate of 9.5 mL/min. At voltages of 2.5 V, 2 V, and 1.5 V, efficiencies at 3 min are attained with a constant flow rate of 9.5 mL/min and a TDS of 500 ppm, with the maximum desalination efficiency reaching 56%.