Hi everyone!
Firstly my wishes to whoever reading this piece of text, have a nice year and I hope that everyone is doing fine in this current pandemic. I overcomplicated the design and I think it's too much for me to handle (because I'm 15 years old by the way) so I'm sharing with you everything I know about this project right now.
The idea:
Inside my electronics lab I want to have a linux server running 24/7 (and a 12VDC power source is quite handy aswell). Now, since quality inverters are neither cheap nor efficient, I decided to convert my server's ATX PSU from AC to DC. And with this out of the way, all that was left to do was the UPS itself that will provide the PC with power.
What I came up with:
And after all that, I came up with this (this is what I want your precious help and advice for):
I need those sources of power to be available:
- 12V @ 20A AC -> DC LED power supply with fan.
- 12V @ 100A DC diesel generator (hooked in parallel to the power supply above)
- 12V @ 70Ah car battery (SLA?)
NOTE: I already have everything mentioned above except the power supply which costs around 19 euros here.
And since something like this:
----------------------
| AC/DC Power supply |----------|
---------------------- ----|------ --------
| Battery |-------------- | LOAD |
------------- ----|------ --------
| Generator |-------------------|
-------------
Can end up damaging the battery in the event of an extended power failure I came up with another idea for which I really want your help on how to implement (because I'm not sure if my implementation is correct).
Also another 2 reasons I have found are:
- I need to somehow boost the voltage in order for the battery to charge properly.
- The boost converter (DIY or not) can't handle that much current (20A, and yes my load is going to be around there).
So this is how I'm going to wire everything up:
The main (220VAC) power supply will be connected in parallel to the DC generator. This line consisting of the two power supplies, will be connected to
a) A P-Channel MOSFET (I'm not sure but to avoid devices getting power from ground if I use a N-Channel?) and
b) A DIY attiny-based step-up converter with voltage reference to the battery and controlled by the main board, an Arduino Mega 2560 R3.
Why use a diy step-up converter?
This step-up converter is what I think is the solution to charging the battery and the reason I think it should be controlled is because I've read that a Lead-acid battery in a UPS application like this needs float charging (so I set the boost converter conviniently using the Mega to 13.8V or so) and once per let's say two weeks I set it to 14.5V because I'm unsure of that but... helps extend battery's life?
Anyways... So we end up with this. Now the battery has another P-Channel MOSFET whose output is in parallel to the other P-Channel MOSFET's one. Now this is so I can use relayless switching from the AC/DC converter | Generator to battery and vice-versa.
Moving on, the P-Channel (probably power) MOSFETS are going to be controlled by the Arduino Mega I mentioned above, which itself is going to be powered by the battery via a buck converter. I needed a direct connection because this is what controls the load (via the MOSFETS) and by the way I forgot something:
Only one MOSFET will be turned on at a time or none (if there is a power outage and the battery level is too low).
In my opinion, there has to be an auxiliary power supply (probably a 5V @ 800mA phone charger I have) that would help in an event of a power outage the Arduino (always referring to the Mega here...) distinguish between the generator and the power supply so it knows where it is connected to. The MOSFET that controls the power supplies should not be on at the same time with the battery's 'cause otherwise the boost-converter will become a toaster, literally. I need a way for the Arduino to tell which one to open... I'm really unsure of this. Maybe pulse between the two untill you find some voltage at the output? I think this could be the most difficult part. I also don't know how many voltage dividers I will need and which are the critical spots to place them. One voltage divider should go to the battery for sure so the MCU can pulse the boost converter and get samples from the battery to know the actual voltage. Or we don't need that? This is where all of my confusion begins and well... it won't come to an end!
EDIT: To make the question more clear and remove those big chunks of text as others have very correctly suggested:
I'm asking you the following:
- What component selections should I make and why?
- Is the "switching between power supplies and battery" and battery (boost converter) charging circuit a good idea?
- Are there any obvious mistakes in the concept or implementation that you could spot?
- Could it be done better, simpler or more efficiently?
- What do you guys think overall?
Again, to everyone still reading, my apologies for this monstrous amount of text. I'm waiting for your ideas, advices, suggestions and the like. I'm not going to begin yet as this is the purpose of writing here because I still don't know a lot of stuff.
Kind regards,
Lefteris Garyfalakis
