当前位置:网站首页>【花雕体验】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
边栏推荐
- Implementation of binary search in C language
- Label the picture below the uniapp picture
- C language implementation of chain stack (without leading node)
- Examen final - notes d'apprentissage PHP 3 - Déclaration de contrôle du processus PHP
- STM32 register
- 25岁,从天坑行业提桶跑路,在经历千辛万苦转行程序员,属于我的春天终于来了
- Xiashuo think tank: 50 planet updates reported today (including the global architects Summit Series)
- Given a fixed point and a straight line, find the normal equation of the straight line passing through the point
- Xiashuo think tank: 28 updates of the planet reported today (including the information of flirting with girls and Han Tuo on Valentine's day)
- Periodic planning work
猜你喜欢

为什么大学毕业了还不知道干什么?
![2021-10-27 [WGS] pacbio third generation methylation modification process](/img/a3/39d05e0daf4ea7eba95337b7a936b1.jpg)
2021-10-27 [WGS] pacbio third generation methylation modification process

深度学习——Bounding Box预测

Recurrence relation (difference equation) -- Hanoi problem

2021 China Enterprise Cloud index insight Report

At the age of 25, I started to work in the Tiankeng industry with buckets. After going through a lot of hardships to become a programmer, my spring finally came

Final review -php learning notes 9-php session control

Examen final - notes d'apprentissage PHP 6 - traitement des chaînes

Permutation and combination of probability

Adjacency matrix representation of weighted undirected graph (implemented in C language)
随机推荐
January 23, 2022 [reading notes] - bioinformatics and functional genomics (Chapter 6: multiple sequence alignment)
Final review -php learning notes 3-php process control statement
Given a fixed point and a straight line, find the normal equation of the straight line passing through the point
Lodash filter collection using array of values
Analysys analysis: online audio content consumption market analysis 2022
Tencent and Fudan University "2021-2022 yuan universe report" with 102 yuan universe collections
Digital white paper on total cost management in chain operation industry
2021 private equity fund market report (62 pages)
STM32 infrared communication 2
深度学习——BRNN和DRNN
Proteus catalog component names and Chinese English cross reference
Lexicographic order -- full arrangement in bell sound
Desk lamp control panel - brightness adjustment timer
Introduction notes to pytorch deep learning (10) neural network convolution layer
STM32 infrared communication 3 brief
December 4, 2021 - Introduction to macro genome analysis process tools
深度学习——语言模型和序列生成
冰冰学习笔记:快速排序
Distance from point to line
Deloitte: investment management industry outlook in 2022