<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Mains Power monitor and alert - Help Wanted				            </title>
            <link>https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Thu, 12 Nov 2026 08:05:14 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Mains Power monitor and alert</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45531</link>
                        <pubDate>Mon, 29 Jan 2024 17:46:22 +0000</pubDate>
                        <description><![CDATA[@matts Here are two PICO UPS boards. I have both, they are similar. I have not had the time to figure out how to use them but it shouldn&#039;t be too hard, and the folks at Waveshare will answer...]]></description>
                        <content:encoded><![CDATA[<p>@matts Here are two PICO UPS boards. I have both, they are similar. I have not had the time to figure out how to use them but it shouldn't be too hard, and the folks at Waveshare will answer queries. Look at each closely to best determine what you need. The one with the 18650 battery will take you to the dark side of fake 18650 cells. A great idea, but very hard to get legitimate cells. You will also need to spend a few bucks on a proper charger. I have 3 in total, 2 may be enough, one for RC batteries and one for everything else. The everything else is a Skycharger MC3000, I HIGHLY recommend it for all rechargeables except the big RC LIPO packs. Fire bags and fireproof surface preferably outdoors for these somewhat dangerous batteries. A good charger is cheap insurance.</p>
<p>Here are the links <a href="https://bityl.co/Nqyw" target="_blank" rel="noopener">https://bityl.co/Nqyw</a> and <a href="https://bityl.co/NqzE" target="_blank" rel="noopener">https://bityl.co/NqzE</a></p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45531</guid>
                    </item>
				                    <item>
                        <title>RE: Mains Power monitor and alert</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45530</link>
                        <pubDate>Mon, 29 Jan 2024 17:35:40 +0000</pubDate>
                        <description><![CDATA[@matts I know Systemhouse, I either did some consulting or something. Hmm, COBOL, not too relevant.
Ok, some Arduino and projects that use sensors and MCU&#039;s so you are &#039;qualified&#039;.
There a...]]></description>
                        <content:encoded><![CDATA[<p>@matts I know Systemhouse, I either did some consulting or something. Hmm, COBOL, not too relevant.</p>
<p>Ok, some Arduino and projects that use sensors and MCU's so you are 'qualified'.</p>
<p>There are two major approaches.</p>
<p>1. Use a power sensor. For mains that involves a device that wraps around the main power cables in your main electrical panel.</p>
<p>2. Decide on a UPS HAT. A HAT is just an auxiliary board that attaches to a Pi or Arduino, it will have a small battery, charger circuit, supporting circuitry and software. The arduino or Pi will be powered by this UPS that is also plugged into the wall to keep the battery charged. When the power drops to the UPS, it will very likely have an API or some interface to tell the main processor like PICO, Pi, Arduino that it is now running on battery. Yes email is just a library, RTC may be available, but your router can supply the time via NTP, again libraries are available.</p>
<p>Some other things to investigate are MQTT and IFTTT in addition to email. Maybe even SMS but not sure if that can be done without cell service.</p>
<p>I favour option 2 because it is more fun, and a teeny bit safer.</p>
<p>Questions?</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45530</guid>
                    </item>
				                    <item>
                        <title>RE: Mains Power monitor and alert</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45529</link>
                        <pubDate>Mon, 29 Jan 2024 17:22:11 +0000</pubDate>
                        <description><![CDATA[@zander 
formely a programer, from the 70s with Systemhouse, in cobol, then in the 80s compiled dbase like languages then egressed to building managing and diagnosing networks as arcnet fad...]]></description>
                        <content:encoded><![CDATA[<p>@zander </p>
<p>formely a programer, from the 70s with Systemhouse, in cobol, then in the 80s compiled dbase like languages then egressed to building managing and diagnosing networks as arcnet faded into token ring and ethernet or hybrid ethernet as I like to call it :)  I have not programed since maybe the the early 90s, and have been retired for the past 8 years, so I'm trying to keep the rust out ..</p>
<p>Since retirement, I have played with ardiono making a few useful things like remote temerature sensing and plant watering with moisture sensors, but still very much a neofyte of these microporocessors and training them.</p>
<p>Lol, my sensors detected your humour, always enjoyed.</p>
<p>I have seen exactly what I want on Amazaon,(Risinglink power failure alarm) but I have a few arduino and an esp32 from disassembled projects, and miscellaneous parts, so my purpose is both to construct a practical device, as well as continue my education etc.  So if I do need parts, I'm hoping it will be less than a meal at Tims, and priceless in the knowledge dept.</p>
<p> </p>
<p>to further define:</p>
<p>house environment:  APC UPS supporting internet and local network &amp; telemetry.</p>
<p> </p>
<p>Gizmo to construct:  </p>
<p>desired specs - has clock / calendar that can be set - I see the PICO has this</p>
<p>able to find libraries to enable sending email (this will also get me the approximate time stamps needed) - most have this</p>
<p>powered by USB (via house UPS* or even a battery ) - they all seem to have this</p>
<p>* - the existing infastructrue needs to be in place for message reporting</p>
<p>sensor to detect power or voltage - I think it would be fine to use another USB power souce to keep this all with low voltage, and find a method to detect if there is power eg 5 volts and when there is not.</p>
<p> </p>
<p>As you mention, the programming does seem to be fairly straighforward , to detect and alert on an outgage, and again when it is restored, sending then appropriate message.  Logging is done via the emails and not needed to be retained on the gizmo.</p>
<p> </p>
<p>You have given me another term to hunt down - UPS HATS</p>
<p> </p>
<p>Much deeper reason for this device:</p>
<p>Everyone is impacted by power outgages some just flickers, other days in length.</p>
<p>Some of us want to know when and how long, plus relfect over time how often do they happen and how incovient are they.</p>
<p>In short, the quality of power is very important in this current era.</p>
<p>During my working career of managing networks there was often a battle between equiment vendors, power utility and electricians when there was a problem that "it must be the power"</p>
<p>Electricians would bring in a boxy device 100 times the size of my blackberry, (circ 2010) to monitor the power and later say nope not the power or it doesn't detect outages shorter than 5 minutes (why did I call them, right?)</p>
<p>I currently have time to dwell on this issue.  Also, one of your recent notes indicated that you too have suffered a few power outages .. Inquiring minds need answers :)</p>
<p>In summary, I am sure that there are many who could use this type of gizmo to point to the gremlins affecting their lives</p>
<p> </p>
<p>Kind regards,</p>
<p>Matt</p>
<p> </p>
<p> </p>
<div class="hHq9Z">
<div data-hveid="CA4QAA">
<div class="gyEfO">
<div class="wDYxhc NFQFxe viOShc LKPcQc" data-md="221" data-hveid="CBIQAA" data-ved="2ahUKEwjuiJj4hYOEAxUiEVkFHQ0CCWUQnKEBegQIEhAA">
<div class="ZxoDOe yGdMVd UoezFf">
<div class="UFE1qd">
<div class="EGmpye Mf9fnc"> </div>
<div class="oQDTXb">
<div data-ias="false">
<div class="y1yadf">
<div class="CcNe6e v4Zpbe" role="button" aria-expanded="false"> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="GRl5yb a8pxAe">
<div class="wPNfjb">
<div id="JTPWx" class="FJIcp" role="tablist" data-hveid="CBAQAA"> </div>
</div>
</div>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Matt</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45529</guid>
                    </item>
				                    <item>
                        <title>RE: Mains Power monitor and alert</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45524</link>
                        <pubDate>Mon, 29 Jan 2024 15:16:17 +0000</pubDate>
                        <description><![CDATA[@matts I do, I was having a bit of fun with you. It&#039;s actually a fairly trivial project. Do you want this as a learning project, or just to accomplish the task. The reason I ask is there are...]]></description>
                        <content:encoded><![CDATA[<p>@matts I do, I was having a bit of fun with you. It's actually a fairly trivial project. Do you want this as a learning project, or just to accomplish the task. The reason I ask is there are solutions you can buy and they are cheap, <a href="https://amz.run/7tHt" target="_blank" rel="noopener">THIS </a>device for instance costs less than $100 CDN.</p>
<p>If you are wanting to DIY for the learning experience, then an esp8266, esp32, most arduinos, the RaspberryPi PICO(W) and many others will all work.</p>
<p>Based on your requirements, a sensor on the mains is the golden solution, but a simple UPS HAT as I mentioned will tell you that at least one leg of your power is out but not the whole house.</p>
<p>I have UPS HATS (boards that fasten to the MCU/MPU) for PICO, Pi 4B, Pi Zero, and maybe some others so I know they are available and I can tell you the implementation varies quite a bit, some are a couple minutes, some I have yet to figure out.</p>
<p>If you are a qualified programmer, with a few libraries and a handful of code you can roll your own.</p>
<p>Good luck.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45524</guid>
                    </item>
				                    <item>
                        <title>RE: Mains Power monitor and alert</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45522</link>
                        <pubDate>Mon, 29 Jan 2024 15:06:07 +0000</pubDate>
                        <description><![CDATA[Thank you, you have given me a few elements to research 
I was not aware of the Pico Pi, or the reddit item
It seems my initial description was flawed, but I sense you understand what I am...]]></description>
                        <content:encoded><![CDATA[<p>Thank you, you have given me a few elements to research </p>
<p>I was not aware of the Pico Pi, or the reddit item</p>
<p>It seems my initial description was flawed, but I sense you understand what I am after.</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Matt</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45522</guid>
                    </item>
				                    <item>
                        <title>RE: Mains Power monitor and alert</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45519</link>
                        <pubDate>Mon, 29 Jan 2024 14:36:10 +0000</pubDate>
                        <description><![CDATA[@matts From google, here is a reddit discusio]]></description>
                        <content:encoded><![CDATA[<p>@matts From google, here is a reddit discusion<a href="https://www.reddit.com/r/smarthome/comments/xs97b3/any_ideas_for_a_diy_power_outage_alarm/" target="_blank" rel="noopener">https://www.reddit.com/r/smarthome/comments/xs97b3/any_ideas_for_a_diy_power_outage_alarm/</a></p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45519</guid>
                    </item>
				                    <item>
                        <title>RE: Mains Power monitor and alert</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45518</link>
                        <pubDate>Mon, 29 Jan 2024 14:34:16 +0000</pubDate>
                        <description><![CDATA[@matts I just did a google, and here is the first hit]]></description>
                        <content:encoded><![CDATA[<p>@matts I just did a google, and here is the first hit</p>
<p><a href="https://www.instructables.com/Build-a-Simple-Power-Outage-Monitor/" target="_blank" rel="noopener">https://www.instructables.com/Build-a-Simple-Power-Outage-Monitor/</a></p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45518</guid>
                    </item>
				                    <item>
                        <title>RE: Mains Power monitor and alert</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45516</link>
                        <pubDate>Mon, 29 Jan 2024 14:02:54 +0000</pubDate>
                        <description><![CDATA[@matts Any MCU or MPU can do what you want, however the following is impossible

The usb power wall wart would Not be on a UPS power supply, as that power value is what is to be measured t...]]></description>
                        <content:encoded><![CDATA[<p>@matts Any MCU or MPU can do what you want, however the following is impossible</p>
<blockquote>
<p><span>The usb power wall wart would Not be on a UPS power supply, as that power value is what is to be measured to determine a power failure.</span></p>
</blockquote>
<p>If the device to determine the power failure is not operating due to a power failure then you can't get there form here.</p>
<p>You need a UPS HAT powered MCU (Arduino) or MPU (Raspberry Pi) with an AC power sensor. Then it is just a handful of lines of code.</p>
<p> </p>
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45516</guid>
                    </item>
				                    <item>
                        <title>RE: Mains Power monitor and alert</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45513</link>
                        <pubDate>Mon, 29 Jan 2024 13:30:56 +0000</pubDate>
                        <description><![CDATA[The usb power wall wart would Not be on a UPS power supply, as that power value is what is to be measured to determine a power failure.
Can the ESP32 or Arduino measure power should have be...]]></description>
                        <content:encoded><![CDATA[<p>The usb power wall wart would Not be on a UPS power supply, as that power value is what is to be measured to determine a power failure.</p>
<p>Can the ESP32 or Arduino measure power should have been my 1st question </p>
<p>If so, it should be testing a different source than what powers it (ie battery or ups system)</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Matt</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45513</guid>
                    </item>
				                    <item>
                        <title>RE: Mains Power monitor and alert</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45510</link>
                        <pubDate>Mon, 29 Jan 2024 13:02:46 +0000</pubDate>
                        <description><![CDATA[@matts The following is a little confusing

unit live on USB power but has a battery backup
When main (USB) power has failed (voltage essentially 0) 

Is your wall wart (live) plugged i...]]></description>
                        <content:encoded><![CDATA[<p>@matts The following is a little confusing</p>
<blockquote>
<p>unit live on USB power but has a battery backup</p>
<p>When main (USB) power has failed (voltage essentially 0) </p>
</blockquote>
<p>Is your wall wart (live) plugged into a UPS (battery backup)?</p>
<p>If the esp32 has no power how can it detect a failure.</p>
<p>I THINK what you mean is that your MCU (esp32 or??) is running on a UPS HAT. </p>
<p>I happen to have one using a PICO on my desk at the moment.</p>
<p>All the functionality you mention is what most UPS's do.</p>
<p> </p>
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/mains-power-monitor-and-alert/#post-45510</guid>
                    </item>
							        </channel>
        </rss>
		