Switch, Potentiometer simulator

Uhhh…sure. I’m not at the computer I used to make my earlier post, so this isn’t the exact one but it’s close enough. Basically, the bounces are just it alternating between 5V and 0V every 0.1m seconds:
PWL(0 0 5m 0 5.1m 5 15m 5 15.1m 0 30m 0 30.1m 5 30.2m 0 30.3m 5 30.4m 0 30.5m 5 40m 5 40.1m 0 40.2m 5 40.3m 0 40.4m 5 40.5m 0)

You can’t use the plus signs in KiCad/ngspice (yet). Otherwise making the above statement would be much easier. I also noticed that if you put this PWL statement in the field manually and then click the button to “Edit Spice Model” it will screw up the entire statement. So be careful about that.

I know I’m creeping into circuit design help, but if you want your output rise and fall times to be symmetric you typically add a schottky diode across the 2nd resistor to keep the RC time constants equal in both directions.