Диод и конденсатор думаю проще будет.
http://magnitola.org/showthread.php?p=3651020

Sent from my MI 6 using Tapatalk