Author Topic: MightyHat sense power outage  (Read 9126 times)

Lukapple

  • Full Member
  • ***
  • Posts: 202
MightyHat sense power outage
« on: November 08, 2019, 10:06:56 AM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: MightyHat sense power outage
« Reply #1 on: November 11, 2019, 09:00:19 AM »
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

  • Full Member
  • ***
  • Posts: 202
Re: MightyHat sense power outage
« Reply #2 on: November 11, 2019, 09:02:40 AM »
Thanks for the hint Felix. I’ll check out that post.