ESP32 Solar Powered Sensor: Panel, Battery and Energy Budget
How to run an ESP32 on solar power: 6 V panel, TP4056 or CN3791, 18650 cell, low-quiescent LDO, deep sleep current and a step-by-step panel and battery sizing.
To keep an ESP32 running on solar power, you build a five-link chain: a small 6 V solar panel, a charger module that moves the panel's energy into the battery (TP4056 or CN3791), an 18650 Li-ion cell, a low-dropout regulator that brings the battery voltage down to 3.3 V, and an ESP32 that spends almost all its time in deep sleep. With the right parts and the right code, this setup can measure and send temperature, humidity or water level from your garden, a field or a roof for months without ever being charged.
In this guide you'll see step by step how to choose and wire each link and, above all, how to work out the daily energy budget: how many mAh are used, how many watts the panel needs and how many days the battery lasts if the sun never comes out. The current, efficiency and sun-hour values are approximate; they're based on typical datasheet values and common assumptions. Measuring your own board with a multimeter and redoing the maths with the same steps always gives the most accurate result. If you need the basics of deep sleep first, read the ESP32 deep sleep article.

How does a solar-powered ESP32 system work?
During the day the panel fills the battery through the charger module; at night and on cloudy days the system runs entirely on the battery. The ESP32 wakes up, say, every 15 minutes, reads the sensor within a few seconds, connects to Wi-Fi, sends the data and goes back into deep sleep. The secret of the whole design is this: while awake the ESP32 can draw over 100 mA, while asleep the chip itself gets by on about 10 µA. So the average consumption is decided almost entirely by how often and how long it wakes and by what the rest of the board uses while it sleeps.
| Link | Example part | Job | Watch out |
|---|---|---|---|
| Solar panel | 6 V, 1–3 W | Produces energy during the day | Its open-circuit voltage is higher than the label |
| Charger module | TP4056 (protected) or CN3791 | Charges the cell safely up to 4.2 V | Single-cell Li-ion only |
| Battery | 18650 Li-ion, 2000–3500 mAh | Stores energy for nights and cloudy days | Never charged below 0 °C |
| Regulator | Low-quiescent 3.3 V LDO | Brings the battery voltage down to 3.3 V | An AMS1117 alone wastes a lot in sleep |
| ESP32 + sensor | Bare module or low-power board + BME280 | Measures, sends, sleeps | USB chip and power LED keep drawing in sleep |
Charger module: TP4056 or CN3791?
The TP4056 is a linear charger chip: it turns surplus input voltage into heat and gives the cell up to 1 A. It accepts a 4–8 V input, so it can connect directly to a small 6 V panel; it's cheap, and the protected version also guards the cell against over-discharge. Its weak point is efficiency: when the panel works at 6 V and the cell is around 3.7 V, the difference becomes heat, so efficiency is roughly Vcell ÷ Vpanel, about 60% here. It also doesn't look for the panel's most efficient voltage. The CN3791, by contrast, is a switching (buck) charger; it holds the panel voltage at a value set by resistors and so draws as much power from the panel as it can. Modules are usually sold preset for a given panel voltage. For a small 1–3 W sensor node a TP4056 is often enough; where winter sun is weak or with bigger panels, the extra efficiency of a CN3791 makes a difference.
| Feature | TP4056 (protected module) | CN3791 module |
|---|---|---|
| Operation | Linear, surplus voltage becomes heat | Switching (buck) |
| Holds the panel voltage | No | Yes, set by resistors |
| Approx. efficiency (6 V panel, 3.7 V cell) | 55–65% | 75–85% |
| Charge current | Up to 1 A (set by Rprog) | Can deliver more (depends on the module) |
| Over-discharge protection | Yes (DW01A, about 2.4 V) | Usually none, needs a separate protection board |
| Price and convenience | Very cheap, everywhere | A bit more expensive |
| When to choose it | 1–3 W panel, mild climate | Weak winter sun, bigger panel |
Choosing the battery and the regulator
An 18650 cell reads 4.2 V when full and 3.0–3.3 V when nearly empty, while the ESP32 runs at roughly 3.0–3.6 V. So you can't connect the cell straight to the ESP32's 3V3 pin; a 3.3 V regulator goes in between. The AMS1117 on dev boards is a poor fit for two reasons: about 1 V drops across it, so once the cell falls a little below 4.2 V the output can't hold 3.3 V; and it typically uses 5 mA itself at idle, hundreds of times what a sleeping ESP32 needs. The fix is a low-dropout LDO with a quiescent current in the microamp range, plus a 470–1000 µF capacitor on its output to cover Wi-Fi's current peaks. You'll find cell selection and the voltage-to-charge relationship in detail in the 18650 Li-ion battery article.
| Regulator | Quiescent current (typ.) | Max output current | Note |
|---|---|---|---|
| AMS1117-3.3 | About 5 mA | 1 A | About 1 V dropout; not suited to a solar node |
| MCP1700-3302 | About 1.6 µA | 250 mA | A large output capacitor is a must for Wi-Fi peaks |
| HT7333 | About 4 µA | 250 mA | Likewise use it with a large output capacitor |
Wiring
| From | To | Note |
|---|---|---|
| Panel + / − | TP4056 IN+ / IN− (or CN3791 input) | Wire carefully to avoid reversed polarity |
| 18650 + / − | TP4056 B+ / B− | Use a battery holder, never solder to the cell |
| TP4056 OUT+ / OUT− | LDO input / GND | On a protected module the load always goes to OUT |
| LDO output (3.3 V) | ESP32 3V3 | 470–1000 µF + 100 nF on the output |
| OUT+ → 1 MΩ → midpoint → 1 MΩ → GND | Midpoint → GPIO 35 | 100 nF on the midpoint; the divider draws only about 2 µA |
| BME280 VCC / GND | 3V3 / GND | Uses very little in sleep with forced mode |
| BME280 SDA / SCL | GPIO 21 / GPIO 22 | Address 0x76 or 0x77 |
If you use a dev board and feed it through the 3V3 pin, the board's AMS1117 is bypassed, but the USB-serial chip and the power LED may keep drawing in sleep; depending on the board you'll measure anything from a few mA to over 10 mA. Also, never connect the USB cable and the external 3.3 V supply at the same time. For battery measurement use an ADC1 pin (here GPIO 35), because ADC2 pins can't be read while Wi-Fi is on. You can check the 1 MΩ divider in the voltage divider calculator.
Consumption table with deep sleep
| Component and state | Approx. current | Source |
|---|---|---|
| ESP32, Wi-Fi transmit peak | Up to 240 mA (briefly) | Datasheet |
| ESP32, average while connecting and sending | About 100–150 mA (120 mA used here) | Common assumption, check by measuring |
| ESP32 chip, deep sleep (RTC timer) | About 10 µA | Datasheet |
| MCP1700 quiescent | About 1.6 µA | Datasheet |
| 1 MΩ + 1 MΩ divider (at 4.2 V) | About 2.1 µA | 4.2 V ÷ 2 MΩ |
| BME280 asleep + cell protection circuit | A few µA (depends on the module) | Measure |
| Total: sleep with a bare module | About 20 µA | Value used in the calculation |
| Total: sleep with a typical DevKit | About 5–15 mA (8 mA used here) | Regulator, USB chip, LED |
Daily energy budget: step-by-step calculation
The formula for the average is simple: daily mAh = (active current × active hours per day) + (sleep current × sleep hours per day). Our example node wakes every 15 minutes, i.e. 96 times a day, and draws an average of 120 mA for about 4 seconds each time; asleep it uses 20 µA in total. You can repeat the steps below with your own values or compare the result with the battery life calculator. If mAh is a new idea, the what is mAh article makes it easier.
- Daily active time: 96 wake-ups × 4 s = 384 s, about 0.107 hours.
- Active consumption: 0.107 h × 120 mA ≈ 12.8 mAh.
- Daily sleep time: 24 h − 0.107 h ≈ 23.9 hours; sleep consumption: 23.9 h × 0.02 mA ≈ 0.48 mAh.
- Daily total: 12.8 + 0.48 ≈ 13.3 mAh. The same node on a DevKit sleeping at 8 mA uses 23.9 × 8 + 12.8 ≈ 204 mAh, about 15 times more.
- Convert to energy: 13.3 mAh × 3.7 V ≈ 49 mWh, about 0.05 Wh a day.
- Battery autonomy: using about 80% of a 2500 mAh cell (2000 mAh), it runs 2000 ÷ 13.3 ≈ 150 days without sun; with a DevKit that drops to about 10 days.
| Scenario | Wake-up | Daily use | Days on 2000 mAh without sun |
|---|---|---|---|
| Bare module, 4 s active | Every 10 minutes | ≈ 19.7 mAh | ≈ 100 days |
| Bare module, 4 s active | Every 15 minutes | ≈ 13.3 mAh | ≈ 150 days |
| Bare module, 4 s active | Every hour | ≈ 3.7 mAh | ≈ 540 days (in theory) |
| Bare module, fast connect (1.5 s) | Every 15 minutes | ≈ 5.3 mAh | ≈ 375 days (in theory) |
| DevKit (8 mA sleep), 4 s active | Every 15 minutes | ≈ 204 mAh | ≈ 10 days |
How many watts should the solar panel be?
To find the panel power, use this formula: panel watts = daily Wh ÷ (peak sun hours × system efficiency). Peak sun hours express the day's total solar energy as the number of hours of "full sun" at 1000 W per square metre; it's always shorter than the actual daylight. System efficiency covers the panel angle, dust, heating and the charger's losses; about 0.5 for a TP4056 and about 0.7 for a CN3791 is a realistic starting point. Our example node, in a place with 1 peak sun hour a day in winter and a TP4056, needs 0.05 ÷ (1 × 0.5) = 0.1 W. That's tiny on paper; but to refill the cell within a few days after a cloudy week you need at least a 3–5× margin, so a panel of around 1 W is a comfortable choice. The DevKit version needs 0.75 ÷ 0.5 = 1.5 W; with margin that means a 3–5 W panel.
| Region (approx., horizontal surface) | Summer | Spring and autumn | Winter (Dec–Jan) |
|---|---|---|---|
| Turkey, inland and south | 6–7 hours | 3.5–5 hours | 2–2.5 hours |
| Turkey, Black Sea and Marmara | 5–6 hours | 3–4.5 hours | 1–1.5 hours |
| Central Europe (e.g. Germany) | 4.5–5.5 hours | 2–4 hours | 0.5–1 hour |
Weak winter sun: the problem and the fixes
- Tilt the panel: In winter the sun is low. Facing the panel south and tilting it about 15° more than your latitude clearly improves winter output; in much of Turkey that's around 50–55°. A steep angle also helps snow slide off.
- Watch for shade: Even a branch or roof shadow on a small part of the panel cuts its output sharply. Check the spot around midday in December before installing.
- Cold and charging: A Li-ion cell must not be charged below 0 °C, and its usable capacity drops in the cold. Keep the cell inside the box, ideally near the house wall and out of the wind.
- A bigger battery: Two 18650s in parallel easily bridge a dark week; that's usually cheaper than a bigger panel.
- Tie the wake interval to the battery: Wake less often as the voltage falls, and don't start Wi-Fi at all at a critical level. The code below does exactly that.
- Batch sending: Measure every 10 minutes but store readings in RTC memory and send them once an hour; Wi-Fi is the most expensive step.
| Battery voltage | Wake interval | Wi-Fi |
|---|---|---|
| 3.95 V and above | 10 minutes | On |
| 3.75–3.95 V | 15 minutes | On |
| 3.60–3.75 V | 30 minutes | On |
| 3.45–3.60 V | 60 minutes | On |
| Below 3.45 V | 180 minutes | Off, battery is only measured |
ESP32 code: measure, send, sleep according to the battery
On every wake-up, the code below first measures the battery, picks the next sleep time from the voltage and, if the battery is critical, goes straight back to sleep without starting Wi-Fi. If the battery is fine, it takes a single forced reading from the BME280, tries to connect to Wi-Fi for at most 8 seconds, sends the data as JSON to your own server and goes back to sleep. If three sends in a row fail, the router is probably off; in that case the code doubles the sleep time so it doesn't waste the battery. The Wi-Fi name, password and server address are placeholders; replace them with your own. The most effective way to shorten the awake time is a static IP plus passing the channel and BSSID to WiFi.begin(); that can cut connection time from a few seconds to about one second.
1// Güneş enerjili ESP32 sensör: ölç, gönder, pile göre uyu / Solar ESP32 sensor: measure, send, sleep according to the battery
2#include <WiFi.h>
3#include <HTTPClient.h>
4#include <Wire.h>
5#include <Adafruit_BME280.h>
6#include "esp_sleep.h"
7
8const char* WIFI_SSID = "WIFI_ADI"; // yer tutucu / placeholder
9const char* WIFI_PASS = "WIFI_SIFRESI"; // yer tutucu / placeholder
10const char* SERVER_URL = "http://192.168.1.50:8080/olcum"; // kendi sunucun / your own server
11
12const int BATTERY_PIN = 35; // 1 MΩ + 1 MΩ bölücünün orta noktası (ADC1) / divider midpoint (ADC1)
13const float DIVIDER = 2.0; // (R1 + R2) / R2
14const uint32_t WIFI_TIMEOUT_MS = 8000; // bağlanamazsa vazgeç / give up if it can't connect
15
16RTC_DATA_ATTR uint32_t bootCount = 0; // derin uykuda korunur / survives deep sleep
17RTC_DATA_ATTR uint8_t failCount = 0;
18
19Adafruit_BME280 bme;
20
21float readBattery() {
22 uint32_t mv = 0;
23 for (int i = 0; i < 16; i++) mv += analogReadMilliVolts(BATTERY_PIN); // kalibre mV / calibrated mV
24 return mv / 16.0 / 1000.0 * DIVIDER;
25}
26
27uint32_t sleepMinutesFor(float vbat) { // pil azaldıkça daha seyrek uyan / wake less often as the battery drops
28 if (vbat >= 3.95) return 10;
29 if (vbat >= 3.75) return 15;
30 if (vbat >= 3.60) return 30;
31 if (vbat >= 3.45) return 60;
32 return 180; // kritik: Wi-Fi açılmaz / critical: Wi-Fi is not started
33}
34
35void goToSleep(uint32_t minutes) {
36 WiFi.disconnect(true);
37 WiFi.mode(WIFI_OFF);
38 esp_sleep_enable_timer_wakeup((uint64_t)minutes * 60ULL * 1000000ULL); // mikrosaniye, 64 bit / microseconds, 64-bit
39 Serial.flush();
40 esp_deep_sleep_start();
41}
42
43void setup() {
44 Serial.begin(115200);
45 bootCount++;
46 float vbat = readBattery();
47 uint32_t minutes = sleepMinutesFor(vbat);
48 Serial.printf("Uyanis %u, pil %.2f V\n", bootCount, vbat);
49 if (vbat < 3.45) goToSleep(minutes); // pili korumak için hemen uyu / sleep at once to protect the battery
50
51 String body = String("{\"boot\":") + bootCount + ",\"vbat\":" + String(vbat, 2);
52 if (bme.begin(0x76)) { // bazı modüllerde 0x77 / 0x77 on some modules
53 bme.setSampling(Adafruit_BME280::MODE_FORCED, // tek ölçüm, sonra uyku / one reading, then sleep
54 Adafruit_BME280::SAMPLING_X1, Adafruit_BME280::SAMPLING_X1,
55 Adafruit_BME280::SAMPLING_X1, Adafruit_BME280::FILTER_OFF);
56 bme.takeForcedMeasurement();
57 body += ",\"t\":" + String(bme.readTemperature(), 1);
58 body += ",\"h\":" + String(bme.readHumidity(), 1);
59 body += ",\"p\":" + String(bme.readPressure() / 100.0F, 1);
60 }
61 body += "}";
62
63 WiFi.persistent(false); // flaşa yazma / don't write to flash
64 WiFi.mode(WIFI_STA);
65 WiFi.begin(WIFI_SSID, WIFI_PASS);
66 uint32_t start = millis();
67 while (WiFi.status() != WL_CONNECTED && millis() - start < WIFI_TIMEOUT_MS) delay(50);
68
69 bool sent = false;
70 if (WiFi.status() == WL_CONNECTED) {
71 HTTPClient http;
72 http.setTimeout(3000);
73 http.begin(SERVER_URL);
74 http.addHeader("Content-Type", "application/json");
75 sent = http.POST(body) > 0;
76 http.end();
77 }
78 Serial.printf("Gonderim %s, %lu ms\n", sent ? "OK" : "HATA", (unsigned long)(millis() - start));
79
80 failCount = sent ? 0 : min(failCount + 1, 10);
81 if (failCount >= 3) minutes *= 2; // modem kapalıysa pili boşa harcama / don't drain the battery if the router is down
82 goToSleep(minutes);
83}
84
85void loop() {} // buraya hiç gelinmez / never reached| Code part | Job |
|---|---|
| analogReadMilliVolts() | Returns mV corrected with the ESP32's calibration data; 16 readings are averaged |
| sleepMinutesFor() | Picks the sleep time from the table above |
| vbat < 3.45 → goToSleep() | With a critical battery Wi-Fi is never started, protecting the cell |
| MODE_FORCED + takeForcedMeasurement() | The BME280 takes one reading and returns to sleep by itself |
| WIFI_TIMEOUT_MS | No waiting longer than 8 seconds if the router is missing |
| RTC_DATA_ATTR | bootCount and failCount survive deep sleep |
| WiFi.persistent(false) | Stops Wi-Fi settings being written to flash on every wake-up |
| (uint64_t)minutes * 60ULL * 1000000ULL | Prevents 32-bit overflow in the microsecond maths |
Measuring sleep current correctly
You only know how accurate your calculation is by measuring. Put the multimeter in series between the battery and the circuit; but if you leave it on the µA range while the ESP32 wakes, voltage drops across the meter's internal resistance and the board may reset while connecting to Wi-Fi. There's a simple fix: short the meter's two leads with a jumper wire, remove the wire once the board is asleep and read the µA value, then put the wire back before it wakes. The mA range is enough for measuring active current. If the sleep current you measure is above 100 µA, disconnect the power LED, the sensor module and the divider one by one to find what's drawing it. If you're new to multimeters, the how to use a multimeter article will help.
Solar ESP32 project ideas
- Idea: A solar-powered ESP32 BME280 weather station for the garden.
- Idea: Watering alerts for a pot or greenhouse with a capacitive soil moisture sensor.
- Idea: A wireless node that measures the level of a rooftop water tank; start with the ESP32 water tank level meter.
- Idea: Where Wi-Fi doesn't reach, link nodes to a main ESP32 with ESP-NOW; its very short connection time saves energy too.
- Idea: Weigh a beehive with an HX711 and send it once a night.
- Idea: Send the data to Home Assistant via MQTT and chart the battery voltage as well; you'll see the winter energy balance with your own eyes.
Common problems and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| The battery dies in a few days | The DevKit's regulator, USB chip and LED draw in sleep | Use a bare module or low-power board and a low-quiescent LDO |
| ESP32 resets while connecting to Wi-Fi (brownout) | The LDO can't keep up with current peaks, capacitor too small | Add 470–1000 µF on the LDO output and keep wires short |
| Battery voltage reading is wrong | An ADC2 pin was used or the divider ratio is wrong | Use GPIO 32–39 (ADC1), compare with a multimeter and fix the factor |
| The cell doesn't fill even on sunny days | Panel shaded or badly angled, panel voltage too low | Face the panel south and tilt it, measure its open-circuit voltage |
| The TP4056 gets very hot | A linear chip turns the voltage difference into heat | Lower the charge current with Rprog or use a CN3791 |
| The system stops in winter | Little sun and cold, the cell can't charge | Lengthen the wake interval, enlarge the battery, steepen the panel |
| The board never wakes up | 32-bit overflow in the sleep time | Calculate the time in 64 bits: (uint64_t)min * 60ULL * 1000000ULL |
A solar-powered ESP32 node brings deep sleep, battery management, energy budgeting and wireless communication together in one project, and once it's set up right it runs on its own for months. To see the basics step by step, look at the circuit diagrams and code of the "ESP32 Deep Sleep — Battery Saving (OLED + RTC RAM Counter)", "ESP32 Wi-Fi STA Connection (with LCD)" and "ESP32 DHT22 Temperature and Humidity (with LCD)" projects in the BlueGrays app, then combine those pieces into your own solar sensor.
Frequently asked questions
Can an ESP32 run on solar power?
Yes, but instead of connecting the panel directly, use a charger module, a Li-ion cell and a 3.3 V regulator. If the ESP32 spends most of its time in deep sleep, a small panel of around 1 W and a single 18650 can last for months. An ESP32 that stays awake all the time needs a much bigger panel and battery.
What size solar panel does an ESP32 need?
Divide the daily energy need (Wh) by the peak sun hours of the worst season and the system efficiency: watts = Wh ÷ (hours × efficiency). For a low-power node waking every 15 minutes this comes out at around 0.1 W; with a margin for cloudy days a 1 W panel is comfortable. An ESP32 that stays on Wi-Fi all the time may need 5–10 W.
Can I connect a solar panel directly to a TP4056?
A small 6 V panel can go straight to the TP4056's IN+ and IN− terminals, since the module accepts a 4–8 V input. But a panel's open-circuit voltage can pass 7 V in the cold, so don't use a higher-voltage panel. Because the TP4056 is linear its efficiency is about 60%; for better efficiency choose a switching charger such as the CN3791.
How much current does an ESP32 draw in deep sleep?
The ESP32 chip draws about 10 µA in deep sleep. On a typical dev board, though, the regulator, USB-serial chip and power LED can push total sleep current from a few mA to over 10 mA. For a solar node you can bring the total down to around 20 µA with a bare module or a low-power board.
Can I connect an 18650 directly to an ESP32?
No. A full 18650 cell gives 4.2 V, which exceeds the ESP32's 3.6 V upper limit. Put a low-dropout, low-quiescent 3.3 V LDO between the cell and the ESP32. Feeding the dev board's VIN does work, but its AMS1117 drops about 1 V and uses milliamps at idle, so it doesn't suit a solar node.
Why does a solar sensor stop working in winter?
In winter peak sun hours fall below a third of the summer value, the low sun means the panel collects less energy, and a Li-ion cell must not be charged below 0 °C. Mounting the panel facing south at a steep angle, using a bigger battery and lengthening the wake interval as the battery voltage drops largely solve the problem.
Projects to build after reading this
See all projects
LED Blink with ESP32
Teaches basic GPIO output usage with ESP32. We achieve a blinking effect by turning an LED on and off from a digital pin. ESP32 version of the classic blink project on Arduino UNO; the basic blink commands in the Arduino environment are the same, but the ESP32's pin layout and 3.3 V GPIO levels differ from those of the Arduino UNO.

