Cov txheej txheem:

Chaw Nres Tsheb Siv Wemos D1 Mini, BME280 thiab Sensate.: 6 Kauj Ruam
Chaw Nres Tsheb Siv Wemos D1 Mini, BME280 thiab Sensate.: 6 Kauj Ruam

Video: Chaw Nres Tsheb Siv Wemos D1 Mini, BME280 thiab Sensate.: 6 Kauj Ruam

Video: Chaw Nres Tsheb Siv Wemos D1 Mini, BME280 thiab Sensate.: 6 Kauj Ruam
Video: siv tsheb khawb qhov ntxa 2024, Hlis ntuj nqeg
Anonim
Huab Cua Chaw Nres Nkoj Siv Wemos D1 Mini, BME280 thiab Sensate
Huab Cua Chaw Nres Nkoj Siv Wemos D1 Mini, BME280 thiab Sensate

Hauv cov ntawv tshaj tawm dhau los kuv tau sib qhia ntau txoj hauv kev los tsim lub chaw nres tsheb huab cua. Yog tias koj tsis tau tshawb xyuas nws ntawm no yog qhov txuas.

Hauv cov lus qhia no kuv yuav nthuav qhia yuav ua li cas tsim kom muaj chaw nres tsheb huab cua yooj yim siv Wemos thiab IoT platform hu ua Sensate. Yog li cia peb pib.

Khoom siv

  1. WeMos D1 Mini ………. (Amazon Asmeskas / Amazon UK / Banggood)
  2. BME280 …………………. (Amazon Asmeskas / Amazon UK / Banggood)
  3. 1.3 "OLED zaub ……. (Amazon US / Amazon UK / Banggood)

Nrog rau cov no peb tseem xav tau Sensate App rau iOS lossis Android.

Kauj ruam 1: Dab tsi yog Sensate?

Dab tsi yog Sensate?
Dab tsi yog Sensate?

Hauv lawv tus kheej cov lus: Siv Sensate Sense App txhawm rau nkag mus rau koj lub cim xeeb txhua lub sijhawm, nyob txhua qhov chaw. Tsim koj cov ntaub ntawv qhov kawg los ntawm kev siv cov khoom siv kho vajtse uas twb muaj lawm nrog Sensate Firmware dawb.

Hauv ntej nws yog ib qho app uas nrog rau firmware, muab txoj hauv kev yooj yim rau koj dawb los tsim cov phiaj xwm yooj yim. Txhua yam koj yuav tsum tau ua yog nyem lawv cov firmware, teeb tsa lawv lub app, mus los ntawm kev teeb tsa kev teeb tsa thiab koj npaj tau los khaws cov ntaub ntawv los ntawm koj cov sensors.

Kauj ruam 2: Flashing Sensate Firmware

Flashing Sensate Firmware
Flashing Sensate Firmware
Flashing Sensate Firmware
Flashing Sensate Firmware
Flashing Sensate Firmware
Flashing Sensate Firmware

Tam sim no peb xav tau peb pawg ESP (hauv qhov no WeMos D1 Mini) tuaj yeem txuas rau Sensate huab. Rau qhov no peb yuav tsum nyem Sensate's Firmware ntawm peb lub rooj tsavxwm. Cov txheej txheem yog ncaj nraim rau pem hauv ntej.

Thawj zaug kom ntseeg tau tias koj rub tawm cov hauv qab no:

  • Rub tawm thiab teeb tsa CP210x lossis CH34x tus tsav tsheb (nyob ntawm USB rau TTL nti siv ntawm koj lub rooj tsavxwm). Hauv kuv qhov xwm txheej kuv teeb tsa CH340.
  • Rub tawm NodeMCU cov cuab yeej flasher los ntawm no.
  • Tom ntej rub tawm qhov tseeb Sensate firmware los ntawm no.

