Cov txheej txheem:

Qhib thiab Kaw Koj Lub Computer Nrog Google Tsev & Blynk: 6 Cov Kauj Ruam
Qhib thiab Kaw Koj Lub Computer Nrog Google Tsev & Blynk: 6 Cov Kauj Ruam

Video: Qhib thiab Kaw Koj Lub Computer Nrog Google Tsev & Blynk: 6 Cov Kauj Ruam

Video: Qhib thiab Kaw Koj Lub Computer Nrog Google Tsev & Blynk: 6 Cov Kauj Ruam
Video: $3600 TOS MAM CLAIM * NYIAJ ZAUM 4 NTSHE TSIS MUAJ * CHINESE American txhawb Proud Boys 05/04/2021 2024, Hlis ntuj nqeg
Anonim
Qhib thiab Kaw Koj Lub Computer Nrog Google Tsev & Blynk
Qhib thiab Kaw Koj Lub Computer Nrog Google Tsev & Blynk

Nyob Zoo Cov Menyuam thiab txais tos rau qhov kev qhia no!

Lub sijhawm no kuv yuav qhia koj yuav ua li cas qhib koj lub khoos phis tawj nrog koj lub Tsev Google

CEEV FAJ !! Nyeem qhov no !!: 1. Nco ntsoov cais cov txuas! Kuv xaiv 3d luam ib rooj plaub los kho qhov teeb meem no

2. Yog tias koj txuas lub zog rau koj lub khoos phis tawj khawm koj yuav hlawv lub motherboard tawm, yog li ntawd peb siv kev xa xov los kho qhov teeb meem ntawd.

Vim li cas kuv thiaj ua qhov no Kuv yuav lub tsev google thiab sai sai no pib tswj txhua yam nrog nws. (Piv txwv li kuv lub teeb) Kuv tau ua qhov no vim kuv tub nkeeg thiab tsis xav taug kev mus yog tias kuv nyob hauv txaj. Tom qab ntawd kuv pom kuv tus kheej hauv txaj, thiab lub sijhawm no kuv tsis nco qab tua kuv lub khoos phis tawj. Muaj kuv xav, Kuv yuav tsum muaj peev xwm qhib nws thiab tawm nrog kuv google. Kuv pib googling ncig, tab sis hmoov tsis, kuv tsis pom leej twg uas tau ua li ntawd. Yog li kuv pib kuv tus kheej. Kuv pib los ntawm hauv qab. Kuv tsis paub dab tsi txog cov ncauj lus no, tab sis kuv tau kawm nrawm thiab tom qab 2 hnub so kuv tau ua tiav cov khoom! Tam sim no kuv tuaj yeem ua tub nkeeg raws li kuv xav tau: D, tab sis ua ntej kuv yuav tsum qhia nws nrog zej zog.

Koj yuav xav tau dab tsi 1. NodeMCU - https://goo.gl/HDd5S7 1. Relay Module - https://goo.gl/HDd5S7 1. Breadboard or PCB - https://goo.gl/HDd5S7 1. Khoos phis tawj nrog Arduino software ntawm 1. Smartphone nrog Blynk app

Kauj Ruam 1: 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

Txoj haujlwm no siv Blynk lub tsev qiv ntawv & IFTTT txoj haujlwm los txuas rau google

Yog tias koj xav paub dab tsi blynk yog, tom qab ntawv nyem qhov no -> https://docs.blynk.cc/First, koj yuav tsum teeb tsa lub app ntawm koj lub smartphone. (Duab 1) Thaum lub app tau teeb tsa, qhib nws thiab ua tus account. Yog tias lub app nug tus neeg rau zaub mov twg koj yuav txuas rau, xaiv Blynks tus qauv server. Thaum koj tus lej nyiaj tau tsim, nyem qhov haujlwm tshiab. Koj teeb tsa zoo li no:

Lub npe phiaj xwm: Koj tuaj yeem xaiv ib qho! Xaiv lub cuab yeej: NodeMCUC kev txuas: WiFiTheme: Koj tuaj yeem xaiv ib qho!

Tam sim no koj tsim qhov project. Ntawm no koj muaj thaj chaw ua haujlwm loj thiab peb lub nyees khawm nyob rau saum toj. Nyem rau ntawm thaj chaw ua haujlwm kom qhib lub thawv widget. Qhov no koj yuav tsum xaiv khawm. Nws yuav tsum tau txav koj rov qab mus rau Chaw Ua Haujlwm, thiab tam sim no koj tuaj yeem pom lub pob nyem. Nyem rau ntawm lub cuab yeej qhib lub pob teeb tsa. Kev teeb tsa zoo li no: (Duab 2)

