This is my new favorite microcontroller board whenever space is restricted. This tiny board fits even into the smallest devices and still provides ten fully usable GPIOs. It is energy efficient, widely available and very affordable, and both its computational power and its 4MB flash size are more than sufficient for most DIY projects. I have replaced Arduinos and ESP8266 with this board in most of my new projects.
When more than 10 GPIOs are needed, or when a dual core is required for computational intense tasks, I typically choose the ESP32-S2 Mini. I tend to use classic ESP32S only when I need full backwards compatibility, i.e. when using third party firmware that isn’t yet available for the newer ESP32 family members.
Here are the ESP32 C2 SuperMini benefits:
- Compact: very small (22.5x18mm)
- Easy To Use: works out of the box with many environments like platform.io or ESPHome. There are no issues with entering firmware upload mode, and no fiddling with pressing “boot” buttons to select the right mode.
- Low Power: low power consumption, supports Bluetooth BLE, making it ideal for battery-operated devices
- Shields: battery shields are available that add battery charging and portable power supply to the C3 Super Mini
- Affordable: typically available for under €1.50
The board has a USB-C connector and ten freely usable GPIOs. Four GPIOs can be used as analog input:
A programmable blue LED is connected to GPIO 8 (inverted: low active), and a red power LED is on when the board is connected to 5V (using its internal voltage regulator). This red LED is off when you power the board directly via the 3.3V pin, i.e. from a battery. This makes sense to conserve energy when power is limited.
While it is more than twice as fast as a ESP8266, it is a single core controller running at 160MHz clock speed. Classic ESP32S are dual-core running at 240MHz and are roughly three times as fast. That said, most DIY projects do not require such speeds, and speed comes at cost: power consumption. If your project does involve very computing-intense tasks or needs to respond in real-time to more than one task, you may want to use a classic ESP32S or its successor ESP32-S3.
Its very small form factor limits the number of exposed GPIOs. If 10 GPIOs are not enough, you may have to look into larger boards that provide the room for exposing up to 22 GPIOs.
Performance
ESP32 C3 SuperMini is a great replacement for ESP8266 and more than doubles its processing speed. It also comes with a solid voltage regulator (most ESP8266 ship with under-rated voltage regulators that easily brown out once you connect power-hungry external sensors).
Here is a quick performance comparison:
Microcontroller | Performance | SRAM | PSRAM |
---|---|---|---|
ESP32-C3 | 160-200MIPS | 400KB | n/a |
ESP8266 | 80MIPS | 160KB + 64KB Instruction RAM + 96KB Data RAM | n/a |
ESP32S | 600MIPS | 520KB | optional, up to 4MB |
GPIO
The ESP32-C3 has 22 GPIOs of which the C3 Super Mini exposes 13 due to its compact size. Of these 13 GPIO, 10 are freely usable whereas the remaining 3 GPIOs are strapping pins and cannot be used during the boot procedure.
Pin | Description | Remark |
---|---|---|
5V | External or USB power | activates the internal voltage regulator and turns on the red power LED |
G | GND | |
3.3 | 3.3V directly (3.0-3.6V) | bypasses the voltage regulator and does not turn on the red power LED. Use this pin for low-energy scenarios, i.e. battery operation, but take extreme caution to not exceed the voltage limits, i.e. use a LiFePo4 cell or an external voltage regulator. This pin directly powers the microcontroller. Exceeding 3.6V will irreversibly damage the microcontroller. You cannot use LiIon batteries directly. When supplying power to the 5V pin, this pin exposes the 3.3V produced by the internal voltage regulator |
0-10 | GPIO0 - GPIO10 | 2 and 9 are strapping pins that are reserved during boot. 8 controls the blue LED on the board (inverted) |
20-21 | GPIO20-GPIO21 |
All GPIOs are multifunctional and can be configured for various purposes, such as digital I/O, ADC (Analog-to-Digital Converter), UART, SPI, I2C, PWM, and more.
Ten Freely Usable GPIOs
These 10 GPIO can be freely used:
Pin | Remark |
---|---|
0 | can be used for analog input (ADC1) |
2 | can be used for analog input (ADC1) |
3 | can be used for analog input (ADC1) |
4 | can be used for analog input (ADC1) |
5 | can be used for analog input (ADC1) |
6 | |
7 | |
10 | |
20 | |
21 |
Additional Three GPIOs
If you require more GPIOs, then these three GPIOs can be used with some restrictions: make sure your circuitry isn’t pulling any of these up or down by hardware.
Since these strapping pins are only used during boot (when your firmware isn’t yet active), you can use them freely in your softwaee (firmware). Justu make sure your wiring doesn’t tamper with their state. Else, your board may not boot properly.
Pin | Remark | Default |
---|---|---|
8 | connected to blue LED (low turns LED on). Controls ROM message printing (not critical) | floating |
2 | strapping pin, do not use during boot (selects boot mode) | floating |
9 | strapping pin, do not use during boot (boot button) | pulled up |
JTAG is available on GPIO4-GPIO7.
Interfaces
Interface | Pins | Remarks |
---|---|---|
ADC1 | GPIO0-GPIO4 | Analog input, 12bit, 0-3.3V (supply voltage) are transformed to 0-4096 digitally |
ADC2 | GPIO5 | cannot be used when WiFi is enabled |
I2C | any | recommended to use external pull-ups |
SPI | any | |
LED PWM | any | 6 channels |
UART | *any * |
Boot Modes
The strapping pins control the boot behavior during the boot process:
Mode | GPIO2 | GPIO8 | GPIO9 |
---|---|---|---|
SPI Boot (normal) | high | any | high |
UART/JTAG (firmware upload) | high | high | high |
Board Schematics
Programmable LED
The board has a blue LED connected to GPIO8. This LED is inverted because it is sinked, not sourced: low turns the LED on, and high turns it off.
Programming
The ESP32-C3 Super Mini is widely adopted and simple to use.
platformio
In platformio, use the board ESP32-C3-DevKitM-1
.
[env:esp32-c3-devkitm-1]
platform = espressif32
board = esp32-c3-devkitm-1
More specialited IDs like lolin_c3_mini may work even better:
[env:lolin_c3_mini]
platform = espressif32
board = seeed_xiao_esp32c3
ESPHome
In ESPHome configurations, use the board id esp32-c3-devkitm-1
:
esp32:
board: esp32-c3-devkitm-1
You can adjust and override specs if needed:
esphome:
name: c3-supermini-test
friendly_name: C3 SuperMini Test
platformio_options:
board_build.f_flash: 40000000L
board_build.flash_mode: dio
board_build.flash_size: 4MB
esp32:
board: esp32-c3-devkitm-1
variant: esp32c3
framework:
type: arduino
light:
- platform: status_led
name: "Status LED"
id: esp_status_led
icon: "mdi:alarm-light"
pin:
number: GPIO8
inverted: true
restore_mode: ALWAYS_OFF
Slow Website?
This website is very fast, and pages should appear instantly. If this site is slow for you, then your routing may be messed up, and this issue does not only affect done.land, but potentially a few other websites and downloads as well. Here are simple steps to speed up your Internet experience and fix issues with slow websites and downloads..
Comments
Please do leave comments below. I am using utteran.ce, an open-source and ad-free light-weight commenting system.
Here is how your comments are stored
Whenever you leave a comment, a new github issue is created on your behalf.
-
All comments become trackable issues in the Github Issues section, and I (and you) can follow up on them.
-
There is no third-party provider, no disrupting ads, and everything remains transparent inside github.
Github Users Yes, Spammers No
To keep spammers out and comments attributable, all you do is log in using your (free) github account and grant utteranc.es the permission to submit issues on your behalf.
If you don’t have a github account yet, go get yourself one - it’s free and simple.
If for any reason you do not feel comfortable with letting the commenting system submit issues for you, then visit Github Issues directly, i.e. by clicking the red button Submit Issue at the bottom of each page, and submit your issue manually. You control everything.
Discussions
For chit-chat and quick questions, feel free to visit and participate in Discussions. They work much like classic forums or bulletin boards. Just keep in mind: your valued input isn’t equally well trackable there.
(content created Aug 28, 2024 - last updated Nov 03, 2024)