Projects with a MOSFET
10 Mokxi projects use a MOSFET (2 beginner, 6 intermediate and 2 advanced). They run on Arduino Uno and Arduino Mega boards, and 2 need no board at all. Here are all of them, from “MOSFET switch” to “Heated bed PID”. Each card says what the project does, the board and parts it needs and its level, and Open in the simulator runs it in your browser in one click, with no account.
How to pick your first one
- Start with “MOSFET switch”, a beginner project that needs a resistor, an LED, a MOSFET and 1 more part.
- Arduino Uno runs 7 of them, Arduino Mega 1 and 2 need no board at all. Start on the board you have, or on an Arduino Uno if you are buying one.
- The parts used most here are the diode (5 projects), the slide switch (4) and the LED (3). With those on hand, most of this list is open to you.
- Before you build one on a real bench, open the MOSFET part page for its pins and what each one does.
10 projects ready to run

MOSFET switch
A 2N7000 switching an LED from a slide switch, with no gate resistor anywhere: the switch a board pin reaches for.
- Board
- No board
- Parts
- Resistor, LED, MOSFET, slide switch
- Level
- Beginner

Motor pinwheel
Hold the button and an IRF520 MOSFET on pin 9 runs a DC motor from a 9 V battery, with a 1N4007 across the motor to catch its kick.
- Board
- Arduino Uno R3
- Parts
- Push button, resistor, MOSFET, diode, DC motor, +1 more
- Level
- Beginner

12 V RGB strip color fade
A 12 V RGB LED strip behind three IRLZ44N MOSFETs: the Uno fades it around the color wheel with PWM on pins 9, 10 and 11.
- Board
- Arduino Uno R3
- Parts
- LED strip, MOSFET, DC voltage source
- Level
- Intermediate

BSS138 level shifter
One channel of the bi-directional 3.3 V to 5 V level shifter: a BSS138 and two 10k pull-ups. Pull either side low and the other follows.
- Board
- No board
- Parts
- MOSFET, resistor, slide switch, multimeter
- Level
- Intermediate

Electromagnet hold and drop
An Uno holds a steel plate with a 12 V P20/15 electromagnet through a MOSFET on pin 9, three seconds on and two off, with a diode across the coil.
- Board
- Arduino Uno R3
- Parts
- MOSFET, diode, holding electromagnet, bench power supply
- Level
- Intermediate

Solenoid tap
An Uno taps a 12 V solenoid once a second through a MOSFET, with a diode across the coil to catch the kick when it lets go.
- Board
- Arduino Uno R3
- Parts
- MOSFET, diode, solenoid, bench power supply
- Level
- Intermediate

Lamp inrush
An Uno switches a 6 V filament lamp with a MOSFET and samples its current every millisecond: the surge of a cold filament.
- Board
- Arduino Uno R3
- Parts
- MOSFET, resistor, filament lamp, battery: AA
- Level
- Intermediate

Leak detector with shutoff valve
A teaching model: a YF-S201 flow sensor and an EEPROM totalizer watch for water that never stops or a trickle nobody is using.
- Board
- Arduino Uno R3
- Parts
- Water flow sensor, solenoid, bench power supply, MOSFET, diode, +5 more
- Level
- Intermediate

Pinball table
A table you can play on a Mega: flippers, pop bumpers on a kicker solenoid, targets, a drain beam and a plunger, with a four-digit score.
- Board
- Arduino Mega 2560 R3
- Parts
- TM1637 four-digit display, WS2812 NeoPixel LEDs, pinball table, MOSFET, diode, +3 more
- Level
- Advanced

Heated bed PID
A 100k thermistor, a MOSFET heater and a PID loop holding a modeled bed at its target.
- Board
- Arduino Uno R3
- Parts
- Resistor, 10k NTC thermistor, MOSFET, filament lamp, slide switch, +1 more
- Level
- Advanced