This repository is not active
sheriff02/RealButtonRelayImmitation
Pin D2 for relay driving, pin D3 for relay +5v VCC and gnd pin of your arduino thats all, what you need. After 20 sec from poweron, relay enabled for one second, and after that relay disabled, relay poweroff and arduino going too sleep till next reboot. You need this library for it - https://github.com/rocketscream/Low-Power
C++