I am working on a circuit running from a 18650 cell and a boost converter to 5V, using an arduino nano. I would like to monitor the battery voltage so it can warn that the battery needs to be charged. Normally you would connect the battery voltage via perhaps a 10k resistor to a nano analog pin. However, the nano power can be switched off (Q1), disconnecting the input to the boost converter. In this case the battery voltage would be applid to the nano input while it is unpowered.
I came up with circuit below, see R3, C1. I think this works OK when the nano is powered but is it OK when the nano power is off?

I came up with circuit below, see R3, C1. I think this works OK when the nano is powered but is it OK when the nano power is off?
