I'm new to circuits and building a simple prototype to keep the relay latched for a couple of seconds after power is removed - so essentially the power to relay acts as the Input signal. This means I have to store energy in a capacitor (to keep the relay latched) and possibly use resistor as well to control current in the circuit. Can you guys please help me figure out C and R values and how the components would link (C would be in parallel with the Relay but not sure about R)?
Important things for me are:
1. Relay should latch as soon as 12V power is applied
2. Capacitor should charge within 500-700ms and be able to keep relay latched for 2-3 seconds.
3. Since I have to charge capacitor quickly, I need to factor in-rush current so as not to damage power supply.
Would really appreciate if you can share the calculations as well, so I can try with different relays and capacitors etc.
The relay i have is Songle 12V (SRD-12VDC-SL-C), Datasheet: http://www.songlerelay.com/Public/Uploads/20161104/581c81ac16e36.pdf

Important things for me are:
1. Relay should latch as soon as 12V power is applied
2. Capacitor should charge within 500-700ms and be able to keep relay latched for 2-3 seconds.
3. Since I have to charge capacitor quickly, I need to factor in-rush current so as not to damage power supply.
Would really appreciate if you can share the calculations as well, so I can try with different relays and capacitors etc.
The relay i have is Songle 12V (SRD-12VDC-SL-C), Datasheet: http://www.songlerelay.com/Public/Uploads/20161104/581c81ac16e36.pdf




