Cov txheej txheem:

M5StickC ESP32 & NeoPixels LED Nplhaib Random Xim: 7 Kauj Ruam
M5StickC ESP32 & NeoPixels LED Nplhaib Random Xim: 7 Kauj Ruam

Video: M5StickC ESP32 & NeoPixels LED Nplhaib Random Xim: 7 Kauj Ruam

Video: M5StickC ESP32 & NeoPixels LED Nplhaib Random Xim: 7 Kauj Ruam
Video: NeoPixels LED Ring Random Color & M5StickC ESP32 2024, Hlis ntuj nqeg
Anonim

Hauv txoj haujlwm no peb yuav kawm paub yuav ua li cas tso saib cov xim ib txwm nyob ntawm NeoPixels LED Ring siv M5StickC ESP32 board.

Saib Video.

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
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  • M5StickC ESP32
  • NeoPixels LED Ring (Hauv qhov haujlwm no peb siv LedRing nrog 12 LED Pixels tab sis koj tuaj yeem siv lwm yam yog tias koj xav tau)
  • Visuino software: Rub tawm Visuino ntawm no:

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas StickC tus pin 5V rau LedRing tus pin VCC
  • Txuas StickC tus pin GND rau LedRing tus pin GND
  • Txuas StickC tus pin G26 rau LedRing tus pin DI

Kauj Ruam 3: 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 ntawm "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 4: Hauv Visuino Ntxiv & Teeb Khoom

Hauv Visuino Ntxiv & Teeb Khoom
Hauv Visuino Ntxiv & Teeb Khoom
Hauv Visuino Ntxiv & Teeb Khoom
Hauv Visuino Ntxiv & Teeb Khoom
Hauv Visuino Ntxiv & Teeb Khoom
Hauv Visuino Ntxiv & Teeb Khoom
Hauv Visuino Ntxiv & Teeb Khoom
Hauv Visuino Ntxiv & Teeb Khoom
  • Ntxiv "NeoPixels" tivthaiv
  • Ntxiv "Random Xim" tivthaiv
  • Nyem ob npaug rau "NeoPixels1" Hauv cov khoom vaj khoom tsev teeb tus lej ntawm coj tus lej ntawm koj lub Nplhaib LED, hauv peb cov ntaub ntawv nws 12. Yog li teeb tsa "Suav Pixels" rau 12
  • Kaw lub Pixel Pawg qhov rai.

Kauj Ruam 5: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
  • Txuas "M5 Stack Stick C" Khawm tus pin M5 rau "RandomColor1" tus pin moos
  • Txuas "RandomColor1" tus pin tawm mus rau "NeoPixels1"> Xim 1> tus pin xim.
  • Txuas "NeoPixels1" tus pin tawm mus rau "M5 Stack Stick C" tus pin GPIO 26

Kauj Ruam 6: Tsim, Sau, thiab Tshaj Tawm Txoj Cai

Tsim, Sau, thiab Tshaj Tawm Txoj Cai
Tsim, Sau, thiab Tshaj Tawm Txoj Cai

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 M5StickC thiab nyem rau ntawm lub pob kab ntxwv M5, lub LED Ntiv Nplhaib yuav tso tawm xim xim, tom qab ntawd nyem lub pob M5 dua kom hloov xim.

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

Pom zoo: