How to detect power failure?
CitationXPilot
Posts: 4
Hello, happy new year to you·all,
I am starting to build a device that will detect power failure.··What it will be detecting would be standard home voltage between 100V-240V.· I have used stamp to control a solid-state relay to drive 100V lamp, but I am scratching my head on going backwards.
Ultimately, I would like to have it signal a PC through RS-232, and a VB app send an email.
Could someone please shed a light on this please?· Or has anyone seen anything similar already done with a stamp or any other microcontroller?
Thanks!!
I am starting to build a device that will detect power failure.··What it will be detecting would be standard home voltage between 100V-240V.· I have used stamp to control a solid-state relay to drive 100V lamp, but I am scratching my head on going backwards.
Ultimately, I would like to have it signal a PC through RS-232, and a VB app send an email.
Could someone please shed a light on this please?· Or has anyone seen anything similar already done with a stamp or any other microcontroller?
Thanks!!
Comments
-Phil
Thanks for the reply. Well, in the future, I would like to integrate it with GSM module and LiPo Battery, so I can get an alert through SMS, possibly.
-Daniel
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Is there an optoisolator that I could use which can handle 240V on the LED side?
Much better would be to use a small 240V transformer to reduce the voltage to something like 5-10V, then use a small resistor to limit the current to 5-10mA.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
~~ dRu ~~
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
But just to add options, you could just take a 120V relay and wire a stamp up to it's NO/NC contacts and just monitor that. When the power goes out, the relay is deenergized and changes the state of it's contacts.
Something we run in to here at work, we're rural, is that we'll lose one phase of three. So some things will drop out, but most things keep working. Our generator doesn't monitor all the phases, so we are sometimes surprised when the thing we're working on drops out and the gen doesn't cover it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<FONT>Steve
What's the best thing to do in a lightning storm? "take a one iron out the bag and hold it straight up above your head, even God cant hit a one iron!"
Lee Travino after the second time being hit by lightning!
Use resistor voltage divider to get automotive 13-20v down to 3v (or what ever you set as threshold voltage) and also put TVS on the input line too as spikes you be way above that.
http://www.ti.com/lit/ds/symlink/tps3808g15-q1.pdf