Hi,
I need to control a 12V LED that is inside a button. I know I can do it with a relay, but wanted to avoid the physical sound of it, can I do it with mosfets? How? Can I use the irlz34n ?
Yes. A MOSFET will do the job and this specific one will also work with the logic levels output by the pi's GPIO pins.
So I think it should be something like GPIO 3.3V to MOSFET G, ground to MOSFET S and 12v to LED + and LED - to MOSFET D ? Is this correct ? Cannot opne button to see if LED has a resistor, it's a push button with a led inside.scotty101 wrote: ↑Wed Aug 07, 2019 8:56 amYes. A MOSFET will do the job and this specific one will also work with the logic levels output by the pi's GPIO pins.
See https://www.raspberrypi.org/forums/view ... p?t=175032
I already have the MOSFETS irlz34n. Why is an expensive option? How to make it cheaper? But can it be done? Would I need diodes as well? If yes, what kind of diode? any greater than 12V ?
