Cov txheej txheem:

CloudyData - ESP8266 rau Google Cov Ntawv Ua Yooj Yim: 10 Kauj Ruam (nrog Duab)
CloudyData - ESP8266 rau Google Cov Ntawv Ua Yooj Yim: 10 Kauj Ruam (nrog Duab)

Video: CloudyData - ESP8266 rau Google Cov Ntawv Ua Yooj Yim: 10 Kauj Ruam (nrog Duab)

Video: CloudyData - ESP8266 rau Google Cov Ntawv Ua Yooj Yim: 10 Kauj Ruam (nrog Duab)
Video: #Eko2020 Wardriving | Tomas Giordano y Agustin Osorio: Do drink and wardrive 2024, Hlis ntuj nqeg
Anonim
CloudyData - ESP8266 rau Google Cov Ntawv Ua Yooj Yim
CloudyData - ESP8266 rau Google Cov Ntawv Ua Yooj Yim

Kuv tau nrhiav huab khaws cov ntaub ntawv ntev ntev nyob rau xyoo dhau los: nws yog qhov txaus siab los saib xyuas cov ntaub ntawv los ntawm txhua yam kev ntsuas, tab sis nws zoo dua yog tias cov ntaub ntawv no muaj nyob txhua qhov chaw yam tsis muaj teeb meem cia xws li siv daim npav SD lossis zoo sib xws, hauv zos khaws cia. Kuv siv los khaws hauv zos ntawm SD daim npav cov ntaub ntawv cua nrawm xyoo dhau los, ua ntej IoT thiab huab kev pabcuam pib siv yooj yim: tam sim no ib kauj ruam dhau los ua tau nrog cov teeb meem tshwj xeeb, txawm tias koj tsis yog IoT tus kws tshaj lij lossis tus tsim tawm.

Hauv cov lus qhia no kuv yuav piav qhia tias kuv tab tom saib xyuas kuv cov huab cua zoo li cas hauv tsev, tshwj xeeb tshaj yog hais txog plua plav thiab qhov sib xyaw kom ze ze ntawm kuv lub tshuab luam ntawv 3D, sim nkag siab yog tias 3D luam ntawv txheej txheem yog qhov txaus ntshai raws li PM2.5, thiab kuv yuav ua li cas siv Google Cov Ntawv los khaws cov ntaub ntawv, yam tsis muaj kev pabcuam thib peb xav tau.

Kauj Ruam 1: Lub Hom Phiaj Dav

Lub Hom Phiaj
Lub Hom Phiaj

Kuv xav paub yog tias nyob nrog lub tshuab luam ntawv 3D tuaj yeem ua rau txaus ntshai.

Txhawm rau ua qhov no kuv xav tau cov ntaub ntawv, thiab cov ntaub ntawv yuav tsum tau khaws cia hauv huab.

Kuv xav siv Google Cov Ntawv vim nws yooj yim thiab siv tau.

Kuv xav tau kev ceev ntiag tug, ib yam nkaus: yog li sib qhia cov ntaub ntawv nrog Google tsis yog kuv thawj qhov kev xaiv tab sis nws zoo dua li siv cov kev pabcuam thib peb, zoo li ntau tus bloggers siv los ua.

Siv Google Cov Ntawv yog ib kauj ruam rau kev xa cov ntaub ntawv mus rau qhov chaw khaws khoom ntiag tug xws li Nextcloud ntawm NAS yooj yim: qhov no yuav piav qhia yav tom ntej.

Kauj Ruam 2: Thawj Kauj Ruam: Sensors

Thawj kauj ruam: Sensors
Thawj kauj ruam: Sensors
Thawj kauj ruam: Sensors
Thawj kauj ruam: Sensors

Kuv siv 2 lub ntsuas los saib xyuas kuv lub tsev huab cua zoo:

  • Nova PM Sensor SDS011 Air Quality Detection Sensor Module, ib qho zoo ntawm kho vajtse, yooj yim siv nrog Arduino thiab cov laug cam zoo sib xws. Koj tuaj yeem siv nws nrog nws tus kheej software (windows nkaus xwb!:-() thiab USB adapter, lossis txuas rau Arduino nrog tsev qiv ntawv. Muaj ntau cov ntaub ntawv tuaj yeem pom ntawm no:

    • inovafitness.com/en/a/chanpinzhongxin/95.ht…
    • www-sd-nf.oss-cn-beijing.aliyuncs.com/%E5%…
    • aqicn.org/sensor/sds011/
  • SHT30 daim ntaub thaiv los ntawm Wemos, rau Wemos D1 mini: Kuv siv v1.0.0 version, tam sim no version yog v2.1.0 tab sis lawv muaj tib lub hneev taw, zoo ib yam ua haujlwm

    wiki.wemos.cc/products:d1_mini_shields:sht…

Kauj Ruam 3: Kauj Ruam Ob: Txuas nrog Microcontroller

Kauj Ruam Ob: Txuas nrog Microcontroller
Kauj Ruam Ob: Txuas nrog Microcontroller

Wemos D1 mini tej zaum yog txoj hauv kev zoo tshaj plaws rau ib puag ncig ESP8266: microUSB txuas, onboard coj, cov ntaub thaiv zoo npaj rau siv.

Kuv txuas SHT30 daim thaiv ntawm Wemos D1 mini ncaj qha (saib xyuas kev taw qhia!), Tom qab ntawd kuv txuas Nova Air Sensor rau Wemos D1 mini raws li hauv qab no:

Wemos GND tus pin Nova Air sensor GND

Wemos 5V pin Nova Air sensor 5V

Wemos D5 pin (RX pin) Nova Air sensor TX

Wemos D6 pin (TX pin) Nova Air sensor RX

Koj tuaj yeem saib ntawm no kom paub ntau ntxiv:

www.hackair.eu/docs/sds011/

www.zerozone.it/tecnologia-e-sicurezza/nov…

www.instructables.com/id/Make-one-PM25-mon…

Kauj Ruam 4: Kauj Ruam Peb: Tsim Daim Duab

Tam sim no koj yuav tsum tsim cov duab kos: peb muaj hmoo, qee tus hais mav tau tsim cov tsev qiv ntawv tshwj xeeb rau Nova Air Sensor yog li koj tuaj yeem sau yooj yim koj li software.

Kuv siv SHT30 lub tsev qiv ntawv ib yam nkaus, txhawm rau ntsuas thiab xa cov ntaub ntawv ntsuas kub thiab av noo.

Kuv rov sau dua qee qhov duab uas kuv pom hauv online, tshwj xeeb yog ib qho los ntawm nishant_sahay7, nws qhov kev qhia ua tiav thiab tag nrho cov ntaub ntawv. Koj tuaj yeem pom nws ntawm no.

Kuv siv lub tsev qiv ntawv no:

Kuv yuav tawm tswv yim tsuas yog ob peb kab hauv kab kos kuv tau tsim:

kab 76-77: tsa lub plua plav sensor ib pliag, tom qab ntawd nws yuav rov mus pw dua, txij li cov ntaub ntawv teev tseg hais tias nws tau npaj ua haujlwm nyob ib puag ncig 8000 teev, uas yog ntau tshaj li txaus, tab sis tsis muaj qhov kawg

sds.wakeup (); ncua (30000); // ua haujlwm 30 vib nas this

kab 121: cov ntaub ntawv xa mus yog qhov kub thiab txias, PM2.5 thiab PM10

xa cov ntaub ntawv (t, h, pm2_5, pm10);

kab 122-123: Kuv tsis siv ESP.deepSleep, kuv yuav sim yav tom ntej; los ntawm tam sim no yooj yim ncua (90000) yuav txaus kom muaj cov ntaub ntawv xa tawm txhua 30s + 90s = 2 feeb, ntau dua lossis tsawg dua

//ESP.deepSleep(dataPostDelay);

ncua (90000);

kab 143:

qhov no yog kab ntawv tseem ceeb tshaj plaws, qhov kev txiav txim koj tsim String_url kom xa cov ntaub ntawv yuav tsum zoo ib yam koj yuav siv hauv Google Script (saib cov kauj ruam tom ntej)

Txoj hlua url = "/macros/s/" + GAS_ID + "/exec? Temperature =" + string_x + "& humidity =" + string_y + "& PM2.5 =" + string_z + "& PM10 =" + string_k;

Kauj Ruam 5: Kauj Ruam Plaub: Npaj Google Ntawv thiab Nws Tsab Ntawv

Kauj Ruam Plaub: Npaj Google Ntawv thiab Nws Tsab Ntawv
Kauj Ruam Plaub: Npaj Google Ntawv thiab Nws Tsab Ntawv
Kauj Ruam Plaub: Npaj Google Ntawv thiab Nws Tsab Ntawv
Kauj Ruam Plaub: Npaj Google Ntawv thiab Nws Tsab Ntawv
Kauj Ruam Plaub: Npaj Google Ntawv thiab Nws Tsab Ntawv
Kauj Ruam Plaub: Npaj Google Ntawv thiab Nws Tsab Ntawv

Khab nias mus rau nishant_sahay7, raws li kuv tau hais.

Kuv tsuas yog rov tshaj tawm ntawm no nws txoj haujlwm, ntxiv qee cov lus qhia rau kev txhim kho yav tom ntej thiab hloov kho:

  1. Teeb Google Cov Ntawv

    1. Qhib Google Drive thiab Tsim Kab Ntawv Tshiab thiab npe nws, tom qab ntawd muab cov teb nrog cov ntsuas uas koj xav tau txhais.
    2. Daim ntawv ID tau qhia hauv daim duab 2
    3. Mus rau Cov Cuab Yeej-Tsab Ntawv Editor (daim duab 3)
    4. Muab lub npe ib yam li Spreadsheet (daim duab 4)
    5. Xaiv cov cai los ntawm no thiab muab tshuaj txhuam rau hauv Script Editor Window (daim duab 5)

      Hloov cov ntawv var_id nrog koj daim Spreadsheet ID los ntawm kauj ruam 2

    6. Mus rau Tshaj Tawm - Siv ua Web App (daim duab 6)
    7. Hloov hom nkag mus rau ib tus neeg, txawm tias tsis qhia npe, thiab xa tawm (daim duab 7)
    8. Mus rau Kev Pom Zoo Tso Cai (daim duab 8)
    9. Xaiv Advanced (daim duab 9)
    10. Xaiv Mus rau (npe lub npe) thiab tom qab ntawd tso cai (daim duab 10)
    11. Luam qhov web app tam sim no URL thiab nyem OK (daim duab 11)
  2. Tau txais Google Script ID

    • Qhov URL theej yuav yog qee yam xws li: https://script.google.com/macros/s/AKfycbxZGcTwqe… saum toj no txuas yog hauv daim ntawv ntawm: https://script.google.com/macros/s/AKfycbxZGcTwqe…/exec Yog li ntawm no Google Script ID yog: AKfycbxZGcTwqeDgF3MBMGj6FJeYD7mcUcyo2V6O20D6tRlLlP2M_wQ Nws yuav siv los thawb cov ntaub ntawv rau Google nplooj ntawv: Piv txwv:

      script.google.com/macros/s/AKfycbxZGcTwqeD…

      Paste qhov txuas saum toj no mus rau lub qhov rai tshiab thiab ntaus nkag yuav xa cov ntaub ntawv mus rau Google Ntawv thiab cov lus pom zoo yuav ua rau pom nyob hauv lub qhov rais. Cov ntaub ntawv xa tawm yuav yog

      • kub = 1
      • vaum = 2
      • PM2.5 = 3
      • NOS 10 = 33.10
  3. Hloov ntawm koj cov kev xav tau

    koj yuav tsum hloov Google Tsab Ntawv THIAB Arduino kos duab kom haum, txhawm rau ntxiv lossis tshem tawm qhov muaj nqis thiab kab: sib piv daim duab 5 thiab daim duab 5b

Kauj Ruam 6: Kauj Ruam Thib: Txuas Txhua Qhov Ua Ke

Thib Fifth: Txuas Txhua Qhov Ua Ke
Thib Fifth: Txuas Txhua Qhov Ua Ke

Tam sim no koj muaj lub cuab yeej xa cov ntaub ntawv mus rau Google Ntawv, Google Script tuaj yeem tau txais thiab faib cov ntaub ntawv, lub browser txaus los saib cov ntaub ntawv, hauv computer lossis smartphone lossis txhua yam uas koj nyiam.

Qhov zoo tshaj yuav yog tswj me ntsis cov ntaub ntawv no, los qhia tsuas yog qee qhov xav tau.

Kauj Ruam 7: Theem Kauj Ruam: Txheeb Cov Ntaub Ntawv

Theem Thib Thib: Txheeb Cov Ntaub Ntawv
Theem Thib Thib: Txheeb Cov Ntaub Ntawv
Theem Thib Thib: Txheeb Cov Ntaub Ntawv
Theem Thib Thib: Txheeb Cov Ntaub Ntawv

Txhawm rau kom muaj vaj huam sib luag yooj yim tab sis nthuav thiab muaj txiaj ntsig Kuv tau teeb tsa kuv cov ntaub ntawv li no:

  1. thawj daim ntawv google, ib qho tseem ceeb, siv los khaws nws tus ID nkag mus rau hauv Google Script, YUAV TSUM tsis cuam tshuam, thiab tswj hwm nws qhov kev txiav txim
  2. Kuv tsim ob daim ntawv ntxiv, ua raws qhov tseem ceeb

    1. ib qho los rho tawm tsuas yog ob peb cov ntaub ntawv los ntawm tag nrho cov khoom, dhau 24 teev piv txwv li Txhawm rau rho tawm cov ntaub ntawv Kuv siv SORT thiab QUERY Function, tso rau hauv thawj lub xov tooj ntawm cov ntaub ntawv rho tawm.

      = SORT (QUERY (Foglio1! A2: Z, "xaj los ntawm A desc txwv 694"), 1, 1)

    2. lwm qhov los tsim cov duab los qhia qhov muaj nuj nqis, ua kom yooj yim vaj huam sib luag

Kauj Ruam 8: Kauj Ruam Xya: Txheeb Xyuas Cov Ntaub Ntawv

Xya Caum: Txheeb Xyuas Cov Ntaub Ntawv
Xya Caum: Txheeb Xyuas Cov Ntaub Ntawv

Kuv tau ua qee qhov kev tshuaj xyuas thiab kuv tuaj yeem hais tau, tam sim no, yuav tsum tsis muaj kev phom sij siv 3D tshuab luam ntawv (khoom siv: PLA) raws li PM2.5 thiab PM10. Txhua lub sijhawm kuv pib luam tawm cov khoom tshiab tawm mus rau lub ru tsev, tsuas yog ib pliag: Kuv xav tias qhov no yog vim tau muab cov hmoov av tso rau ntawm lub tshuab luam ntawv 3D hauv lub txaj, yog li ntawd thaum lub tshuab ua kom cov kiv cua nce mus txog phaj nws pib ya ncig. Tom qab ob peb feeb plua plav ploj mus vim cov kiv cua tseem tshuab thiab PM2.5 thiab PM10 qhov txiaj ntsig tau nqis qis dua.

Cov ntaub ntawv ntxiv thiab kev tshuaj xyuas xav tau, qhov tseeb.

Pom zoo: