Cov txheej txheem:

IoT Raws Qhov Chaw Nres Tsheb Ntse Siv NodeMCU ESP8266: 5 Cov Kauj Ruam
IoT Raws Qhov Chaw Nres Tsheb Ntse Siv NodeMCU ESP8266: 5 Cov Kauj Ruam

Video: IoT Raws Qhov Chaw Nres Tsheb Ntse Siv NodeMCU ESP8266: 5 Cov Kauj Ruam

Video: IoT Raws Qhov Chaw Nres Tsheb Ntse Siv NodeMCU ESP8266: 5 Cov Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Kaum ib hlis
Anonim
IoT Raws Qhov Chaw Nres Tsheb Ntse Siv NodeMCU ESP8266
IoT Raws Qhov Chaw Nres Tsheb Ntse Siv NodeMCU ESP8266
IoT Raws Qhov Chaw Nres Tsheb Ntse Siv NodeMCU ESP8266
IoT Raws Qhov Chaw Nres Tsheb Ntse Siv NodeMCU ESP8266

Tam sim no nrhiav chaw nres tsheb hauv thaj chaw tsis khoom yog qhov nyuaj heev thiab tsis muaj kab ke kom tau txais cov ntsiab lus ntawm qhov chaw nres tsheb muaj nyob online. Xav txog yog tias koj tuaj yeem tau txais cov ntaub ntawv qhia chaw nres tsheb ntawm koj lub xov tooj thiab koj tsis muaj kev ncig ncig los tshuaj xyuas qhov muaj. Qhov teeb meem no tuaj yeem daws los ntawm IoT raws li qhov chaw nres tsheb ntse. Siv IoT raws qhov chaw nres tsheb, koj tuaj yeem nkag mus tau yooj yim qhov chaw nres tsheb muaj nyob hauv is taws nem. Cov kab ke no tuaj yeem siv lub tshuab nres tsheb kom zoo. Los ntawm koj nkag mus rau kev them nyiaj, thiab tawm mus, txhua yam tuaj yeem ua tiav tau.

Yog li ntawm no peb tab tom tsim IoT raws Lub Tsheb Nres Tsheb Siv NodeMCU, tsib IR lub ntsuas hluav taws xob, thiab ob lub cav servo. Ob lub ntsuas hluav taws xob IR tau siv ntawm lub qhov rooj nkag thiab tawm mus txhawm rau txheeb xyuas lub tsheb thaum peb lub ntsuas hluav taws xob IR tau siv los txheeb xyuas qhov chaw nres tsheb muaj nyob. Servo motors tau siv los qhib thiab kaw lub rooj vag raws li tus nqi ntsuas. Ntawm no peb tab tom siv Adafruit IO platform los qhia tshaj tawm cov ntaub ntawv ntawm huab uas tuaj yeem saib xyuas tau los ntawm txhua qhov chaw hauv ntiaj teb.

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

Kho vajtse

  • NodeMCU ESP8266
  • IR Sensor (5)
  • Servo Tsav (2)

Kev Pabcuam Hauv Online

Adafruit IO

Kauj Ruam 2: IoT Raws Txoj Cai Nres Tsheb Nres Tsheb

IoT Raws Li Ntse Chaw Nres Tsheb Circuit Court
IoT Raws Li Ntse Chaw Nres Tsheb Circuit Court

Hauv Smart Parking System siv IoT, peb siv tsib IR Sensors thiab ob lub cav servo. IR sensors thiab Servo motors txuas nrog NodeMCU. NodeMCU tswj cov txheej txheem ua tiav thiab xa cov chaw nres tsheb thiab cov ntaub ntawv sijhawm nres tsheb mus rau Adafruit IO kom nws tuaj yeem saib xyuas los ntawm txhua qhov chaw hauv ntiaj teb siv lub platform no. Ob lub ntsuas hluav taws xob IR tau siv ntawm qhov rooj nkag thiab tawm rooj kom nws tuaj yeem tshawb pom lub tsheb ntawm lub qhov rooj nkag thiab tawm thiab qhib tau thiab kaw lub qhov rooj. Peb yav dhau los siv Adafruit IO huab hauv ntau qhov haujlwm IoT, ua raws qhov txuas kom paub ntau ntxiv.

