Cov txheej txheem:

IDC2018IOT: Lub Rooj Sib Tham Snitcher: 6 Cov Kauj Ruam
IDC2018IOT: Lub Rooj Sib Tham Snitcher: 6 Cov Kauj Ruam

Video: IDC2018IOT: Lub Rooj Sib Tham Snitcher: 6 Cov Kauj Ruam

Video: IDC2018IOT: Lub Rooj Sib Tham Snitcher: 6 Cov Kauj Ruam
Video: Sib Hawm Dhau (Time Passed) Music Video by: Deeda/Dib Xwb 2024, Hlis ntuj nqeg
Anonim
IDC2018IOT: Chav Sib Tham Snitcher
IDC2018IOT: Chav Sib Tham Snitcher

Qhov teeb meem

Raws li peb paub, kev sib koom ntawm cov chaw sib koom ua haujlwm tau nrawm dua ob peb xyoos dhau los, nrog rau kev siv thev naus laus zis txiav txim siab xaiv qhov tshwj xeeb ntawm chaw sib koom ua haujlwm uas haum rau koj cov kev xav tau.

Ib qho ntawm cov yam ntxwv tseem ceeb uas tau muab yog chav sib tham sib tham muab rau cov tswv cuab ua haujlwm sib koom ua ke ', uas yog tswj hwm los ntawm (feem ntau) yooj yim daim ntawv qhia hnub nyoog platform.

Ib qho teeb meem rov tshwm sim raws li tib neeg lub sijhawm ua haujlwm zoo.

Ib tus tuaj yeem sau chav xav tias nws yuav xav tau nws thiab tsis xav plam lub sijhawm.

Txawm hais tias ib tus yuav tsis siv lub sijhawm qhib qhov kawg, nws yuav tsis thab qhia thiab thim nws rau qhov zoo ntawm lwm tus, vim li cas los xij, hmoov tsis, yog tib neeg qhov xwm txheej.

YUAV UA LI CAS YUAV TSHUAJ?

Siv IoT thev naus laus zis - tshuaj xyuas lub suab thiab kev txav chaw hauv chav sib tham uas tau xaiv tseg, peb tab tom tshuaj xyuas, txhua lub sijhawm tshwj xeeb, txawm hais tias chav twg tau booked thiab tau nyob hauv lossis tsis yog:

1. Yog tias nws tsis tau booked, tsis ua dab tsi.

2. Yog tias nws tau teev tseg, xyuas seb puas muaj kev txav txav lossis suab pom;

Yog muaj, tsis ua dab tsi.

Yog tias tsis pom muaj dab tsi, xa lus ceeb toom (ntawm email) rau tus neeg siv uas tau xaj chav nyob uas nug yog tias chav tseem siv. tshwj tsis yog tus neeg siv yuav tshaj tawm tias nws tseem siv chav nyob, chav xwm txheej yuav raug hloov mus rau "Muaj".

* Ntawm no, peb tau koom ua ke peb txoj haujlwm nrog Google Calendar txhawm rau txhawm rau nthuav dav nws ntau li ntau tau.

Kauj ruam 1: Khoos phis tawj thiab cov txheej txheem xav tau

Kho vajtse thiab raws tu qauv xav tau
Kho vajtse thiab raws tu qauv xav tau

1. Peb siv NOSEMCU yog li peb tuaj yeem hloov kho yam khoom siv WIFI txuas.

2. Microphone sensor uas yuav "nyeem" lub suab nrov hauv chav.

3. PIR sensor uas yuav tshuaj xyuas yog tias muaj kev txav mus los.

Txog rau software thiab siv server, ntxiv rau cov cai hauv Arduino, peb siv Google Script thiab Zapier los txhawb peb cov kab ke online. Koj tuaj yeem pom qhov ntws hauv daim duab ntxiv (thiab PDF).

Peb siv Zapier los txuas cov apps thiab siv peb cov haujlwm ua haujlwm tau zoo (zoo li IFTTT) thiab peb siv Google Script los pab peb sib txuas lus nrog Google Calendar. Tsab ntawv peb tau sau yog tsim cov xwm txheej tsim tus email yog li peb tuaj yeem xa nws cuam Zapier thiab tshawb xyuas yog tias tus neeg siv thov tuav lub chav (los ntawm kev khaws qee cov ntaub ntawv hauv Google Ntawv) ua ntej rho tawm qhov xwm txheej.

Kauj Ruam 2: Txuas Microphone thiab PIR Sensor

Txuas lub Microphone thiab PIR Sensor
Txuas lub Microphone thiab PIR Sensor
Txuas lub Microphone thiab PIR Sensor
Txuas lub Microphone thiab PIR Sensor

