Ok, I appreciate all the answers and questions. Allow me elaborate more.
Have you ever seen those emergency lights on buildings or schools? The ones that have two light bulbs, or nowadays LED’s on the sides and int the middle they have a battery cover?
Well, What I’m trying to do is that, an Arduino that detects a power outage and turns on the light so people can see and exit the building. Why not just buy one of these or plug the Arduino to the wall and go from there you ask?
What I’m trying to do here is to have the Arduino completely isolated, physically, no opto-isolators no cables, no external or additional components/sensors. Think about it as a portable unit that you can bring to other places. What does most people have on their home? Wifi.
For instance, suppose that the unit will read all the available Wifi signals and grab the strongest assuming that’s the home where the unit is in. If that Wifi signal goes down, trigger the LED. This is assuming that the unit was correct in selecting the strongest Wifi correctly and that the Wifi box did not had a battery backup. I propose this idea but I don’t know if it is reliable although it might be the only one that requires external parts.
The Arduino will be battery powered, batteries will last a long time, don’t worry about that. Size don’t matter within reasonable reason. xD
I’m asking if is possible and if so, how? Am I dreaming too big? This is all hypothetical, so, chillax.
Robin2:
What is the Arduino expected to do when it detects that the power has failed ?
If the Arduino is battery powered, how long do you expect the battery to last?
If mains power is available why not run the Arduino off a battery that is being trickle-charged by the mains. The Arduino can detect the low voltage charge input to the battery. If the charge voltage fails it means the power has failed but the Arduino will continue running on battery power for some time.
...R
Light a LED. Let’s say the Arduino will last a year on batteries, but that’s not an issue for know. The point is to not have it connected to mains power.
zoomkat:
That is why they make extension cords. You need to be specific as to the requirements and conditions for much help.
I forgot to mention that, I’ll try to explain better.
CrossRoads:
How about an arduino powered by mains with simple 433 MHz Tx, battery powered unit with simple Rx.
Tx can send continuous message, Rx can wake up every once in a while (to extend battery life) & listen.
No message, infer the Tx power is out.
That’d be great, but that would require another external thing. Thanks!
mauried:
What do you mean by a power outage.
Do you mean the power is off for a long time , or a short loss in power, ie for a second or so.
Are brownouts also included.
ie whats the purpose of the project?
What I mean is, when the power at your home goes down the Arduino activates. Not at the millisecond level but, it would be OK if it works within 5 seconds, no more than 10 seconds after the power is down. Purpose, emergency, portable, and the challenge to me and all of you. Also, curiosity of mine, if it’s possible to do etc....
Thank you all!