Cov txheej txheem:
- Kauj Ruam 1: Kauj Ruam 1: Kev Kho Vajtse
- Kauj Ruam 2: Kauj Ruam 2: ESP32 Code
- Kauj Ruam 3: Kauj Ruam 3: Qauv Qauv
Video: Esp32 Kub thiab Vaum Web Server Siv PYTHON & Zerynth IDE: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Esp32 yog lub micro-controller zoo kawg, Nws muaj zog ib yam li Arduino tab sis zoo dua! nyuaj heev los txhim kho koj cov phiaj xwm nrog rau SDK tus nom. Thib peb nws yog mob taub hau loj los nrhiav lub tsev qiv ntawv ua haujlwm uas tsim nyog. Yog li cas yog tias koj tuaj yeem siv txhua qhov kev ua haujlwm ntawm mico-maub los thaum tseem sau nws hauv PYTHON. Nws puas ua qhov txawv? Yog lawm, Python yog qhov muaj zog, nyeem tau yooj yim thiab sau tau yooj yim. Ntxiv rau koj tsis tas yuav txhawj xeeb txog txhua yam ntawm qib qis (taw qhia, sau npe thiab teeb tsa cov ntaub ntawv) Tsis tas li, Koj siv Zerynth ruaj khov system. Yog koj tseem tsis tau paub txog Zerynth tsis tau, nws yog qhov loj tom ntej!
Nws muab rau koj txhua qhov kev ua haujlwm ntawm tus tswj hwm micro nrog kev yooj yim ntawm Python thiab nws yog Dawb
Cia kuv qhia rau koj Esp32 Kub thiab av noo web server sau hauv Python.
Kauj Ruam 1: Kauj Ruam 1: Kev Kho Vajtse
Lub hts221 Temp thiab humidty sensor siv I2C txuas, Koj yuav tsum txuas lub sensor mus rau tus pin tsim nyog hauv ESp32Node-MCU Esp32s Hts221 Sensor
3 v 3 pin 3.3 v pin
GND pin GND pinIO26 SCL tus pin
IO25 SDA tus pin
Kauj Ruam 2: Kauj Ruam 2: ESP32 Code
- Txuas koj li Esp32 pawg thawj coj txhim kho rau koj lub khoos phis tawj.
- Rub tawm Qhov Tseeb Zerynth Studio IDE dawb: https://www.zerynth.com/zerynth-studio/ Siv cov lus qhia teeb tsa no los pab koj: https://docs.zerynth.com/latest/official/core.zery …
- Sab hauv daim ntawv thov; Tsim tus as khauj tshiab thiab teeb tsa koj lub cuab yeej. Siv phau ntawv qhia no los pab koj
- Tam sim no Tsim txoj haujlwm tshiab los ntawm cov cuab yeej tseem ceeb; Txoj Haujlwm Tshiab Sau lub npe rau txoj haujlwm thiab khaws nws.
- Nrhiav qhov chaws Txuas nrog
- Luam cov cai thiab Uplink (upload rau hauv uC)
- Qhib serial saib
- Luam Ip-chaw nyob rau koj tus browser thiab qhib lub vev xaib! Yog tias koj xav tau kev pab nrog IDE:
Kauj Ruam 3: Kauj Ruam 3: Qauv Qauv
Koj tuaj yeem pom tag nrho txoj haujlwm txuas nrog! Qhov no xav qhia koj yooj yim npaum li cas:
los ntawm stm.hts221 ntshuam hts221
temp_hum = hts221. HTS221 (I2C0, D16) #initiate i2C raws tu qauv nrog lub sensor
temp, hum = temp_hum.get_temp_humidity () # tau txais qhov kub thiab txias tam sim no siv lub tsev qiv ntawv!
los ntawm espressif.esp32net ntshuam esp32wifi li wifi_driver #importing Esp32 Wifi tsav tsheb
WifiAP_name = "WIFI AP Name" Wifi_Pass = "Wifi Pass!"
wifi_driver.auto_init ()
wifi.link (WifiAP_name, wifi. WIFI_WPA2, Wifi_Pass) -------------------------------------- ----------------------------------------------------------------------- -------------------------------
Nws yog qhov yooj yim siv Zerynth IDE nrog nab hab sej.
Pom zoo:
ESP8266 thiab Visuino: DHT11 Kub thiab Vaum Web Server: 12 Cov Kauj Ruam
ESP8266 thiab Visuino: DHT11 Kub thiab Vaum Web Server: ESP8266 cov qauv yog cov nqi qis uas sawv ib leeg tswj nrog ua hauv Wi-nkaus, thiab kuv twb tau ua tus lej Qhia Qhia txog lawv. thiab Vaum Arduino sensors, thiab kuv tau ua tus lej
ESP8266 NodeMCU Access Point (AP) rau Web Server Nrog DT11 Kub Sensor thiab Luam Ntawv Kub & Vaum Hauv Browser: 5 Kauj Ruam
ESP8266 NodeMCU Access Point (AP) rau Web Server Nrog DT11 Kub Sensor thiab Luam Ntawv Kub & Vaum Hauv Browser: Nyob zoo cov phooj ywg hauv feem ntau ntawm cov haujlwm peb siv ESP8266 thiab hauv feem ntau ntawm cov haujlwm peb siv ESP8266 ua lub vev xaib kom cov ntaub ntawv tuaj yeem nkag tau rau txhua lub cuab yeej hla wifi los ntawm kev nkag mus rau Webserver tuav los ntawm ESP8266 tab sis qhov teeb meem tsuas yog peb xav tau lub router ua haujlwm rau
ESP32 Raws M5Stack M5stick C Huab Cua Saib Nrog DHT11 - Saib Xyuas Qhov Kub Kub & Qhov Kub Kub ntawm M5stick-C Nrog DHT11: 6 Cov Kauj Ruam
ESP32 Raws M5Stack M5stick C Huab Cua Saib Nrog DHT11 | Saib Xyuas Qhov Kub thiab Qhov Ntsuas Kub ntawm M5stick-C Nrog DHT11: Nyob zoo cov neeg, hauv cov lus qhia no peb yuav kawm paub yuav ua li cas cuam tshuam DHT11 ntsuas kub nrog m5stick-C (pawg tswj hwm kev txhim kho los ntawm m5stack) thiab tso tawm ntawm cov zaub ntawm m5stick-C. Yog li hauv qhov kev qhia no peb yuav nyeem qhov ntsuas kub, av noo & heat kuv
Yuav Ua Li Cas Siv DHT11 Kub Sensor Nrog Arduino thiab Luam Kub Kub thiab Vaum: 5 Kauj Ruam
Yuav Ua Li Cas Siv DHT11 Kub Sensor Nrog Arduino thiab Luam Kub Kub thiab Vaum: Lub DHT11 sensor tau siv los ntsuas kub thiab av noo. Lawv yog cov khoom siv hluav taws xob nrov tshaj plaws.Qhov DHT11 cov av noo thiab ntsuas kub ua rau nws yooj yim ntxiv cov av noo thiab ntsuas kub rau koj li DIY cov phiaj xwm hluav taws xob. Nws yog rau
ESP32 NTP Kev Ntsuas Kub Ua Haujlwm Kub Kub Nrog Steinhart-Hart Kho thiab Tswb Kub: 7 Kauj Ruam (nrog Duab)
ESP32 NTP Kev Ntsuas Kub Ua Haujlwm Ntsuas Kub nrog Steinhart-Hart Kev Kho thiab Tswb Kub: Tseem tab tom taug kev kom ua tiav "qhov haujlwm yuav los tom ntej", "ESP32 NTP Kev Ntsuas Kub Kev Ntsuas Kub Ua Noj Nrog Steinhart-Hart Kev Kho thiab Tswb Kub" yog Cov Ntawv Qhia qhia yuav ua li cas kuv ntxiv NTP ntsuas kub, piezo b