Cov txheej txheem:
- Kauj Ruam 1: Cov Cuab Yeej thiab Cov Khoom
- Kauj Ruam 2: Sib dhos ntawm ArduiTouch Kit
- Kauj ruam 3: Txhim kho USB Drivers
- Kauj Ruam 4: Kev npaj Arduino IDE rau ESP8266
- Kauj Ruam 5: Txhim Kho Tsev Qiv Ntawv Ntxiv
- Kauj ruam 6: Source Code
- Kauj Ruam 7: Kev Cai Tshwj Xeeb hauv Settings.h
- Kauj ruam 8: Khiav Code
Video: ESP8266 Chaw Nres Tsheb Xim: 8 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Hauv cov lus qhia no kuv xav qhia koj yuav ua li cas thiaj tsim tau ESP8266 lub chaw nres tsheb huab cua zoo rau phab ntsa mount nrog huab cua huab cua thiab xim tft npo.
Kauj Ruam 1: Cov Cuab Yeej thiab Cov Khoom
Cov ntaub ntawv:
- NodeMCU Amica V2 lossis Wemos D1 Mini
- ArduiTouch ESP phab ntsa mounting cov khoom siv
Cov Cuab Yeej:
- cam khwb cia hlau
- ntsia hlau tsav tsheb
- sab txiav pliers
- voltmeter (yeem)
Software:
Arduino IDE Cov
Kauj Ruam 2: Sib dhos ntawm ArduiTouch Kit
Koj yuav tsum sib sau ua ke ArduiTouch cov khoom ua ntej. Thov ua tib zoo saib hauv phau ntawv qhia kev tsim kho.
Kauj ruam 3: Txhim kho USB Drivers
NodeMCU module suav nrog CP2102 nti rau USB interface. Feem ntau tus neeg tsav tsheb yuav raug teeb tsa siv lub tshuab yog tias NodeMCU txuas nrog thawj zaug nrog lub PC. Qee zaum cov txheej txheem no ua tsis tiav. Hauv qhov no koj yuav tsum nruab tus tsav tsheb
www.silabs.com/products/development-tools/s…
Yog tias koj xav siv Wemos D1 koj yuav tsum teeb tsa cov tsav tsheb rau CH340 USB interface hloov chaw:
www.wch.cn/download/CH341SER_ZIP.html
Kauj Ruam 4: Kev npaj Arduino IDE rau ESP8266
- ESP8266 module tsis yog ib feem ntawm Arduino-IDE. Peb yuav tsum nruab nws ua ntej. Qhib cov ntaub ntawv/nyiam nyob hauv Aduino-IDE thiab ntxig qhov txuas hauv qab no hauv Tus Thawj Saib Xyuas Lub Rooj Sib Tham Ntxiv URLs:
- Kaw lub qhov rai no nrog khawm OK. Open tam sim no tus thawj tswj hwm: Cov cuab yeej / Pawg Thawj Coj / Tus Thawj Saib Xyuas Haujlwm
- Mus rau ESP8266 nkag thiab nruab nws
- Tam sim no koj tuaj yeem xaiv NodeMCU 1.0 (ESP-12E Module) lossis WeMos D1 R2 & mini. Teem CPU zaus rau 80MHz, Flash Loj rau „4M (3M SPIFFS)“, tus nqi baud uas koj xaiv thiab COM chaw nres nkoj. 4af ua
Kauj Ruam 5: Txhim Kho Tsev Qiv Ntawv Ntxiv
Nruab ib lub tsev qiv ntawv hauv qab no los ntawm Arduino Library Manager
- Mini Grafx los ntawm Daniel Eichhorn:
- ESP8266 WeatherStation los ntawm Daniel Eichhorn:
- Json Streaming Parser los ntawm Daniel Eichhorn:
- simpleDSTadjust los ntawm neptune2:
Koj tseem tuaj yeem rub tawm lub tsev qiv ntawv ncaj qha raws li ZIP cov ntaub ntawv thiab uncompress lub nplaub tshev hauv qab kojrarduinosketchfolder/qiv ntawv/
Tom qab txhim kho cov tsev qiv ntawv, rov pib dua Arduino IDE.
Kauj ruam 6: Source Code
Cov cai rau huab cua-chaw nres tsheb raws li qhov txaus txaus los ntawm Daniel Eichhorn
blog.squix.org
Peb tau hloov qee qhov kev hloov pauv me me los ua txoj cai rau ArduiTouch. Koj yuav tsum tau rho tawm Zip cov ntawv khaws cia hauv cov npe tshiab nrog tib lub npe.
Kauj Ruam 7: Kev Cai Tshwj Xeeb hauv Settings.h
Hauv qhov chaws koj yuav pom cov ntawv npe hu ua settings.h. Qee qhov kev hloov pauv hauv cov ntawv no xav tau rau kev kho kom haum:
WiFi:
Thov nkag mus rau SSID thiab pasword hauv kab 25 thiab 26 ntawm settings.h
#txhais WIFI_SSID "yourssid"
#define WIFI_PASS "yourpassw0rd"
Account rau OpenWeatherMap:
Txhawm rau tau txais cov ntaub ntawv tom qab los ntawm lub platform OpenWeatherMap koj yuav xav tau tus lej nyiaj. Sau npe ntawm no kom tau txais tus lej API:
Nkag mus rau koj tus lej API hauv kab 38 ntawm settings.h
Txoj hlua OPEN_WEATHER_MAP_APP_ID = "koj_api_key";
Koj qhov chaw nyob:
Mus rau https://openweathermap.org/find?q= thiab tshawb nrhiav qhov chaw nyob. Mus los ntawm cov txiaj ntsig teeb tsa thiab xaiv qhov nkag mus ze rau qhov chaw tiag tiag uas koj xav qhia cov ntaub ntawv rau. Nws yuav yog URL zoo li https://openweathermap.org/city/2657896. Tus lej tom kawg yog qhov koj muab rau qhov hauv qab no.
Sau tus lej thiab lub npe ntawm koj qhov chaw nyob hauv kab 45 thiab 46 ntawm settings.h
Txoj hlua OPEN_WEATHER_MAP_LOCATION_ID = "2804279";
Txoj hlua DISPLAYED_CITY_NAME = "Ziesar";
Sijhawm:
Thov xaiv koj lub sijhawm nyob hauv kab 65 ntawm settings.h
#define UTC_OFFSET +1
Kauj ruam 8: Khiav Code
Thov qhib cov qauv no hauv Arduino IDE. Tom qab muab tso ua ke thiab tso tawm koj yuav pom lub sijhawm tam sim no thiab kub ntawm koj qhov chaw nyob. Ntxiv mus ntau qhov kev kwv yees huab cua rau ob peb hnub tom ntej no tau tshwm sim. Qhov kov tsuas muaj ib txoj haujlwm. Koj tuaj yeem xaiv lub sijhawm tso tawm los ntawm kev kov nyob rau sab saud ntawm qhov screen.
Pom zoo:
Arduino Tsheb Rov Qab Chaw Nres Tsheb Ceeb Toom - Cov Kauj Ruam ntawm Kauj Ruam: 4 Kauj Ruam
Arduino Tsheb Rov Qab Chaw Nres Tsheb Ceeb Toom | Cov kauj ruam ib kauj ruam: Hauv txoj haujlwm no, kuv yuav tsim qhov yooj yim Arduino Tsheb Rov Qab Tsheb Nres Tsheb Nres Sensor Siv Arduino UNO thiab HC-SR04 Ultrasonic Sensor. Qhov no Arduino raws Lub Tsheb Rov Qab ceeb toom tuaj yeem siv rau Kev Tshawb Fawb Txog Tus Kheej, Robot Ranging thiab lwm yam
Chaw Nres Tsheb Huab Cua DIY & WiFi Chaw Nres Tsheb Sensor: 7 Kauj Ruam (nrog Duab)
Chaw Tshawb Xyuas Huab Cua DIY & WiFi Chaw Nres Nkoj: Hauv qhov haujlwm no kuv yuav qhia koj yuav tsim lub chaw nres tsheb huab cua nrog rau qhov chaw nres tsheb WiFi sensor. Lub chaw nres tsheb ntsuas ntsuas cov ntaub ntawv kub thiab av noo hauv cheeb tsam thiab xa nws, los ntawm WiFi, mus rau chaw nres tsheb huab cua. Cov chaw nres tsheb huab cua tom qab ntawd qhia t
Yuav Ua Li Cas Tsim Lub Chaw Nres Tsheb txhawm rau daws qhov mob ntawm Nrhiav Qhov Chaw Dawb: 12 Kauj Ruam
Yuav Ua Li Cas Tsim Lub Chaw Nres Tsheb txhawm rau daws qhov Mob ntawm Nrhiav Qhov Chaw Dawb: Hauv qhov haujlwm no peb yuav tsim lub chaw nres tsheb yooj yim uas siv Raspberry Pi. Nws hloov tawm tias txhua tag kis kuv yuav tsum ntsib cov lus nug no: Puas yog XAUS qhov chaw nres tsheb nyob rau ntawm kuv lub chaw haujlwm twb tau coj lawm? Vim tias thaum nws yog qhov tseeb, Kuv yuav tsum tau mus ncig
FinduCar: Lub Ntsej Muag Tsheb Ntsuas Qhia Cov Neeg rau Qhov Chaw Lub Tsheb Nres Tsheb: 11 Cov Kauj Ruam (nrog Duab)
FinduCar: Ntse Lub Ntsiab Tseem Ceeb Qhia Tib Neeg rau Qhov Chaw Tsheb Nres Tsheb: Txhawm rau daws cov teeb meem saum toj no, txoj haujlwm no tawm tswv yim txhawm rau txhim kho tus yuam sij tsheb ntse uas tuaj yeem coj tib neeg mus rau qhov chaw lawv nres tsheb. Thiab kuv txoj kev npaj koom nrog GPS rau hauv lub tsheb tseem ceeb. Tsis tas yuav siv lub smartphone app los taug qab
Ua Lub Sijhawm Tawm Ntawm Lub Tsheb Nres Nres Nres Disc: 7 Kauj Ruam
Ua Lub Sijhawm Tawm Ntawm Lub Tsheb Nres Nres Nres: Nov yog qhov koj tuaj yeem ua nrog txhua qhov qub/qub tsheb kauj vab nres uas koj tau dag ib puag ncig! ntsia liaj qhov rooj thiab 2 txiv ntoo kom haum lawv (xaiv tau)- brasso- daim txhuam cev hauv chav ua noj + phuam