Cov txheej txheem:
Video: ESP8266 - 12 Weatherstation: 4 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Txoj haujlwm no yog hais txog kev tsim thiab ntsuas chaw nres tsheb huab cua raws ESP8266 - 12. Lub tswv yim yog ua raws lub zog qis nrog them lub roj teeb uas siv lub hnub ci. Cov lus qhia no yog ua raws li kuv 2 yav dhau los cov phiaj xwm them nqi thiab esp logger.
BOM:
PCB tsab ntawv pov thawj
s.click.aliexpress.com/e/bgL8ra4o
s.click.aliexpress.com/e/cZld3Uu0
rooj plaub
s.click.aliexpress.com/e/bnH8vwuC
s.click.aliexpress.com/e/cgh1TZZA
6V hnub ci cell:
s.click.aliexpress.com/e/boPIbdcU
s.click.aliexpress.com/e/P2CdlvQ
s.click.aliexpress.com/e/hpaB1es
NPE 8266 12
s.click.aliexpress.com/e/uPIsjqu
s.click.aliexpress.com/e/c2KA2QyC
Roj teeb 18650 Lithium -ion roj teeb.
Tus tuav rau 18650 roj teeb
Sensor.
Koj tuaj yeem xaiv txhua yam, Kuv nyiam I2C cov ntsuas, Kuv xaiv lub teeb pom kev zoo MAX44009 https://s.click.aliexpress.com/e/mF3rZpQ (MAX44009)
s.click.aliexpress.com/e/mF3rZpQ (BME280 - ntsuas kub, av noo thiab ntsuas siab)
los yog.
DS18B20 1-Hlau Kub Kub Sensor https://s.click.aliexpress.com/e/bhmyP8ha thauj khoom dawb:
s.click.aliexpress.com/e/bhmyP8ha
2 x Ceramic Capacitor 100 nF
1x Electrolytic Capacitor47microF (tuaj yeem siv 470microFarad)
s.click.aliexpress.com/e/bFvGcnB6 *
* Cov khoom ntim khoom
s.click.aliexpress.com/e/bFvGcnB6
s.click.aliexpress.com/e/bcwvHbiC
1x CP2102 USB rau UART Serial module
s.click.aliexpress.com/e/btKG0HlO
n
2x Tactile Pushbutton
s.click.aliexpress.com/e/DEGyCsC
2x breadboards ntev lossis 1xlong breadboard + 1x luv breadboard lossis 1x pcb (uas zoo dua, muaj peev xwm qis) https://s.click.aliexpress.com/e/DEGyCsC (ntev)
s.click.aliexpress.com/e/DEGyCsC (luv luv)
1x pob ntawm dupont cables (tsis zoo li, zoo dua yuav tuab dua, rau kev sib txuas zoo)
Resistors: 3x 10kΩ 2x 4.7kΩ 1x 2.2kΩ 1x 300kΩ 1x 100kΩ
Pob:
s.click.aliexpress.com/e/DEGyCsC
s.click.aliexpress.com/e/bzLcEtPS
Kauj Ruam 1: Lub Tsev
Kuv piav qhia tsuas yog qhov tseem ceeb rau esp weatherstation, cov ntsiab lus ntxiv ntawm kuv cov phiaj xwm qhia yav dhau los.
Kuv siv ESP8266 - 12 microcontroller, koj tuaj yeem siv ESP8266 - 7 nrog lub kav hlau txais xov. Rau kev ua haujlwm esp nti, koj xav tau 3.3 V qib qis module, uas hloov hluav taws xob los ntawm Lithium ion roj teeb rau 3.3 V. Kuv siv Lithium ion roj teeb los ntawm phau ntawv roj teeb qub.
Rau them lub roj teeb, Kuv siv lub hnub ci cell, qhov tseem ceeb koj xav tau lub hnub ci cell, uas muab qhov siab tshaj 7 V (nyob ntawm TP4056 them nqi them) thiab ib puag ncig 200 mA siab tshaj tam sim no los ntawm hnub ci cell. Qhov siab tshaj tam sim no nyob ntawm lub roj teeb, nws yog txoj cai C/10 tab sis rau cov roj teeb lithium, koj tuaj yeem them nrog 500 mA ib yam nkaus (C yog lub roj teeb muaj peev xwm).
Txog kev ntsuas kuv siv 3 lub ntsuas DS18b20, uas yog raws ib lub tswv yim xaim. Tsis tas li kuv tshawb xyuas qhov chaw nyob ntawm txhua tus neeg themoter. Vim li cas 3 meters? Txheeb xyuas qhov swb tom ntej.
Kuj ESP tuaj yeem ntsuas nrog lub kav hlau txais xov wifi! Kuv ntsuas lub zog ntawm SSID uas kuv txuas. Feem ntau nws yog nyob rau hauv dB chav nyob. Tsis tas li kuv esp kos tus lej ntawm wifi nets ncig kuv lub tsev. Qee zaum yog 2, qee zaum yog 3 lossis 4.
Kauj ruam 2: Ntsuas
Txog kev ntsuas kuv siv 3 tus ntsuas ntsuas, ntsuas ib qho ntsuas kub sab hauv lub thawv, qhov twg yog esp thiab txhua yam khoom siv kho vajtse. Qhov ntsuas thib ob ntsuas kub ntawm huab cua sab nraum. Kuv tsuas yog txuas lub sensor tom qab lub rooj tsavxwm ntawm lub sam thiaj. Qhov ntsuas thib peb Kuv siv rau ntsuas kub hauv lub raj mis. Thaum tshav ntuj, huab cua hauv lub raj mis kub heev. Yog li nws zoo li lub hnub ci hluav taws xob ntes.
Tsis tas li kuv ntsuas roj teeb hluav taws xob nrog analog hloov pauv hloov pauv (ADC). ESP siv ADC nrog qhov siab tshaj 1 V, yog li kuv yuav tsum faib cov ntawv pov npav los ntawm Lithium roj teeb kom tsawg dua 1 V.
Kuj ESP ntsuas lub zog ntawm kuv SSID thiab tus naj npawb ntawm wifi nets, nyob ib puag ncig kuv lub tsev.
Kauj Ruam 3: Xeem
Txog kev sim kuv siv Thingspeak channel (https://thingspeak.com/channels/297517?fref=gc). Kuv tsim 8 daim duab, sab nraud kub, ADC (qhov tseem ceeb los ntawm ADC, uas ntsuas qhov hluav taws xob ntawm lub roj teeb), Qhov txawv (Kub sab nraum - ntsuas kub hauv lub raj mis), ntsuas kub hauv lub thawv, Lub zog ntawm wifi, Tus naj npawb ntawm "wifies", Kub ntawm Tshav = hauv lub raj mis
Kuv esp xa cov ntaub ntawv mus rau yam lus hais txhua 28 feeb (Kuv teeb tsa 30 feeb, tab sis lub moos sab hauv oscillate nrog lub suab nrov me ntsis, tab sis qhov tseeb, lub sijhawm luv yog ib ncig 28 feeb)
Nws ua haujlwm zoo nkauj, tab sis lub lim tiam dhau los, Kuv pom, ib zaug ib hnub, ib tus nqi ploj lawm. Lub sijhawm luv yog ntev dua 28 feeb = 56 feeb. Tej zaum Thingspeak server yog teeb meem me ntsis.
Tsis tas li koj tuaj yeem tsim teeb duab los ntawm cov txiaj ntsig no thiab ntxiv daim duab no mus rau lwm qhov channel ntawm Thingspeak (siv cov cuab yeej MATLAB Txheeb Xyuas thiab MATLAB Pom Kev). Kuv siv nws, tab sis tej zaum nws ua rau me ntsis ploj hauv kuv qhov txiaj ntsig. (Qhov tseem ceeb uas ploj lawm kuj tshwm sim tom qab kuv rho tawm kuv cov kab ntawv tshiab thiab cov tshiab raws)
Kauj ruam 4: Cov duab
Nws yog qhov zoo los txheeb xyuas qhov kub thiab txias sab nraum thiab ntsuas kub hauv kuv lub raj mis, uas zoo li lub tsev cog khoom. Kub tuaj yeem ncav cuag 30 ° C (86 F) thaum sab nraud nyob ib puag ncig 15 ° C (59 F). Tsis tas li kuv qhov ntsuas kub sab nraud tsis raug, ntawm lub vev xaib kwv yees ntawm kuv cheeb tsam kuv txheeb xyuas, tias sab nraud tus yam ntxwv uas kuv ntsuas tseem siab dua. Tej zaum kuv xav tau kev sib cais zoo dua.
kub sab nraum
kub ntawm SUN
Pom zoo:
Kev Tsim Qauv Duab Duab/Duab Duab Duab: 4 Kauj Ruam
Kev Tsim Qauv Duab Duab/Duab Duab Duab: Nyob zoo txhua tus, Hauv qhov kev qhia no, Kuv yuav qhia koj cov txheej txheem ntawm yuav ua li cas thiaj tsim 3D qauv siv cov duab digital. Cov txheej txheem hu ua Photogrammetry, tseem hu ua Image-Based Modeling (IBM). Tshwj xeeb, hom txheej txheem no tau siv los rov ua dua
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Kub Sensor / Weatherstation: 9 Kauj Ruam (nrog Duab)
Kub Sensor / Weatherstation: Tsim lub chaw ntsuas huab cua lossis ntsuas cua sov siv lub ntsuas cua txias txias txias txias DS1820.Kuv siv qhov teeb tsa no los tshuaj xyuas chav server, thiab raws li huab cua huab cua. Qhov haujlwm no muaj: A Dallas 1-Wire bus networkInterface ntawm RS- 232 thiab