We have a Atmega328 , that is in deep sleep. It used to wake up from an accelerometer detection of a move interrupt.
We have now discovered that the accelerometer detection is not working if you open a door slowly .
So , we want to check whats going on with the accelerometer every half a second .
QUESTION :
Now we are in sleep mode,the deepest one, waking up on interrupt .
What if we wake the processor every half second, check the accelerometer for 250ms and back to sleep.
How can we estimate the current consumption then ? (its now less then 100uA)
How much this will add to the overall consumption ?
What if we wake the processor every half second, check the accelerometer for 250ms and back to sleep.
Then, you'll spend half your time awake. Hardly seems reasonable to stay awake that long. Or, if you need to stay awake that long, deep sleep doesn't seem appropriate.
We have now discovered that the accelerometer detection is not working if you open a door slowly .
The code that does this looks like?
How can we estimate the current consumption then ?
With a digital multi-meter, no estimation is required.