Cov txheej txheem:

Neopixel Tswj Nrog Nodemcu: 6 Kauj Ruam
Neopixel Tswj Nrog Nodemcu: 6 Kauj Ruam

Video: Neopixel Tswj Nrog Nodemcu: 6 Kauj Ruam

Video: Neopixel Tswj Nrog Nodemcu: 6 Kauj Ruam
Video: A Drop of Your Blood 2nd Demo |Part 2| English and Hmong commentary 2024, Kaum ib hlis
Anonim
Image
Image
Neopixel Tswj Nrog Nodemcu
Neopixel Tswj Nrog Nodemcu
Neopixel Tswj Nrog Nodemcu
Neopixel Tswj Nrog Nodemcu

Nyob zoo cov neeg nov Kuv muaj cov lus qhia tshiab. Hauv cov lus qhia no peb yuav kawm paub tswj hwm thiab hloov xim ntawm Neopixel coj sawb (ws2812b) los ntawm kev siv Nodemcu los ntawm internet los ntawm txhua qhov chaw hauv ntiaj teb. Yog li nws yog txoj haujlwm ntawm IOT ua ke nrog Neopixel coj sawb.

Nov peb yuav siv Blynk app los ua kev sib txuas ntawm peb lub xov tooj smartphone thiab Nodemcu.

Kauj Ruam 1: Cov Ntaub Ntawv Yuav Tsum Tau

1) Node Mcu

2) Neopixel coj sawb (Ws21812b)

3) txuas xov hlau

4) Daim ntawv qhia zaub mov

5) Fais fab mov

Thiab

6) Blynk app

Kauj Ruam 2: Npaj Blynk App

Npaj Blynk App
Npaj Blynk App
Npaj Blynk App
Npaj Blynk App
Npaj Blynk App
Npaj Blynk App

Hauv txoj haujlwm no peb yuav tsum siv kev sib cuam tshuam ntawm lub xov tooj smartphone thiab Nodemcu. Txog qhov no peb yuav siv Blynk app los ua kev sib tham.

Txog qhov ntawd thawj zaug rub tawm Blynk app los ntawm Google ua si tom khw.

Tom qab ntawd qhib lub app thiab tsim tus lej tshiab los ntawm kev siv koj li Email ID.

Tom qab tsim tus as khauj koj yuav tau txais "Tus Thawj Coj Pov Thawj" ntawm koj tus lej ID.

Txuag qhov no "Daim Ntawv Pov Thawj Pov Thawj" rau yav tom ntej siv.

Kauj Ruam 3: Txuas Nodemcu rau Neopixel Led Sawb

Txuas Nodemcu rau Neopixel Led Sawb
Txuas Nodemcu rau Neopixel Led Sawb
Txuas Nodemcu rau Neopixel Led Sawb
Txuas Nodemcu rau Neopixel Led Sawb

Neopixel coj sawb ---- Nodemcu

5 v pin ----------- Vin pin

Pin gnd. ------- Gnd pin

Pin pin --------------- D 2 pin

Qhov no yog nws. Tsis yog li ntawd yooj yim ……

Kauj Ruam 4: Kho Vajtse thiab Khoom Siv Hluav Taws Xob

Hauv qhov haujlwm no kuv tau txuas nrog cov hlua coj ntawm qhov ntsuas thiab ntawm lwm sab ntawm qhov ntsuas Nodemcu nrog rau Breadboard tau teeb tsa.

Fais fab mov

Qhov Nodemcu no tuaj yeem ua haujlwm nrog them lub xov tooj ntawm tes (5v). Yog li koj tuaj yeem siv qhov ntawd ncaj qha. Thiab tib cov ntaub ntawv cable tuaj yeem siv txuas Nodemcu rau lub khoos phis tawj kom rub tawm qhov program.

Kauj ruam 5: Programming Nodemcu

Ua ntej kawm txog qhov no koj yuav tsum paub txog cov hauv paus ntawm Intial teeb tsa ntawm Nodemcu. Nodemcu pib teeb tsa

Txawm tias kuv tau txais kuv cov hauv paus los ntawm cov lus qhia saum toj no, yog li thov hla qhov ntawd.

Tom qab dhau los ntawm cov lus qhia no koj yuav tuaj yeem siv Nodemcu txhua txoj kev.

Hauv qab no yog qhov txuas rau qhov chaws ntawm txoj haujlwm no.

Hauv qhov kev zov me nyuam koj yuav tsum hloov pauv "Tus Thawj Coj Pov Thawj" (uas koj tau txais hauv koj li Email ID los ntawm Blynk)

Thiab tseem Ssid thiab tus password ntawm koj li WiFi uas Nodemcu yuav tsum txuas nrog.

Tom qab ua qhov no koj tuaj yeem tso qhov program rau koj pawg Nodemcu.

Ntawd yog nws koj Nodemcu tau npaj siv.

Kauj Ruam 6: Xeem Kawg

Xeem Kawg
Xeem Kawg
Xeem Kawg
Xeem Kawg
Xeem Kawg
Xeem Kawg

Yuav luag 90% ntawm kev qhia ua tiav.

Tam sim no peb yuav tsum rov qab mus rau Blynk app.

Qhib Blynk app. Tsim txoj haujlwm tshiab thiab xaiv cov kev xaiv teeb tsa (txiv ntseej hexagonal zoo li tus yuam sij nyob rau sab saum toj).

Hauv qhov kev xaiv teeb tsa nkag lub npe ntawm txoj haujlwm thiab hauv Devices xaiv Lub Nodemcu (raws li peb tab tom siv nws) kuj tseem txheeb xyuas hom kev txuas mus rau WiFi ….

Nrog qhov no Cov cuab yeej teeb tsa hauv Blynk app tau ua tiav.

Tam sim no ntxiv zeRGBa qhov tseem ceeb (widget) los ntawm kev siv khawm Ntxiv (lub thawv widget) ib sab ntawm lub pob teeb tsa.

Tom qab ntxiv cov widget tsuas yog nyem rau ntawm Widget ntawd.

Hauv qhov zeRGBa tus lej tseem ceeb xaiv qhov kev xaiv "sib koom ua ke" thiab tus pin rau "tus pin virtual V2"..

(Muaj qee cov ntawv uas yuav tsum tau theej rau hauv qhov chaws uas kuv twb tau ua dhau los lawm yav dhau los qhov chaws. Yog li koj tsuas tuaj yeem rub tawm qhov ntawd thiab tso ncaj qha.)

Pom zoo: