As high-voltage output and fast response devices, triboelectric nanogenerators (TENGs) are widely used for sensors with fast and high-sensitivity performance. As a primary electrical signal, the waveform output provides an accurate and rapid response to external stimulus parameters such as press and slide. Here, based on mosaic charging and residual charge theories, the contact charging principle of TENGs is further discussed. Moreover, a wavy structure is obtained in the vertical contact separation and lateral sliding modes to further study the influence of external parameters applied to TENGs, which thus helps further the understanding of the output waveforms. The experimental results show that wavy TENGs have output properties that are excellent compared to those of TENGs with flat structures, such as longer charging and discharging times and more complex waveforms. By researching the waveform in depth, our work will provide new prospects for application in various sensors of interactive wearable systems, intelligent robots, and optoelectronic devices based on TENGs.