Lub Npe: D1Output: Pin (D1) 1_0Mode: PushON/OFF Cov ntawv: Cov chaw teeb tsa

Thaum koj ua tiav, nyem ok nyob rau ntawm kaum sab xis saum toj kawg nkaus, nyem rau ntawm qhov chaw ua haujlwm kom qhib lub thawv widget, thiab xaiv lub khawm widget. Nyem rau ntawm lub widget qhib lub pob teeb tsa. Kev teeb tsa zoo li no: (Daim duab 3)

Lub Npe: Pib / StopOutput: Pin (V1) 0_1Mode: SwitchON / OFF Labels: Standart settings

Thaum koj ua tiav, nyem ok nyob rau sab xis saum toj kawg nkaus. Ntawm no, nyem rau ntawm qhov chaw ua haujlwm kom qhib lub thawv widget, thiab xaiv lub khawm widget. Nyem rau ntawm tus widget qhib lub pob teeb tsa. Kev teeb tsa zoo li no: (Daim duab 4)

Lub Npe: RestartOutput: Pin (V2) 0_1 Hom: Hloov ON/OFF Cov ntawv cim: Cov chaw teeb tsa

Thaum koj ua tiav, nyem ok nyob rau hauv kaum sab xis saum toj no. Tam sim no peb tau teeb tsa tiav, Nyem rau ntawm lub pob teeb tsa, (nws yog nyob rau sab xis saum toj ntawm lub chaw ua haujlwm) Scroll down rau Auth Token, Ntawm no koj yuav tsum nyem E-Mail, thiab cov cim yuav xa tuaj rau hauv koj lub inbox. Tom qab ntawv nyem OK hauv lub ces kaum sab xis saum toj. Tom qab ntawd mus rau sab xis ntawm lub chaw teeb tsa, koj yuav tsum nyem ua si, thiab tom qab ntawd nws yuav hais tias "(Lub Npe Lub Npe) tsis nyob." Tam sim no peb tau ua tiav nrog cov app no!

Kauj Ruam 2: Txhim Kho Tsev Kawm Ntawv Arduino

Txhim kho Arduino Libraries
Txhim kho Arduino Libraries
Txhim kho Arduino Libraries
Txhim kho Arduino Libraries

Ua ntej peb tuaj yeem pib ua haujlwm NodeMCU koj xav tau software thiab tsev qiv ntawv

Ua ntej nruab Arduino software - https://www.arduino.cc/en/Main/SoftwareTau nruab NodeMCU Library - https://www.youtube.com/embed/RVSCjCpZ_nQA thiab tom qab ntawd nruab Blynk Library - https:/ /https://www.youtube.com/embed/Ea0y1ExNNnI

Tom qab ntawd thaum txhua lub Tsev Qiv Ntawv raug teeb tsa, Qhib Arduino software thiab tom qab ntawd nyob rau saum kaum, mus rau Cov Cuab Yeej -> Pawg Thawj Coj -> NodeMCU 1.0 (ESP -12E Module)

Tam sim no koj tuaj yeem txuas koj NodeMCU rau lub khoos phis tawj (nrog lub xov tooj usb) Tom qab ntawd qhib lub qhov rai program Tus Thawj Saib Xyuas Haujlwm thiab hauv qab cov chaw nres nkoj pom "Silicon Labs" (Duab 1)

Tom qab ntawd qhib Arduino software dua thiab mus rau Cov Cuab Yeej -> Chaw Nres Nkoj -> Xaiv koj com (tus lej uas sib haum rau NodeMCU) (Duab 2)

Kauj Ruam 3: Programming NodeMCU

Programming lub NodeMCU
Programming lub NodeMCU

Tam sim no peb tau npaj rau kev tsim lub NodeMCU

Tsim qhov kos duab Arduino khoob thiab luam cov cai los ntawm qhov link

Kab 7: Tus Cai Sau Npe: Hloov TOKEN nrog lub cim cim uas tau xa tuaj rau koj tus E-Mail. Line 8: SSID: Hloov SSID nrog koj li WiFi ssid. Line 9: Lo lus zais: Hloov PASS nrog koj tus lej WiFi.

Thaum koj tau hloov qhov kev hloov pauv, koj tuaj yeem nyem upload hauv lub ces kaum sab xis Tam sim no koj yuav tsum tsuas yog tos kom txog thaum qhov program tau rub tawm tam sim no peb tau ua tiav nrog lub khoos phis tawj thiab tam sim no tau npaj los pib ntsuas

Kauj ruam 4: Prototyping

Prototyping
Prototyping

