How to make a double electric circuit? Answered
First things first, I don't think the title is accurate for this question but anyways,
We have frequent power cuts in the place where i live and this is pretty irritating as my modem wont work and i cant use the internet. So I have this backup generator and I got an extension from that to power my modem (The backup generator only powers specific lights). But, the problem i face is that every time the electricity goes, i have to manually remove the plug from the mains and plug it into the generator and vice versa when the electricity returns.
So, in a nutshell, i want to make a device which can accept both the mains and generator inputs but output only one of them at any time to the modem.
If the generator switched on as soon as the mains went, it would be fine. But thats not the case.
1) As soon as the power goes, the generator takes about 2 minutes to switch on and then my modem takes about 3 minutes to reboot.
2) When the power returns, the generator stays on for about 2 minutes as well.
So if I were to make the device I mentioned earlier, For 5 minutes I would have no internet (generator+modem starting times) and for 2 minutes I would get 440 volts instead of 220 which would practically kill my modem.
Finally the device should have, (I think)
A small battery or a capacitor(For the 2 min generator lag)
A switch to automatically switch form generator to mains.
So can anybody give me some ideas? If you didn't understand what i am trying to say, i can gladly rephrase.
I thought of using a ups or something like that but i don't know how to provide two inputs and not kill the ups itself.