Skip to main content

Triangle-to-Sine Converter

CI

CircuitSim

·

Created Oct 3, 2026

·

Updated Oct 3, 2026

Preview will appear once the owner saves the schematic
Details

Components

3


Schematic

Yes


Simulation

Transient analysis


Copies

Not copied yet

About this circuit

Use the gradual conduction of two diodes to round a triangle wave into an approximate sine wave.

Circuit notes

Triangle-to-Sine Converter

Use the gradual conduction of two diodes to round a triangle wave into an approximate sine wave.

V1 produces a 1 kHz triangle wave between −1.2 V and +1.2 V. R1 = 2.2 kΩ feeds two antiparallel junction diodes and RL = 100 kΩ. Their gradual exponential conduction compresses the upper and lower portions of the triangle more than its center.

ID≈2ISsinh⁡(VoutnVT)I_D\approx2I_S\sinh\left(\frac{V_{\mathrm{out}}}{nV_T}\right) Vin=Vout+R1(ID+VoutRL)V_{\mathrm{in}}=V_{\mathrm{out}}+R_1\left(I_D+\frac{V_{\mathrm{out}}}{R_L}\right)

The output is approximately ±0.6 V with rounded peaks. It resembles a sine wave but retains distortion; this is a simple nonlinear shaper, not an exact mathematical converter. The input amplitude and series resistance determine how much compression occurs.

Read the chart. The original triangle is green, the shaped output red and input current blue. Compare the straight input slopes with the changing output slope near each peak.

Model limits. Diode matching and temperature change the symmetry and amount of shaping. Precision function generators use more elaborate shaping or amplitude control.

Try it. Set V1 amplitude to 1.2 V and offset to −0.6 V; weaker shaping leaves a more triangular output. Restore the original values after comparing the results.

Components used

Components used
3 components
NameManufacturerMPNCountType

Diode

Generic

—

2

Official

Resistor

Generic

—

2

Official

Triangle Voltage Source

Generic

—

1

Official

Try this circuit yourself

Free to get started. No download — runs in your browser with a full SPICE engine.