Shake phone to start it. Simultaneously outputs a square wave, triangle wave, and crude sine wave. First part is a schmitt trigger, then integrator, and wave shaper. For more info google these. Sine wave could be cleaner with more diodes but theres only so much space in sim. You can also modify the frequency by changing the 10k resistor. Hope you enjoy the signal generator.