Peb xav txheeb xyuas qhov nruab nrab qhov txiaj ntsig lub microphone tshaj tawm rau NODEMCU thaum tib neeg tham (meej, hauv txhua chav muaj suab nrov tom qab sib txawv). Peb tau ua qee qhov kev sim thiab pom tau tias qib nruab nrab suab nrov yog chav peb ua haujlwm nyob hauv qhov chaw siab dua 50.

PIR sensor tsuas yog muab HIGH lossis LOW qhov muaj txiaj ntsig yog li peb tsuas yog txheeb xyuas qib kev nkag siab uas yog qhov tseeb tshaj plaws rau chav uas peb tshuaj xyuas. Phau ntawv qhia no tau pab zoo nkauj heev.

Peb Kev Sib Txuas:

Microphone - zoo li hauv daim duab PIR sensor: GND> GND, OUT> D7, VCC> VN (5V)

Kauj Ruam 3: Tsim Kev Ua Haujlwm hauv Zapier

Tsim Kev Ua Haujlwm hauv Zapier
Tsim Kev Ua Haujlwm hauv Zapier
Tsim Kev Ua Haujlwm hauv Zapier
Tsim Kev Ua Haujlwm hauv Zapier
Tsim Kev Ua Haujlwm hauv Zapier
Tsim Kev Ua Haujlwm hauv Zapier

Txhawm rau kom paub seb chav nyob tsis muaj dab tsi lossis tseem siv (thiab cov neeg siv tau so) piv txwv li, peb xav tsim cov dej ntws uas ua kom ntseeg tau, tom qab NodeMCU tua Webhook rau Zapier uas ceeb toom tias chav tsis muaj dab tsi:

(1) TRIGGER - CATCH HOOKZapier ntes Webhook (uas yuav xa los ntawm NODEMCU)

(2) ACTION - GETZapier xa lwm Webhook kom tau txais cov ntaub ntawv xwm txheej;> Nws hu (sau) GoogleScript - GetCurrentEmailEventID (piav qhia hauv cov kauj ruam hauv qab no), kom tau txais cov ntaub ntawv tam sim no - cov xwm txheej lub npe, tus lej tshwm sim, tus neeg siv email.

(3) FILTER - YUAV TSUM YOG YOG

Txuas ntxiv mus rau cov theem tom ntej tsuas yog tias muaj xwm txheej (ib qho xwm txheej) tam sim no tshwm sim ntawm daim ntawv qhia hnub (ROOM YOG BUSY), txwv tsis pub, nres vim chav nyob tsis muaj neeg nyob.

(4) ACTION - GMAILZapier xa e -mail, los ntawm Gmail, rau tus neeg siv uas tau xaj chav (tau txais cov ntaub ntawv no hauv qib 2)

(5) ACTION - DELAY FORLET tus neeg siv sijhawm los teb rau email.- Yog tias tus neeg siv nyem rau ntawm qhov txuas: hu (khiav) GoogleScript - ApproveCurrentEvent (Yog li Chav tau raug tshem tawm ntawm 'Cov Chav kom tshem tawm' cov npe, thiab chav tseem cim tias nyob.)

(6) ACTION - Tau txais tom qab 5 feeb, Zapier hu (sau) GoogleScript - DeleteCurrentEvent- Yog tias tus neeg siv tsis tau nyem rau ntawm qhov txuas

Txheeb xyuas yog tias chav ID nyob hauv cov npe 'Chav Rho Tawm'

nws tsuas yog tshem tawm qhov xwm txheej.

Kauj ruam 4: Google Sau

Google Cov Ntawv
Google Cov Ntawv
Google Cov Ntawv
Google Cov Ntawv
Google Cov Ntawv
Google Cov Ntawv

Raws li peb ua ke tag nrho cov kab ke, GoogleScripts yog qhov kev xaiv tsis tseem ceeb ntawm IDE, Yog li, peb tau siv Google Cov Tsev Qiv Ntawv muaj feem cuam tshuam. Yuav hloov pauv raws li Chav Booking Platform.

(1) GetCurrentEmailEventID

Sau los ntawm Webhook hu.

Siv qee qhov kev txiav txim siab txhawm rau tshem tawm qhov ua tsis tuaj yeem tshem tawm, tau txais cov ntaub ntawv xwm txheej tam sim no.

(2) Pom Zoo Tam Sim No

Khiav los ntawm tus neeg siv nyem.

