Cov txheej txheem:

WiFi LED Hloov IoT: 4 Cov Kauj Ruam (nrog Duab)
WiFi LED Hloov IoT: 4 Cov Kauj Ruam (nrog Duab)

Video: WiFi LED Hloov IoT: 4 Cov Kauj Ruam (nrog Duab)

Video: WiFi LED Hloov IoT: 4 Cov Kauj Ruam (nrog Duab)
Video: Tik Tok || Tseem Nco Koj Thiab Kuv P15 2024, Hlis ntuj nqeg
Anonim
WiFi LED Hloov IoT
WiFi LED Hloov IoT

Lub hom phiaj tseem ceeb ntawm txoj haujlwm no yog los ua haujlwm hloov pauv WiFi uas yuav pab peb ua haujlwm ntawm "Blynk" app los ntawm lub khw app txawb.

Cov Lus Qhia no tau sim ua tiav nrog kev paub yooj yim ntawm Electronics thiab kuv yuav txaus siab cov lus qhia los ntawm cov kws tshaj lij hauv thaj chaw los tawm tswv yim rau kev hloov pauv uas tsim nyog.

Khoom siv

Cov hauv qab no yuav tsum ua kom tiav txoj haujlwm

  1. NodeMCU
  2. Dawb LEDs - 10 Nos
  3. Multimeter
  4. Soldering Hlau
  5. Soldering Lead
  6. Soldering Flux

Kauj Ruam 1: WiFi LED Hloov Siv NodeMCU & Blynk

WiFi LED Hloov Siv NodeMCU & Blynk
WiFi LED Hloov Siv NodeMCU & Blynk
WiFi LED Hloov Siv NodeMCU & Blynk
WiFi LED Hloov Siv NodeMCU & Blynk
WiFi LED Hloov Siv NodeMCU & Blynk
WiFi LED Hloov Siv NodeMCU & Blynk

Thawj kauj ruam yog txheeb xyuas thiab teeb tsa LEDs raws li lawv qhov sib txawv (Anode & Cathode kab rau kom yooj yim txheeb xyuas)

Tej zaum yuav muaj ob peb LEDs uas tej zaum yuav tsis ua haujlwm, yog li nws ib txwm pom zoo los tshuaj xyuas txhua tus ntawm LEDs siv Multimeter.

Kauj Ruam 2: Txheeb Xyuas & Soldering Ua Haujlwm LEDs

Txheeb Xyuas & Soldering Ua Haujlwm LEDs
Txheeb Xyuas & Soldering Ua Haujlwm LEDs
Txheeb Xyuas & Soldering Ua Haujlwm LEDs
Txheeb Xyuas & Soldering Ua Haujlwm LEDs
Txheeb Xyuas & Soldering Ua Haujlwm LEDs
Txheeb Xyuas & Soldering Ua Haujlwm LEDs

Kev tshuaj xyuas txuas ntxiv siv Multimeter yuav pab peb txheeb xyuas LEDs ua haujlwm tau thiab ua tsis raug.

Nws ib txwm zoo dua los xev cov LEDs WRT lawv qhov sib txawv thiab ua rau lawv npaj tau los ua cov laug.

Thaum ua tiav ntawm qhov muag tag nrho 10 LEDs, nws tau hais qhia ib zaug ntxiv los tshuaj xyuas qhov txuas ntxiv siv lub ntsuas ntsuas.

LED tsuas yog ua haujlwm yog tias qhov ua tau zoo ntawm lub ntsuas cua thaum txuas nrog Anode thiab qhov tsis zoo ntawm cov multimer mus rau Cathode pab LED me me ci.

Thaum ua tiav qhov muag tag nrho cov LEDs, peb tuaj yeem tshawb xyuas yog tias txhua lub LED tau ci nrog kev pab ntawm 9V Roj Teeb (Kev sib txuas yuav tsum ua kom ruaj khov hauv siab)

Nco tseg: Yog tias muaj qhov tsis ua tiav LED, koj yuav pom qee yam zoo ib yam ntawm cov duab tso rau qhov twg Multimeter qhia tus nqi ntawm 1607.

Kauj Ruam 3: Txuas NodeMCU & Tshaj Tawm Txoj Cai Ntawm Arduino IDE

Txuas NodeMCU & Tshaj Tawm Txoj Cai Ntawm Arduino IDE
Txuas NodeMCU & Tshaj Tawm Txoj Cai Ntawm Arduino IDE
Txuas NodeMCU & Tshaj Tawm Txoj Cai Ntawm Arduino IDE
Txuas NodeMCU & Tshaj Tawm Txoj Cai Ntawm Arduino IDE
Txuas NodeMCU & Tshaj Tawm Txoj Cai Ntawm Arduino IDE
Txuas NodeMCU & Tshaj Tawm Txoj Cai Ntawm Arduino IDE
Txuas NodeMCU & Tshaj Tawm Txoj Cai Ntawm Arduino IDE
Txuas NodeMCU & Tshaj Tawm Txoj Cai Ntawm Arduino IDE

