Aziz Bench

AO3401A as a switch with Arduino and ESP32

A P-channel SOT-23 MOSFET for switching the positive side of loads up to a few amps at 5–12 V. Its gate takes at most ±12 V.

Transistor
AO3401A
P-channel MOSFET · SOT-23 · Alpha & Omega
Max voltage
30 V
Max current
4 A
RDS(on)
85 mΩ at −2.5 V
SOT-23 pinout
3D1G2S

Gate drive on the high side

On the high side a small NPN driven by the pin pulls the gate of the AO3401A down and the gate sees the load supply. Above 80 % of its 12 V gate limit a divider keeps it within range.

SupplyGate voltageVerdictWhy
5 V−5 VWorksRDS(on) at most 60 mΩ guaranteed from 4.5 V
12 V−9.02 V (with a divider)WorksRDS(on) at most 60 mΩ guaranteed from 4.5 V
24 V−9.6 V (with a divider)WorksRDS(on) at most 60 mΩ guaranteed from 4.5 V

Specifications

TypeP-channel MOSFET
PackageSOT-23
Maximum voltage30 V
Maximum current4 A
Threshold VGS(th)−0.5 … −1.3 V
RDS(on), maximum85 mΩ at −2.5 V (2.5 A) · 60 mΩ at −4.5 V (3.5 A) · 50 mΩ at −10 V (4 A)
Gate voltage limit±12 V
Gate charge14 nC at −10 V (typical)
Thermal resistanceθJA 125 °C/W
Maximum junction temperature150 °C
Datasheet usedAlpha & Omega

Pinout

PinFunction
1Gate
2Source
3Drain

Seen from above with the single pin (3) at the top: pin 1 is bottom left, pin 2 bottom right.

Similar parts

PartPackageRDS(on), guaranteedMax voltageMax current
AO3401ASOT-2385 mΩ at −2.5 V30 V4 A
IRF9540NTO-220117 mΩ at −10 V100 V23 A

Tips

The gate swings by the whole supply voltage: keep it below 80 % of the MOSFET’s 12 V limit, with a divider or a 9.1 V Zener above that.

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.

An SOT-23 sheds its heat through the copper on the drain pin: the datasheet figure assumes about 6.5 cm² (1 in²), a bare pad runs much hotter.

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

Other transistors

Frequently asked questions

How do I drive the AO3401A from a microcontroller?

Source to the positive supply, a 10 kΩ resistor from gate to source, and a small NPN driven by the pin that pulls the gate to ground. RDS(on) is guaranteed from 2.5 V, so the supply must reach that; above 80 % of the 12 V gate limit add a divider.

What is the AO3401A pinout?

SOT-23: 1 gate, 2 source, 3 drain. Seen from above with the single pin (3) at the top: pin 1 is bottom left, pin 2 bottom right.

Source of the figures: Alpha & Omega datasheet (PDF)