ESP32-C3 Super Mini OLED Weather Station
Show live temperature and humidity from a DHT22 on a 0.96" I2C OLED using the tiny ESP32-C3 Super Mini.
- Board
- ESP32-C3 Super Mini
- Build time
- 45 min
- Status
- Rule-checked
- Last revised
Passed the automatic wiring rules. Not yet physically built and tested.
Quick answer
To build the ESP32-C3 Super Mini OLED Weather Station you need a ESP32-C3 Super Mini and 0.96" OLED 128×64 (SSD1306, I2C), DHT22 / AM2302 Module, 7× Jumper wires + breadboard. It is a beginner project with 7 connections, takes about 45 min and costs roughly ₹700–₹1,040 in parts.
The ESP32-C3 Super Mini is small and cheap but its pin labels are easy to mix up. This build uses its default I2C pins (GPIO8 = SDA, GPIO9 = SCL) for the OLED and GPIO4 for the DHT22.
Both modules run from the board's 3.3 V pin, so no level shifting is required.
Circuit diagram
Open & edit in Circuit BuilderDownload
Parts list
| Qty | Part | Notes | Buy |
|---|---|---|---|
| 1 | ESP32-C3 Super Mini | Tiny RISC-V ESP32-C3 board with Wi-Fi and Bluetooth LE, USB-C, 3.3 V logic. | Amazon.inRobu.in |
| 1 | 0.96" OLED 128×64 (SSD1306, I2C) | Monochrome 128×64 OLED display module using the SSD1306 controller over I2C. | Amazon.inRobu.in |
| 1 | DHT22 / AM2302 Module | Digital temperature and humidity sensor on a 3-pin breakout with on-board pull-up resistor. | Amazon.inRobu.in |
| 7 | Jumper wires + breadboard | Male/female jumpers as required by the modules' headers. | Amazon.inRobu.in |
Estimated cost: ₹700–₹1,040 including a breadboard and jumper wires (typical Indian online prices, 2026-11). Some links may be affiliate links, they cost you nothing extra and help keep this site free.
Pin-to-pin wiring
| From | Pin | To | Pin | Type |
|---|---|---|---|---|
| DHT22 sensor | + | ESP32-C3 Super Mini | 3V3 | power |
| DHT22 sensor | OUT | ESP32-C3 Super Mini | 4 | signal |
| DHT22 sensor | − | ESP32-C3 Super Mini | GND | ground |
| OLED display | GND | ESP32-C3 Super Mini | GND | ground |
| OLED display | VCC | ESP32-C3 Super Mini | 3V3 | power |
| OLED display | SCL | ESP32-C3 Super Mini | 9 | i2c |
| OLED display | SDA | ESP32-C3 Super Mini | 8 | i2c |
Step-by-step build
- 1
Identify the pins
Hold the board with the USB-C port up. Check the printed numbers: 8 and 9 are on the same side as 5, 6, 7 and 10.
- 2
Wire the OLED
OLED GND → GND, VCC → 3V3, SCL → GPIO9 and SDA → GPIO8. Some OLEDs swap GND and VCC, so read the labels.
- 3
Wire the DHT22
DHT22 + → 3V3, OUT → GPIO4, − → GND.
- 4
Install the board package
In Arduino IDE install the 'esp32' board package by Espressif and select 'ESP32C3 Dev Module'. Enable 'USB CDC On Boot' to see Serial output.
- 5
Run an I2C scan
Upload an I2C scanner sketch first. It should report a device at 0x3C (or 0x3D).
AI code-generation prompt
Paste this into Gemini, ChatGPT, Claude or another coding assistant. It includes the exact pin map. Treat the generated code as untested until you have run it.
You are an experienced embedded firmware engineer. Write complete, compilable firmware for the project below. ## Project Title: ESP32-C3 OLED Weather Station Description: DHT22 temperature/humidity shown on an SSD1306 OLED. Board: ESP32-C3 Super Mini, 3.3 V logic Development environment: Arduino IDE Connectivity: none (runs offline) ## Required behaviour Every 2.5 seconds read temperature (°C) and humidity (%) from the DHT22. Show both values in large text on the OLED with a small bar graph of the last 30 humidity readings. If a read fails, keep the last good value and show a small '!' marker. ## Components - 1 × ESP32-C3 Super Mini - 1 × 0.96" OLED 128×64 (SSD1306, I2C) - 1 × DHT22 / AM2302 Module ## Exact pin map (do not change these pins) - OLED display GND → GND - OLED display VCC → 3V3 - OLED display SCL → GPIO9 (9) - OLED display SDA → GPIO8 (8) - DHT22 sensor + → 3V3 - DHT22 sensor OUT → GPIO4 (4) - DHT22 sensor − → GND ## Libraries I expect you to use - Adafruit SSD1306 + Adafruit GFX (or U8g2) - DHT sensor library by Adafruit (+ Adafruit Unified Sensor) ## Assumptions - The OLED is at I2C address 0x3C. - The DHT22 is on a 3-pin module with its own pull-up resistor. ## Requirements for the code - Use only the pins listed above, defined once as named constants at the top. - Non-blocking structure using millis() (no long delay() calls in loop()). - Put all outputs (relays, motors, buzzers) in a safe OFF state in setup() before anything else. - Print readable debug output to Serial at 115200 baud. - Handle sensor read failures (e.g. NaN, timeouts, missing I2C device) without crashing, and report them. - Put thresholds and calibration values in clearly named constants with comments. ## What to return 1. The complete source file(s), ready to compile in Arduino IDE. 2. The exact libraries (with the library manager names) and board package to install. 3. A short explanation of how the code works and how to calibrate it. 4. A testing checklist I can follow step by step. Do not invent pins, libraries or functions that do not exist. If something in this spec is ambiguous or unsafe, say so before writing code.
Troubleshooting & common mistakes
- Upload fails or the board isn't detected
- Hold BOOT, tap RESET, release BOOT, then upload. Use a data-capable USB-C cable.
- OLED stays blank
- Run the I2C scanner. If nothing is found, swap SDA/SCL. If 0x3D is found, change the address in code.
- DHT22 returns NaN
- Wait at least 2 seconds between reads and check the OUT wire is on GPIO4.
Safety, assumptions & checks
Safety notes
- Low-voltage USB project; no special hazards.
- GPIO pins are 3.3 V only and are not 5 V tolerant.
Assumptions
- The OLED is at I2C address 0x3C.
- The DHT22 is on a 3-pin module with its own pull-up resistor.
Automatic wiring check (rules-2026.11.1)
- info: ESP32-C3 Super Mini 8 is a strapping pin. A module holding it HIGH/LOW during reset can stop the board booting or uploading.
- info: ESP32-C3 Super Mini 8 is also connected to the on-board LED.
- info: ESP32-C3 Super Mini 9 is a strapping pin. A module holding it HIGH/LOW during reset can stop the board booting or uploading.
The checker finds known wiring mistakes. It is not a simulator and cannot guarantee the circuit is safe or will work.
Viva and interview questions
Questions examiners commonly ask about the parts in this circuit, with short answers.
Q1. What CPU core does the ESP32-C3 use?
A single-core 32-bit RISC-V processor, unlike the dual-core Xtensa in the original ESP32.
Q2. Why might Serial output not appear on an ESP32-C3 Super Mini?
It uses native USB. Enable 'USB CDC On Boot' in the Arduino IDE so Serial is routed to the USB port.
Q3. What is the usual I2C address of an SSD1306 OLED?
0x3C (sometimes 0x3D). An I2C scanner sketch confirms it.
Q4. What is the minimum sampling interval of the DHT22?
About 2 seconds. Reading faster returns stale or failed readings.
Q5. What protocol does the DHT22 use?
A proprietary single-wire digital protocol (not I2C or 1-Wire), timed by the microcontroller.
Frequently asked questions
What components do I need for the ESP32-C3 Super Mini OLED Weather Station?
You need a ESP32-C3 Super Mini and 0.96" OLED 128×64 (SSD1306, I2C), DHT22 / AM2302 Module, 7× Jumper wires + breadboard, plus a breadboard, jumper wires and a USB cable.
How much does the ESP32-C3 Super Mini OLED Weather Station cost to build in India?
About ₹700–₹1,040 for new parts from Indian online stores (estimate, 2026-11). Reusing a board you already own makes it much cheaper.
How long does it take to build?
About 45 min for a beginner maker, including wiring and uploading code.
Is this project suitable as a college or school project?
Yes. It is a beginner project that suits school science exhibitions, diploma practicals and first-year engineering mini projects. Extend it with a web dashboard or data logging for a bigger project.
What should I do if: Upload fails or the board isn't detected?
Hold BOOT, tap RESET, release BOOT, then upload. Use a data-capable USB-C cable.
What should I do if: OLED stays blank?
Run the I2C scanner. If nothing is found, swap SDA/SCL. If 0x3D is found, change the address in code.
What should I do if: DHT22 returns NaN?
Wait at least 2 seconds between reads and check the OUT wire is on GPIO4.
Related
ESP32 DS18B20 Waterproof Temperature Logger
Log water or soil temperature with a waterproof DS18B20 probe and an ESP32, viewable over Wi-Fi.
ESP32 DevKit V1 (30-pin) · 35 min