Reading Light Intensity with the ESP32 LDR Module
Real-time monitoring of the LDR module's raw ADC value and relative light percentage calculated from dark and light reference values in the Serial Monitor. This percentage is not a lux measurement. Teaches the module’s calibration logic. It is ideal to complete this before Project 10, as it is used to determine the threshold value.

ESP32 Deep Sleep — Battery Saving (OLED + RTC RAM Counter)
The ESP32's Deep Sleep mode shuts down the CPU and most peripherals, cutting current draw to about 10µA, which is vital for battery-powered IoT devices. This project uses three wake-up sources: a timer (15 s), an external pin (EXT0, the button on GPIO 33) and a touch pin (T0/GPIO 4). Counters marked with RTC_DATA_ATTR survive deep sleep.

ESP32 DHT22 Temperature and Humidity (with LCD Display)
This project measures ambient temperature and humidity using a DHT22 sensor and displays the data in real time on a 16x2 I2C LCD. Data is read from the sensor using the one-wire protocol via the Adafruit DHT library. This project serves as the foundation for IoT weather stations, smart home automation, or environmental monitoring systems in greenhouses. Communication with the DHT22 is established via the ESP32's GPIO 4 pin.

ESP32 Temperature Data Logger (DHT22 + DS1307 RTC + microSD + OLED)
Build a timed temperature and humidity logger with the ESP32! A DHT22 sensor reads temperature and humidity once a minute, and each reading is saved to a microSD card in CSV format with a real-time stamp from the DS1307 RTC module. The OLED display shows the latest temperature, humidity, timestamp and total number of records live, in large text.

ESP32 HTTPClient + Weather API (with SSD1306 OLED Display)
In this project the ESP32 makes a REST API call over the internet to a weather API (wttr.in) using HTTPClient.h. Unlike the I2C LCD version, it uses an SSD1306 OLED (128×64) display, with large text and vector icons for a richer look. Seven weather icons (sunny, rainy, snowy and more) are drawn on the fly, with no bitmap files.

ESP32 Wi-Fi STA Connection (with LCD Screen)
In this project, we connect the ESP32 to the home Wi-Fi network in Station (STA) mode in a secure, fault-tolerant manner. We store the SSID and password in a separate secrets.h file to prevent leaking to Git, set up an auto-reconnect mechanism, and display the RSSI signal level and IP address on an I2C LCD screen. The internal LED works as a status indicator. It is a production-grade connection manager.
More articles
BlueGrays app
Build this circuit step by step on your phone
Wiring diagram, code and parts list on one screen. 500+ Arduino, ESP32, ESP8266, Pico, mBot and micro:bit projects ready to build.
Scan with your phone
Point your camera at the code and your phone's app store opens.
or open the store

