Component guide · Beginner · 3 min read
AMS1117 regulator

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The AMS1117 is a small linear (LDO) regulator that turns 4.5 to 12 V into a fixed 3.3 V or 5 V at up to about 800 mA. It needs at least about 1.1 to 1.3 V more at the input than the output, and it burns the extra voltage as heat, so keep the input low and the current modest.
Key specs at a glance
- Output
- Fixed 3.3 V or 5 V (other fixed versions exist)
- Current
- Up to 800 mA (1 A peak), limited by heat
- Dropout
- About 1.1 V at light load, 1.3 V at 800 mA
- Input
- Up to 15 V on the chip; modules usually 4.5 to 7 V for 3.3 V output
- Package
- SOT-223
- Capacitors
- Needs 10 to 22 µF on the output (fitted on modules)
What the AMS1117 regulator is
The AMS1117 is a linear voltage regulator: it lowers the voltage by dropping the difference across a transistor, so power lost = (input − output) × current. From 5 V to 3.3 V at 300 mA that is 0.5 W, fine. From 12 V to 3.3 V at the same current it is 2.6 W, which overheats the small package.
It is the regulator on most Arduino clones and ESP boards and the standard way to get 3.3 V from 5 V.
AMS1117 regulator pinout
The pins on the AMS1117 regulator and what each one does.
| Pin | Function |
|---|---|
| VIN (IN) | Input voltage |
| GND (ADJ) | Ground on fixed versions |
| VOUT (OUT) | Regulated 3.3 V or 5 V output; the tab is also VOUT |
- VIN (IN)
- Input voltage
- GND (ADJ)
- Ground on fixed versions
- VOUT (OUT)
- Regulated 3.3 V or 5 V output; the tab is also VOUT
Wiring the AMS1117 regulator
A typical use is a clean 3.3 V supply for an ESP-01 or a 3.3 V sensor from a 5 V board. Keep wires short and leave the module's capacitors in place.
| AMS1117 regulator pin | Arduino Uno | ESP32 |
|---|---|---|
| VIN | 5V pin | 5V (USB) pin |
| GND | GND | GND |
| VOUT 3.3 V | 3.3 V sensor VCC | Extra 3.3 V rail |
- VIN
- Arduino Uno:
- 5V pin
- ESP32:
- 5V (USB) pin
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- VOUT 3.3 V
- Arduino Uno:
- 3.3 V sensor VCC
- ESP32:
- Extra 3.3 V rail
Example code
The regulator needs no code. Logging the rail while Wi-Fi transmits shows whether it sags under the 300 to 400 mA bursts of an ESP module.
// 10k/10k divider from the AMS1117 output to GPIO 34
void setup() { Serial.begin(115200); }
void loop() {
float v = analogReadMilliVolts(34) * 2 / 1000.0;
Serial.printf("3.3 V rail: %.2f V\n", v);
delay(1000);
}Setup and tuning
use the linear regulator heat calculator. More than about 1 W needs copper area or a switching converter.
3.7 V from a Li-ion cell is too low for a stable 3.3 V at high current; use an LDO with lower dropout or a buck-boost converter.
add 100 to 470 µF on the output to cover Wi-Fi current spikes.
What you need
Shop this list4 of 5 found in our store · ₹269
AMS1117 fixed regulator module: the regulator this guide coversAMS1117 Fixed Regulator Module₹19
AI-Thinker ESP-01S ESP8266 Wi-Fi module: a common 3.3 V loadAI-Thinker ESP-01S ESP8266 WiFi Module₹185- Uno R3 development board: the controller used in the wiring tableFind this part
Electrolytic capacitor: extra bulk capacitance for Wi-Fi spikesElectrolytic Capacitor₹16
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Alternatives and when to choose them
- LM2596: switching buck, for big voltage drops or currents over 0.5 A.
- Voltage regulators guide: 78xx, LM317 and LDOs compared.
- MT3608: when the input is lower than the output.
Try it: Linear regulator heat calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Feeding 12 V and drawing 500 mA, which overheats the chip.
- Removing the output capacitor, which makes the regulator oscillate.
- Expecting 3.3 V from a 3.7 V cell under load.
- Using the 3.3 V version to power 5 V parts.
Frequently asked questions
What is the input range for the 3.3 V AMS1117?
About 4.5 V up to about 7 V on modules is practical; the chip allows up to 15 V but heat rises fast.
How much current can it supply?
Up to 800 mA, but heat usually limits it to 300 to 500 mA in practice.
Can it run an ESP8266 or ESP32?
Yes from 5 V, with a large capacitor on the output for transmit bursts.
Why is it getting very hot?
The input voltage is too high for the current. Lower the input or use a buck converter.
Is AMS1117 an LDO?
Yes, but its dropout of about 1.1 V is high for an LDO; newer parts drop under 0.3 V.
Can I use it to drop 5 V logic to 3.3 V?
No. It is a power regulator; use a level shifter for signals.
Parts for this guide
Calculators
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

