Cov txheej txheem:

M5STACK Yuav Ua Li Cas Saib Kub, Vaum thiab Siab ntawm M5StickC ESP32 Siv Visuino - Yooj Yim Ua: 6 Kauj Ruam
M5STACK Yuav Ua Li Cas Saib Kub, Vaum thiab Siab ntawm M5StickC ESP32 Siv Visuino - Yooj Yim Ua: 6 Kauj Ruam

Video: M5STACK Yuav Ua Li Cas Saib Kub, Vaum thiab Siab ntawm M5StickC ESP32 Siv Visuino - Yooj Yim Ua: 6 Kauj Ruam

Video: M5STACK Yuav Ua Li Cas Saib Kub, Vaum thiab Siab ntawm M5StickC ESP32 Siv Visuino - Yooj Yim Ua: 6 Kauj Ruam
Video: M5 Stack - Как устроена система? Какие варианты? Что с ней делать? (Часть 1) 2024, Kaum ib hlis
Anonim

Hauv qhov kev qhia no peb yuav kawm paub yuav ua haujlwm li cas ESP32 M5Stack StickC nrog Arduino IDE thiab Visuino kom pom qhov ntsuas kub, av noo thiab siab siv ENV sensor (DHT12, BMP280, BMM150)

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  1. M5StickC ESP32: koj tuaj yeem tau txais nws ntawm no
  2. M5StickC ENV Hat (DHT12, BMP280, BMM150) koj tuaj yeem tau txais nws ntawm no
  3. Visuino program: Rub tawm VisuinoNote: Txheeb xyuas cov ntawv qhia no ntawm yuav ua li cas rau Nruab StickC ESP32 board

Kauj Ruam 2: Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type

Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type
Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type
Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type
Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type

Pib Visuino raws li pom hauv thawj daim duab Nyem rau "Cov cuab yeej" khawm ntawm Arduino tivthaiv (Daim duab 1)

hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "M5 Stack Stick C" raws li qhia hauv daim duab 2

Kauj Ruam 3: Hauv Visuino Teeb Cov Khoom

Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
  1. Nyem nrog txoj cai nas khawm ntawm StickC board thiab xaiv "Ntxiv Shields.."
  2. Hauv Shields Dialog luag "EnvironmentHat" mus rau sab laug
  3. Kaw Shields Dialog thiab xaiv lub rooj tsavxwm thiab nyob rau sab laug hauv lub Properties window Expand on the Modules> Display ST7735
  4. Teeb "Kev taw qhia" mus rau txoj cai
  5. Nyem rau ntawm "Elements" 3 dots (Daim duab 4)
  6. Hauv Elements window rub 3x "Text Field" mus rau sab laug (Daim duab 5)
  7. Ntawm sab laug ntawm qhov kev sib tham xaiv "Text Field1" thiab hauv cov khoom qhov rai teeb tsa "Loj" rau 2
  8. Ntawm sab laug ntawm qhov kev sib tham xaiv "Text Field2" thiab hauv cov khoom qhov rai teeb tsa "Loj" rau 2 thiab "Y" txog 20
  9. Ntawm sab laug ntawm qhov kev sib tham xaiv "Text Field3" thiab hauv cov khoom qhov rai teeb tsa "Loj" rau 2 thiab "Y" txog 20
  10. Kaw The Elements Dialog

Kauj Ruam 4: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
  1. Txuas "M5 Stack Stick C" board> Ib puag ncig tus pin [Kub] mus rau "M5 Stack Stick C" board> Zaub ST7735> TextField1 tus pin [Hauv]
  2. Txuas "M5 Stack Stick C" board> Ib puag ncig tus pin [Vaum] mus rau "M5 Stack Stick C" board> Zaub ST7735> TextField2 tus pin [Hauv]
  3. Txuas "M5 Stack Stick C" board> Ib puag ncig tus pin [Siab] rau "M5 Stack Stick C" board> Zaub ST7735> TextField3 tus pin [Hauv]

Kauj Ruam 5: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code

Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code
  • Hauv Visuino, hauv qab nyem rau ntawm "Tsim" Tab, xyuas kom tseeb tias qhov chaw nres nkoj raug xaiv, tom qab ntawd nyem rau ntawm "Compile/Build and Upload" khawm.

Kauj ruam 6: Ua si

Yog tias koj siv lub zog M5Sticks, cov zaub yuav tsum pib qhia qhov ntsuas qhov ntsuas.

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm M5Sticks nrog Visuino. Kuj txuas nrog yog Visuino qhov haujlwm, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub tawm nws ntawm no. Koj tuaj yeem rub tawm thiab qhib nws hauv Visuino:

Pom zoo: