Cov txheej txheem:

DIY Internet ntawm LEDs: 6 Kauj Ruam
DIY Internet ntawm LEDs: 6 Kauj Ruam

Video: DIY Internet ntawm LEDs: 6 Kauj Ruam

Video: DIY Internet ntawm LEDs: 6 Kauj Ruam
Video: #awm shell ejection sniper rifle toy gun #sniper #softbulletgun #fypシ #toygun 2024, Kaum ib hlis
Anonim
DIY Internet ntawm LEDs
DIY Internet ntawm LEDs

Nov yog kev taw qhia rau WiFi kev siv tshuab ntawm NodeMCU lossis ESP32 thiab Blynk Application.

Yog tias koj tsis tau tinkered nrog NodeMCU tsis tau, nkag mus rau wifi automation tuaj yeem yog qhov nyuaj me ntsis, yog li ntawm no kuv tau sim ua kom txhua yam ncaj thiab yooj yim yog li pab koj dhia hauv bandwagon ntawm Internet ntawm Yam.

Cia peb pib!

Kauj Ruam 1: Yam Yuav Tsum Tau

Yam Yuav Tsum Tau
Yam Yuav Tsum Tau
Yam Yuav Tsum Tau
Yam Yuav Tsum Tau
Yam Yuav Tsum Tau
Yam Yuav Tsum Tau

1.) Breadboard - Txhawm rau txuas cov khoom yam tsis muaj kev sib txuas.

2.) Jumper Wires - Rau txuas cov pins ntawm NodeMCU rau lub khob cij thiab LED.

3.) Lub xov tooj nrog Blynk App teeb tsa - Blynk yuav ua rau peb internet ntawm LEDs ntsais muag

4.) LEDs - Kom ntsais!

5.) Node MCU - Lub hlwb hauv zos ntawm peb txoj haujlwm.

6.) 220 Ohm Tam sim no txwv tus tiv thaiv - Tsis tsim nyog yog tias koj tsuas yog ua txoj haujlwm no kom kawm thiab tsis txhob ua qhov tseeb, hais tias ntxiv cov resistor yog ib qho kev coj ua zoo txawm li cas los xij.

Kauj Ruam 2: Txuas LEDs

Txuas LEDs
Txuas LEDs
Txuas LEDs
Txuas LEDs
Txuas LEDs
Txuas LEDs

Txuas LEDs rau Arduino yog qhov ncaj thiab yooj yim, tsuas yog txuas peb qhov tsis zoo coj mus rau GND tus pin ntawm NodeMCU, tom qab ntawv txuas lub LED's Lead Lead rau ib qho ntawm Digital Pins, tab sis nco ntsoov cov pins li koj xav tau kom qhia lawv hauv Blynk.

Kauj Ruam 3: Npaj NodeMCU

Npaj NodeMCU
Npaj NodeMCU
Npaj NodeMCU
Npaj NodeMCU

Arduino IDE tso cai rau peb ua haujlwm rau NodeMCU, tsuas yog peb yuav tsum rub tawm cov ntawv xav tau los ntawm Pawg Thawj Coj hauv Arduino.

Tam sim no txuas NodeMCU rau koj lub PC ntawm USB cable thiab qhib Arduino IDE muaj mus rau Cov Ntaub Ntawv-> Nyiam-> Ntxiv Pawg Thawj Coj URL. Muab qhov txuas no tso rau -

Tam sim no, mus rau cov cuab yeej-> Boards-> Board Manager. Hauv qhov tshawb nrhiav, tshawb "ESP" teeb tsa thawj Pawg Pob uas koj pom hauv cov txiaj ntsig. Xaiv NodeMCU los ntawm Cov Cuab Yeej-> Cov laug cam thiab tom qab ntawv lees paub tias Baud Tus Nqi yog 115200.

Kauj Ruam 4: Teeb Blynk

Teeb tsa Blynk
Teeb tsa Blynk
Teeb tsa Blynk
Teeb tsa Blynk
Teeb tsa Blynk
Teeb tsa Blynk

Qhib daim ntawv thov, sau npe, tsim ib qhov haujlwm tshiab thiab koj yuav tau txais Daim Ntawv Pov Thawj Pov Thawj ntawm email, luam qhov ntawd.

Kauj ruam 5: Txoj Cai

Txoj Cai
Txoj Cai
Txoj Cai
Txoj Cai

Hauv Arduino IDE, mus rau Piv Txwv, Blynk, Wifi Boards, xaiv NodeMCU.

Tam sim no muab tshuaj txhuam koj tus lej cim rau hauv Qhov Chaw thiab tseem muab koj li Wi -nkaus network SSID thiab Password.

Thaum kawg, Rub qhov program mus rau pawg thawj coj.

Kauj Ruam 6: Kev teeb tsa zaum kawg

Kev teeb tsa zaum kawg!
Kev teeb tsa zaum kawg!
Kev teeb tsa zaum kawg!
Kev teeb tsa zaum kawg!
Kev teeb tsa zaum kawg!
Kev teeb tsa zaum kawg!

Tam sim no, qhib qhov haujlwm hauv Blynk App thiab tom qab ntawd ntxiv cov nyees khawm, tus naj npawb ntawm cov nyees khawm koj yuav tshaj tawm yog nyob ntawm tus naj npawb ntawm LEDs koj tau txuas nrog.

Thaum koj yuav nyem rau ntawm lub pob, koj yuav raug coj mus rau nws qhov chaw (Txoj haujlwm yuav tsum yog Offline), uas koj yuav tsum qhia tus lej tus lej koj txuas nrog LEDs.

Thaum koj tau ua qhov ntawd, tsuas yog Ua Si qhov project los ntawm kev nyem lub pob nyob rau sab xis saum toj ntawm lub vijtsam, thiab nyob ntawm seb hom khawm koj tau xaiv (Laub lossis Hloov), koj yuav muaj peev xwm tig LEDs On thiab Off hauv txoj kev ntawd.

Ua Tsaug Rau Kev Nyeem!

Pom zoo: