Welcome to the comprehensive guide for the ESP32-C3 Super Mini board. This repository includes everything you need to get started and work with the ESP32-C3 Super Mini.
- Introduction
- Board Specifications
- Pinout Diagram
- Getting Started
- Example Projects
- Troubleshooting
- Contributing
- References
- License
The ESP32-C3 Super Mini is a compact development board based on the ESP32-C3 microcontroller, providing WiFi and Bluetooth connectivity. This guide covers the board's specifications, pinouts, and instructions for setting up and programming with the Arduino IDE.
- Microcontroller: ESP32-C3 FN4 (172023 P3L7730)
- Connectivity: WiFi (2.4 GHz b/g/n), Bluetooth (BLE 5)
- Processor: 32-bit RISC-V single-core
- GPIO Pins: 10 digital I/O, 2 analog inputs
- Power Supply: 5V via USB, 3.3V via onboard regulator
- Flash Memory: 4MB
- Operating Voltage: 3.3V
The ESP32-C3 series supports the following interfaces:
- 2x ADCs: ADC1 (GPIO0-GPIO4), ADC2 (GPIO5, not usable with Wi-Fi enabled).
- 6x PWM channels: Configurable on any GPIO pins.
- 2x UART: Configurable on any GPIO pins.
- 1x I²C: Configurable on any GPIO pins.
- 3x SPI: SPI0 and SPI1 are reserved, SPI2 configurable on any GPIO pins.
Silkscreen Pin | Internal Pin | Notes |
---|---|---|
0 | GPIO0 | ADC1 |
1 | GPIO1 | ADC1 |
2 | GPIO2 | ADC1, boot mode / strapping pin |
3 | GPIO3 | ADC1 |
4 | GPIO4 | ADC1, JTAG |
5 | GPIO5 | JTAG |
6 | GPIO6 | JTAG |
7 | GPIO7 | JTAG |
8 | GPIO8 | Blue status_led (inverted), boot mode / strapping pin |
9 | GPIO9 | Boot mode / strapping pin, boot button |
10 | GPIO10 | |
20 | GPIO20 | |
21 | GPIO21 |
- GPIO8 has an inverted blue status LED.
- The BOOT button is wired to GPIO9.
- JTAG is available on GPIO4 to GPIO7.
Before getting started, ensure you have the following components:
- ESP32-C3 Super Mini
- Computer (Windows, macOS, or Linux)
- USB Type-C data cable
Tip: Some USB cables only provide power without data transfer capabilities. If you're unsure whether your cable supports data transfer, consider purchasing a Type-C cable specifically designed for this purpose.
-
Download the latest version of the Arduino IDE from Arduino's official website.
Note: If you're experiencing slow download speeds, consider using alternative download links provided by local Arduino communities.
-
Install the Arduino IDE following the instructions for your operating system.
- Windows Users Only: Before connecting your ESP32-C3 Super Mini, ensure that the necessary USB-to-serial drivers are installed. This is especially important for Windows users.
- You can download the CP210x or CH340 drivers from the official websites if your board uses one of these USB-to-UART bridge chips.
- Note: Most modern versions of Windows will install the drivers automatically when you first connect the device.
- Open the Arduino IDE.
- Navigate to File > Preferences.
- In the "Additional Board Manager URLs" field, paste the following URL:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
- Click OK to save your preferences.
-
Go to Tools > Board > Board Manager.
-
In the search bar, type "ESP32".
-
Locate "ESP32 by Espressif Systems" and click Install to add the board package.
-
After installation, navigate to Tools > Board > ESP32 Arduino.
-
Scroll down and select ESP32C3 Dev Module.
-
Connect your ESP32-C3 Super Mini to the computer.
-
Go to Tools > Port and select the corresponding serial port for your device. This will usually be COM3 or higher on Windows, and
/dev/ttyUSBx
or/dev/ttyACMx
on Linux/macOS.Optional: Enable USB CDC on Boot If you are experiencing issues with serial communication or your device is not being recognized correctly after a reset, you can enable the "USB CDC on Boot" option:
- Go to Tools > USB CDC on Boot.
- Select Enabled.
Note: Enabling "USB CDC on Boot" allows the USB connection to remain active during boot, which can help resolve issues where the serial port is not detected after the ESP32-C3 restarts.
- Open a new sketch in the Arduino IDE.
- Add a simple example like the Blink sketch (Blink Project).
- Click Upload to send the sketch to your ESP32-C3.
If everything is set up correctly, the LED on the ESP32-C3 should start blinking, indicating that the upload was successful.
-
A basic example to blink an LED.
- Guide: Blink Project
- Code: blink.ino
-
Read DHT11 sensor to measure temperature and humidity.
-
To read temperature and humidity data from a DHT11/DHT22 sensor and display these values on a web server.
- Common Issues:
- If the port does not appear, try disconnecting and reconnecting the USB cable or using a different USB port.
- Ensure that you are using a data-capable USB cable (some cables are power-only).
- Reset the Board:
- If your ESP32-C3 does not respond after uploading a sketch, try manually resetting the board by pressing the reset button.
- Use Serial Monitor:
- After uploading a sketch, open the Serial Monitor (
Tools > Serial Monitor
) to view any output. Make sure the baud rate is set to 115200 to match theSerial.begin(115200);
statement in your code.
- After uploading a sketch, open the Serial Monitor (
- Further Resources:
Contributions are welcome! Please fork this repository and submit a pull request with your improvements. Follow the contributing guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.