Cov txheej txheem:

Teeb Teeb Huab Cua - Hloov Xim Nrog Kub: 6 Kauj Ruam
Teeb Teeb Huab Cua - Hloov Xim Nrog Kub: 6 Kauj Ruam

Video: Teeb Teeb Huab Cua - Hloov Xim Nrog Kub: 6 Kauj Ruam

Video: Teeb Teeb Huab Cua - Hloov Xim Nrog Kub: 6 Kauj Ruam
Video: tuav wb lub neej kom ruaj khov - Mang Vang ft. Christina Xyooj [Official Audio] 2021-22 2024, Kaum ib hlis
Anonim
Teeb Huab Cua - Hloov Xim Nrog Kub
Teeb Huab Cua - Hloov Xim Nrog Kub

Nyob zoo! Muaj pes tsawg zaus nws tau tshwm sim uas koj tau txias hauv qab lub tshuab cua txias hauv koj chav, tsis paub tias nws sov li cas sab nraum. Xav txog qhov xwm txheej ntawm koj tus tsiaj. Tsis yog nws muaj AC lossis tsis muaj kiv cua. Tej zaum nws yuav tsis tshua muaj tshwm sim, tab sis tshwm sim ob peb zaug. Yog li kuv nthuav qhia rau koj lub teeb huab cua! Qhov no yog qhov hloov kho tshiab ntawm ISS teeb uas kuv tau ua ob peb hnub dhau los. Txoj haujlwm no yuav qhia koj yooj yim npaum li cas los tsim thiab kho lub teeb. Txaus tham. Lub teeb ua dab tsi tiag? Zoo Nws tsuas yog lub teeb pom kev zoo uas ci hauv xiav. Yog tias qhov kub sab nrauv nce siab dua qhov teeb tsa teeb, lub teeb tig liab. Yooj yim li ntawd. Yog tias koj xav tias nws yooj yim heev, koj tuaj yeem hloov kho nws nrog RGB coj los ua txhua yam thiab txhua yam, yuav luag. Kuv tau khaws nws yooj yim rau cov pib tshiab. Yog li cia peb ua!

Khoom siv

NodeMcu (esp8266)

Liab thiab xiav coj

Poj niam rau poj niam jumper xov hlau (yeem)

Daim ntawv dub daim ntawv nthuav tawm lub thawv (lossis koj tuaj yeem luam nws 3d)

5v DC adapter nrog micro usb cable

Blynk thiab ifttt apps

Kauj Ruam 1: Cov ntaub ntawv kaw

Cov ntaub ntawv kaw
Cov ntaub ntawv kaw
Cov ntaub ntawv kaw
Cov ntaub ntawv kaw

Tsim cov qauv yog yooj yim. Kuv siv tib yam uas kuv tau ua lub teeb ISS tawm ntawm. Yeej, Kuv nyuam qhuav qhib lub qub coj chav teeb thiab siv sab saum toj diffusing feem. Rau lub hauv paus, Kuv txiav lub nplhaib ncig los ntawm daim duab uas haum zoo rau sab nraub qaum.

Kauj ruam 2: Code…

Txoj cai…
Txoj cai…

Qhov kev zov me nyuam yog qhov yooj yim heev. Siv kuv tus lej thiab hloov ib feem hais "Auth" nrog tus lej cim uas koj yuav tau txais tom qab tsim qhov project blynk. Hloov "ssid" nrog koj lub npe WiFi thiab "tus password" nrog koj tus password WiFi, Txhua yam nws ua yog txuas rau blynk app. Thaum ifttt app tau txais qhov tshwm sim los ntawm huab cua hauv av (kev pabcuam), nws ua rau blynk, uas ua rau ua rau xaiv tus pin ntawm NodeMcu. Puas yog nws dhau lawm? Tsis muaj kev txhawj xeeb, koj tuaj yeem rub tawm kuv cov cai thiab xa mus rau koj NodeMcu. Nws yuav tsum ua haujlwm zoo. Huag thiab xyuas kom tseeb tias koj muaj lub esp8266 thiab blynk cov tsev qiv ntawv teeb tsa.

Tsis paub yuav ua li cas rau nruab cov tsev qiv ntawv no? Nyem rau qhov no rau nodemcu thiab ntawm no rau blynk

Kauj Ruam 3: Ua Kev Sib Txuas

Ua Kev Sib Txuas
Ua Kev Sib Txuas
Ua Kev Sib Txuas
Ua Kev Sib Txuas

