Electronic – Hold Up for Power loss of 10ms

avrpower supply

I'm using ATMEGA644 in a measurement circuit.
I'm providing the primary supply from a battery + boost regulator and if/when the voltage (the one that I have to measure) is available I want the supply to switch to that voltage. Switching will be done using a relay. So I figured I need to hold 5V till the release time of the relay which is nearly 15ms.

I know I'll have to hold 5V at the supply pin of ATMEGA644. I think I can use a capacitor to hold 5V for 15ms but I'm not sure.

My questions are:

  1. Can I use a capacitor to hold 5V for a current flow of 50mA? If yes, then what will be the circuit and how will I be able to calculate the capacitance?
  2. If not then what circuit should I consider following? or what other option should I be looking into?

Best Answer

.If you must use a 15ms relay then you need a cap just like you said .The tolerable voltage drop which occurs while the cap discharges slightly during the 15ms outage,so I will assume that 250mV drop is OK .Then to the nearest preferred Value we get 3300 microfarad .