You should add one resistor (500 Ohm) serial with the LED. You should also add a 1k Ohm (for example) resistor between 10k Ohm and the capacitor. Otherwise, it is ok ... [![enter image description here][1]][1] [1]: https://i.sstatic.net/65TlqFzB.png