Thought I'd share this because I like the idea. You know how mini-redundant server power supplies have a little piezoelectric speaker in them that tells you when a PSU fails? Well, I have a project in the near future that could use such feature but for a non-redundant pair of PSU's (considering how expensive redundant ones are this is much cheaper). So I have this:
The idea here is the battery would be kept charged by the TP4056 fed by the PSU 5V rail, the relay would be wired in a NC config and be held high (open) by the 5V rail of the PSU. If the PSU were to lose power the relay would switch shorting the connection allowing power to flow to the DC-DC 5V OUT which would in turn drive the piezoelectric speaker (your indicator that the PSU failed).
I realized that if I'm to use two ATX PSUs I could use a pair of relays and wire them up in such a way that each powers the opposing units piezoelectric speaker. This would eliminate the battery and make it so it keeps beeping forever.
Unfortunately I just discovered this speaker can't be driven by any normal 5V. It doesn't resonate the drum so to speak. Skanky Sylveon do you know of any small easily driven speakers like this?
-
Ah, I'll keep looking around. My usual cheapo Chinese electronics site seems to have quite the assortment of options for buzzers/speakers. The application this is for and for where I plan to keep it a audible warning mechanism is really necessary. I can add an LED in parallel with the output of the relay. If it's on the PSU is good, if it's off the PSU has failed but I do need it to make a noise.
-
Yeah they're not fun but they're great for getting your attention when something goes wrong.