Cov txheej txheem:
- Kauj Ruam 1: Huab Cua Chaw Nres Tsheb
- Kauj ruam 2: Cov ntaub ntawv
- Kauj ruam 3: Software
- Kauj ruam 4: LCD Pinout
- Kauj Ruam 5: WS hauv Kev Ua
- Kauj Ruam 6: Qee Cov Lus Qhia Tseem Ceeb
- Kauj ruam 7: Ua tau
- Kauj Ruam 8: Hloov Kho Me Me
Video: ESP8266/ESP32 Weather Station With TFT LCD (s): 8 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Nyob zoo!
Hauv qhov kev qhia luv luv no kuv xav qhia kuv qhov thib ob Esp8266 WS txoj haujlwm. Txij li thaum kuv tshaj tawm kuv thawj qhov haujlwm ESP kuv xav ua kuv tus kheej thib ob. Yog li kuv muaj qee lub sijhawm dawb los ua haujlwm qub cov cai kom haum rau kuv cov kev xav tau.
Yog li yog tias koj tsis mloog kuv yuav nthuav qhia nws.
Kauj Ruam 1: Huab Cua Chaw Nres Tsheb
WS tseem siv tus lej openweathermap API txhawm rau rub tawm cov ntaub ntawv huab cua thiab tso tawm ntawm lub vijtsam.
Me ntsis coding xav tau vim tias hauv daim ntawv ntawd nws tsis tuaj yeem tso saib huab cua huab cua kuv xav tau.
Kauj ruam 2: Cov ntaub ntawv
Qhov xav tau rau WS:
Nodemcu V3 ESP8266
- 1.8 nti TFT LCD nrog ST7735 tsav IC
- F-cov xov hlau
- Qhov chaws
- Arduino IDE
- Kev txhawb nqa SPIFFS
- Openweathermap API tus yuam sij
Kauj ruam 3: Software
Txog qhov haujlwm no kuv tab tom muab cov chaws thiab cov duab bitmap xav tau, rub nws los ntawm kuv nplooj ntawv github:
Lub tsev qiv ntawv kuv tau siv yog TFT_eSPI tsim los ntawm Bodmer.
Txhua yam koj yuav tsum tau ua: Rub tawm lub tsev qiv ntawv raug, suav nws thiab muab tso rau hauv lub rooj tsavxwm, xa cov duab bitmap nrog SPIFFS rau ESP thiab txuas nrog lcd.
Kuv tau siv 24 ntsis 100 X100 bitmap duab, tab sis koj tuaj yeem siv lwm lub cim. Cov uas kuv siv tau rub tawm los ntawm
Kauj ruam 4: LCD Pinout
Pinout yog cov hauv qab no:
// Zaub SDO/MISO rau NodeMCU tus pin D6 (lossis tawm mus txuas yog tias tsis nyeem TFT)
// Zaub LED rau NodeMCU tus pin VIN (lossis 5V, saib hauv qab)
// Zaub SCK rau NodeMCU tus pin D5
// Zaub SDI/MOSI rau NodeMCU tus pin D7
// Zaub DC (RS/AO) rau NodeMCU tus pin D3
// Zaub RESET rau NodeMCU tus pin D4 (lossis RST, saib hauv qab)
// Zaub CS rau NodeMCU tus pin D8 (lossis GND, saib hauv qab)
// Zaub GND rau NodeMCU tus pin GND (0V)
// Zaub VCC rau NodeMCU 5V lossis 3.3V
Rau qhov txo qis rov qab koj tuaj yeem siv 10K lub zog loj lossis siv lwm tus lej GPIO. Raws li rau kuv tus kheej kuv feem ntau txuas lub teeb nrig rov qab rau TX tus pin. Kuv paub nws tsis yog lub tswv yim zoo lossis muaj txiaj ntsig zoo rau ESP, tab sis nws ua haujlwm li ntawd.
Kauj Ruam 5: WS hauv Kev Ua
Tom qab koj tau ua txhua yam kom raug koj tuaj yeem pom tias lub chaw nres tsheb huab cua txuas rau hauv is taws nem thiab rub tawm cov ntaub ntawv huab cua.
Qhov sib txawv tsis sib cais hauv cov kab sib txawv.
Qhov koj pom yog qhov piav qhia huab cua tiag tiag, ntsuas kub, av noo, cua nrawm, pom tau hauv metres, huab cua siab, lub kaum sab xis cua, huab npog hauv feem pua (%).
Raws li rau qhov tau txais txiaj ntsig nruab nrab ntawm 9 teev tsaus ntuj thiab 7 teev sawv ntxov cov zaub hloov pauv mus rau simbolise hmo ntuj.
Kauj Ruam 6: Qee Cov Lus Qhia Tseem Ceeb
Raws li koj txhua tus paub qhov yog ob peb yam sib txawv ntawm 1.8 TFT hauv internet. Nrog qhov tseeb Adafruit lcd-s feem ntau tsis muaj teeb meem. Tab sis thaum siv cov cuav (feem ntau los ntawm Aliexpress) koj yuav tsum tau kho qee yam.
Bodmers TFT_eSPI lub tsev qiv ntawv zoo heev thiab muaj kev lom zem lom zem. Thiab qhov zoo tshaj yog nws tau ua nws los daws cov pixel offsets nyob ntawm seb yam twg ntawm 1.8 TFT koj siv.
Txhawm rau kov yeej qhov teeb meem no kuv hais qhia cov hauv qab no:
Mus rau cov ntawv tais ceev tseg thiab kho cov ntaub ntawv User_Setup.h. Tsis pom zoo #define ST7735_DRIVER thiab tawm tswv yim rau lwm tus.
Tom qab ntawv tsis pom qhov tft siab qhov dav. Thiab tom qab ntawd hauv kuv rooj plaub (REDTAB) tsis txaus siab rau xws li: #define ST7735_REDTAB. Tom qab qhov no txuag nws rau lub sijhawm tam sim no thiab sau cov duab kos thiab rub mus rau lub rooj tsavxwm. Kom paub tseeb tias kuv tau piav qhia qhov tsis nyob hauv daim duab kos ib yam nkaus. Qhov no yog txheej txheem ntev me ntsis, ua rau koj yuav tsum tau suav sau thiab xa cov duab kos txhua lub sijhawm los rau hauv nkoj kom txog thaum lub offset ploj mus, tab sis nws muaj nqis rau kev sim. Rau editing h. cov ntaub ntawv kuv xav qhia Wordpad. Cov duab suav nrog.
Kauj ruam 7: Ua tau
Tom qab ua txhua yam kom raug koj tuaj yeem txaus siab rau qhov khoom siv me me no. Kuv tau sim ua khub cov duab bitmap nrog cov lej huab cua zoo li kuv tuaj yeem ua tau, tab sis kuv tseem tab tom sim nws tam sim no.
Yeej kuv tsuas yog ua rau kuv tus kheej, tab sis tom qab ib hnub kuv xav tias kuv yuav qhia nws. Tej zaum ib tus neeg yuav nyiam nws ntau dua kuv.
Ua tsaug rau koj nyeem kuv cov lus qhia, vam tias koj yuav pom nws muaj txiaj ntsig thiab siv nws raws li koj nyiam.
Muaj ib hnub zoo!
Kauj Ruam 8: Hloov Kho Me Me
Tom qab ob peb hnub kuv xav tias kuv yuav rov tsim WS hauv daim ntawv tshiab.
Kev hloov pauv: ESP32 Uno R3
Parallel ILI9340/41 TFT LCD
Cov cim tshiab
1 kev xaiv ntxiv
Pls kho cov ntaub ntawv User_setup.h hauv TFT_eSPI lub tsev qiv ntawv raws li hauv daim duab. Pls tsis txaus siab rau lawv thiab tawm tswv yim lwm txoj hauv kev lossis lwm yam nws yuav tsis ua haujlwm.
Koj yuav tsum txuas GPIO 35 txog 15, GPIO 33 txog 34, GPIO 32 txog 36 vim tias lawv tsuas yog siv tus pin thiab tom qab ntawd peb cov zaub yuav tsis ua haujlwm (saib daim duab).
Cov peev txheej muaj nyob ntawm github.
Pom zoo:
ESP32 Weathercloud Weather Station: 16 Kauj Ruam (nrog Duab)
ESP32 Weathercloud Weather Station: Xyoo tas los no, kuv tau tshaj tawm kuv qhov Kev Qhia Zoo tshaj plaws rau hnub hu ua Arduino Weathercloud Weather Station. Nws yog nrov heev kuv yuav hais. Nws tau nthuav tawm ntawm Instructables homepage, Arduino blog, Wiznet museum, Instructables Instagram, Arduino Instagr
3.2 TFT Weather Station: 4 Kauj Ruam
3.2 TFT Weather Station: Yog! Nws yog tib lub chaw nres tsheb huab cua dua, tab sis nws siv cov zaub loj dua. Pls ua tib zoo saib cov lus qhia yav dhau los Kuv tseem muaj 320X480 lcd zaub rau arduino mega thiab kuv xav tsis thoob yog tias kuv tuaj yeem rov sau kuv daim duab los ua haujlwm rau nws. Kuv muaj hmoo
Arduino WiFi Wireless Weather Weather Station Wunderground: 10 Kauj Ruam (nrog Duab)
Arduino WiFi Wireless Weather Weather Station Wunderground: Hauv Phau Ntawv Qhia no kuv yuav qhia koj yuav tsim lub chaw nres tsheb huab cua tus kheej li cas siv ArduinoA Chaw nres tsheb huab cua yog lub cuab yeej uas khaws cov ntaub ntawv cuam tshuam nrog huab cua thiab ib puag ncig siv ntau yam sib txawv. Peb tuaj yeem ntsuas ntau yam
1.8 TFT LCD Advanced Weather Station: 5 Kauj Ruam
1.8 TFT LCD Advanced Weather Station: Me ntsis me ntsis, tab sis loj dua
2.4 TFT Arduino Weather Station Nrog Ntau Lub Cev: 7 Kauj Ruam
2.4 TFT Arduino Weather Station With Multiple Sensors: Ib lub chaw nres tsheb huab cua Arduino nrog TFT LCD thiab ob peb lub ntsuas pa