LM7805 vs AMS1117-3.3
Two linear regulators that are often mixed up but are not pin-compatible.
The LM7805 and the AMS1117 are the two linear regulators most often found in hobby projects. The LM7805 delivers a fixed 5 V at up to about 1.5 A in a TO-220 package and accepts input voltages up to 35 V, but needs about 2 V more at the input than at the output. The AMS1117 is a low-dropout regulator (LDO) in a SOT-223 package that gets by with about 1.1 to 1.3 V of headroom, but is only meant for input voltages up to about 15 V and delivers up to around 1 A. It comes in fixed versions such as 3.3 V and 5.0 V and as an adjustable variant.
Watch out when swapping: the pin order is different. On the LM7805, pin 1 is the input, pin 2 ground and pin 3 the output. On the AMS1117, pin 1 is ground (or ADJ), pin 2 the output and pin 3 the input; the tab is connected to the output. An AMS1117 on a 7805 footprint would therefore be connected the wrong way round. The AMS1117 also needs a sufficiently large output capacitor for stable operation, typically 22 µF.
For both, the difference between input and output voltage times the current turns into heat. The table shows where input, ground and output are on each part.
The pinouts differ. Use the tables below to rewire the signals.
Overview from the pinout data
| Property | LM7805 Positive Voltage Regulator | AMS1117-3.3 Low Dropout Voltage Regulator |
|---|---|---|
| Manufacturer | STMicroelectronics / TI | Advanced Monolithic Systems |
| Type | Chip | Chip |
| Compared pinout | TO-220 Pinout (Front View) | SOT-223 Package (Top View) |
| Pins | 3 | 4 |
| Supply pins | VI, VO | VOUT, VIN, TAB (VOUT) |
| Ground pins | 1 | 1 |
| Interfaces | – | – |
Pin by pin
The pins are numbered differently, so they are matched by signal: 3 signals exist on both.
| Signal | LM7805 Positive Voltage Regulator | AMS1117-3.3 Low Dropout Voltage Regulator |
|---|---|---|
| VI | 1 · VI | 3 · VIN |
| GND | 2 · GND | 1 · GND / ADJ |
| VO | 3 · VO | 2 · VOUT |
Only on AMS1117-3.3 Low Dropout Voltage Regulator
4 · TAB (VOUT)Verdict
For 5 V from 9 to 24 V the LM7805 is robust and simple. For 3.3 V from 5 V or USB the AMS1117 is the usual choice. They are only interchangeable with a modified board.