Using LTSpice and uninformed dabbling I've managed to produce positive spikes from a wall switch that I hope will wake an ESP8266 for use to control hue lights. Once awake the IC will debounce, read the switch state and send the appropriate messages to the bridge.
My question is, will it really work? I'm using a voltage controlled switch to simulate my wall switch on/off actions and I'm worried that I am only amplifying encoded artefacts like current creeps.
Note: this is not supposed to be connected to mains, it is a DC project unless considering arbitrary hue lamps which is not within the scope of the question.
Note: the idea is to wake up the IC by pulling up the reset pin. Once awake, code will take care of everything.
The question was originally posted here and the ltspice-file is attached to my final comment.
Here is the schematic:
The left part originates from this hue project which is similar to what I want to do but with toggle-switches. The voltage controlled switch simulates the on/off action of the wall switch.
The right part is an op-amp absolute value circuit the rectifies the signal. The IC, voltage regulator and pull up circuit is not included in the schematic but should be similar to the already mentioned hue project.
First here is the signal at the resistor marked R8.
Next the input to the op-amp circuit, at C2. As you can see, switching on results in a large spike with a negative overshoot. Switching off results in the opposite, but smaller.
Finally, the output signal, absolute value and almost equal in amplitude.