当前位置:网站首页>[flower carving experience] 12 build the Arduino development environment of esp32c3

[flower carving experience] 12 build the Arduino development environment of esp32c3

2022-06-30 07:59:00 Lvyou flower carving

1、 Connect ESP32-C3 and PC, Installation driver (CH343)
(1)WCH Download driver on official website
https://www.wch.cn/downloads/CH343SER_EXE.html

 Insert picture description here

(2) Run the setup

 Insert picture description here

 Insert picture description here
(3) Check the port (COM and LPT)
take ESP32-C3 Development board through USB Line access PC The computer
This computer —— Right mouse button —— management —— Device manager —— port

 Insert picture description here

Tips: :
There are many reasons for not being recognized , First, you can change the computer USB Interface , Second, pay attention to replacement Type-C Interface USB Connecting line , Because the interface may be in poor contact , or USB The quality of the connecting wire is poor , Try again until you can effectively identify the development board .

2、 Debugging assistant through serial port , Validate development board
(1) Search in Microsoft app store : Serial debugging assistant , And install ( You can also use other debugging assistants )

 Insert picture description here

(2) Open the serial debugging assistant , The baud rate is set to 921600, The character is encoded as GB2312 GBK, The pronunciation is simplified Chinese

 Insert picture description here
(3) Open the serial port , You can see ESP32-C3 Some basic information about the development board
By chance , each ESP32-C3 All have their own Mac code , This is a 6055f9774244
 Insert picture description here

(4) send out ok, Can enter the Luatos Home page

 Insert picture description here

(5) send out 2.2, Get into [PWM Output ]

 Insert picture description here
3、 Download and install Arduino IDE( Those already installed can be skipped )
https://www.arduino.cc/en/software

 Insert picture description here
4、 add to ESP32C3 Development board
(1) open Arduino IDE, Click on the top left “ file >> Preferences ”, stay “ Add development board manager website ” Fill in... In the column :
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json

 Insert picture description here

(2) Open the development board Manager , Search for “ESP32”, Select the version here “2.0.2” updated ( It was installed ESP32, Seems to be 1.0.6)

 Insert picture description here

 Insert picture description here

(3) Choose development board , Here's the choice “RISC-V ESP32-C3”

 Insert picture description here

(4)Flash Mode choice “DIO”

 Insert picture description here

(5) The final configuration is shown in Figure

 Insert picture description here

5、 Burn test program
(1) The test program : Fast flashing double LED The lamp , Serial output “ Hezhou ESP32-C3 Development board ”

/*【 Flower carving experience 】12  build ESP32C3 And Arduino development environment   The test program : Fast flashing double LED The lamp , Serial output “ Hezhou ESP32-C3 Development board ” */

#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(" Hezhou ESP32-C3 Development board ");
  Serial.println("");

  digitalWrite(LED_D4, LOW);
  digitalWrite(LED_D5, HIGH);
  delay(100);
  digitalWrite(LED_D4, HIGH);
  digitalWrite(LED_D5, LOW);
  delay(100);
}

(2) Upload successful ( Relevant progress and other information )

 Insert picture description here

(3) Experimental serial port return

 Insert picture description here

(4) Experimental scene

 Insert picture description here

(5) Test experiment video

https://v.youku.com/v_show/id_XNTg4MTA5NDkzNg==.html?spm=a2hcb.playlsit.page.1

原网站

版权声明
本文为[Lvyou flower carving]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/181/202206300725549666.html