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

General • Switching Circuit

$
0
0
I am making a project with Pi Pico, and running out of pins. I have all sorts of stuff hooked up to this pico.

I am literally short 1 pin for driving either a LED or BUZZER from GPIO 22, and I want both, but not at the same time. I do have a free ADC pin (GPIO28), so I was thinking I could make a setup where if that pin is high, then only the buzzer works, and if that pin is low, only the LED works.

In theory, the ADC could still be used, although if using it as ADC, it would disable the LED, which I am fine with. All this is assuming GPIO28 can be used as a digital pin, I read somewhere that it can, but have never had the need to.

What do you guys think about this circuit? Haven't tested it yet, the Pico and breadboard are being used for something else at the moment.
led-buzzer.PNG

Statistics: Posted by picoprojectmaker — Sun Jan 14, 2024 1:40 am — Replies 6 — Views 784



Viewing all articles
Browse latest Browse all 6094

Trending Articles