Tom qab txhua yam raug rub tawm thiab cov tsav tsheb tau teeb tsa. Peb yuav tsum txheeb xyuas qhov chaw nres nkoj ntawm peb pawg WeMos. Txhawm rau nrhiav chaw nres nkoj:

  • Mus rau "Device Manager" >> "Ports".
  • Txuas lub rooj tsavxwm rau PC ntawm USB. Koj yuav pom qhov chaw nres nkoj tshiab tshwm hauv cov npe. Nco tseg.

Tam sim no peb tuaj yeem nyem lub rooj tsavxwm nrog cov firmware tshiab. Nco ntsoov tias koj tau rub tawm lub firmware raug los ntawm qhov txuas. (Hauv txoj haujlwm no peb tab tom siv WeMos D1 mini yog li peb yuav siv lub firmware ntawd)

  • Qhib lub flasher thiab mus rau "Advanced" tab. Xyuas kom koj muaj cov teeb tsa zoo ib yam li hauv daim duab saum toj no.
  • Tom ntej no mus rau "Config" tab, nyem rau ntawm thawj kab thiab mus rau lub nplaub tshev uas koj tau rub tawm lub firmware. Xaiv cov ntaub ntawv tsim nyog.
  • Tam sim no tau txais "Ua Haujlwm" tab, ntawm no hauv COM lub thawv chaw nres nkoj xaiv qhov chaw nres nkoj uas koj tau sau tseg ua ntej.
  • Nyem rau ntawm "Flash" thiab tos kom txog thaum flashing tiav.

Tam sim no peb muaj WeMos D1 mini board nrog Sensate lub firmware. Tsuas yog nyem lub pob pib dua kom tiav cov txheej txheem khau raj.

Kauj Ruam 3: teeb tsa WiFi Network

Configuring WiFi Network
Configuring WiFi Network
Configuring WiFi Network
Configuring WiFi Network
Configuring WiFi Network
Configuring WiFi Network

Tam sim no uas peb tau ua tiav flashed thiab khau raj lub firmware, peb yuav tsum teeb tsa WiFi daim ntawv pov thawj mus rau lub rooj tsavxwm. Txhawm rau ua qhov no, xub thawj lub zog ntawm lub rooj tsavxwm thiab qhib WiFi ntawm koj lub smartphone. Ua raws cov theem hauv qab no:

  1. Coj mus rhaub rau "Sensate-Setup" thiab nkag mus rau lo lus zais vim "Teeb-Sensate".
  2. Tom qab lub cuab yeej txuas nrog, qhib koj lub browser ua ntej thiab nkag rau hauv URL "192.168.4.1" thiab ntaus nkag.
  3. Koj yuav raug xa mus rau nplooj ntawv teeb tsa. Ntawm no xaiv "SSID" (WiFi lub npe) koj xav txuas rau thiab tom qab ntawd nkag mus rau nws tus password.
  4. Hauv Qhov Kev Pabcuam Kho Mob muab koj lub npe rau lub cuab yeej (hauv qhov no "Weather Station"). Coj mus rhaub rau txuag thiab rov pib dua.

Nrog qhov ua tiav, tam sim no WeMos pawg thawj coj tau npaj los txuas rau koj li WiFi network. Tam sim no peb tuaj yeem txav mus tom ntej thiab pib teeb tsa ntawm Sensate app.

Kauj Ruam 4: Teeb tsa Sensate Mobile App

Teeb tsa Sensate Mobile App
Teeb tsa Sensate Mobile App
Teeb tsa Sensate Mobile App
Teeb tsa Sensate Mobile App
Teeb tsa Sensate Mobile App
Teeb tsa Sensate Mobile App

