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

Beginners • Using a transistor to selectively power an element

$
0
0
Hey, apologies for any bad assumptions, this is my first time messing around with this sort of thing on my own and I'm out of my comfort zone on this one.

I want to be able to selectively power an element that takes 5v, using what I think should be a PNP transistor to switch it on and off. With a Raspberry Pi 4B, I believe the setup should look like this:

Image
Image

Wiring it like that, what I'd need to power the element is a "HIGH" output from GPIO-18, and a "LOW" output to switch it off. While I don't know the specifics of the transistor I have, from what I've looked at online it seems like this might work.

I wanted to check if any of this is correct, as I'm kind of nervous about wiring my own experiments still.

Statistics: Posted by FER24 — Sun Jul 07, 2024 6:12 am — Replies 0 — Views 15



Viewing all articles
Browse latest Browse all 4567

Trending Articles