I want to take this
and do it all on my atmega, The 555 timer I can figure out but I'm a bit foggy on the relay part. I was thinking of using the left side of the chip and not connecting +5. Then I could tie the input to the +5 and keep one of the pins lo. Then When I hold the pin hi it would effectively close the circuit. Is this not the best approach?