Qhov no yooj yim. Txuas tus pin D1 rau D7 thiab D2 rau D4. Tam sim no txuas tus pin zoo ntawm liab coj mus rau D5 thiab tus lej zoo ntawm xiav coj mus rau D6. Cov pins tsis zoo ntawm ob qho tib si LEDs tuaj yeem txuas nrog gnd ntawm lub node mcu. Ua tiav Saib, yooj yim.

Kauj Ruam 4: Teeb Blynk

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

Nco ntsoov tias koj tau kos npe rau blynk thiab nkag mus rau hauv lub app. Tsim ib qhov haujlwm tshiab thiab tus cim cim yuav raug xa tuaj rau koj.. Hauv blynk, nyem qhov twg ntawm lub vijtsam dub kom pom lub thawv widget tshwm. Hauv lub thawv widget, nyem rau ntawm "khawm". Koj yuav pom tias khawm khawm tau ntxiv. Nyem rau nws thiab xaiv "PIN". Xaiv gp5 los ntawm daim ntawv teev npe. Ib yam li tsim lwm lub pob tab sis lub sijhawm no xaiv gp4.

Kauj Ruam 5: Teeb IFTTT

Teeb IFTTT
Teeb IFTTT
Teeb IFTTT
Teeb IFTTT
Teeb IFTTT
Teeb IFTTT

Nkag mus rau ifttt. Nyem rau ntawm lub tab thib 3 (hauv qab txoj cai) thiab xaiv lub cim "+" nyob rau sab xis saum toj. Los ntawm qhov ntawd, nyem rau ntawm "qhov no" uas yuav tsum yog xim xiav. Nyem rau huab cua hauv av. Nyem rau ntawm "qhov kub tam sim no nce siab dua" thiab nkag mus rau qhov ntsuas kub (hais 35) thiab xaiv Celsius. Tom qab ntawv xaiv koj qhov chaw nyob.

Tam sim no nyem rau ntawm "ntawd" thiab tshawb rau "webhooks" ntawm qhov bar tshawb. Nyem rau "ua lub vev xaib thov" thiab nkag mus rau URL. Xaiv "muab" hauv ntu ntu txheej txheem thiab xaiv "application/json" hauv hom ntsiab lus. Hauv lub cev, ntaus ["1"]

Hom ntawv URL yog https:// IP/Auth/hloov tshiab/D5, Hloov Auth nrog tus cim npe ntawm blynk txoj haujlwm thiab IP nrog blynk huab IP ntawm koj lub tebchaws. Kom tau tus IP, qhib qhov hais kom sai thiab ntaus "ping blynk-cloud.com". Rau Is Nrias teb, tus IP yog 188.166.206.43

Ib yam li ntawd, Tsim lwm daim ntawv thov, tsuas yog lub sijhawm no xaiv "qhov ntsuas kub tam sim no qis dua" hauv Huab cua hauv av. Tsis tas li, URL lub sijhawm no yog https:// IP/Auth/hloov tshiab/D4 Txhua qhov teeb tsa! Peb ua tiav!

Kauj ruam 6: Hwj chim On

Hwj chim Nyob!
Hwj chim Nyob!
Hwj chim Nyob!
Hwj chim Nyob!
Hwj chim Nyob!
Hwj chim Nyob!
Hwj chim Nyob!
Hwj chim Nyob!

Tsuas yog txuas 5v muab rau nodeMcu uas yog txhua yam. Nws tsis yog instantaneous ho. Huab cua hauv av siv sijhawm me ntsis los hloov qhov kub thiab txias. Xijpeem, yog tias koj tso lub teeb ci rau, nws yuav tsum ua haujlwm zoo. Txoj haujlwm no yog hloov tshiab rau ISS teeb uas tau tsim ua ntej. Kuv qhov kev mob siab rau ua qhov no yog los qhia qhov yooj yim nws yog teeb lub teeb raws li koj xav tau. Piv txwv li, Kuv tau ntxiv lwm LED thiab tam sim no nws ci liab thaum kub kub, xiav thaum txias thiab daj hauv qhov kub ib txwm muaj. Koj yuav muaj tseeb pib txaus siab rau IOT thaum koj pib ua cov haujlwm no thiab ua si ib puag ncig nrog cov cai. Yog li lub sijhawm no kuv tsis ua qhov chaws taug kev. Yog tias koj tsis meej pem, koj tuaj yeem saib ntawm ISS teeb uas kuv tau tsim ua ntej uas kuv tau taug kev los ntawm tus lej zoo sib xws.

Kuv vam tias kuv tuaj yeem txhawb koj kom sim ua cov haujlwm diy no. Ua tsaug!

Pom zoo: