Cov txheej txheem:

Node MCU Nrog 4 Port Relay Module, Blynk App, IFTTT thiab Google Tsev. Cov nyiaj tau los?: 5 Cov kauj ruam
Node MCU Nrog 4 Port Relay Module, Blynk App, IFTTT thiab Google Tsev. Cov nyiaj tau los?: 5 Cov kauj ruam

Video: Node MCU Nrog 4 Port Relay Module, Blynk App, IFTTT thiab Google Tsev. Cov nyiaj tau los?: 5 Cov kauj ruam

Video: Node MCU Nrog 4 Port Relay Module, Blynk App, IFTTT thiab Google Tsev. Cov nyiaj tau los?: 5 Cov kauj ruam
Video: Node-Red ep-06 การทำ Line chat bot โต้ตอบด้วย Message แบบต่างๆ 2024, Kaum ib hlis
Anonim
Node MCU Nrog 4 Port Relay Module, Blynk App, IFTTT thiab Google Tsev. Nyiaj?
Node MCU Nrog 4 Port Relay Module, Blynk App, IFTTT thiab Google Tsev. Nyiaj?

Kab ntawv no yog txhua yam hais txog yuav ua li cas txuas google tsev nrog NodeMCU thiab blynk app, koj tuaj yeem tswj hwm koj cov cuab yeej siv nrog yooj yim blynk tswj NodeMCU hloov thiab google tus pab.

Yog li cia mus, Ok Google.. Qhib yam:)

Kauj Ruam 1: Yam Yuav Tsum Tau

  1. Cov qhob cij
  2. NUJ MCU
  3. Breadboard Fais Fab Khoom
  4. 4 Chaw Nres Nkoj Relay Module
  5. Jumper Hlau
  6. Coj
  7. Smartphone
  8. App ntawm Blynk
  9. IFTTT Account
  10. Google Tsev lossis Xov Tooj Android nrog Google Pab
  11. Ob peb feeb

Kauj Ruam 2: Breadboard, Node MCU thiab 4 Port Relay Module

Breadboard, Node MCU thiab 4 Port Relay Module
Breadboard, Node MCU thiab 4 Port Relay Module

Txuas tag nrho cov khoom siv raws li qhia hauv kab lus, koj tuaj yeem siv lub hwj huam mov los yog siv Node MCU USB rau lub zog rau kev tsim qauv.

Kuv tau siv tus coj yooj yim ntawm no, koj tuaj yeem siv AC thauj khoom ntawm qhov txuas hauv qhov haujlwm tiag, thov nco ntsoov tias koj ua nws nrog ceev faj.

Kauj Ruam 3: Daim Duab Blynk

Lub Blynk Sketch
Lub Blynk Sketch

Tau txais qhov pib ntsais muag kos los ntawm

examples.blynk.cc/?board=ESP8266&shield=ES…

Koj yuav tau hloov cov ntsiab lus no

// Koj yuav tsum tau txais Auth Token hauv Blynk App.// Mus rau Qhov Project Settings (txiv ntoo cim).char auth = "YourAuthToken"; // Koj li WiFi muaj peev xwm.// Teem lo lus zais rau "" rau qhib tes hauj lwm. char ssid = "YourNetworkName"; char pass = "YourPassword";

ib zaug ua tiav sim rub cov duab kos rau NodeMCU, xyuas seb nws txuas rau Wi-nkaus

Kauj Ruam 4: Blynk App

Lub Blynk App
Lub Blynk App

ib zaug sim blynk kos duab ntawm NodeMCU qhib blynk app hauv koj lub xov tooj thiab

  • tsim lub pob
  • xaiv tus pin tso tawm tib yam li ntawm lub rooj tsavxwm (uas hais txog kev xa tawm ntawm lub nkoj)
  • xaiv hloov yam tsis thawb khawm
  • cia cov ntaub ntawv rau cov xeev yog 0 thiab 1

qhov no yog txhua yam koj tuaj yeem sim ua qhov hloov pauv ntawm lub pob no thiab kev qhia ua tiav yog tias yog yam koj xav ua kom tiav los tswj kev xa xov ntawm lub xov tooj.

yog tias koj xav txuas qhov no nrog google tsev ces txuas ntxiv mus …

Kauj Ruam 5: Yog Tias Yog Li No

Yog Yog Li No
Yog Yog Li No
Yog Yog Li No
Yog Yog Li No
Yog Yog Li No
Yog Yog Li No
Yog Yog Li No
Yog Yog Li No

IFTTT, Yog tsis muaj lwm txoj hauv kev kom txuas Blynk ncaj qha rau google kev pab thiab ntawm no los IFTTT los pab peb.

Tsim tus as khauj nrog IFTTT thiab

  • nyem rau ntawm yog tias tag thiab tshawb google kev pab los ntawm IFTTT
  • Txuas IFTTT rau koj tus lej Google thiab tsim qhov tshiab 'kab lus yooj yim' txhais
  • Ntxiv ob peb nqe lus uas koj yuav pom zoo, thiab ntxiv cov lus teb uas Google Tsev yuav tsum hais.
  • Tom ntej no peb yuav xav tau ntu, xaiv webhook
  • Kom tau tus IP chaw nyob rau blynk server, ping blynk-cloud.com
  • Ua tiav URL rau webhook yuav yog qee yam xws li <https:// blynk-server-ip> // hloov tshiab/
  • xaiv txoj kev PUT thiab lub cev raws li ["0"] lossis ["1"] raws li qhov hais kom ua thiab hloov pauv
  • koj yuav tsum tsim 2 qhov kev thov ob qho tib si ntawm thiab tawm

Qhov ntawd yog txhua tus neeg ib zaug cov kauj ruam no yog ua tiav koj qhov kev pabcuam google yuav hu rau IFTTT applet uas yuav hu mus rau blynk webhook thiab thaum kawg xa cov lus txib rau NodeMCU.

Ua tsaug

Pom zoo: