1. Introduction
The Estardyn ESP32-C3 SuperMini is an IoT mini development board based on the Espressif ESP32-C3 WiFi/Bluetooth dual-mode chip. It features a 32-bit RISC-V CPU with an FPU for 32-bit single-precision operations, offering powerful computing capabilities and excellent RF performance with IEEE 802.11b/g/n WiFi and Bluetooth 5 (LE) protocols.
Designed with a small and delicate form factor (22.52x18mm) and single-sided surface mount design, it is ideal for wearables and small IoT projects. The board provides a rich set of interfaces, including 11 digital I/Os (usable as PWM pins), 4 analog I/Os (usable as ADC pins), and four serial communication interfaces (UART, I2C, SPI). It also includes a reset button and a boot loader mode button for easy development.
2. Specifications
The ESP32-C3 SuperMini offers the following key features and parameters:
- CPU: ESP32-C3, 32-bit RISC-V single-core processor, up to 160 MHz
- WiFi: 802.11b/g/n protocol, 2.4GHz, supports Station mode, SoftAP mode, SoftAP+Station mode, hybrid mode
- Bluetooth: Bluetooth 5.0 (LE)
- Power Consumption: Ultra-low power, deep sleep consumption approximately 43μA
- Memory: 400KB SRAM, 384KB ROM, built-in 4MFlash
- Chip Model: ESP32C3FN4
- Size: Ultra-small, approximately 22.52mm x 18mm
- Security Features: Encryption hardware accelerators (AES-128/256, hashing, RSA, HMAC, digital signatures, secure startup)
- Interfaces: 1xI2C, 1xSPI, 2xUART, 11xGPIO (PWM capable), 4xADC
- Design: Single-sided components, surface mount design
- Onboard LED: Blue light on GPIO8 pin
- Supply Voltage: 3.3V-6V
- Operating Temperature: -45°C to +85°C
- Package: SMD
3. Setup Guide
3.1. Software Setup (Arduino IDE)
- Download Arduino IDE: Download and install the latest version of the Arduino IDE compatible with your operating system from the official Arduino website.
- Start Arduino Application: Launch the Arduino IDE.
- Add ESP32 Board Package:
- Navigate to
File > Preferences. - In the "Additional Boards Manager URLs" field, add the following URL:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
- Navigate to
- Install ESP32 Boards:
- Navigate to
Tools > Board > Boards Manager... - In the search box, type "esp32".
- Select the latest version of the "esp32 by Espressif Systems" package and click "Install".
- Navigate to
- Select Board:
- Navigate to
Tools > Development Board > ESP32 Arduino. - Select
ESP32C3 Dev Modulefrom the list.
- Navigate to
3.2. Hardware Connection
- USB Connection: Connect the ESP32-C3 SuperMini to your computer using a USB Type-C cable. Ensure the cable supports data transfer, as some cables are power-only.
Important: Some USB cables can only supply power and not transmit data. If you encounter issues, try a different USB Type-C data cable.
- External Power Supply (Optional): If an external power supply is required, connect the positive (+) terminal of the external power supply to the 5V pin and the negative (-) terminal to the GND pin. The board supports a 3V to 6V power supply.
Warning: When using an external power supply, you cannot simultaneously use the USB power. Ensure only one power source is connected at a time. Be careful not to short-circuit the positive and negative electrodes, which could damage the board or connected equipment.
- External WiFi Antenna (Optional): For enhanced signal strength, an external antenna can be connected. Refer to the diagram for proper connection of the wire core and shielding layer.
4. Operating Instructions
4.1. Digital Pin Usage (Flashing LED)
To test the digital pins, you can upload a simple code to make the onboard LED flash or dim.
- Flashing LED: Upload the following code to make the onboard LED (connected to GPIO8) light up every second.
// define led according to pin diagram
int led = 8;
void setup() {
// initialize digital pin led as an output
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH); // turn the LED on
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off
delay(1000); // wait for a second
}
After uploading, the LED on the board will flash with a 1-second delay between each state.
- Dimming LED: Upload the following code to observe the onboard LED gradually dim.
int ledPin = 8; // LED connected to digital pin 8
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
// fade in from min to max in increments of 5 points
for (int fadeValue = 0 ; fadeValue <= 255; fadeValue += 5) {
// sets the value (range from 0 to 255):
analogWrite(ledPin, fadeValue);
// wait for 30 milliseconds to see the dimming effect
delay(30);
}
// fade out from max to min in increments of 5 points
for (int fadeValue = 255 ; fadeValue >= 0; fadeValue -= 5) {
// sets the value (range from 0 to 255):
analogWrite(ledPin, fadeValue);
// wait for 30 milliseconds to see the dimming effect
delay(30);
}
}
You can also connect a potentiometer to pin A5 and use the following code to control the LED's flashing interval by turning the knob.
const int sensorPin = A5;
const int ledPin = 8;
void setup() {
pinMode(sensorPin, INPUT); // declare the sensorPin as an INPUT
pinMode(ledPin, OUTPUT); // declare the ledPin as an OUTPUT
}
void loop() {
// read the value from the sensor:
int sensorValue = analogRead(sensorPin);
// turn the LedPin on
digitalWrite(ledPin, HIGH);
// stop the program for <sensorValue> milliseconds:
delay(sensorValue);
// turn the LedPin off:
digitalWrite(ledPin, LOW);
// stop the program for <sensorValue> milliseconds:
delay(sensorValue);
}
4.2. Serial Port Usage
The ESP32-C3 SuperMini has two hardware serial ports: USB serial and UART serial.
- USB Serial: By default, USB serial is enabled. Connect the board via USB Type-C to your PC and use the Serial Monitor in the Arduino IDE to view data.
- UART Serial: To use UART as a serial port, connect pin 20 (TX) and pin 21 (RX) to a USB serial adapter. Additionally, you need to set the "USB CDC On Boot" option in the Arduino IDE's Tools menu to "Disabled".
4.3. WiFi Usage
The ESP32-C3 SuperMini can be used for WiFi applications, including scanning networks and connecting to them.
- Scan WiFi Network (Station Mode):
- Copy the following code into your Arduino IDE. This code configures the board in Station (STA) mode to scan for available WiFi networks.
#include <WiFi.h>
void setup() {
Serial.begin(115200);
// Set WiFi to station mode and disconnect from an AP if it was previously connected
WiFi.mode(WIFI_STA);
WiFi.disconnect();
delay(100);
Serial.println("Setup done");
}
void loop() {
Serial.println("scan start");
// WiFi.scanNetworks will return the number of networks found
int n = WiFi.scanNetworks();
Serial.println("scan done");
if (n == 0) {
Serial.println("no networks found");
} else {
Serial.print(n);
Serial.println(" networks found");
for (int i = 0; i < n; ++i) {
// Print SSID and RSSI for each network found
Serial.print(i + 1);
Serial.print(": ");
Serial.print(WiFi.SSID(i));
Serial.print(" (");
Serial.print(WiFi.RSSI(i));
Serial.print(")");
Serial.println((WiFi.encryptionType(i) == WIFI_AUTH_OPEN) ? "" : "*");
delay(10);
}
}
Serial.println("");
// Wait a bit before scanning again
delay(5000);
}
- Connect to WiFi Network:
- Copy the following code into your Arduino IDE. Replace
"your-ssid"and"your-password"with your actual WiFi network credentials.
- Copy the following code into your Arduino IDE. Replace
#include <WiFi.h>
const char* ssid = "your-ssid"; // Your WiFi SSID
const char* password = "your-password"; // Your WiFi password
void setup() {
Serial.begin(115200);
delay(10);
// We start by connecting to a Wifi network
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {
// Your main program logic here
}
- Upload the code and open the Serial Monitor to check if the development board successfully connects to the WiFi network and displays its IP address.
4.4. IIC (OLED Display) Usage
To connect a 0.96" OLED display via IIC, follow these steps:
- Hardware Connection: Connect the OLED display to the ESP32-C3 SuperMini as per the table and diagram below.
| ESP32C3SuperMini | 0.96" OLED |
|---|---|
| 5V | VCC |
| GND | GND |
| SCL | SCL |
| SDA | SDA |
- Install U8g2 Library:
- Open the Arduino IDE and navigate to
Sketch > Include Library > Manage Libraries... - Search for "u8g2" and install the library.
- Open the Arduino IDE and navigate to
- Upload Code: Upload the following code to display a text string on the OLED display.
#include <U8g2lib.h>
#ifdef U8X8_HAVE_HW_SPI
#include <SPI.h>
#endif
#ifdef U8X8_HAVE_HW_I2C
#include <Wire.h>
#endif
U8G2_SSD1306_128X64_NONAME_F_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE);
void setup() {
u8g2.begin();
u8g2.setFlipMode(1); // set number from 1 to 3, the screen word will rotary 180
}
void loop() {
u8g2.clearBuffer(); // clear the internal memory
u8g2.setFont(u8g2_font_ncenB08_tr);
u8g2.drawStr(0,10,"Hello World!"); // write something to the internal memory
u8g2.drawStr(0,20,"Hello World!");
u8g2.sendBuffer(); // transfer internal memory to the display
delay(1000);
}
4.5. SPI (ST7735S Display) Usage
To use an ST7735S driver chip display via SPI, you'll need the Adafruit ST7735 and GFX libraries.
- Install Libraries:
- Download the Adafruit-ST7735-Library from https://github.com/adafruit/Adafruit-ST7735-Library.
- Install it by placing the downloaded files into your Arduino libraries folder, or use the Arduino Library Manager to search for and install "Adafruit ST7735" and "Adafruit GFX Library".
- Upload Code: Use the following simple code as a reference for driving the ST7735S display.
#include <Adafruit_GFX.h>
#include <Adafruit_ST7735.h>
#define TFT_SCLK 2 //SCL
#define TFT_MOSI 3 //SDA
#define TFT_RST 10 //RES
#define TFT_DC 6 //DC
#define TFT_CS 7 //CS
//____TFT_BL 不接
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);
void setup() {
tft.initR(INITR_BLACKTAB);
tft.fillScreen(ST7735_RED);
tft.setTextColor(ST7735_YELLOW);
tft.setTextSize(2);
tft.setCursor(10,30);
tft.print("Hello ST7735!");
}
void loop() {
}
5. Pin Mapping
The ESP32-C3 SuperMini features various interfaces, including 11 digital I/Os (PWM capable) and 4 analog inputs (ADC capable). It also supports UART, I2C, and SPI. When using the Arduino IDE with the ESP32C3 Dev Module, you can reference the following pin map:
static const uint8_t TX = 21;
static const uint8_t RX = 20;
static const uint8_t SDA = 8;
static const uint8_t SCL = 9;
static const uint8_t SS = 7;
static const uint8_t MOSI = 6;
static const uint8_t MISO = 5;
static const uint8_t SCK = 4;
static const uint8_t A0 = 0;
static const uint8_t A1 = 1;
static const uint8_t A2 = 2;
static const uint8_t A3 = 3;
static const uint8_t A4 = 4;
static const uint8_t A5 = 5;
6. Maintenance
- Keep the development board in a dry, dust-free environment.
- Avoid exposing the board to extreme temperatures or humidity.
- Handle the board with care to prevent physical damage to components or pins.
- Disconnect power before making any wiring changes.
- Regularly update your Arduino IDE and ESP32 board packages to ensure compatibility and access to the latest features and bug fixes.
7. Troubleshooting (FAQ)
Q1: COM port cannot be recognized on Arduino.
Solution: Enter download mode using one of the following methods:
- Method 1: Press and hold the BOOT button while powering on the board.
- Method 2: Press and hold down the BOOT button, then press the RESET button, release the RESET button, and finally release the BOOT button. The ESP32-C3 will then enter download mode.
Note: Each connection may require re-entering download mode. Sometimes pressing once can lead to port instability. You can often judge by the port identification sound.
Q2: The program will not run after uploading.
Solution: After a successful upload, you need to press the RESET button on the board to execute the uploaded program.
Q3: The ESP32C3SuperMini Arduino serial port cannot be printed.
Solution: Set the "USB CDC On Boot" option in the Arduino IDE's Tools menu to "Enabled".
8. User Tips
- Always double-check your wiring before powering on the board to prevent accidental short circuits.
- Start with simple examples (like flashing an LED) to verify your setup before moving to more complex projects.
- Utilize the Arduino Serial Monitor frequently for debugging and understanding program flow.
- Refer to the Espressif documentation and community forums for advanced topics and specific library usage.
- When experimenting with new components, use a breadboard to prototype connections before soldering to the expansion board or directly to the SuperMini.
9. Support and Warranty
For technical support, please refer to the official Estardyn website or contact their customer service. Keep your purchase records for any warranty claims. This product is intended for hobbyist and educational use; ensure proper handling and usage according to the provided instructions.