Arduino template (source code, curcuit diagram)