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

General discussion • GPIO read when grounded

$
0
0
I have a series of Discrete Outputs that I need to be able to read on a Pi. By default, the box that handles the outputs has an internal switch that dictates if it's on or off. I have pins out for both ends of that switch. It is recommended to connect DO_L to ground and read the ground state when the switch is closed. Is there a way for the Pi to read when the GPIO pin is grounded?

This would allow us to connect DO_L on each discrete to chassis ground and then DO_H to a GPIO Header for each.

An alternative that I know can work is to wire 3.3v to each DO_H and then each DO_L to a GPIO Pin and read when that is high.

Statistics: Posted by lightofice — Tue Mar 11, 2025 12:57 pm



Viewing all articles
Browse latest Browse all 2508

Trending Articles