Cov txheej txheem:
- Kauj Ruam 1: Cov khoom siv
- Kauj ruam 2: Kev thaiv kab
- Kauj Ruam 3: UPyCraft Cov Lus Qhia rau Kev Siv
- Kauj ruam 4: Txoj Cai Rub Tawm
- Kauj ruam 5: Tau IP Chaw Nyob
- Kauj ruam 6: Qhib Browser
- Kauj Ruam 7: Tam sim no Huab Cua
Video: MicroPython Program, Mini Weather Station: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Nws yog lub caij ntuj no tam sim no, tab sis nws tseem zoo li kub me ntsis, txawm tias kuv tsuas yog hnav lub tsho T-shirt, uas ua rau kuv xav paub qhov kub thiab txias tam sim no, yog li kuv siv Micropython ESP32 thiab DHT11 lub ntsuas cua thiab qhov chaw yooj yim huab cua yog li koj tuaj yeem tau txais qhov kub thiab txias tam sim no hauv txhua lub browser, tam sim no kuv yuav qhia cov txheej txheem nrog koj.
Kauj Ruam 1: Cov khoom siv
Kho vajtse:
- MakePython ESP32 Cov
- DHT11
- Pawg mov ci
- Dhia kab
- USB cable
MakePython ESP32 yog ESP32 pawg thawj coj nrog kev sib xyaw SSD1306 OLED zaub, koj tuaj yeem tau txais nws los ntawm qhov txuas no:
www.makerfabs.com/makepython-esp32.html
Cov software
uPyCraft IDE
Nyem qhov txuas no mus rub uPyCraft IDE rau Windows:
Kauj ruam 2: Kev thaiv kab
- MakePython ESP32 thiab DHT11 tau ntsaws rau hauv lub khob cij.
- DHT11 tsuas xav tau 3 xov hlau, VCC thiab GND txuas nrog 3V3 thiab GND ntawm ESP32, thiab DATA txuas nrog IO14 ntawm ESP32. Kuv siv GPIO14 hauv kev sim, yog li kuv txuas nrog IO14.
- Txuas MakePython ESP32 rau PC siv USB cable, Qhib tus thawj tswj ntaus ntawv (Tsuas yog tshawb rau "ntaus ntawv" hauv Windows tshawb nrhiav lub thawv). Thaum nthuav dav, ntu chaw nres nkoj yuav tsum tso saib qee yam zoo li saum toj no. Sau ntawv ntawm tus lej chaw nres nkoj, xws li COM19 hauv kuv qhov xwm txheej. Yog tias tsis muaj chaw nres nkoj tshwm, sim rub lub USB tsav:
Kauj Ruam 3: UPyCraft Cov Lus Qhia rau Kev Siv
Cov lus qhia ntxaws rau uPyCraft tuaj yeem pom ntawm qhov txuas no:
www.makerfabs.com/makepython-esp32-starter…
- Nyem qhov txuas saum toj no los qhib nplooj ntawv
- Nrhiav MicroPython ESP32 Dev Kit Cov Lus Qhia
- Nyem rub tawm los qhib daim ntawv
- Cov ncauj lus qhia ntxaws muaj nyob hauv I. MicroPython Development Tools directory
Yog lawm, cov ntaub ntawv no tsis yog hais txog uPyCraft cov lus qhia, tab sis kuj suav nrog qee qhov MicroPython ESP32 ib txwm ua thiab nquag nug cov lus nug thiab ua yuam kev.
Kauj ruam 4: Txoj Cai Rub Tawm
Cov cai rau ssd1306.py tau rub tawm los ntawm GitHub chaw cia khoom: https://github.com/ckuehnel/MicroPython-on-ESP32 lossis rub kuv li.
Tom qab rub tawm ssd1306.py, qhib cov ntawv, thiab nyem Txuag thiab DownAndRun. "download tau ok" yuav muab tso tawm thaum lub download tau ua tiav.
Tom qab rub tawm main.py, yuav tsum hloov pauv hauv qab no:
1. Hloov lub npe network thiab tus password:
- SSID: yuav tsum hloov pauv mus rau koj lub npe network hauv zos
- PASSWORD: yuav tsum hloov pauv mus rau koj tus lej network network
Thaum koj ua tiav, nyem DownAndRun thiab MakePython ESP32 txuas rau WiFi
2. DHT11 cov ntaub ntawv tus pin:
Yog DHT11 tau txais tus Pin hloov ntawm MakePython ESP32, hloov tus lej hauv tus Pin () rau Tus Pin koj tau txais.
Kauj ruam 5: Tau IP Chaw Nyob
Khiav main.py, kev ua tiav network, koj tuaj yeem pom tus IP chaw nyob (kuv li: 192.168.1.120).
Kauj ruam 6: Qhib Browser
Qhib qhov browser ntawm koj lub PC, ntaus tus IP chaw nyob uas koj nyuam qhuav tau txais (192.168.1.120), thiab nyem Enter kom paub meej.
Kauj Ruam 7: Tam sim no Huab Cua
Qhov browser nthuav qhia qhov kub thiab txias tam sim no, nrog rau OLED zaub ntawm MakePython ESP32. Thaum koj rov ua nplooj ntawv tshiab, cov ntaub ntawv ntsuas kub thiab av noo kuj tseem yuav rov ua dua tshiab.
Chaw nres tsheb huab cua mini yog qhov yooj yim. Kuv yuav ntxiv cov ntaub ntawv los ntawm cov pa ntsuas pa, lub ntsuas cua los nag, huab cua ntsuas huab cua thiab lwm yam ntsuas los txhawb qhov chaw nres tsheb huab cua.
Pom zoo:
DIY Personal Weather Station Monitor: 6 Kauj Ruam
DIY Personal Weather Station Monitor: DarkSky, Peb cov kev pabcuam API rau cov neeg siv khoom tam sim no tsis hloov pauv niaj hnub no, tabsis peb yuav tsis lees txais kev tso npe tshiab. Qhov API yuav txuas ntxiv ua haujlwm mus txog thaum kawg ntawm 2021.https: //blog.darksky.net/Personal Weather Station Monitor display your we
Mini Weather Station Siv Arduino thiab ThingSpeak: 4 Kauj Ruam
Mini Weather Station Siv Arduino thiab ThingSpeak: Nyob zoo txhua tus. Hauv Cov Lus Qhia no, Kuv yuav coj koj hla cov kauj ruam los ua qhov chaw nres tsheb huab cua tus kheej. Tsis tas li, peb yuav siv ThingSpeak API los tshaj tawm peb cov ntaub ntawv huab cua rau lawv cov servers, lossis lwm yam dab tsi yog lub hom phiaj ntawm huab cua
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
Mini Weather Station With Attiny85: 6 Cov Kauj Ruam (nrog Duab)
Mini Weather Station With Attiny85: Hauv qhov qhia tsis ntev los no Indigod0g piav qhia txog lub chaw nres tsheb huab cua me uas ua haujlwm tau zoo, siv ob lub Arduinos. Tej zaum tsis yog txhua tus xav txi 2 Arduinos kom tau txais cov av noo thiab ntsuas kub thiab kuv tawm tswv yim tias nws yuav tsum ua tau
Arduino UNO Mini-Weather Station: 5 Kauj Ruam
Arduino UNO Mini-Weather Station: Nov yog thawj tiam ntawm kuv Arduino raws qhov chaw nres tsheb huab cua me me nrog txuas Wi-nkaus, uas tuaj yeem tshaj tawm cov ntaub ntawv rau pej xeem online siv ThingSpeak platform.Qhov chaw nres tsheb huab cua sau cov ntaub ntawv hauv qab no ntsig txog huab cua thiab ib puag ncig