I need a capacitor to charge using 5V in 1 seconds and discharge at 30 mA 3 Volts for 10 seconds. How do I calculate the capacitor needed.
I am sorry I don't have electrical background.
Actually in my Arduino, I am not using interrupts, it becomes unstable and I am sleeping for 8 seconds, but I want to know whether any interrupt/ high voltage occurred at analog pins.
Any help would be appreciated.
EDIT: Ok let me explain, a little bit more about my Arduino program. Using Interrupts, you can find out if the PIR motion sensor sends a pulse, when someone crosses in front of the sensor. Now consider my problem, I am not using Interrupts, as my program is already very large and interrupts make my program unstable due to less free RAM. I am anyway reading the sensors after each 8 seconds using watchdog timer. Now the problem is that the microcontroller is in sleep mode for 8 seconds, and won't poll the pins, so I was thinking of putting a correct capacitor, that can be charged by the PIR sensor and then the capacitor can keep the input pins of the microcontroller high for 8 seconds. Sorry, I don't know much about electronics, so may be this is stupid, but if this can be doable, please share your opinion.