Piezoelectric inkjet printing technology, known for its high precision and cost-effectiveness, has found extensive applications in various fields. However, the issue of residual vibration significantly limits its printing quality and efficiency. This paper presents a method for suppressing residual vibration based on the particle swarm optimization (PSO) algorithm. Initially, an improved PI model considering the nonlinear hysteresis characteristics of piezoelectric ceramics is established, and the model is identified through a strain gauge circuit to ensure its accuracy in describing the nonlinear hysteresis characteristics. Subsequently, a dynamic model of the piezoelectric inkjet printing system is constructed, with precise parameter identification achieved using the self-induction principle. This enables precise simulation of residual vibration. Finally, the driving waveform is optimized based on the PSO algorithm, with iterative calculations employed to find the optimal combination of driving waveform parameters, effectively suppressing residual vibration while ensuring sufficient injection energy. The results indicate that this method significantly reduces the amplitude of residual vibration, thereby effectively enhancing printing quality and stability. This research offers a novel solution for residual vibration suppression in piezoelectric inkjet printing technology, potentially advancing its applications in printing and biofabrication.