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

Beginners • Re: GPIO reverse polarity.

$
0
0
Is it possible tor reverse polarity for GPIO.

What I mean by this:

1. When I set GPIO to input and connect it to ground my GPIO state would be HIGH.

2. When I set GPIO to output and and to the power source (+), the HIGH state would allow the current to flow, and LOW would disallow it.
  1. You do that with the logic of your program. What language are you using?
  2. This doesn't make a lot of sense. If you connect a suitable 3V3 load to a GPIO output, it can have its other end either at 3V3 or at 0V. This will reverse the program output effect. You cannot use any other voltage, and the current available (source or sink) is limited. If you need to switch a load using a different voltage, you must use some form of hardware buffer between GPIO and load.

Statistics: Posted by davidcoton — Tue Sep 17, 2024 9:55 pm



Viewing all articles
Browse latest Browse all 5352

Trending Articles