0
\$\begingroup\$

I want to create a small device that detects AC outages and sounds a buzzer powered by a battery. I have some experience working with arduino and DC electronics but I have no experience in working with alternating current, so I'm kind of lost here.

I think I could use some kind of AC relay that would switch whenever current is lost, shorting the DC circuit, but I'm not sure such a component exists.

\$\endgroup\$
  • \$\begingroup\$ You could use a relay with an AC coil. Have you tried Googling it? Digikey, Mouser surely carry them. \$\endgroup\$ – mike65535 Dec 12 '18 at 17:04
  • \$\begingroup\$ For longevity, you don't want to continuously power the AC coil until power failure. See electronics.stackexchange.com/questions/367993/… \$\endgroup\$ – crj11 Dec 12 '18 at 17:07
4
\$\begingroup\$

You should not mess with mains AC if you lack the experience.

I recommend using a (old, obsolete) power adapter which can output AC or DC but at a low voltage so that it is safe.

Then if it is AC, rectify the AC to DC.

If it is DC, no need to rectify.

Use that voltage to power a relay.

Use the normally closed contacts (the ones that open when the relay is powered) of the relay to power the buzzer from the battery, like so:

schematic

simulate this circuit – Schematic created using CircuitLab

I did not add many voltage ratings and component values as they will depend on what the Power adapter will deliver.

You need the bridge rectifier only when the Power Adapter outputs AC

But even if the Power Adapter outputs DC and the Bridge rectifier is present, things will still work. Having the Bridge rectifier makes this more "fool proof".

\$\endgroup\$
  • \$\begingroup\$ Thanks for your answer and the detailed diagram. I'll follow your advice of not dealing with AC, I surely have some really old AC/DC adapter from an old Nokia phone I can use. Thanks! \$\endgroup\$ – José Tomás Tocino Dec 12 '18 at 21:09
0
\$\begingroup\$

For really small, use HCPL3700 type of part. Couple of resistors for current limit on the input side, a cap for some hysteris. Output is optically coupled, can have transistor output to drive a buzzer.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.