Cov txheej txheem:

DIY Yuav Qhia Li Cas Lub Sijhawm ntawm M5StickC ESP32 Siv Visuino - Yooj Yim Ua: 9 Kauj Ruam
DIY Yuav Qhia Li Cas Lub Sijhawm ntawm M5StickC ESP32 Siv Visuino - Yooj Yim Ua: 9 Kauj Ruam

Video: DIY Yuav Qhia Li Cas Lub Sijhawm ntawm M5StickC ESP32 Siv Visuino - Yooj Yim Ua: 9 Kauj Ruam

Video: DIY Yuav Qhia Li Cas Lub Sijhawm ntawm M5StickC ESP32 Siv Visuino - Yooj Yim Ua: 9 Kauj Ruam
Video: Yuav ua li cas qhov tsos thiaj dawb! DIY How to Lighten Dark Underarms! 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 tso saib lub sijhawm ntawm LCD.

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
  1. M5StickC ESP32: koj tuaj yeem tau txais nws ntawm no
  2. Visuino program: Rub tawm Visuino

Nco tseg: Txheeb xyuas cov ntawv qhia no ntawm yuav ua li cas rau Nruab StickC ESP32 pawg thawj coj

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 Ntxiv thiab Teeb Khoom

Hauv Visuino Ntxiv thiab Teeb Khoom
Hauv Visuino Ntxiv thiab Teeb Khoom
Hauv Visuino Ntxiv thiab Teeb Khoom
Hauv Visuino Ntxiv thiab Teeb Khoom
Hauv Visuino Ntxiv thiab Teeb Khoom
Hauv Visuino Ntxiv thiab Teeb Khoom
Hauv Visuino Ntxiv thiab Teeb Khoom
Hauv Visuino Ntxiv thiab Teeb Khoom
  1. Nyem rau ntawm "M5 Stack Stick C" Board kom xaiv nws
  2. Hauv "Properties" qhov rai xaiv "Modules" thiab nyem "+" kom nthuav dav, Xaiv "Display ST7735" thiab nyem "+" txhawm rau nthuav nws
  3. Teeb Orientation rau "goRight" <qhov no txhais tau tias yuav siv sijhawm li cas ntawm LCD
  4. Xaiv "Cov ntsiab lus" thiab nyem rau ntawm lub pob xiav nrog 3 dots …
  5. Elements Dialog yuav qhia
  6. Hauv Elements Dialog luag "Text Field" los ntawm sab xis mus rau sab laug

Nyem rau ntawm "Text Field1" ntawm sab laug kom xaiv nws, tom qab ntawd hauv "Properties window" nyem rau xim thiab teeb nws rau "aclOrange"

-thiab hauv cov khoom qhov rai teeb tsa X: 10 thiab Y: 20 qhov no yog qhov uas koj xav kom tso saib lub sijhawm ntawm LCD

-set loj: 3 qhov no yog qhov loj me ntawm lub sijhawm

-Koj tuaj yeem teev cov ntawv me me thiab xim yog tias koj xav tau

Kaw lub ntsiab qhov rai

Xaiv tau:

Nyem rau ntawm "M5 Stack Stick C" Board kom xaiv nws

Hauv "Properties" qhov rai xaiv "Modules" thiab nyem "+" Txhawm rau nthuav dav, Xaiv "Display ST7735" thiab nyem "+" txhawm rau nthuav nws thiab koj yuav pom "Xim tom qab" qhov no yog lub xim pib ntawm cov zaub, hloov nws mus rau koj cov xim uas koj nyiam, koj tuaj yeem hloov pauv teeb pom kev zoo, lub neej ntawd yog 1 (max) koj tuaj yeem teeb nws rau 0.5 lossis qee qhov nqi kom ua rau nws ntau dua

6. Ntxiv "Decode (Split) Date/Time" component 7. Ntxiv "Formatted text" component

Kauj Ruam 4: 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
  1. Xaiv "FormattedTxt1" tivthaiv thiab hauv qab "Properties" qhov rai teeb "Text" rau:%0:%1:%2
  2. Nyem ob npaug rau "FormattedText1" tivthaiv thiab hauv Elements dialog rub 3x "Text Element" mus rau sab laug

Kauj Ruam 5: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
  • Txuas "M5 Stack Stick C"> Lub Sijhawm Tswb Tswb Tswb (RTC)> Pin [Tawm] rau "DecodeDateTime1" tivthaiv tus pin [Hauv]
  • Txuas "DecodeDateTime1" tivthaiv tus pin [Teev] rau "FormattedText1" tivthaiv "TextElement1" tus pin [Hauv]
  • Txuas "DecodeDateTime1" tiv thaiv tus pin [Minute] rau "FormattedText1" tivthaiv "TextElement2" tus pin [Hauv]
  • Txuas "DecodeDateTime1" tiv thaiv tus pin [Thib Ob] rau "FormattedText1" tivthaiv "TextElement3" tus pin [Hauv]
  • Txuas "FormattedText1" tivthaiv tus pin [Tawm] rau "M5 Stack Stick C" board "Display ST7735"> "Text Field1" pin [In]

Kauj Ruam 6: 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 7: Ua si

Yog tias koj siv lub zog M5Sticks module, cov zaub yuav tsum pib qhia lub sijhawm.

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:

Kauj Ruam 8: Ntxiv: Qhov Yooj Yim

Ntxiv: Yooj Yim Trick
Ntxiv: Yooj Yim Trick
Ntxiv: Yooj Yim Trick
Ntxiv: Yooj Yim Trick

Koj tuaj yeem siv lub sijhawm tam sim no uas nyob hauv koj lub khoos phis tawj thaum lub sijhawm koj sau cov cai hauv Arduino.

Txhawm rau ua qhov ntawd tsuas yog poob "Compile Date/Time" tivthaiv thiab txuas nws mus rau "M5 Stack Stick C"> "Real Time Alarm Clock (RTC)" pin [Set]

Koj tuaj yeem rub qhov Project file nrog qhov ua kom yuam kev no.

Kauj Ruam 9: Hauv Kev Qhia Ntxiv Tom ntej

Hauv qhov kev qhia tom ntej no kuv yuav qhia koj yuav ua li cas Saib Zoo Saib qhov twg koj tuaj yeem teeb tsa lub sijhawm siv StickC cov nyees khawm! Nyob twj ywm thiab txheeb xyuas kuv lwm yam kev qhia ntawm no.

Pom zoo: