I present to your attention "Cigarette case with timer on Arduino nano".
Principle of operation:
The cigarette case is closed for a predetermined period of time (e.g. 1 hour). After which
it is possible to open it within a short period of time (e.g. 5 min). The process is then repeated.
Disadvantages:
1.size
2. Power Consumption
3.Not universal power supply. (To switch to lithium batteries it is necessary to modify the box in order to be able to charge batteries)
Advise a reliable, not energy-consuming, miniature electric latch.