Cov txheej txheem:

IoT Push Notification Siv Nodemcu ntawm Xov Tooj (Rau Txhua Yam): 5 Kauj Ruam (nrog Duab)
IoT Push Notification Siv Nodemcu ntawm Xov Tooj (Rau Txhua Yam): 5 Kauj Ruam (nrog Duab)

Video: IoT Push Notification Siv Nodemcu ntawm Xov Tooj (Rau Txhua Yam): 5 Kauj Ruam (nrog Duab)

Video: IoT Push Notification Siv Nodemcu ntawm Xov Tooj (Rau Txhua Yam): 5 Kauj Ruam (nrog Duab)
Video: Internet of Thing ตอน 2 (EMBEDDED SYSTEM AND ALGORITHMS) 2024, Hlis ntuj nqeg
Anonim
IoT Push Notification Siv Nodemcu ntawm Xov Tooj (Rau Txhua Yam)
IoT Push Notification Siv Nodemcu ntawm Xov Tooj (Rau Txhua Yam)

Kev xa ntawv ceeb toom rau cov lus, email yog qhov qub…

Yog li cia ua qee yam tshiab uas yog qhov yooj yim heev thiab yooj yim Tsis muaj sib sau ua ke SIV PHP HOSTING LOSSIS LAWV YUAV TSUM PAUB …

Kev siv tshuab hauv tsev, qib twj tso kua mis, tso dej hauv vaj, tso tsiaj pub tsiaj, PIR tswb thiab ntau ntxiv yam koj xav tau txais kev ceeb toom ntawm koj lub xov tooj. (Android/iOS)

Zoo siab thiab tub nkeeg tab sis tau txais kev ceeb toom !!!

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

lub hauv paus tseem ceeb yog Nodemcu (ESP8266) lossis lwm qhov kev txhim kho sib npaug xws li adafruit huzzah, wemos d1 mini thiab lwm yam.

Thiab cov ntsuas kom siv yog nyob ntawm koj xav tau …

Kuv tab tom siv lub ceeb toom ceeb toom rau kuv yav dhau los ua internet/huab tswj qhov haujlwm, PIR lub tswb ntsuas hluav taws xob, ntsuas lub ntsuas hluav taws xob ultrasonic ntsuas, IR lub qhov rooj sensor !!

Tom qab teeb tsa ntawm cov ntsuas qhov tseem ceeb sab laug yog lub cajmeem

Txhawm rau teeb tsa nodemcu hauv arduino thov mus saib kuv cov lus qhia yav dhau los …

NCO TSEG: Thov nyeem tag nrho cov lus qhia tsis txhob nyeem ib nrab thiab ua rau koj cov khoom puas, Kuv yuav tsis muaj lub luag haujlwm: P

Kauj ruam 2: ESP_Notify thiab Library

ESP_Notify thiab Library
ESP_Notify thiab Library
ESP_Notify thiab Library
ESP_Notify thiab Library
ESP_Notify thiab Library
ESP_Notify thiab Library
ESP_Notify thiab Library
ESP_Notify thiab Library

Peb tuaj yeem nrhiav ESP ceeb toom thov hauv google play store lossis peb tuaj yeem tau txais apk los ntawm txhua qhov chaw.

Tom qab teeb tsa lub app peb xav tau

  1. SAWV DAWS (siv google account)
  2. nias qhov Send TOKENs xaiv
  3. siv koj tus email
  4. hauv email koj yuav tau txais USER ID, DEVICE ID thiab Library zip URL
  5. download zip los ntawm qhov txuas

Thaum lub tsev qiv ntawv rub tawm koj tuaj yeem ntxiv nws rau koj Arduino IDE los ntawm

  1. nyem rau Sketch
  2. Suav nrog Tsev Qiv Ntawv
  3. Ntxiv. ZIP Library hauv IDE thiab tom qab ntawd xaiv qhov rub tawm ESP_Notify-master.zip cov ntaub ntawv los ntawm koj cov ntawv rub tawm.

Kauj ruam 3: CODING

CODING
CODING

Txhawm rau paub qee yam txog lub tsev qiv ntawv mus rau cov piv txwv hauv arduino:

  1. Cov ntaub ntawv
  2. Piv txwv
  3. ESP_Notify
  4. xa_ ntawv ceeb toom.

Txhawm rau nws ua haujlwm tsuas yog hloov 3 yam koj li WiFi SSID (npe), WiFi lo lus zais thiab Device_Id.

Device_Id koj tuaj yeem tau txais los ntawm email xa ua ntej los ntawm SEND TOKENS.

Yog li tom qab ntsuas cov cai peb tam sim no tuaj yeem kho nws rau peb siv raws li tau hais yav tas los …

Kev siv tshuab hauv tsev, PIR lub tswb, qib dej alrm, IR qhov rooj sensor ceeb toom

NCO TSEG: ** THOV NCO NTSOOV DEVICE_ID ROV QAB ROV QAB THIAB RAWS LI QHOV TEEB MEEM (TSIS MUAJ LUS QHIA)

Kauj Ruam 4: Qhov Kev Pab Cuam Tshuam Circuit

Qhov Kev Pab Cuam Tshaj Plaws
Qhov Kev Pab Cuam Tshaj Plaws
Qhov Kev Pab Cuam Tshaj Plaws
Qhov Kev Pab Cuam Tshaj Plaws
Qhov Kev Pab Cuam Tshaj Plaws
Qhov Kev Pab Cuam Tshaj Plaws

Kuv tau siv PIR sensor, Ultrasonic sensor, IR sensor rau kev ua haujlwm sib txawv nrog rau hauv kev tswj huab kuv tau tso lub tsev qiv ntawv thiab siv "notifier.sendNotification (device_id," header "," message ")" hauv qhov chaw xav tau ceeb toom ntawm kuv lub xov tooj ntawm kev ua.

Raws li kuv tus lej Kuv tau siv tus pin D0, D1 rau Ultrasonic sensor, D2 rau PIR, thiab D3 rau IR sensor.

Yog li rub tawm cov cai saum toj no thiab hloov kho nws zoo li koj xav tau.

Kauj Ruam 5: ESP ceeb toom rau App

ESP ceeb toom App
ESP ceeb toom App
ESP ceeb toom App
ESP ceeb toom App

Los ntawm app peb tau txais qhov kev ceeb toom xav tau thiab nws yog qhov yooj yim app kuv tau pom rau ceeb toom nrog ESP8266. Nws tsis yog qhov zoo tshaj plaws tab sis qhov yooj yim tshaj plaws.

Pros- yooj yim heev, yooj yim, txhim khu kev qha

Cons- tsis tuaj yeem pom yog tias tsis tuaj yeem dhau mus txog tam sim no, tuaj yeem ntxiv tom qab..

Ua tsaug rau daim ntawv thov thiab yooj yim siv txheej txheem yam tsis mus rau hauv cov txheej txheem tsis txaus ntseeg ntawm app, xwm txheej, php ntawm kev tsim server.

Yog li txaus siab thiab txhawb nqa…

Pom zoo: