Light Relay Timer

So I'm here to ask for help for my college project so I want to make a box where when the lid from the top is closed it activates a light for lets say 1 minute when the 1 minute is up the light switches off and when the box is opened before the 1 minute is up the light will stop and when the box is closed again the 1 minute timer starts again so my issue is I have never used an Arduino so I don't know how to setup the circuit what components do I have to use, do I use a 555 timer or do I use something else I have no Idea.

Hi! You can use the native counter millis().
Here there is the documentation and here an example :slight_smile:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.