A concise guide on using Arduino-CLI with the ESP32-C6 development board and other ESP32 family microcontrollers.
- Introduction
- Prerequisites
- Installation
- Setting Up ESP32-C6 Core
- Creating a New Sketch
- Compiling the Sketch
- Uploading the Sketch
- Troubleshooting
- ESP32 Family Comparison
- Popular ESP32 Projects
- Contributing
- Additional Resources
Arduino-CLI is a powerful command-line tool for compiling and uploading Arduino sketches to various microcontrollers. This tutorial focuses on its use with the ESP32 family of boards, with special attention to the newer ESP32-C6. The instructions are applicable to all ESP32 variants supported by Arduino, including:
- ESP32
- ESP32-S2
- ESP32-S3
- ESP32-C3
- ESP32-C6
- ESP32-H2
Whether you're working with the versatile ESP32, the Bluetooth 5 (LE) capable ESP32-C3, or the latest ESP32-C6 with Wi-Fi 6, this guide has you covered.
- Arduino and CLI basics
- Windows, macOS, or Linux computer
- ESP32-C6 board
- USB cable
- Download Arduino-CLI.
- Add to system PATH.
- Verify:
arduino-cli version
- Update index:
arduino-cli core update-index
- Install ESP32 core:
arduino-cli core install esp32:esp32
- Verify:
arduino-cli core list
arduino-cli sketch new MyESP32C6Project
cd MyESP32C6Project
arduino-cli compile --fqbn esp32:esp32:esp32c6 ./
- List boards:
arduino-cli board list
- Note your board's port (e.g., /dev/ttyACM0 or COMx).
- Upload:
arduino-cli upload -p /dev/ttyACM0 --fqbn esp32:esp32:esp32c6 ./
- "Board not found": Verify core installation and FQBN.
- Upload issues: Check USB connection and port.
Feature | ESP32 | ESP32-S2 | ESP32-S3 | ESP32-C3 | ESP32-C6 | ESP32-H2 |
---|---|---|---|---|---|---|
CPU | Dual-Core | Single-Core | Dual-Core | Single-Core | Single-Core | Single-Core |
Wi-Fi | 2.4 GHz | 2.4 GHz | 2.4 GHz | 2.4 GHz | Wi-Fi 6 | 2.4 GHz |
Bluetooth | Classic & BLE | - | BLE 5.0 | BLE 5.0 | BLE 5.3 | BLE 5.0 |
USB | - | Native | Native | - | Native | - |
Zigbee/Thread | - | - | - | - | Yes | Yes |
- Smart Home Automation: Use ESP32's Wi-Fi capabilities for home device control.
- Wireless Sensor Networks: Create networks for environmental or industrial monitoring.
- Bluetooth Mesh Networks: Build scalable device networks with ESP32's Bluetooth.
- IoT Data Loggers: Efficient data collection and transmission with low power modes.
- Wearable Technology: Develop fitness trackers or smart clothing.
Contributions are welcome! Open an issue or submit a pull request to help improve this guide or share your ESP32 projects.
Keywords: Arduino-CLI, ESP32-C6, ESP32, microcontroller, IoT, embedded systems, command-line interface, Arduino sketches, Wi-Fi 6, Bluetooth LE, Zigbee, Thread, smart home, wireless sensor networks, wearable technology