What is the MT3608?
The MT3608 boost converter takes a low DC voltage and turns it into a higher one. Feed it a single 3.7 V lithium cell and get a steady 5 V for an ESP32 or Arduino; feed it 5 V from USB and get 9 V or 12 V for a small fan, LED strip or sensor that needs it. The module is about the size of a postage stamp, costs very little and has one adjustment: a small blue trimmer that sets the output voltage.
Three things decide whether an MT3608 project works: setting the trimmer before you connect anything, understanding that the input must supply more current than the output delivers, and knowing that the module is always on, even while your project sleeps. This page explains each one in plain language, shows how a boost converter works inside, and gives you the datasheet numbers. For complete builds, see the Arduino Uno guide and the ESP32 guide.
Specifications
- Converter type
- Boost (step-up), current-mode PWM
- Input voltage
- 2 V to 24 V
- Output voltage
- Adjustable up to 28 V, always above the input
- Switch current limit
- 4 A peak (internal switch); usable output is much lower, see below
- Switch on-resistance
- 80 mΩ typical, 150 mΩ maximum
- Switching frequency
- 1.2 MHz fixed
- Maximum duty cycle
- 90 %
- Feedback reference
- 0.6 V (0.588–0.612 V)
- Efficiency
- Up to 97 % (datasheet best case); about 80–90 % on typical modules
- Chip supply current
- 100–200 µA idle, 1.6–2.2 mA while switching
- Light-load mode
- Automatic pulse-frequency modulation (PFM)
- Enable pin
- Tied to the input on the module: always on
- Protection
- Current limit, soft-start, thermal shutdown; no reverse-polarity protection
- Chip package
- SOT23-6
- Module size
- About 36 × 17 mm
Chip figures from the Aerosemi MT3608 datasheet (VIN = 5 V, 25 °C). Module quality varies: inductors, diodes and capacitors on cheap boards set the real limits, so treat ratings as upper bounds.
Pinout
| Pad | Name | What it does |
|---|---|---|
| 1 | IN+ (VIN+) | Input positive: battery or low-voltage supply, 2 to 24 V |
| 2 | IN− (VIN−) | Input ground |
| 3 | OUT+ (VOUT+) | Boosted output. Set it with a meter before connecting a load |
| 4 | OUT− (VOUT−) | Output ground, joined to IN− on the board |
| — | Trimmer | Multi-turn potentiometer that sets the output voltage |
IN− and OUT− are the same ground. Reversing the input polarity usually destroys the chip, because there is no protection.
Wiring & code
Setting up MT3608 with Arduino Uno
Library
None (built-in ADC) by Arduino core
No library needed
This guide runs an Arduino Uno from a single 18650 Li-ion cell through an MT3608, so a project can leave the USB cable behind. You will set the converter safely, feed the Uno's 5V pin, check the rail with a meter, and add a battery monitor that estimates the charge left and warns before the cell runs flat. Background on current limits and idle drain is on the MT3608 overview.
What you need
| Qty | Part | Notes |
|---|---|---|
| 1 | Arduino Uno R3 | Or a Nano: same 5V pin approach |
| 1 | MT3608 module | Set to 5.0 to 5.2 V before connecting |
| 1 | 18650 Li-ion cell (protected) and holder | Or a battery-protection board |
| 1 | Multimeter | Essential for setting the output |
| 1 | 10 kΩ resistor | Series resistor for the battery-sense line |
| 1 | Slide switch | In the battery lead, to stop the idle drain when stored |
Wiring: Li-ion → MT3608 → Arduino Uno
| From | To | Notes |
|---|---|---|
| Battery + | Switch → MT3608 IN+ | Add a fuse or polyfuse if the cell is unprotected |
| Battery − | MT3608 IN− | |
| MT3608 OUT+ | Uno 5V pin | Only after setting 5.0 to 5.2 V. This bypasses the Uno's regulator |
| MT3608 OUT− | Uno GND | |
| Battery + (after the switch) | 10 kΩ → Uno A1 | Battery sense for Sketch 2. Under 4.2 V, so no divider is needed on a 5 V Uno |
Warning
Never connect USB while the MT3608 feeds the 5V pin. The Uno R3 has no diode between the USB 5 V and its 5V rail, so the two supplies fight through the board. Disconnect the battery (switch off) before plugging in USB to upload. Do not feed the boosted 5 V into VIN or the barrel jack either: they need 7 to 12 V for the onboard regulator.
Step 1 - Set and check the 5 V rail
Set the MT3608 to 5.1 V with only the battery connected (see the overview's setting steps). Then connect OUT+ to 5V and OUT− to GND, switch on, and measure again at the Uno's 5V and GND header pins. Under the Uno's own load (about 50 mA) it should still read 5.0 to 5.1 V. If it is below 4.8 V, the cell is low or the wires are too thin.
Why the 5V pin and not VIN? VIN feeds the Uno's linear regulator, which needs about 7 V to produce a clean 5 V. A boosted 5 V into VIN gives a sagging rail of around 4 V. The 5V pin takes the converter's output directly.
Sketch 1 - Measure the Uno's own supply voltage
The Uno can measure its own supply without any wiring, by comparing the internal 1.1 V reference against it. This sketch prints the 5 V rail every second: a handy check that the MT3608 holds the voltage when the cell gets low or a load switches on.
// Reads the Uno's supply (VCC) using the internal 1.1 V bandgap reference
long readVccMillivolts() {
ADMUX = _BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1); // AVcc ref, measure 1.1 V
delay(2); // let the reference settle
ADCSRA |= _BV(ADSC); // start a conversion
while (bit_is_set(ADCSRA, ADSC)) {}
long raw = ADC;
return 1125300L / raw; // 1.1 V x 1023 x 1000; calibrate this constant if needed
}
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.print(F("5V rail: "));
Serial.print(readVccMillivolts());
Serial.println(F(" mV"));
delay(1000);
}Calibrating. The 1.1 V reference varies by about ±10 % between chips. Measure the 5V pin with your meter, compare it with the printed value, and scale the constant: if the sketch says 5200 mV and the meter 5100 mV, use 1125300 × 5100 ÷ 5200 = 1103660. Calibrate it once on USB power. To watch the MT3608's rail itself, unplug USB and read the output through a USB-serial adapter on pins 0 and 1 (connect only its GND, TX and RX, not its 5 V), or simply check the 5V pin with your meter.
Sketch 2 - Battery monitor with a low-battery warning
The MT3608 hides a draining battery: the 5 V rail stays steady until the cell suddenly cannot supply the input current, and then everything browns out at once. Measuring the cell itself gives you warning. A Li-ion cell is under 4.2 V, below the Uno's 5 V ADC range, so A1 reads it through a 10 kΩ series resistor with no divider. The sketch averages 16 readings, estimates the charge from a typical discharge curve, blinks the LED below 3.4 V and reports "empty" at 3.2 V.
const uint8_t BATT_PIN = A1; // battery + through 10 k
const uint8_t LED_PIN = 13;
const float VCC = 5.10; // your measured 5V rail (from Sketch 1 or a meter)
const float WARN_V = 3.40;
const float EMPTY_V = 3.20;
// Rough Li-ion state of charge from resting voltage (light load)
const float V_PTS[] = {3.20, 3.30, 3.40, 3.50, 3.60, 3.70, 3.80, 3.90, 4.00, 4.10, 4.20};
const int P_PTS[] = { 0, 2, 5, 10, 22, 38, 52, 65, 78, 90, 100};
int percentFromVolts(float v) {
if (v <= V_PTS[0]) return 0;
if (v >= V_PTS[10]) return 100;
for (int i = 1; i < 11; i++) {
if (v < V_PTS[i]) {
float f = (v - V_PTS[i - 1]) / (V_PTS[i] - V_PTS[i - 1]);
return P_PTS[i - 1] + f * (P_PTS[i] - P_PTS[i - 1]);
}
}
return 100;
}
float readBattery() {
long sum = 0;
for (int i = 0; i < 16; i++) {
sum += analogRead(BATT_PIN);
delay(2);
}
return (sum / 16.0) * VCC / 1023.0;
}
void setup() {
Serial.begin(9600);
pinMode(LED_PIN, OUTPUT);
}
void loop() {
float v = readBattery();
int pct = percentFromVolts(v);
Serial.print(F("Battery: "));
Serial.print(v, 2);
Serial.print(F(" V ~"));
Serial.print(pct);
Serial.println(F(" %"));
if (v <= EMPTY_V) {
Serial.println(F("EMPTY: switch off and recharge"));
for (int i = 0; i < 10; i++) { // fast blink
digitalWrite(LED_PIN, !digitalRead(LED_PIN));
delay(100);
}
} else if (v <= WARN_V) {
digitalWrite(LED_PIN, HIGH); // slow blink: low
delay(200);
digitalWrite(LED_PIN, LOW);
delay(800);
} else {
digitalWrite(LED_PIN, LOW);
delay(1000);
}
}Accuracy. The reading uses the 5 V rail as its reference, so VCC must match what your MT3608 really delivers; a 2 % error there is a 2 % error in the battery reading. The percentage is a rough guide: a Li-ion cell's voltage sags under load and recovers at rest, so readings are most meaningful when the project is idle. The sketch cannot switch the MT3608 off (it has no enable pin), so at "empty" you must switch the battery off yourself or add a protection board that cuts it at about 2.5 to 3.0 V.
Troubleshooting on the Uno
Uno resets when a motor or servo starts
- Likely cause
- The cell cannot supply the extra input current
- Fix
- Power motors from their own supply, or use a stronger cell and thicker wires
5V rail reads about 4 V
- Likely cause
- Boosted 5 V fed into VIN instead of 5V
- Fix
- Move OUT+ to the 5V pin
5V rail equals the battery voltage
- Likely cause
- Trimmer set below the input
- Fix
- Turn the trimmer up with the Uno disconnected
Battery reading too high or low
- Likely cause
- VCC constant does not match the real rail
- Fix
- Measure the 5V pin and update VCC
Battery goes flat in storage
- Likely cause
- The MT3608 draws 0.1 to 0.2 mA even when the Uno is off
- Fix
- Fit the slide switch in the battery lead
Arduino Uno FAQ
How long will an 18650 run an Uno? An Uno R3 draws about 45 to 50 mA at 5 V. At 85 % efficiency from a 3.7 V cell that is about 75 mA from the battery, so a 2,500 mAh cell lasts roughly 30 hours, less with LEDs, displays or radios. The Uno's USB chip and regulator make it a poor battery board; a bare ATmega328P or a Pro Mini at 3.3 V lasts far longer.
Can I use two AA cells instead? Yes: 2 × AA gives 2.0 to 3.2 V, within the MT3608's range. The input current is higher than from a Li-ion cell, so alkaline cells sag quickly; NiMH cells handle it better.
Where next? See the MT3608 ESP32 guide for deep sleep, or measure the real current your project draws with an INA219.








