I’m planning to use a Arduino nano together with a relay module to switch an AC light source.
The goal is to have a momentary push button that when pressed turns the output pin connected to the relay high for a specified time (10 minutes).
But it should also be possible to turn the light off within the specified time by pressing the button again.
I have been looking around for any advice where to start, but unfortunately couldn’t find any information that suited my little project. (Maybe not using the right keywords)
If someone could point me in the right direction I would be very happy!