Add tilt switch to this photodiode circuit
for simulation you can use an opto-coupler (eg 4n35) to simulate the phototransistor, connect the opto-coupler input to a variable current source.

The spring thing is just a special kind of switch

As you have it drawn it will only go dark if it has recently been jiggled.

You're going to want to move the tremble switch and capacitor to the top end of R2 (the potentiometer)