Ntim cov qauv yog qhov tseem ceeb thiab kuv pom "Solid State Drive (SSD)" ntim cov tais kom tsim nyog tshaj plaws los ntim cov laug LEDs thiab NodeMCU.

Cov kev sib txuas yog yooj yim heev thiab muaj raws li hauv qab no:

1. Txuas "D1" tus pin ntawm NodeMCU mus rau Anode ntawm soldered LEDs thiab

2. Txuas tus "GND" tus pin ntawm NodeMCU mus rau Cathode ntawm cov laug LEDs.

Nco tseg: Thov xa mus rau daim duab txuas nrog rau qhov ua kom tiav code. Nws zoo li qee qhov ntawm cov cai tau ploj mus, tshwj xeeb tshaj yog nrog "suav nrog" nqe lus thaum tso cov ntawv tom ntej hauv nruab nrab ntawm tsawg dua thiab ntau dua li cov cim.

Upload cov cai hauv qab no rau NodeMCU:

#define BLYNK_PRINT Serial

#suav nrog ESP8266WiFi.h

#suav nrog BlynkSimpleEsp8266.h

char auth = "********************************************** ****** "ib;

// Koj li ntawv pov thawj WiFi.

// Teeb tus password rau "" rau qhib tes hauj lwm.

char ssid = "************";

char pass = "*****************************";

void teeb tsa () {

// Debug console

Serial.begin (9600);

Blynk.begin (auth, ssid, dhau); // Koj tseem tuaj yeem txheeb xyuas server:

// Blynk.begin (auth, ssid, dhau, "blynk-cloud.com", 80);

// Blynk.begin (auth, ssid, dhau, IPAddress (192, 168, 1, 100), 8080);

}

void voj () {

Blynk.run ();

}

Kauj Ruam 4: Blynk - Kev teeb tsa & Kev Xeem

Blynk - Kev teeb tsa & Kev Xeem
Blynk - Kev teeb tsa & Kev Xeem
Blynk - Kev teeb tsa & Kev Xeem
Blynk - Kev teeb tsa & Kev Xeem
Blynk - Kev teeb tsa & Kev Xeem
Blynk - Kev teeb tsa & Kev Xeem

Thaum kawg, nws yog lub sijhawm los teeb tsa thiab sim cov qauv ua haujlwm uas siv daim ntawv thov mobile "Blynk".

Thov ua qhov kev pab tsim nyog los ntawm cov ntawv txuas nrog kom ua tiav thiab khiav cov qauv ua tiav.

Cov lus qhia hauv qab no ib kauj ruam yuav pab tus nyeem cov kab lus no:

  1. Nruab thiab qhib Blynk App ntawm txawb.
  2. Muab txoj haujlwm lub npe: "WiFi LED Hloov IoT" hauv qhov no. Koj tuaj yeem xaiv koj tus kheej cov lus siv lub npe.
  3. Los ntawm cov npe sau cia, xaiv lub cuab yeej siv uas qhov kev sim ua tiav.
  4. Ntawm kev xaiv "Tsim", "Kev Tso Cai Token" tau qhia nrog tus sau npe/teeb tsa Email ID.
  5. Tam sim no yog lub sijhawm los ntxiv cov khoom rau hauv txoj haujlwm. Peb yuav xav tau tsuas yog ib qho "Khawm" hauv qhov no.
  6. Tsis tas li ntawd, lub pob "Output" teeb tsa yuav tsum tau hloov pauv los qhia tus lej Digital uas LED hauv kab txuas nrog (D1 hauv qhov no).
  7. Txuas ntxiv rau kev teeb tsa hom rau "Hloov" kom ua tiav kev teeb tsa.
  8. Xaiv qhov chaw yooj yim rau "Khawm" kom muab tso rau ntawm lub dashboard thiab xaiv "Ua Si" khawm nyob rau sab xis saum toj ntawm lub interface kom pib sib tham nrog pawg thawj coj.
  9. Tam sim no koj yuav tsum tuaj yeem tswj hwm koj cov LEDs hauv koob los ntawm txhua qhov chaw & txhua lub sijhawm.

Yog tias muaj kev pab ntxiv, koj tuaj yeem WhatsApp rau kuv ntawm +91 9398472594.

Pom zoo: