Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4834

Beginners • Measuring voltage on GPIO to detect blackout

$
0
0
Hi
I have raspberry pi 4 and I use it for home automation
Raspberry pi power supply connected to power bank via Type-C
I need to definitely detect blackout

Can I use GPIO pins (2 and 4) to measure input voltage (5V), throw its value to home assistant considering that raspberry is getting power via usual type-c port ?

Statistics: Posted by ecp — Mon Jul 29, 2024 2:34 pm



Viewing all articles
Browse latest Browse all 4834

Trending Articles