Electronic Basics #23: Transistor (MOSFET) as a Switch
Why Electrical Engineering Stack Exchange recommends it
Electronics Stack Exchange users link it as a beginner-friendly introduction to switching loads like LED strips and solenoids with a MOSFET.
Recommended by 1 people across 1 different months, 2017 to 2022.
What it is
A six-minute episode of GreatScott!'s Electronic Basics series showing how to use N-channel and P-channel MOSFETs as switches so a control signal, such as an Arduino pin, can turn a higher-current load on and off. It covers the practical side of gate drive, with links to application notes on MOSFET behavior.
What people said
Recommends SRR · 2020-03 · Electrical Engineering Stack Exchange · on “Wiring LED light strips in car”
Your original schematic isn't clear but I think you're trying to use the N-Channel MOSFET as a switch [LINK] . Since I don't know the current required by your LED strip you should spec one out yourself. This video [this video] gives a great introduction to MOSFETs. Below is an explanation for each of the components used. R1 - current limiting resistor to limit the gate current to reduce voltage oscillations R2 - pull down resistor to avoid spurious activations by creating a defined voltage level at all times R3 - load resistor that represents the position of your LED strip in the whole schematic. simulate this circuit [LINK] – Schematic created using CircuitLab [LINK] As others have mentioned, it
Cites dfsg76 · 2017-12 · Electrical Engineering Stack Exchange · on “How to drive multiple LEDs with PWM and MOSFET”
I just almost finished my circuit for controlling multiple LEDs. I have push buttons with LED rings, with preinstalled resistors in them. 5V common anode RGB LEDs and 9x 12V LEDs. I also have a display shield with a dedicated LED anode PIN on my Mega2560. I want to be able to dim all of those together with PWN from the NodeMCU. I want to connect the 12V LEDs and the display backlight together to one pin of my NodeMCU. The LED backlight is rated as follows: 3.2 V, 4 LEDs in parallel, each rated for 20mA. The problem is: The ground of the LED backlight is common with the whole display so I cannot use it separately. Thus, I cannot use a N channel MOSFET. Looking at this video: [this video] I learned
Cites user229515 · 2019-09 · Electrical Engineering Stack Exchange · on “MOSFET broke after attaching capacitor bank”
I have a solenoid that has a coil resistance of \$0.3\Omega\$ and accelerates a steel projectile here. I've posted the schematics below. Normal Version that acts as a control [LINK] The GPIO8 goes to 5V to switch on the MOSFET and turn it off when the projectile is detected with the optical sensor. And it works just fine [LINK] . Next, I tried it with 10 supercapacitors that are connected in series. I charged it up to 27 volts. Version #1 [LINK] When I powered up the circuit, there was a spark when I connected the capacitor ground to the MOSFET's ground. The Gate and Source circuit should have been opened because when I first connected it, GPIO8 is at 0v. After some troubleshooting, I found
Cites php_nub_qq · 2021-02 · Electrical Engineering Stack Exchange · on “Can a uC drive a MOSFET at 500Hz”
I want to dim an LED strip. It's about 1.5m in total length and could work for prolonged time on a battery. If it weren't for the battery limitation I would probably just put a resistor in series, but I'd like to make it as efficient as possible so I'm thinking of using PWM. I've got a 5V uC. Strip is running off of 12V. I have a bunch of IRLZ44N transistors laying around which is probably overkill for this job but that's what I have so I'll just use it. My question is in two parts: In this famous greatscott video [this video] it is explained that switching higher loads causes oscillations that can't lead to anything good. Since I don't own an oscilloscope, how can I tell if my load/frequency are
Cites Miron · 2022-03 · Electrical Engineering Stack Exchange · on “What solid state relay would I need for flashing on and off over prolonged period of time?”
search for "arduino mosfet driver circuit" (if you type "arduino" in front of any electronics question you will get the easier to understand results) and you will find lots of diagrams like this: [LINK] N channel MOSFET + some resistors + protection diode. The "load" is your electromagnet [this video]