Yog tias tus neeg siv pom zoo tias chav tseem tab tom siv, tshem tawm cov xwm txheej ID tawm ntawm 'Chav Rho Tawm'. Peb siv daim ntawv Google, lwm daim ntawv teev npe tuaj yeem cuam tshuam ntawm no.

(3) DeleteCurrentEvent

Sau los ntawm Webhook hu.

Tshawb nrhiav qhov xwm txheej cuam tshuam ID hauv cov npe (Google daim ntawv) thiab tshem tawm qhov xwm txheej ntawd los ntawm cov txheej txheem.

Kauj Ruam 5: Txuas Tus Dej Nrog Arduino Code

Cov kab ntawv txuas txuas rau lub ntsuas ntsuas peb tau tshuaj xyuas ob peb kauj ruam dhau los rau hauv kab ke online (Google daim ntawv qhia hnub hauv peb kis). Nws kuaj xyuas yog tias chav tsis khoom thiab tom qab ntawd yog nws tsis yog, nws xa HTTP thov (Webhook) uas pib tshem tawm qhov kev thov tshwm sim ntawm Zapier.

Kauj Ruam 6: Txheeb xyuas, Xam Xaj thiab Yav Tom Ntej Scaling

Image
Image

Qhov kev sib tw tseem ceeb uas peb yuav tsum tau daws yog npog tag nrho cov xwm txheej thaum txiav txim siab tso chav sib tham dawb. Peb tom qab ntawd yuav tsum tsim lub xeev lub tshuab txiav txim siab txhua qhov xwm txheej tuaj yeem ua tau, xws li qhov ua yuam kev yuav tsis tshwm sim thiab chav yuav raug teeb raws li muaj tsuas yog thaum nws yuav tsum tau ua.

Piv txwv li, yog tias chav tau booked rau qee pab pawg uas tam sim no tsis muaj (uas yog so, piv txwv li), tab sis tseem xav tau nws, NODEMCU yuav kuaj pom tias chav dawb> muaj teeb meem.

Tom qab ntawd, peb qhov kev daws teeb meem yog xa email rau tus neeg siv uas tau xaj chav (uas tsis yooj yim los txiav txim siab) qhov tsis txaus ntseeg uas muab qhov kev xaiv khaws cia hauv chav.

Yog tias tus neeg siv tsis teb lub sijhawm (peb teeb tsa nws li 5 feeb, tab sis nws tuaj yeem hloov pauv tau yooj yim), peb tshem tawm qhov xwm txheej los ntawm daim ntawv qhia hnub (thiab pub dawb hauv chav).

Txoj kev ntawd, thaum kawg peb ua tiav los daws txhua qhov xwm txheej uas tsim nyog thiab tsim kev ua haujlwm.

Peb SYSTEM LIMITATIONS:

1. Cov ntsuas siv yuav tsum yog qhov tseeb & nkag siab.

2. Qhov loj ntawm chav nyob yog txwv rau lub ntsuas hluav taws xob/ntau yam.

3. Peb yuav tau tso siab rau tus neeg siv khoom ua haujlwm.

4. Peb lub kaw lus tau tsim los siv ntau lub platform (Google daim ntawv qhia hnub, Gmail, Zapier thiab lwm yam) thiab yuav tau siv lawv cov kev pabcuam los ua haujlwm.

5. Scaling qhov kev pabcuam no rau ntau chav (tsis txhob rov ua dua tag nrho cov kab ke) yuav xav tau kev saib xyuas ntxiv nrog chav ID.

6. Lub kaw lus tsuas yog siv lub tshuab nkaus xwb thiab tsis muaj phau ntawv xaiv rau kev rho npe tawm chav.

Yav tom ntej DEVELOPMENTS:

Peb yuav twv yuav raug hu nce cov kab ke hauv ob txoj hauv kev:

1. Muaj peev xwm ua haujlwm nrog lwm lub platform daim ntawv qhia hnub (yog li txhua lub tuam txhab ua haujlwm sib koom tes tuaj yeem siv nws).

2. Muaj peev xwm tuav tau ntau chav, hauv pem teb, thiab qhov chaw.

Peb ntseeg tias hom kev ntsuas no yuav siv sijhawm 2-3 lub hlis los nthuav dav, ntsuas thiab ntxiv ntau chav (hauv pem teb thiab lwm yam).

Ib qho ntxiv, siv cov nyiaj thiab cov peev txheej tsis txwv peb yuav siv cov ntsuas ntsuas zoo nrog ntau qhov loj dua, nrog rau kev kho lawv mus rau chav tshwj xeeb - txiav txim siab ntau yam, lub vojvoog, tus lej ntawm lub ntsuas thiab lwm yam. pom tseeb.

Pom zoo: