当前位置:网站首页>【花雕体验】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
边栏推荐
- Lexicographic order -- full arrangement in bell sound
- 深度学习——循环神经网络
- Introduction notes to pytorch deep learning (11) neural network pooling layer
- 为什么大学毕业了还不知道干什么?
- Sublime text 3 configuring the C language running environment
- Common sorting methods
- 回文子串、回文子序列
- Spring Festival inventory of Internet giants in 2022
- C. Fishingprince Plays With Array
- Simple application of generating function -- integer splitting 2
猜你喜欢

C51 minimum system board infrared remote control LED light on and off

Virtual machine VMware: due to vcruntime140 not found_ 1.dll, unable to continue code execution

Final review -php learning notes 8-mysql database

The counting tool of combinatorial mathematics -- generating function

为什么大学毕业了还不知道干什么?

回文子串、回文子序列

Introduction notes to pytorch deep learning (11) neural network pooling layer

25岁,从天坑行业提桶跑路,在经历千辛万苦转行程序员,属于我的春天终于来了

期末复习-PHP学习笔记2-PHP语言基础

冰冰学习笔记:快速排序
随机推荐
STM32 control LED lamp
February 14, 2022 [reading notes] - life science based on deep learning Chapter 2 Introduction to deep learning (Part 1)
Xiashuo think tank: 28 updates of the planet reported today (including the information of flirting with girls and Han Tuo on Valentine's day)
Digital tube EEPROM key to save value
C. Fishingprince Plays With Array
深度学习——LSTM
STM32 key control LED
冰冰学习笔记:快速排序
Efga design open source framework openlane series (I) development environment construction
期末复习-PHP学习笔记5-PHP数组
期末复习-PHP学习笔记8-mysql数据库
Armv8 (coretex-a53) debugging based on openocd and ft2232h
2021-10-29 [microbiology] qiime2 sample pretreatment form automation script
STM32 register
Global digital industry strategy and policy observation in 2021 (China Academy of ICT)
Quick placement of devices by module in Ad
Three software installation methods
Adjacency matrix representation of weighted undirected graph (implemented in C language)
C language - student achievement management system
Account command and account authority