← All posts

Bench notes · Solar · ESP32

Keep an ESP32 running on sunshine

9 Nov 20262 min read

You don't need a big panel or an expensive power board to run an ESP32 off-grid. Two palm-sized solar panels, one 18650 cell and a few dollars of parts will do it, as long as the project spends most of its time asleep. I've written up the full circuit as a free guide.

A breadboard on a blue workbench mat with three mini solar panels wired to a TP4056 charger, a regulator and capacitors, a development board, and an 18650 cell in a holder.
The circuit on the bench: mini solar panels, TP4056 charger, LDO regulator and an 18650 cell.

The short version

Two gotchas worth knowing

When you plug in USB to program the board in Thonny, the board's own regulator also drives the 3V3 pin, so disconnect the solar supply first. And once the code goes into deep sleep, Thonny loses the board, which is why the example code waits 5 seconds before sleeping so you can press Stop.

Free library

Small solar power for ESP32 projects

The full guide: block diagram, parts list, step-by-step wiring, the battery gauge circuit and complete MicroPython code for Thonny.

Read the full guide →

#Solar#ESP32#MicroPython#OffGrid