当前位置:网站首页>【花雕体验】12 搭建ESP32C3之Arduino开发环境
【花雕体验】12 搭建ESP32C3之Arduino开发环境
2022-06-30 07:26:00 【驴友花雕】
1、连接 ESP32-C3 和 PC,安装驱动(CH343)
(1)WCH官网下载驱动
https://www.wch.cn/downloads/CH343SER_EXE.html
(2)运行安装
(3)查看端口(COM和LPT)
将ESP32-C3开发板通过USB线接入PC电脑
此电脑——鼠标右键——管理——设备管理器——端口
小贴士:
无法识别的原因有多种,一是可以更换电脑上的不同USB接口,二是也要注意更换Type-C接口的USB连接线,因为有可能是接口接触不良,或是USB连接线的质量不佳,多试试直到有效识别出开发板。
2、通过串口调试助手,验证开发板
(1)在微软应用商店搜索:串口调试助手,并安装(使用其他调试助手也可以)
(2)打开串口调试助手,波特率设为921600,字符编码为GB2312 GBK,语音为简体中文
(3)打开串口,可以查看ESP32-C3开发板的一些基本情况
偶然发现,每块ESP32-C3都有自己的Mac码,这块是6055f9774244
(4)发送 ok,可以进入Luatos主页
(5)发送 2.2,进入[PWM输出]
3、下载安装Arduino IDE(已经安装的可以跳过)
https://www.arduino.cc/en/software
4、添加ESP32C3开发板
(1)打开Arduino IDE,点击左上角的“文件>>首选项”,在“附加开发板管理器网址”一栏中填写:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
(2)打开开发板管理器,搜索“ESP32”,这里选择版本“2.0.2”进行更新(原来有安装过ESP32,好像是1.0.6)
(3)选择开发板,这里选择了“RISC-V ESP32-C3”
(4)Flash Mode 选择 “DIO”
(5)最终的配置如图
5、烧录测试程序
(1)测试程序:快速闪烁双LED灯,串口输出“合宙ESP32-C3开发板”
/*【花雕体验】12 搭建ESP32C3之Arduino开发环境 测试程序:快速闪烁双LED灯,串口输出“合宙ESP32-C3开发板” */
#define LED_D4 12
#define LED_D5 13
void setup() {
Serial.begin(115200);
pinMode(LED_D4, OUTPUT);
pinMode(LED_D5, OUTPUT);
}
void loop() {
Serial.println("Hello world!");
Serial.println("合宙ESP32-C3开发板");
Serial.println("");
digitalWrite(LED_D4, LOW);
digitalWrite(LED_D5, HIGH);
delay(100);
digitalWrite(LED_D4, HIGH);
digitalWrite(LED_D5, LOW);
delay(100);
}
(2)上传成功(相关进度等信息)
(3)实验串口返回情况
(4)实验场景图
(5)测试实验视频
https://v.youku.com/v_show/id_XNTg4MTA5NDkzNg==.html?spm=a2hcb.playlsit.page.1
边栏推荐
- STM32 register on LED
- Final review -php learning notes 1
- 342 maps covering exquisite knowledge, one of which is classic and pasted on the wall
- Similarities and differences of differential signal, common mode signal and single ended signal (2022.2.14)
- DXP shortcut key
- 期末复习-PHP学习笔记5-PHP数组
- Proteus catalog component names and Chinese English cross reference
- C. Fishingprince Plays With Array
- 为什么大学毕业了还不知道干什么?
- Xiashuo think tank: 50 planet updates reported today (including the global architects Summit Series)
猜你喜欢
Introduction notes to pytorch deep learning (XII) neural network - nonlinear activation
Use of nested loops and output instances
Introduction notes to pytorch deep learning (11) neural network pooling layer
Investment and financing analysis report of Supply Chain & logistics industry in 2021
2021 private equity fund market report (62 pages)
期末复习-PHP学习笔记4-PHP自定义函数
342 maps covering exquisite knowledge, one of which is classic and pasted on the wall
Research Report on search business value in the era of big search in 2022
Wangbohua: development situation and challenges of photovoltaic industry
Examen final - notes d'apprentissage PHP 6 - traitement des chaînes
随机推荐
Intersection of two lines
2021 China Enterprise Cloud index insight Report
STM32 register
Self study notes -- use of 74h573
Implementation of binary search in C language
How to batch modify packaging for DXP schematic diagram
Common sorting methods
Log service management
Investment and financing analysis report of Supply Chain & logistics industry in 2021
Examen final - notes d'apprentissage PHP 3 - Déclaration de contrôle du processus PHP
期末複習-PHP學習筆記3-PHP流程控制語句
2021-10-27 [WGS] pacbio third generation methylation modification process
深度学习——Bounding Box预测
C language implements sequential queue, circular queue and chain queue
Simple application of generating function -- integer splitting 2
Research Report on search business value in the era of big search in 2022
Lexicographic order -- full arrangement in bell sound
期末复习-PHP学习笔记4-PHP自定义函数
C. Fishingprince Plays With Array
Final review -php learning notes 3-php process control statement