MightyHat sense power outage

Started by Lukapple, November 08, 2019, 10:06:56 AM

Lukapple

I'm running RPI4 with MightyHat and battery backup.
Is there any way to detect power outage?
I want to create a dummy gateway node, which will log power outage events.

Felix

Luka,
If you look at the schematic, there is a battery monitor on A7, which reads VUSB or VBAT. When power is lost the reading should be around 4.2v or lower. When on USB it should be higher than that.

Please also see this thread where this is also discussed how to make the difference between different power input.

Lukapple

Thanks for the hint Felix. I'll check out that post.