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

Advanced users • Re: How to detect Raspberry Pi 5 is power on through GPIO

$
0
0
That requires software, I need detecting on hardware level that doesn't require any specific software running on the device that is being checked.

Are you willing to make a minor change to its config.txt and do you have any of the possible UART pins free?

If so, enable one of the UARTs (see /boot/overlays/README) and have the other Pi monitor the UART's TX pin. As long as you don't run a getty on it it will go high once activated (TTL serial is active low) and low on shutdown.

What it won't let you do is distingush between a active Pi and one where the kernel paniced or the OS has hung in some other way.
It still kinda software, but it is at least boot related, but I would maybe improve it and just set specific pin high:

Code:

gpio=17=op,dh

Statistics: Posted by exander — Mon Sep 02, 2024 12:10 am



Viewing all articles
Browse latest Browse all 4863

Trending Articles