A combination of discrete components is preferred but if the IC solution gives a smaller footprint, then I will use IC.hi v,
Welcome to AAC.
Do you want to use discrete components or IC's.?
What is the required accuracy of the 100mSec pulse.?
E

The pulse is used to drive NodeMCU.What will the pulse drive? How much current will it source?
Thank you AKCan you post a link to the NodeMCU datasheet? The high output current for the pulse complicates things.
The reason the XOR circuit does not work is that when you turn on the switch, the input is pulled firmly up to 5 V, but when you turn off the switch, the input to the circuit is floating and the capacitor holds the input high so no pulse is generated. Ad another XOR gate in front of the IN node to act as a non-inverting buffer. At the inputs of the new gate, ground one and put a 10 K resistor and 1.0 uF capacitor in parallel from the other input to GND. This will debounce the switch without adding too much delay between turning off the switch and the second output pulse leading edge.
ak

A 1μF cap to ground would generate a large current spike through the switch as its bouncing, which would tend to cause arcing and weld the contacts.At the inputs of the new gate, ground one and put a 10 K resistor and 1.0 uF capacitor in parallel from the other input to GND. This will debounce the switch
Thank you, AKA 1μF cap to ground would generate a large current spike through the switch as its bouncing, which would tend to cause arcing and weld the contacts.
To prevent that add a small resistor (say 50-100Ω) in series with the switch.
D1 D2 D7 D8Which pins are connected to the four switch circuits in post #11?
![]()
ak