Cov txheej txheem:

Tswj NodeMCU ESP8266 1.0 12E Nrog Google Firebase: 4 Cov Kauj Ruam
Tswj NodeMCU ESP8266 1.0 12E Nrog Google Firebase: 4 Cov Kauj Ruam

Video: Tswj NodeMCU ESP8266 1.0 12E Nrog Google Firebase: 4 Cov Kauj Ruam

Video: Tswj NodeMCU ESP8266 1.0 12E Nrog Google Firebase: 4 Cov Kauj Ruam
Video: Tswj Tus Kheej - Koomtes Lis (Official Audio) 2024, Kaum ib hlis
Anonim
Tswj NodeMCU ESP8266 1.0 12E Nrog Google Firebase
Tswj NodeMCU ESP8266 1.0 12E Nrog Google Firebase

Hauv Hoob No, Peb Yuav Tsim Ib Daim Ntawv Thov Android, Tsim Firebase Database thiab Tswj NodeMCU ESP 8266 1.0 12E nrog Kev sib koom ua ke cov khoom lag luam yav dhau los.

Kauj ruam 1: Txhua yam cuab yeej xav tau

Txhua yam cuab yeej xav tau
Txhua yam cuab yeej xav tau

Nov yog ob peb yam xav tau kom pib peb tus kheej

1. Google Firebase

2. MIT App Inventor

3. A NodeMCU ESP8266 1.0 12E

4. Few Poj Niam rau Poj Niam Jumper Wires

5. A USB Cable

6. Arduino IDE (Txhawm rau Program peb ESP8266)

Kauj Ruam 2: Pib Nrog Google Firebase thiab Tsim Koj Thawj Qhov Haujlwm

Pib Nrog Google Firebase thiab Tsim Koj Thawj Qhov Haujlwm
Pib Nrog Google Firebase thiab Tsim Koj Thawj Qhov Haujlwm

Ua raws cov kauj ruam

1. Nkag Mus Rau Hauv Firebase nrog koj tus lej Google.

2. Nyem rau mus rau console thiab Ntxiv ib qhov project tshiab thiab tom qab ntawd muab koj lub npe lub npe thiab muab koj thaj av, qhov no yog kauj ruam tseem ceeb heev, yog tias koj xaiv thaj av tsis raug cai ces koj txoj haujlwm yuav tsis ua haujlwm.

3. Kav mus rau qhov chaw teeb tsa ntawm sab xis ntawm koj lub console thiab hover rau cov kev pabcuam nyiaj txiag thiab luam koj cov ntaub ntawv khaws cia zais cia nws nyob qhov twg rau kev siv ntxiv, peb yuav tham tom qab.

4. Tam sim no mus tsim ntu thiab taub hau mus rau cov ntaub ntawv, thiab luam qhov project URL nws yuav yog ntawm daim ntawv

xxxxxxxxxxxxxxxxxx.firebaseio.com/ -copy nws.

5. Tom qab ntawd mus rau ntu kev cai thiab ua cov kev hloov hauv qab no lossis yooj yim luam nws thiab hloov nws nrog cov cai hauv qab no

".read": "tseeb", ".write": "muaj tseeb"

}

}

Kauj Ruam 3: Tsim Koj Thawj Android App los Tswj Koj Li ESP8266 hla Wifi

Tsim Koj Thawj Android App los Tswj Koj Li ESP8266 hla Wifi
Tsim Koj Thawj Android App los Tswj Koj Li ESP8266 hla Wifi

Lub taub hau mus rau MIT App Inventor Website ua raws cov kauj ruam no los tsim koj li app.

Nov yog tus tsim app yooj yim heev tsim los ntawm kev rub thiab xa cov ntsiab lus

1. Pib qhov haujlwm tshiab nrog lub npe uas koj xaiv.

2. Hauv qhov haujlwm no peb yuav daws teeb meem nrog hloov lub teeb tsa LED ntawm peb NodeMCU, Yog li peb xav tau tsuas yog ob lub khawm txhawm rau hloov nws rau thiab tawm.

3. Koj tuaj yeem hloov cov ntawv thiab lwm tus cwj pwm ntawm lub pob hauv Properties tab.

4. Txij li peb tau siv Firebase peb yuav ntxiv peb tus cwj pwm firebase rau nws uas yog tam sim no hauv ntu kev sim ntawm tus neeg siv tab tab, los ntawm rub nws mus rau ntu saib.

5. Tam sim no, Hloov mus rau block tab thiab tsim cov logics uas tau qhia hauv daim duab saum toj no.

6. Tom qab ntawd, rov qab taub hau rau Tus Tsim Qauv tab thiab hloov pauv hauv qab no

  • Qhov Project Thoob yuav tsum tsis muaj dab tsi.
  • Firebase Token Yuav tsum zoo li nws yog, Tsis muaj kev hloov pauv los ua.
  • Tam sim no hauv lub thawv firebase URL, nkag mus rau URL theej hauv cov kauj ruam dhau los, khij lub npov tsis siv.

7. Tam sim no lub taub hau dhau mus rau firebase thiab mus rau database> cov ntaub ntawv tab> thiab tsim tus menyuam npe rau tib yam sib txawv uas tau siv hauv peb App App Inventor Logic Diagram.

8. Tam sim no Nyem rau Tsim, nyob rau sab saum toj ntawm nplooj ntawv thiab rub tawm cov ntawv.apk rau koj lub xov tooj hauv.

Kauj Ruam 4: Xa Koj Cov Cai Rau Hauv Koj Tus ESP8266

Koj tuaj yeem tso koj cov cai rau hauv koj NodeMCU los ntawm kev luam cov cai tam sim no ntawm cov chaw cia khoom hauv qab no.

github.com/saiyerniakhil/ESPFireBase

thiab qee qhov kev hloov pauv yuav tsum tau ua uas kuv tau ua rau kuv tus kheej pom tseeb hauv cov lus ntawm cov cai.

Pom zoo: