After using a pair of inverter/charger circuits as UPS units for some months I've become curious as to how the trigger decides when to switch from line power to the battery and inverter.
Supposedly they trigger on wrong voltage or frequency, but they do it in less than a half-cycle, so it seems to be more than a simple relay. A cursory web search found nothing but I don't know the proper name for such an "AC comparator".
The units in question are from Amazon:
formatting link
The docs are useless and tech support is worse. No point asking them. Apart from those gripes, the units seem to work OK for the price.
I don't need to build anything, but I am curious as to how it's done.
Partly depends on the topology of the inverter/charger or UPS. Not sure about the one on Amazon.
An inverter/charger like the one you referenced could use either a separate charger circuit not shared with the inverter OR it could use the same circuitry for charging than it does for inverting.
If it is a separate charger, then all it has to do is wait for the AC input to go away and turn off its AC input relay but keep inverting off the battery storage.
If combined inverter/charger, it can be more difficult to know when the grid AC is gone so that the inverter does not try to drive the AC input line since the AC load output would be connected directly to the grid or shorepower input. That is more or less how a grid tie inverter works that can sell power back to the grid or AC input. That is called anti-islanding and has strict regulations the company must follow but I don't think this inverter/charger does this function. So that inverter/charger might take a couple of seconds to find that the AC input went away and invert properly.
Usually, when the AC grid goes away, there will be a short time where there is NO AC output until things stabilize. If it uses a completely separate charger and inverter, the it can be truly UPS or uninterruptabe power when the grid goes away.
One or two AC cycles is typical for a good/fast inverter/charger to transfer. Relays take a couple milliseconds to switch.
Lettuce know if you happen to take it apart. The inverter company support or sales people probably won't know how it works. The manual won't say either.
T1 functions as a fairly foolproof sensor. Its PHAS-REF and IN-RECT outputs signal AC availability.
IC21 is technically a Precision Programmable Reference. The circuit's topology utilizes it as a temperature compensated, 2.5 VDC reference.
D20 and D21 function as an "or power gate," so to speak. To enable energy to flow from either the battery or AC. Why? Because if the battery's been drained it's unable to provide 24V and AC must be used instead. Open question, does: 1. the fully-charged battery or 2. T1, provide the requisite energy for 24 VDC, during normal use?
The 87C51 inputs PHAS-REF on pin 14. It probably serves as an interrupt.
The IN-RECT passes through an ADC0831 Multiplexer on its way to pin 28. From where the 87C51 decides whether the AC failed.
Q41 acts as a switch to more-or-less "square up" PHAS-REF. It's off time is skewed slightly due to the 0.7 VDC required to turn it on. So it stays off a little longer than ideal. When Q41's off the 87C51 pulls P3.4 up to 5 VDC. If the UPS is supposedly powered-on but P3.4 stays stuck on one (5 VDC), the software knows there's no AC present at T1. Otherwise the frequency of P3.4 indicates one component of AC health.
No real need, merely curiosity. Especially how mains loss might be detected without recourse to a microprocessor. I started out thinking in terms of using comparators and RC filters. Clearly I'm out of date!
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.