Aziz Bench

IRLB8721 as a switch with Arduino and ESP32

A 30 V TO-220 MOSFET with RDS(on) guaranteed at 4.5 V (16 mΩ): a good choice for LED strips and motors from a 5 V pin. From 3.3 V nothing is guaranteed.

Transistor
IRLB8721
N-channel MOSFET · TO-220 · Infineon
Max voltage
30 V
Max current
62 A
RDS(on)
16 mΩ at 4.5 V
TO-220 pinout
1G2D3S

From a 3.3 V or 5 V pin

PinVerdictWhyIn free air
ESP32 · 3.3 VNot guaranteednothing guaranteed below 4.5 V—
Arduino Uno · 5 VWorksRDS(on) at most 16 mΩ guaranteed from 4.5 V8.8 A (heat)

In free air at 25 °C, with the junction 25 °C below its 175 °C maximum and θJA 62 °C/W, at the guaranteed RDS(on) raised with temperature.

Specifications

TypeN-channel MOSFET
PackageTO-220
Maximum voltage30 V
Maximum current62 A
Threshold VGS(th)1.35 … 2.35 V
RDS(on), maximum16 mΩ at 4.5 V (25 A) · 8.7 mΩ at 10 V (31 A)
Gate voltage limit±20 V
Gate charge13 nC at 4.5 V
Thermal resistanceθJA 62 °C/W · θJC 2.3 °C/W
Maximum junction temperature175 °C
Datasheet usedInfineon

Pinout

PinFunction
1Gate
2Drain
3Source

Printed face toward you, leads down: pin 1 is on the left. The metal tab is connected to pin 2.

Similar parts

PartPackageRDS(on) at 3.3 VRDS(on) at 5 VMax voltageMax current
IRLB8721TO-220no16 mΩ30 V62 A
2N7000TO-92no5.3 Ω60 V200 mA
BS170TO-92nono60 V500 mA
AO3400ASOT-2348 mΩ32 mΩ30 V5.7 A
Si2302SOT-2375 mΩ57 mΩ20 V2.6 A
IRLML6344SOT-2337 mΩ29 mΩ30 V5 A
IRLZ44NTO-220no25 mΩ55 V47 A
IRF520TO-220nono100 V9.2 A
IRF540NTO-220nono100 V33 A

Tips

Keep the 10 kΩ from gate to ground: while the microcontroller boots its pins float and the MOSFET could turn on by itself.

Every coil needs a flyback diode across it, cathode to the positive supply. Without it the voltage spike at turn-off can destroy the transistor at the first switching.

A TO-220 in free air sheds little heat: fit a heatsink, insulated if the tab must not touch it (the tab is the drain or collector).

Open the calculator →Check the IRLB8721 with your own load, supply, PWM frequency and temperature.

Other transistors

Frequently asked questions

Does the IRLB8721 work with a 3.3 V ESP32?

Not reliably: the threshold is at most 2.35 V, but RDS(on) is guaranteed only from 4.5 V. It may switch small currents, nothing more is promised. Use a MOSFET guaranteed at 2.5 V such as the AO3400A.

How much current can the IRLB8721 switch without a heatsink?

About 8.8 A from a 5 V Arduino pin, in free air at 25 °C, keeping the junction 25 °C below its 175 °C maximum (limit: heat).

What is the IRLB8721 pinout?

TO-220: 1 gate, 2 drain, 3 source. Printed face toward you, leads down: pin 1 is on the left. The metal tab is connected to pin 2.

Source of the figures: Infineon datasheet (PDF)