Patients with lower limb amputation experience gait disorders due to the loss of sensory information arising from foot–ground interactions. Although sensory feedback restoration has shown promising results in improving patients’ walking capabilities, conveying terrain-related information remains largely unexplored. Hitherto, such challenge was preliminarily investigated using a non-somatotopic vibrotactile stimulation. This study focuses on the use of Transcutaneous Electrical Nerve Stimulation (TENS) as a non-invasive stimulation technique for eliciting somatotopic sensations in lower limb. The aim of the study is to design, develop and test Sinusoidal Pulse Width Modulation (SPWM) as a novel encoding strategy for terrain discrimination. SPWM was evaluated in ten healthy participants in discriminating among three different terrains (i.e., tiles, grass and stones) and, since tiles and grass were characterized by similar evenness but with different stiffness, the accuracy was additionally assessed in even/uneven surfaces discrimination. SPWM performance was compared with that of the only pre-existing encoding strategy already adopted in TENS application for sensory feedback restoration in patients with lower limb amputation (i.e., Linear Pulse Amplitude Modulation LPAM). SPWM yielded the highest accuracy for both three- and two-terrains discrimination (85.1% and 92.3%, respectively) outperforming LPAM (68.2%, P=0.0039 and 74.6% P=0.0078, respectively) and literature approach exploiting vibrotactile stimulation (62.5% and 87.5%, respectively). This study represented substantial progress beyond the state of the art in lower-limb sensory feedback restoration for terrain information. The obtained results demonstrated for the first time the feasibility of conveying terrain-related information through a non-invasive approach but eliciting somatotopic tactile sensations.