Ua ntej tshaj plaws kom ntseeg tau tias koj tau teeb tsa Sensate Sense App hauv koj lub Smartphone. Tom ntej no qhib lub app thiab ua raws cov theem hauv qab no:

  • Hauv thawj nplooj ntawv coj mus rhaub rau "Teeb Kho Vajtse". Tom qab ntawd nws yuav nug yog tias peb xav teeb tsa tus choj, raws li peb twb tau teeb tsa nws hauv qib dhau los peb yuav coj mus rau qhov kev xaiv thib ob "Tsis yog, Nws tau teeb tsa lawm"
  • Nplooj ntawv tom ntej yuav qhia tag nrho cov choj uas muaj. Xaiv qhov peb nyuam qhuav ua.
  • Nyob rau nplooj ntawv tom ntej peb yuav tau txais txhua cov ntsiab lus hais txog cov ntsuas thiab 3 kev xaiv. Ntawm no xaiv "Configuration Wizard". Ntawm nplooj ntawv tom ntej koj tuaj yeem nyeem cov ntaub ntawv ntau ntxiv txog kev teeb tsa. Thaum koj tau nyeem nws, coj mus rhaub rau "Pib".
  • Tam sim no peb tau txais daim ntawv teev npe ntawm txhua lub rooj txhawb siab. Ntawm no peb yuav xaiv "WeMos D1 Mini" thiab coj mus rhaub rau "Txuas ntxiv".
  • Tom ntej no nws nug peb kom xaiv hom kev ua haujlwm. Muaj 2 hom, ib qho yog hom qub uas yuav siv thiab hloov kho nyeem ntau npaum li nws tuaj yeem ua tau. Lwm hom "Sleeping Mode", hauv hom no peb tuaj yeem tau txais qhov hloov tshiab tas li thiab lub rooj tsavxwm yuav nyob rau hauv hom kev txuag hluav taws xob. Txog qhov haujlwm no kuv tau xaiv thawj Hom raws li kuv xav tau lub sijhawm hloov tshiab ntawm qhov kub thiab txias.
  • Tom ntej no peb yuav tsum xaiv cov zaub. Raws li peb tab tom siv 1.3 "128x64 zaub, peb yuav xaiv qhov ntawd. Tom qab ntawd coj mus rhaub rau" Txuas ntxiv ".
  • Ntawm nplooj ntawv tom ntej tsuas yog xaiv "Tsis muaj txuas ntxiv".
  • Ntawm nplooj ntawv tom ntej peb yuav tsum xaiv lub sensor. Peb siv "BME280" yog li xaiv qhov ntawd. Nco ntsoov tias koj tsis xaiv BMP280 uas zoo ib yam tab sis tsis muaj lub siab sensor.
  • Thaum peb xaiv lub sensor lub app muab rau peb xaiv cov ntaub ntawv twg peb xav sau. Ntawm no toggle tag nrho peb qhov kev xaiv. Tsis tas yuav ua si nrog lwm qhov chaw.
  • Thaum kawg nyem rau ntawm qhov ua tiav.

Tam sim no txhua yam peb yuav tsum tau ua yog tsim lub Circuit Court.

Kauj Ruam 5: Tsim Circuit Court

Tsim lub Circuit
Tsim lub Circuit
Tsim lub Circuit
Tsim lub Circuit

Raws li peb tab tom siv I2C kev sib txuas lus ntawm no, kev sib txuas yog yooj yim heev. Xa cov duab saum toj no. There 4 tus pin rau hauv kev ua si ntawm no: VCC, GND (tus pin zog) & SDA, SCL (I2C pins).

Txuas cov xov hlau raws li:

VCC = 3.3V

GND = GND

SCL = SCL (D1)

SDA = SDA (D2)

Thiab tag nrho cov. Tam sim no tsuas yog siv lub zog hluav taws xob thiab tos kom nws txuas mus rau lub network tam sim no peb yuav tau txais cov ntaub ntawv ntawm OLED thiab ntawm app.

Kauj Ruam 6: Lus Cim Kawg

Lus Cim Kawg
Lus Cim Kawg
Lus Cim Kawg
Lus Cim Kawg

Yog li tam sim no peb muaj DIY chaw nres tsheb huab cua yam tsis tas yuav sau tus lej tiag. Tsis yog nws txias? Tam sim no koj tuaj yeem tsim rooj plaub rau nws zoo li qhov kuv tau ua yav dhau los ntawm no. Vam tias cov ntawv qhia tau yooj yim ua raws thiab koj tau kawm qee yam tam sim no.

Yog tias koj muaj lus nug xav tawm hauv cov lus hauv qab no.

Pom zoo: