# arduino-notes **Repository Path**: coyoooo/arduino-notes ## Basic Information - **Project Name**: arduino-notes - **Description**: arduino-notes - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-30 - **Last Updated**: 2025-09-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: Arduino, ESP32, stm32 ## README # Arduino 开发详细入门文档 ![image-202556273505.png](README/image-202556273505.png) ## 一、ESP32 简介 ESP32 是由 Espressif 公司发展的高性能 Wi-Fi + Bluetooth 联合型单片机,充分支持 Arduino 开发,适合初学者快速开始连接规划设备。 `ESP32 特点:` - 支持 2.4GHz Wi-Fi & Bluetooth - 多核 CPU (Xtensa Dual-core) - 高速 GPIO / ADC / DAC / PWM / UART / SPI / I2C 等多种外设 - 内存和 Flash 足够开发应用 ## 二、安装 ESP32 Arduino 开发环境 ### 1. 安装 Arduino IDE `软件下载` :https://www.arduino.cc/en/software `开发环境` :支持 Windows/macOS/Linux ### 2. 配置 ESP32 开发板支持 1. 打开 IDE 后,点击 **File > Preferences** 2. 在 **Additional Board Manager URLs** 增加: ``` https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json ``` 3. 打开 **Tools > Board > Boards Manager** 4. 搜索 `esp32`,安装 Espressif Systems 插件 ### 3. 选择开发板 - 进入 **Tools > Board**,选择 "ESP32 Dev Module" - 通过 **Tools > Port** 选择与板子连接的 COM端口 ## 三、创建工程 ### 1、PlatformIO `安装插件` ![image-2025611029428.png](README/image-2025611029428.png) `新建工程` ![image-2025611127407.png](README/image-2025611127407.png) `命名工程 -> 选择芯片 -> 选择开发模式 -> 工程保存位置` `注意:` 保存位置不能有中文,否则编译报错!!! ![image-2025611431963.png](README/image-2025611431963.png) `工程结构` ![image-2025612632341.png](README/image-2025612632341.png)