Cov txheej txheem:

IOT Raws Li Qhov Kub Kub Tswj: 5 Kauj Ruam
IOT Raws Li Qhov Kub Kub Tswj: 5 Kauj Ruam

Video: IOT Raws Li Qhov Kub Kub Tswj: 5 Kauj Ruam

Video: IOT Raws Li Qhov Kub Kub Tswj: 5 Kauj Ruam
Video: Tus Neeg Ruam - R-Lin Thoj | New Song [ Official MV ] Nkauj Tawm Tshiab 2023 Hmong Song 2023 2024, Hlis ntuj nqeg
Anonim
Image
Image

Qhov no yog qhia rau IOT raws li chav tswj hwm chav sov.

Nta:-

1. Tuaj qhib lub kiv cua siab tshaj qhov ntsuas sov hauv chav.

2. Kaw lub kiv cua kom qis hauv qab chav sov.

3. Kev tuav tswj ntawm txhua lub sijhawm ntawm qhov kub thiab txias

Yuav tsum muaj:-

  • NodeMCU ESP8266 pawg thawj coj loj
  • DHT11 kub sensor
  • Tib channel relay board (5V)
  • Jumper Hlau
  • Wifi router lossis hotspot nqa tau (txuas NodeMCU ESP8266 rau internet)
  • 9V roj teeb

Yog li cia peb dhia mus rau hauv kev qhia.

Kauj Ruam 1: Teeb Firebase thiab Tau Txais Tus Kheej

Teeb Firebase thiab Tau Txais Tus Kheej
Teeb Firebase thiab Tau Txais Tus Kheej

Peb yuav siv lub sijhawm tiag tiag database los ntawm Google firebase. Lub sijhawm tiag tiag cov ntaub ntawv no yuav ua haujlwm nruab nrab nruab nrab ntawm Nodemcu thiab Android ntaus ntawv.

  • Ua ntej tshaj plaws, mus rau qhov chaw firebase thiab nkag mus siv koj tus lej Google.
  • Tsim ib lub sijhawm tshiab database.
  • Tau txais cov ntaub ntawv tiag URL thiab tus yuam sij zais nkag mus rau lub hauv paus database los ntawm app. Txog kev qhia ntxaws ntxaws, koj tuaj yeem tshawb xyuas seb yuav siv firebase nrog MIT app inventor li cas.

Kauj Ruam 2: Tsim App Siv MIT App Inventor 2

Tsim App Siv MIT App Inventor 2
Tsim App Siv MIT App Inventor 2
Tsim App Siv MIT App Inventor 2
Tsim App Siv MIT App Inventor 2

Peb yuav siv MIT app tus tsim khoom 2 los tsim peb li Android app. Nws yooj yim heev rau siv thiab yooj yim rau kev koom ua ke yeej Google firebase.

  • Rub tawm txuas nrog MIT app inventor 2 project file (.aia file).
  • Mus rau MIT app inventor 2 home page thiab nkag mus rau koj tus as khauj. Tom qab ntawd mus rau cov haujlwm >> ntshuam qhov project. Xaiv cov ntawv los ntawm koj lub khoos phis tawj thiab tso nws.
  • Mus rau lub qhov rai teeb tsa, nyem rau ntawm firebaseDB1 (nyob hauv qab ntawm qhov chaw ua haujlwm), nkag mus rau URL tus lej thiab tus yuam sij zais. Kuj teeb tsa ProjectBucket ua S_HO_C_K (raws li qhia hauv screenshot 2).

Tom qab ntawd, nyem rau ntawm lub pob tsim thiab txuag cov ntaub ntawv app (.apk file) rau koj lub khoos phis tawj. Tom qab ntawd xa cov ntawv ntawd mus rau koj lub cuab yeej Android.

Kauj Ruam 3: Kho Arduino IDE rau Nodemcu ESP8266

Kho Arduino IDE rau Nodemcu ESP8266
Kho Arduino IDE rau Nodemcu ESP8266
  • Ua ntej tshaj plaws, teeb tsa Arduino IDE rau Nodemcu esp8266. Kuv yuav pom zoo cov theem no los ntawm kev qhia ib qib ntawm NodeMCU pib los ntawm Armtronix. Ua tsaug Armtronix rau cov lus qhia muaj txiaj ntsig no.
  • Tom qab ntawd, ntxiv ob lub tsev qiv ntawv no (siv lub screenshot):-
  1. Arduino Json Cov
  2. Firebase Arduino
  3. DHT Sensor Lub Tsev Qiv Ntawv

  4. Adafruit Universal Sensor Library

Kauj Ruam 4: Upload Code rau NodeMCU ESP8266

Upload Code rau NodeMCU ESP8266
Upload Code rau NodeMCU ESP8266

Rub tawm Arduino IDE file (.ino file) txuas hauv qab no. Tom qab ntawd, hloov kho txoj haujlwm rau qee qhov kev hloov pauv uas tsim nyog:-

  • Ntawm kab 3, nkag rau database URL yam tsis muaj 'https://'.
  • Ntawm kab 4, sau tus lej zais zais.
  • Ntawm kab 5 thiab 6, tsis txhob hnov qab hloov kho WiFi SSID thiab Wifi password (uas koj xav txuas NodeMCU ESP8266).

Thaum ua tiav, rub qhov program mus rau NodeMCU ESP8266 pawg thawj coj loj.

Kauj Ruam 5: Sib dhos Kho Vajtse

Image
Image
  • Tsim Circuit Court raws li qhia hauv daim duab saum toj no.
  • Nruab lub app (tsim hauv qib 2) ntawm koj lub xov tooj Android.
  • Hwj chim lub Circuit Court thiab txaus siab rau!

Pom zoo: