Tanks for your answer,
I follow your advice: I will use four AA batteries.
I removed the regulator.
I added an "on / off" switch.
For the control switch, all the useless boxes that I have seen use pin D2 with the interrupt mode.
is my schematic better?