Ob lub cav servo tau siv ua lub qhov rooj nkag thiab tawm, yog li thaum twg IR sensor pom lub tsheb, lub cav servo tau tig los ntawm 45 ° txog 140 °, thiab tom qab ncua sijhawm, nws yuav rov qab mus rau nws txoj haujlwm thawj zaug. Lwm qhov peb lub ntsuas hluav taws xob IR tau siv los tshuaj xyuas yog tias muaj chaw nres tsheb lossis muaj nyob thiab xa cov ntaub ntawv mus rau NodeMCU. Adafruit IO dashboard kuj tseem muaj ob lub nyees khawm los ua haujlwm nkag thiab tawm rooj.

Kauj Ruam 3: Adafruit IO teeb tsa rau IOT Chaw Nres Tsheb

Adafruit IO Teeb rau IOT Chaw Nres Tsheb
Adafruit IO Teeb rau IOT Chaw Nres Tsheb

Adafruit IO yog qhib cov ntaub ntawv platform uas tso cai rau koj sib sau ua ke, pom kev, thiab txheeb xyuas cov ntaub ntawv nyob ntawm huab. Siv Adafruit IO, koj tuaj yeem tso tawm, tso saib, thiab saib xyuas koj cov ntaub ntawv hauv is taws nem, thiab ua rau koj qhov haujlwm IoT qhib. Koj tuaj yeem tswj lub cav, nyeem cov ntaub ntawv sensor, thiab ua kom txias IoT daim ntawv thov hauv is taws nem siv Adafruit IO. Rau kev sim thiab sim, nrog qee qhov txwv, Adafruit IO yog siv dawb. Peb kuj tseem siv Adafruit IO nrog Raspberry Pi yav dhau los.

1. Txhawm rau siv Adafruit IO, ua ntej, koj yuav tsum tsim ib tus as khauj ntawm Adafruit IO. Txhawm rau ua qhov no, mus rau Adafruit IO lub vev xaib thiab nyem rau 'Pib Pib Dawb' nyob rau sab xis saum toj ntawm lub vijtsam.

2. Tom qab ua tiav cov txheej txheem tsim tus lej, nkag mus rau hauv koj tus lej nyiaj thiab nyem rau ntawm 'AIO Key' nyob rau sab xis saum toj kom tau txais koj tus lej siv thiab tus lej AIO.

Thaum koj nyem rau ntawm 'AIO Key,' lub qhov rai yuav tshwm nrog koj Adafruit IO AIO Key thiab lub npe siv. Luam tus yuam sij no thiab lub npe siv, nws yuav xav tau tom qab hauv cov cai.

3. Tam sim no, tom qab qhov no, koj yuav tsum tsim khoom noj. Txhawm rau tsim kev pub mis, nyem rau ntawm 'Pub.' Tom qab ntawv nyem rau 'Ua,' thiab tom qab ntawd 'Tsim Khoom Noj Tshiab' raws li qhia hauv daim duab hauv qab no.

4. Tom qab qhov no, lub qhov rai tshiab yuav qhib kom nkag mus rau Lub Npe thiab Nqe lus piav qhia ntawm kev pub mis. Cov lus piav qhia yog xaiv tau.

5. Nyem rau 'Tsim,' tom qab no; koj yuav raug xa rov mus rau koj qhov kev tsim tshiab pub. Txog qhov haujlwm no, peb tau tsim tag nrho cuaj pub rau lub qhov rooj tawm, lub qhov rooj nkag, qhov nkag 1 qhov nkag & tawm, qhov 2 nkag & tawm, thiab qhov 3 nkag & tawm. Tom qab tsim txau, tam sim no tsim Adafruit IO dashboard los qhia tag nrho cov kev txau ntawm ib nplooj ntawv. Txhawm rau tsim lub dashboard, nyem rau ntawm Dashboard qhov kev xaiv thiab tom qab ntawd nyem rau ntawm 'Action,' thiab tom qab no, nyem rau ntawm 'Create a New Dashboard.' Hauv lub qhov rai tom ntej, sau lub npe rau koj lub dashboard thiab nyem rau 'Tsim.'

