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

Beginners • Re: Measuring voltage on GPIO to detect blackout

$
0
0
A Pi can monitor the 0V/GND plus 5V pins of the GPIO header on another Pi to determine if it is receiving power or not. You would need to use a resistor divider or other means to convert the 5V signal to 3V3 the monitoring Pi can safely use.

I think that's the question you are asking.

Or are you asking if a Pi can itself determine if it has power ? It won't be running or doing anything if it hasn't.
The goal is getting notifications possible blackout (at home)
Raspberry connected to power bank and will continue working. Then
- I get basic 5V phone charger (in 230V socket) and any usb cable
- cut USB cable to get 5V and ground wires
- connect wires to Raspberry GPIO

If there is no power in socket — no input voltage/current/power on Raspberry’s GPIO => this is blackout!
To get 3.3V from 5V i will use buck converter, this is not a problem

How or where to get info about input voltage/current/power value on GPIO? I use raspberry pi OS, Debian 12

Statistics: Posted by ecp — Mon Jul 29, 2024 4:52 pm



Viewing all articles
Browse latest Browse all 4906

Trending Articles