Tam sim no peb tau npaj los txuas Relay rau Arduino

Ua kom ntseeg tau kom tshem tawm ARDUINO thaum txuas tus PIN

Ntawm NodeMCU peb xav tau peb tus pin 5 volt tus pin - VinA av pin - GNDAnd tus Digital pin - D1

Txuas tus pin Vin mus rau lub davhlau ya nyob twg zoo ntawm kev xa tawm (Nws yuav raug sau npe VCC lossis +) Txuas tus pin GND mus rau lub davhlau ya nyob twg ntawm tus xa khoom (Nws yuav muaj qhov cim npe GND lossis -) Txuas tus pin D1 mus rau lub davhlau ya nyob twg ntawm kev xa tawm (Nws yuav tshwm sim tau sau rau hauv)

Tam sim no koj tuaj yeem txuas cov pins rau qhov kawg tso tawm.

Txuas koj lub khoos phis tawj khawm mus rau NC (Ib txwm Kaw) thiab COM (Common)

Kauj ruam 5: IFTTT

IFTTT
IFTTT
IFTTT
IFTTT
IFTTT
IFTTT

Tam sim no peb nyob ze, tab sis peb xav tau ib yam ntxiv Thiab qhov ntawd txuas nws mus rau hauv google tsev

Mus rau IFTTT -> https://ifttt.com/my_appletsClick on New appletTus nyem rau ntawm no (Daim Duab 1) Tshawb rau Google tus pab (Duab 2) Xaiv Hais Cov Lus Yooj Yim (Duab 3) Teeb kab lus raws li daim duab (Duab 4) Tom qab ntawv nyem rau +uas (Daim duab 5) Tshawb rau webhooks (Daim duab 6) Tom qab ntawd qhib daim ntawv thov CMD ntawm koj lub khoos phis tawj (Daim duab 7, Tsis txhob mloog nws hais tias "kommandoprompt" nws yog Danish rau CMD) Tom qab ntawd nkag ping blynk-cloud. com Tom qab ntawd saib tus IP (Qhov no tuaj yeem txawv ntawm daim duab, raws li nws nyob ntawm koj qhov chaw nyob) (Daim duab 8) Tom qab ntawd qhib koj lub browser dua thiab tam sim no peb tuaj yeem teeb tsa lub webhook applet

URL: https:// IP: 8080/TOKEN/hloov tshiab/V1? Value = 1Muaj txheej: GETContent yam: Daim ntawv thov/jsonBody: Tsis muaj dab tsi (Daim duab 9)

Tam sim no koj yuav tsum tos txog 24 teev, thiab tom qab ntawd koj tuaj yeem sim qhia google koj cov lus txib. Yeej yog koj ua tiav, tab sis yog tias koj xav kom tuaj yeem yuam nws kaw (Ua raws li tuav lub pob rau 6 vib nas this) Koj yuav tsum ua ib qho ntxiv applet, Qhov tsuas yog qhov koj hloov pauv yog kab lus thiab webhook url rau

URL: https:// IP: 8080/TOKEN/hloov tshiab/V2? Tus nqi = 1

Kauj Ruam 6: Ua Tsaug

Ua Tsaug
Ua Tsaug
Ua Tsaug
Ua Tsaug

Tam sim no peb tau ua tiav, thiab ua tsaug rau koj nyeem qhov no

Yog tias nws tsis ua haujlwm lossis koj muaj lus nug, thov sau email lossis xa ntawv ntiag tug ntawm Instructables. I tau pib ua noob thiab kuv tseem yuav cais kuv tus kheej ua noob, tab sis kuv yuav tsum tuaj yeem pab koj nrog koj cov teeb meem Rau kuv nws ua haujlwm thiab kuv yuav tsum rau koj ib yam.

Kuv ua tiav qhov kuv xaiv los teeb tsa kuv txoj haujlwm tso cai rau PCB thiab, sai sai no kuv yuav 3d luam tawm rooj plaub. Koj tuaj yeem pom nws ntawm daim duab uas tau ua tiav. Kuv kuj tau ua qee qhov txuas nrawm rau kuv PCB kom sai tuaj yeem tshem nws tawm ntawm lub khoos phis tawj yog tias tsis tseem ceeb.

CEEV FAJ !! Nyeem qhov no !!:

1. Nco ntsoov cais cov connectons! Kuv xaiv 3d luam ib rooj plaub los kho qhov teeb meem no2. Yog tias koj txuas lub zog rau koj lub khoos phis tawj khawm koj yuav hlawv lub motherboard tawm, yog li peb siv qhov txuas txuas los kho qhov teeb meem ntawd.

Pom zoo: