Cov txheej txheem:

IoT Lub Tsev Saib Xyuas Huab Cua Nrog Android Kev Pab Txhawb (Mercury Droid): 11 Kauj Ruam
IoT Lub Tsev Saib Xyuas Huab Cua Nrog Android Kev Pab Txhawb (Mercury Droid): 11 Kauj Ruam

Video: IoT Lub Tsev Saib Xyuas Huab Cua Nrog Android Kev Pab Txhawb (Mercury Droid): 11 Kauj Ruam

Video: IoT Lub Tsev Saib Xyuas Huab Cua Nrog Android Kev Pab Txhawb (Mercury Droid): 11 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
IoT Lub Tsev Saib Xyuas Huab Cua Nrog Android Kev Pab Txhawb (Mercury Droid)
IoT Lub Tsev Saib Xyuas Huab Cua Nrog Android Kev Pab Txhawb (Mercury Droid)
IoT Lub Tsev Saib Xyuas Huab Cua Nrog Android Kev Pab Txhawb (Mercury Droid)
IoT Lub Tsev Saib Xyuas Huab Cua Nrog Android Kev Pab Txhawb (Mercury Droid)
IoT Lub Tsev Saib Xyuas Huab Cua Nrog Android Kev Pab Txhawb (Mercury Droid)
IoT Lub Tsev Saib Xyuas Huab Cua Nrog Android Kev Pab Txhawb (Mercury Droid)

Taw qhia

Mercury Droid yog ib yam ntawm IoT (Internet ntawm yam) Embedded system raws li Mercury Droid Android Mobile Application. Uas muaj peev xwm ntsuas & saib xyuas huab cua hauv tsev. nws yog qhov pheej yig heev hauv tsev saib xyuas huab cua koj tsis xav tau nyiaj ntxiv los tsim qhov no. Koj tsuas xav tau <= 10 $ los tsim cov kab ke no. Peb paub tias muaj ntau yam IoT Cov Cuab Yeej nyob ntawd zoo li Blynk, Cayenne, ThingsSpeak thiab lwm yam. Tab sis hauv txoj haujlwm no kuv yuav qhia koj yuav ua li cas thiaj ua tau koj tus kheej IoT Lub Tsev Saib Xyuas huab cua yam tsis tau siv cov cuab yeej npaj ua IoT. Cov ntawv qhia no yuav muab peev xwm rau koj los tsim koj tus kheej Hardware thiab Software rau koj lub tsev IoT kev tshuaj xyuas lub tsev. Yog li kuv muab txhua qhov ntawm kuv qhov chaws nyob hauv txoj haujlwm no. uas yog rau koj siv thiab hloov kho kuv cov cai thiab tuaj yeem tsim koj li kev ntsuas huab cua hauv tsev sib txawv. Koj tseem tuaj yeem rub tawm kuv li Mercury Droid Android mobile application los ntawm playstore uas kuv twb tau muab rau hauv txoj haujlwm no. Hmoov zoo thiab cia peb npaj tsim.

Mercury Droid Android Txawb Daim Ntawv Thov rub tawm nws:

play.google.com/store/apps/details?id=com.armavi.mercurydroidiot

Nco tseg: yog tias koj ntsib teeb meem los teeb tsa txoj haujlwm no, tag nrho cov vis dis aus qhia hauv qhov kawg ntawm txoj haujlwm no

Kauj Ruam 1: Yuav Tsum Tau Kho Vajtse

1. Node MCU (ESP-8266) IoT Wifi Module.

2. DHT-11 Kub thiab Vaum ntsuas Sensor

3. Lub txhab nyiaj hluav taws xob rau lub hwj chim tuaj txog ntawm Mercury Droid System

4. Qee tus Txiv neej-Poj Niam Jumper khoom

5. Ib USB Cable.

6. Ib qho Android Txawb.

Kauj ruam 2: Software Yuav Tsum Tau

1. Arduino IDE

2. Tus Thawj Saib Xyuas Wifi & DHT-11 Lub Tsev Qiv Ntawv (Lub vijtsam raug muab tso rau hauv qhov haujlwm txhawm rau teeb tsa wifi tus thawj tswj tsev qiv ntawv hauv koj qhov haujlwm).

3. Android Studio (nws xav tau, yog tias koj tau kho kuv li Mercury Droid daim ntawv thov kev cai).

4. Mercury Droid Android Mobile Application.

Kauj Ruam 3: Txoj Cai Ua Haujlwm Luv luv

Hauv qhov haujlwm no kuv siv NodeMcu (ESP-8266) wifi IoT module. Lub NodeMCU tab tom tab tom ua lub hlwb ntawm Mercury Droid System. DHT11 qhov ntsuas kub thiab av noo ntsuas lub sijhawm tiag Lub Tsev kub thiab av noo thiab xa lawv hauv NodeMCU. Thaum NodeMCU tau txais tag nrho DHT11 Sensor cov ntaub ntawv tom qab ntawd nws hloov cov ntaub ntawv no mus rau hauv "JSON" String lossis Cov Ntaub Ntawv thiab xa lawv yog Webserver. Tam sim no Mercury Droid mobile thov nyeem JSON cov ntaub ntawv no los ntawm NodeMCU Webserver thiab qhia cov ntaub ntawv no rau nws UI (Tus neeg siv interface). Daim ntawv thov no tseem muaj qhov tshwj xeeb los ntsuas qhov ntsuas kub ntau dhau thiab sib piv nws nrog cov neeg siv muab tus nqi pib. Zoo li ntawd yog tias peb qhov ntsuas huab cua hauv tsev tam sim no yog 29*C tab sis tus nqi pib qis dua 29*C ces daim ntawv thov qhia rau koj ceeb toom. Yog tias tus nqi pib ntau dua li Tsev Kub Kub tam sim no nws tsis muab kev ceeb toom rau koj.

Kauj Ruam 4: Kev Txhim Kho Tsev Qiv Ntawv

Kev Txhim Kho Tsev Qiv Ntawv
Kev Txhim Kho Tsev Qiv Ntawv
Kev Txhim Kho Tsev Qiv Ntawv
Kev Txhim Kho Tsev Qiv Ntawv
Kev Txhim Kho Tsev Qiv Ntawv
Kev Txhim Kho Tsev Qiv Ntawv

Qhib koj Arduino IDE thiab nias Sketch >> suav nrog Tsev qiv ntawv >> Tswj Tsev Qiv Ntawv

Tom qab ntawd hauv "Lim Koj Li Kev Tshawb Nrhiav" Bar Sau "Wifi Manager". Nws yuav qhia koj lub tsev qiv ntawv tswj hwm wifi, nyem rau ntawm cov ntawv qhia zaub mov thiab xaiv version ntawm tus thawj tswj hwm wifi thiab nias nruab. Tam sim no nws tiav kev teeb tsa.

Tam sim no teeb tsa DHT sensor Library tib txoj hauv kev peb nruab wifi tus thawj tswj tsev qiv ntawv tab sis xaiv "DHT sensor tsev qiv ntawv los ntawm Adafruit Version" thiab xaiv qhov koj xav tau tom qab ntawd nruab. Tab sis nws tau pom zoo kom xaiv qhov hloov tshiab kawg ntawm ob qho DHT-11 thiab Wifi tus Thawj Saib Xyuas Tsev Qiv Ntawv.

Kauj Ruam 5: Khoos phis tawj khoos phis tawj thiab kho vajtse ua ke

Hardware Schematics thiab Hardware Assambly
Hardware Schematics thiab Hardware Assambly

DHT-11 Cov Ntaub Ntawv Tus Pin txuas rau NodeMCU D5 tus pin

DHT-11 VCC Pin Txuas rau NodeMCU Vin tus pin

DHT-11 GND Pin Txuas rau NodeMCU GND tus pin

Nco tseg: NodeMCU RST (Pib dua) Khawm tsuas yog rov kho koj li kev teeb tsa, NodeMCU FLASH Khawm Lwv tag nrho koj cov cai thiab teeb tsa los ntawm nws

tom qab ua tiav txuas nrog DHT-11 nrog NodeMcu peb tau npaj los teeb tsa peb NodeMCU WebServer thiab Mercury Droid Application.

Kauj Ruam 6: NodeMCU lossis Mercury Droid System Web Server Network Settings

NodeMCU lossis Mercury Droid System Web Server Network Settings
NodeMCU lossis Mercury Droid System Web Server Network Settings
NodeMCU lossis Mercury Droid System Web Server Network Settings
NodeMCU lossis Mercury Droid System Web Server Network Settings
NodeMCU lossis Mercury Droid System Web Server Network Settings
NodeMCU lossis Mercury Droid System Web Server Network Settings

Tam sim no txuas koj NodeMcu nrog PC thiab qhib Arduino IDE thiab xa cov cai kuv muab hauv qab no hauv txoj haujlwm no. Tom qab rub tawm Txoj Cai tshem tawm koj NodeMcu thiab txuas nws nrog Power bank nrog USB cable. Tam sim no qhib wifi teeb tsa ntawm koj lub xov tooj. Koj pom tias lub wifi luam theej duab lub npe “AutoConnectAP” uas yog koj li NodeMCU qhib network. Tam sim no nias AutoConnectAP nws yuav txuas nrog.

tom qab txuas nrog AutoConnectAP. Qhib koj li "MercuryDroid" Android Mobile Application. Kuv twb tau muab daim ntawv thov no playstore txuas qhov kawg ntawm txoj haujlwm qhia no. Tam sim no ua raws cov kauj ruam ntawm cov duab kuv tau hais hauv qab no rau teeb tsa MercuryDroid webserver network.

Nco tseg: Nco ntsoov koj tus IP zoo li qub ntawm MercuryDroid webserver. Uas yog ib qho tseem ceeb heev los tham nrog MercuryDroid Webserver. Los ntawm lub neej ntawd IP zoo li qub yog 192.168.0.107. yog tias koj xav muab koj tus IP yam xav tau koj yuav tsum hloov nws los ntawm Code Tab sis hauv qab no ntau 192.168.0.100-192.168.0.110 (Pom zoo)

Kauj Ruam 7: Mercury Droid Android Application Settings

Mercury Droid Android Daim Ntawv Thov Chaw
Mercury Droid Android Daim Ntawv Thov Chaw
Mercury Droid Android Daim Ntawv Thov Chaw
Mercury Droid Android Daim Ntawv Thov Chaw
Mercury Droid Android Daim Ntawv Thov Chaw
Mercury Droid Android Daim Ntawv Thov Chaw
Mercury Droid Android Daim Ntawv Thov Chaw
Mercury Droid Android Daim Ntawv Thov Chaw

tom qab ua tiav teeb tsa MercuryDroid Webserver teeb tsa, Tshem NodeMCU los ntawm Power Bank thiab tos 6-7 vib nas this ces txuas dua koj NodeMCU nrog lub txhab nyiaj thiab nias NodeMCU Pib dua (RST) khawm ob zaug. Tam sim no cia peb pib teeb tsa peb Daim Ntawv Thov MercuryDroid. Tsuas yog ua raws cov kauj ruam ntawm cov duab saum toj no.

tom qab ua tiav ntxiv IP chaw nyob thiab tus nqi pib. Nias pib server tom qab ntawd koj pom tias txhua qhov DHT-11 cov ntaub ntawv ntsuas tau qhia hauv MercuryDroid Application. Tam sim no peb ua tiav peb txoj haujlwm tiav. Yog tias koj ua tiav ib qho teeb meem los teeb tsa koj li NodeMCU lossis MercuryDroid server thov saib daim vis dis aus qhia tag nrho no. Cov vis dis aus luv luv no tau pab tau yooj yim teeb tsa koj li MercuryDroid Server thiab Daim Ntawv Thov tshaj li Kab Lus no.

Kauj Ruam 8: Kev Qhia Yooj Yim Yooj Yim rau Kev Txhim Kho Tag Nrho Cov Txheej Txheem (yog tias Puas Muaj Teeb Meem)

Image
Image

Cov vis dis aus luv luv no tau pab tau yooj yim teeb tsa koj li MercuryDroid Server thiab Daim Ntawv Thov tshaj li Kab Lus no. tsuas yog ua raws cov theem kuv tau qhia hauv daim vis dis aus no

Kauj Ruam 9: Mercury Droid Android Application Play Store Link

Nov yog kuv daim ntawv thov tsim los rau Mercury Droid system. koj tseem tuaj yeem rub nws los ntawm Play Store.

Play Store Txuas ntawm Mercury Droid Android Mobile Application tau muab hais hauv qab no:

play.google.com/store/apps/details?id=com.armavi.mercurydroidiot

Kauj Ruam 10: Txhua Qhov Code ntawm Mercury Droid System

Mercury Droid System lossis NodeMCU (ESP-8266MOD) Arduino IDE Code:

github.com/avimallik/IoT-Home-weather-moni…

Mercury Droid Android daim ntawv thov Source Code rau Android Studio:

github.com/avimallik/Mercury-Droid

txhua qhov chaws tau muab hauv GitHub. thov mus rau github thiab rub tawm nws.

Nws yog kuv cov lus qhia tag nrho hais txog kev pheej yig hauv tsev huab cua xyuas nrog rau hauv daim ntawv thov kev txhawb nqa. cov lus qhia no yuav pab koj tsim koj tus kheej li IoT cuam tshuam nrog Tsev saib xyuas huab cua hauv tsev Kho vajtse zoo li Software

Ua Tsaug thiab Pib npaj rau Kev Tsim)

> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Pom zoo: