Cov txheej txheem:
Video: Tsev Automation Siv Google Firebase: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Taw qhia:
Nov yog lub tsev tsim khoom siv hluav taws xob hauv tsev uas siv firebase thiab nodeMCU. Ua ntej vim li cas kuv thiaj tau xaiv Firebase vim tias nws tuaj yeem tswj hwm tau yooj yim nws muaj daim ntawv tshaj tawm kev ua haujlwm, Crash Analytics thiab lwm yam thiab nws yog dawb ntawm tus nqi yog li peb tuaj yeem siv txoj haujlwm no los tswj lub teeb, kiv cua, TV, thiab lwm yam Yog li cia peb pib
Khoom siv
- NodeMcu - 1 Nos
- Relay Module - 1 Nos
- Breadboard - 1 Nos
- Txiv neej rau poj niam dhia - 3 Nos
- Kev sib txuas hauv is taws nem
- Ib lub xov tooj hauv
Kauj ruam 1: Tsim Database
Ua ntej koj yuav tsum mus rau lub vev xaib no thiab nkag mus rau hauv koj tus lej Google. Thiab nyem rau ntawm tsim ib qhov haujlwm tshiab thiab muab koj lub npe project thiab nyem txuas ntxiv. Tom qab ob peb feeb, nws hais tias, "koj txoj haujlwm tau npaj tiav" thiab khawm txuas ntxiv zoo li nyem rau nws, lub dashboard zoo li, Ntawm sab laug ntawm lub hauv paus database tab yuav muaj nyem rau nws thiab maj mam nqes mus koj yuav pom tsim lub sijhawm tiag database khawm nyem rau ntawm nws. Nws qhib lub thawv sib tham qhia koj kom xaiv ib qho xauv lossis hom kev sim. Xaiv hom xeem thiab nyem pab kom. Koj yuav raug coj mus rau Cov Ntaub Ntawv tab nyob rau sab saum toj koj yuav pom plaub lub tab nyem rau ntawm cov cai tab thiab tshawb xyuas seb ob qho tib si nyeem thiab sau cov cai yog qhov tseeb. Yog tias tsis hloov pauv ob qho rau qhov tseeb. Tam sim no mus rau qhov chaw teeb tsa thiab theej koj qhov project id thiab web API qhov tseem ceeb uas peb yuav siv tom qab. Thiab tseem mus rau cov kev pabcuam nyiaj tab, nyob rau sab laug cov ntaub ntawv zais zais tab yuav nyob ntawd nyem rau ntawm lub tab thiab nqes mus koj yuav pom lub npe database thiab nyem zais rau ntawm qhov ua yeeb yam xaiv nyob rau sab xis ntawm daim card thiab theej daim zais thiab muab tshuaj txhuam nws nyob rau hauv lub qhov rai notepad. Thiab tam sim no ntu no dhau lawm. Tam sim no peb yuav mus rau tus neeg tsim khoom app ib feem.
Kauj ruam 2: Kev teeb tsa ntawm App
Ib feem ntawm app tsis yog txoj haujlwm nyuaj kuv tau muab qhov txuas rau rub tawm cov ntawv.aia Koj tuaj yeem rub tawm nws thiab import nws rau koj tus account. Ua ntej, kos npe rau hauv MIT tus neeg tsim khoom app thiab nyob rau sab saum toj, kuv txoj haujlwm yuav nyob ntawd nyem rau nws cov npe ntawm cov kev xaiv yuav raug tso tawm nyem nyem rau ntawm qhov project ntshuam (.aia) los ntawm kuv lub computer thiab xaiv rub tawm aia cov ntaub ntawv thiab nyem ntshuam qhov project yuav raug ntshuam thiab yuav qhib. tam sim no nyem rau ntawm firebaseDB1 widget cov chaw teeb tsa yuav qhib rau ntawm sab xis hauv qhov kev hloov pauv firebase token nrog lub vev xaib API tus yuam sij thiab hloov qhov firebase URL nrog koj lub phiaj xwm phiaj xwm firebase hauv hom (https:// {your-project-id }.firebaseio.com/). Thiab nyem qhov kev xaiv tsim los rub tawm apk cov ntaub ntawv ntawm koj lub app. Tam sim no nruab lub app ntawm koj lub xov tooj ntawm tes. Thiab peb yuav txav mus rau qib tom ntej.
Kauj ruam 3: Code
Yog li kuv tau muab cov cai ib yam nkaus. Yog li rub tawm cov cai thiab qhib nws hloov qhov firebase_HOST nrog koj qhov project id hauv hom ({Koj-project-id}.firebaseio.com). Kuj tseem hloov pauv firebase_Auth nrog koj cov firebase zais cia koj tau theej ua ntej. Thiab tshwj xeeb tshaj yog tsis txhob hnov qab hloov lub npe wifi thiab tus password.
Txuas: Code & App
Pom zoo:
Siv Kev Cia Siab Lub Hauv Paus txuas ntxiv txhawm rau Nrhiav Lub Tuam Tsev Tsis Ua Haujlwm Txoj Cai Ua Haujlwm Hauv Koj Tsev Neeg Tsob Ntoo ntawm Kev Tshawb Nrhiav Tsev Neeg: 11 Kauj Ruam
Siv Kev Cia Siab Lub Hauv Paus Txuas Ntxiv kom Nrhiav Lub Tuam Tsev Tsis Ua Haujlwm Ua Haujlwm Hauv Koj Tsev Neeg Tsob Ntoo ntawm Kev Tshawb Nrhiav Tsev Neeg: Lub hom phiaj ntawm cov lus qhia no yog los qhia seb yuav tshawb nrhiav koj tsev neeg tsob ntoo li cas hauv Tsev Neeg Nrhiav rau cov poj koob yawm txwv nrog kev ua haujlwm hauv lub tuam tsev tsis tiav siv Kev Cia Siab lub hauv siab txuas ntxiv. Siv Kev Cia Siab Lub Hauv Paus tuaj yeem ua rau koj qhov kev tshawb nrhiav tsis tiav
Yuav Ua Li Cas Ntse Tsev Siv Arduino Control Relay Module - Lub Tswv Yim Hauv Tsev Automation: 15 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Ntse Tsev Siv Arduino Control Relay Module | Lub Tswv Yim Ua Lag Luam Hauv Tsev: Hauv qhov haujlwm ua haujlwm hauv tsev no, peb yuav tsim lub tsev ntse hloov chaw uas tuaj yeem tswj tau 5 yam khoom siv hauv tsev. Qhov kev hloov pauv no tuaj yeem tswj tau los ntawm Txawb lossis smartphone, IR chaw taws teeb lossis TV nyob deb, Kev hloov pauv ntawm tes. Qhov kev tshaj tawm ntse no tseem tuaj yeem paub txog r
Tsev Automation Kauj Ruam ntawm Kauj Ruam Siv Wemos D1 Mini Nrog PCB Tsim: 4 Kauj Ruam
Tsev Automation Kauj Ruam Ib Leeg Siv Wemos D1 Mini Nrog PCB Tsim: Tsev Automation Kauj Ruam los ntawm Kauj Ruam siv Wemos D1 Mini nrog PCB Tsim cov tub ntxhais kawm ntawv qib siab. Tom qab ntawd ib tus ntawm peb cov tswv cuab tuaj
DIY Lub Suab/Internet Tswj Tsev Automation thiab Saib Xyuas Siv ESP8266 thiab Google Tsev Mini: 6 Cov Kauj Ruam
DIY Lub Suab/Internet Tswj Tsev Automation thiab Saib Xyuas Siv ESP8266 thiab Google Tsev Mini: Hav !! Tom qab so ntev kuv nyob ntawm no vim peb txhua tus yuav tsum tau ua ib yam dab tsi tho txawv (txoj haujlwm) kom khwv tau. yooj yim tab sis ua tau zoo tshaj plaws
Yuav Ua Li Cas Ua Firebase Tsev Automation System Siv NodeMCU - hauv IOT Platform: 14 Kauj Ruam
Yuav Ua Li Cas Ua Firebase Tsev Automation System Siv NodeMCU | hauv IOT Platform: NTAWV NTAWV THOV KEV PAB CUAG Txoj haujlwm no yog lub hom phiaj txhawm rau txhim kho kev siv tshuab hauv tsev uas muab rau tus neeg siv ua tiav kev tswj hwm txhua yam khoom siv tswj tau ntawm nws lub tsev siv IOT Android app. Muaj ntau tus neeg thib peb hauv online server thiab platform