6. Raws li lub dashboard tau tsim tam sim no, peb yuav ntxiv peb txau rau ntawm lub dashboard. Txhawm rau ntxiv cov khoom noj, nyem rau ntawm '+' nyob rau sab xis saum toj.

Ua ntej, peb yuav ntxiv ob RESET khawm thaiv rau nkag thiab tawm rooj thiab tom qab ntawd xya TEXT thaiv rau qhov chaw nres tsheb paub meej. Txhawm rau ntxiv lub pob ntawm lub dashboard nyem rau ntawm RESET block.

Hauv lub qhov rai tom ntej nws yuav nug koj kom xaiv qhov pub, yog li nyem rau ntawm lub qhov rooj nkag nkag.

Hauv cov kauj ruam kawg no, muab koj lub block npe thiab kho nws raws li qhov tsim nyog. Hloov tus nqi nias ntawm '1' rau 'ON'. Yog li thaum twg lub pob nyem nws yuav xa 'ON' txoj hlua rau NodeMCU, thiab NodeMCU yuav ua txoj haujlwm ntxiv. Yog tias koj tsis xav hloov tus nqi nias ntawm no, tom qab ntawd koj tuaj yeem hloov qhov xwm txheej hauv qhov haujlwm.

Tom qab qhov no, ua raws tib txoj hauv kev los tsim lwm qhov thaiv rau lub qhov rooj tawm. Txhawm rau tsim cov seem ntawm cov thaiv ua raws cov txheej txheem ib yam nkaus, tab sis hloov chaw ntawm kev tsim RESET block, tsim TEXT block kom koj tuaj yeem qhia cov ntsiab lus ntawm chaw nres tsheb. Tom qab tsim txhua qhov thaiv, kuv lub dashboard zoo li hauv qab no. Koj tuaj yeem hloov kho lub dashboard los ntawm txhaj rau lub pob teeb tsa.

Kauj Ruam 4: Kev Ua Haujlwm NodeMCU rau IOT Chaw Nres Tsheb

Txhawm rau program NodeMCU nrog Arduino IDE mus rau File–> Perferences–> Settings.

Nkag mus https:// arduino.esp8266.com/stable/package_esp82… rau hauv 'Tus Thawj Saib Xyuas Haujlwm Ntxiv URL' teb thiab nyem 'Ok'.

Tam sim no mus rau Cov Cuab Yeej> Pawg Thawj Coj> Tus Thawj Saib Xyuas Haujlwm.

Hauv lub Rooj Tswjhwm Saib lub qhov rais, Ntaus esp hauv lub thawv tshawb nrhiav, esp8266 yuav raug teev nyob hauv qab no. Tam sim no xaiv qhov tseeb version ntawm pawg thawj coj saib thiab nyem rau nruab.

Tom qab kev teeb tsa tiav, mus rau Cov Cuab Yeej> Pawg Thawj Coj> thiab xaiv NodeMCU 1.0 (ESP-12E Module).

Tam sim no koj tuaj yeem ua haujlwm NodeMCU nrog Arduino IDE.

Yog li qhov no yog yuav ua li cas Smart Parking System siv IoT tuaj yeem tsim. Koj tuaj yeem ntxiv cov ntsuas kom nce qhov chaw nres tsheb thiab tseem tuaj yeem ntxiv cov txheej txheem them nyiaj kom them tus nqi nres tsheb. Tawm tswv yim hauv qab no yog tias koj muaj kev ua xyem xyav txog txoj haujlwm no.

Pom zoo: