Cov txheej txheem:
- Kauj ruam 1: Kho vajtse thiab Software xav tau
- Kauj Ruam 2: Tshaj Tawm Txoj Cai rau ESP32 Siv Arduino IDE
- Kauj Ruam 3: Serial Monitor Output
- Kauj Ruam 4: NTUJ
- Kauj Ruam 5: Tsim IFTTT Applet
- Kauj Ruam 6: Tsim Kev Tswj Sijhawm los Ua Koj Li Kev Tshawb Fawb
Video: Ceeb toom-siv -TingSpeak+ESP32-Wireless-Temp- Vaum-Sensor: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hauv qhov kev qhia no, peb yuav ntsuas qhov sib txawv ntawm qhov kub thiab txias cov ntaub ntawv siv Temp thiab humidity sensor. Koj tseem yuav kawm paub yuav xa cov ntaub ntawv no mus rau ThingSpeak li cas. Yog li koj tuaj yeem tsim lub ceeb toom ceeb toom hauv koj li ntawv ntawm tus nqi tshwj xeeb
Kauj ruam 1: Kho vajtse thiab Software xav tau
Kho vajtse:
- ESP-32: ESP32 ua kom yooj yim siv Arduino IDE thiab Arduino Wire Language rau IoT daim ntawv thov. Qhov ESp32 IoT Module no sib txuas Wi-nkaus, Bluetooth, thiab Bluetooth BLE rau ntau yam kev siv sib txawv. Cov qauv no tau los ua tiav nrog 2 CPU cores uas tuaj yeem tswj tau thiab siv zog ib tus zuj zus, thiab nrog lub moos hloov pauv tau ntawm 80 MHz txog 240 MHz. Qhov ESP32 IoT WiFi BLE Module nrog Kev Sib Txuas USB tau tsim los kom haum rau txhua qhov khoom ncd.io IoT. Saib xyuas cov ntsuas thiab tswj kev xa tawm, FETs, PWM cov tswj, solenoids, li qub, lub cev muaj zog thiab ntau ntxiv los ntawm txhua qhov chaw hauv ntiaj teb no siv nplooj ntawv web lossis nplooj siab rau server. Peb tsim peb tus kheej version ntawm ESP32 kom haum rau NCD IoT cov cuab yeej, muab cov kev xaiv nthuav dav ntau dua li lwm yam cuab yeej hauv ntiaj teb! Kev koom ua ke USB chaw tso cai yooj yim ntawm ESP32. ESP32 IoT WiFi BLE Module yog lub platform zoo kawg rau IoT daim ntawv thov txhim kho. Qhov ESP32 IoT WiFi BLE Module no tuaj yeem tsim kho siv Arduino IDE.
- IoT Long Range Wireless Kub Thiab Vaum Sensor: Muaj Ntau Yam Wireless Wireless Kub Kub Sensor. Qib nrog Sensor Kev daws teeb meem ntawm ± 1.7%RH ± 0.5 ° C. Txog li 500, 000 Kev Tshaj Tawm los ntawm 2 AA Roj Teeb. Kev ntsuas -40 ° C txog 125 ° C nrog Cov Roj Teeb uas Ciaj sia Cov Kev Ntsuas no. Zoo Tshaj 2-mais LOS Range & 28 mais nrog High-Gain Antennas. Interface rau Raspberry Pi, Microsoft Azure, Arduino, thiab Ntau Ntxiv.
- Ntev-Ntau Wireless Wireless Mesh Modem nrog USB Interface
Siv Software
- Arduino IDE Cov
- ThingSpeak
- IFTTT
Qiv Siv
- PubSubClient Library
- Hlau.h
Arduino Client rau MQTT
- Lub tsev qiv ntawv no muab cov neeg siv los ua qhov yooj yim tshaj tawm/sau npe xa xov nrog lub server uas txhawb MQTT
- Yog xav paub ntxiv txog MQTT, mus saib mqtt.org.
Rub tawm
Qhov hloov tshiab kawg ntawm lub tsev qiv ntawv tuaj yeem rub tawm los ntawm GitHub
Cov ntaub ntawv
Lub tsev qiv ntawv los nrog tus lej piv txwv piv txwv. Saib Cov Ntaub Ntawv> Piv Txwv> PubSubClient hauv Arduino daim ntawv thov. Cov ntaub ntawv API tag nrho
Kho vajtse sib xws
Lub tsev qiv ntawv siv Arduino Ethernet Client API rau kev cuam tshuam nrog cov khoom siv sib txuas hauv qab. Qhov no txhais tau tias Nws Tsuas Ua Haujlwm nrog cov naj npawb ntawm cov laug cam thiab cov tiv thaiv, suav nrog:
- Arduino Ethernet
- Arduino Ethernet Shield
- Arduino YUN - siv suav nrog YunClient nyob rau hauv qhov chaw ntawm EthernetClient, thiab nco ntsoov ua Bridge.begin () ua ntej
- Arduino WiFi Shield - yog tias koj xav xa cov ntawv ntau dua 90 bytes nrog daim thaiv no, pab kom MQTT_MAX_TRANSFER_SIZE xaiv hauv PubSubClient.h.
- SparkFun WiFly Shield - thaum siv nrog lub tsev qiv ntawv no
- Intel Galileo/Edison
- ESP8266
- ESP32 Tam sim no lub tsev qiv ntawv tsis tuaj yeem siv nrog kho vajtse raws li ENC28J60 nti - xws li Nanode lossis Nuelectronics Ethernet Shield. Rau cov ntawd, muaj lwm lub tsev qiv ntawv muaj.
Cov Tsev Qiv Hlau
Lub tsev qiv ntawv Hlau tso cai rau koj sib txuas lus nrog I2C cov cuab yeej, feem ntau tseem hu ua "2 xaim" lossis "TWI" (Ob Txoj Kev Siv Hluav Taws Xob), tuaj yeem rub tawm los ntawm Wire.h
Kev Siv Yooj Yim
- Wire.begin () Pib siv Wire hauv hom tswv, qhov uas koj yuav pib thiab tswj cov ntaub ntawv xa mus. Qhov no yog qhov siv ntau tshaj thaum cuam tshuam nrog feem ntau I2C cov khoom siv sab hauv.
- Wire.begin (chaw nyob) Pib siv Wire hauv hom qhev, qhov uas koj yuav teb ntawm "chaw nyob" thaum lwm I2C masters chips pib sib tham. Kev Tshaj Tawm Wire.beginTransmission (chaw nyob) Pib kis tshiab rau lub cuab yeej ntawm "chaw nyob". Master hom yog siv.
- Wire.write (cov ntaub ntawv) Xa cov ntaub ntawv. Nyob rau hauv hom tswv, pibTransmission yuav tsum raug hu ua ntej.
- Wire.endTransmission () Hauv hom kev ua haujlwm, qhov no xaus qhov kev sib kis thiab ua rau tag nrho cov ntaub ntawv tsis raug xa mus.
Txais
- Wire.requestFrom (chaw nyob, suav) Nyeem "suav" bytes los ntawm ib lub cuab yeej ntawm "chaw nyob". Master hom yog siv.
- Wire.available () Rov qab tus naj npawb ntawm bytes muaj los ntawm kev hu xov tooj txais.
- Wire.read () Tau txais 1 byte.
Kauj Ruam 2: Tshaj Tawm Txoj Cai rau ESP32 Siv Arduino IDE
- Ua ntej rub tawm cov cai koj tuaj yeem pom qhov ua haujlwm ntawm lub ntsuas cua ntawm qhov muab txuas.
- Rub tawm thiab suav nrog PubSubClient Library thiab Wire.h Library.
- Koj yuav tsum muab koj tus lej API, SSID (WiFi Lub Npe) thiab Lo lus zais ntawm lub network muaj.
- Sau thiab xa cov cai Temp-ThinSpeak.ino.
- Txhawm rau txheeb xyuas qhov kev sib txuas ntawm lub cuab yeej thiab cov ntaub ntawv xa mus, qhib lub ntsuas saib. Yog tias tsis pom cov lus teb, sim tshem koj lub ESP32 thiab tom qab ntawd txuas nws dua. Nco ntsoov tias tus nqi baud ntawm Serial monitor tau teeb tsa rau tib qho uas tau teev tseg hauv koj tus lej 115200.
Kauj Ruam 3: Serial Monitor Output
Kauj Ruam 4: NTUJ
Kauj Ruam 5: Tsim IFTTT Applet
- Txhawm rau xa cov ntaub ntawv mus rau ThingSpeak koj tuaj yeem pom nws ntawm qhov txuas no.
- IFTTT yog qhov kev pabcuam web uas tso cai rau koj tsim cov applets uas ua haujlwm hauv kev teb rau lwm qhov kev nqis tes ua. Koj tuaj yeem siv IFTTT Webhooks kev pabcuam los tsim lub vev xaib thov kom ua rau muaj kev nqis tes ua. Qhov kev nqis tes tuaj yog HTTP thov mus rau lub vev xaib, thiab qhov ua tawm yog email lus.
- Ua ntej, tsim ib tus as khauj IFTTT.
- Tsim ib qho applet. Xaiv Kuv Applets.
- Nyem rau khawm Applet tshiab.
- Xaiv qhov kev nqis tes ua. Nyem lo lus no.
- Nyem rau Webhooks kev pabcuam. Nkag mus rau Webhooks hauv kev tshawb nrhiav. Xaiv Webhooks.
- Xaiv tus txhais.
- Ua kom tiav cov teb txhais. Tom qab koj xaiv Webhooks ua tus txhais, nyem rau Txais Txais lub vev xaib lub npov kom txuas ntxiv. Sau lub npe txheej xwm
- Tsim txhais.
- Tam sim no tus txhais tau tsim, rau qhov ua rau nyem qhov ntawd.
- Nkag mus rau email hauv kab ntawv tshawb nrhiav, thiab xaiv lub npov Email.
- Tam sim no xaiv ua. Xaiv lub Xa email rau kuv lub thawv thiab tom qab ntawd nkag mus rau cov lus qhia.
- Rov qab tau koj cov ntaub ntawv qhia txog Webhooks. Xaiv Kuv Cov Applets, Cov Kev Pabcuam thiab tshawb rau Webhooks. Nyem Webhooks thiab Cov Ntaub Ntawv khawm. Koj pom koj tus yuam sij thiab hom ntawv rau xa daim ntawv thov. Sau lub npe txheej xwm. Lub npe txheej xwm rau qhov piv txwv no yog Kev co thiab TempData. Koj tuaj yeem sim cov kev pabcuam siv khawm ntsuas lossis los ntawm kev muab qhov URL tso rau hauv koj tus browser.
Kauj Ruam 6: Tsim Kev Tswj Sijhawm los Ua Koj Li Kev Tshawb Fawb
Ntsuam xyuas koj li ThingSpeak cov ntaub ntawv channel thiab ua rau lwm yam xwm txheej.
- Nyem rau Apps, TimeControl, thiab tom qab ntawd nyem Tshiab TimeControl.
- Txuag koj Lub Sijhawm Tswj.
Pom zoo:
ESP32 TTGO WiFi Lub Zog Muaj Zog: 8 Kauj Ruam (nrog Duab)
ESP32 TTGO WiFi Lub Teeb Pom Kev Zoo: Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas tso saib WiFi lub teeb liab lub zog siv ESP32 TTGO board.Watch cov vis dis aus
ESP32 IoT Dej Rhaub: 12 Kauj Ruam
ESP32 IoT Dej Rhaub: Cayenne IoT geyser (Tank Dej Kub hauv Asmeskas) yog lub zog txuag hluav taws xob uas yuav pab koj saib xyuas thiab tswj hwm koj tsev neeg cov dej kub, txawm tias thaum koj tsis nyob hauv tsev. Nws yuav tso cai rau koj hloov koj lub geyser rau thiab tawm, teem sijhawm rau switc
Ubidots + ESP32- Predictive Machine Monitoring: 10 Kauj Ruam
Ubidots + ESP32- Predictive Machine Monitoring: Predictive analysis of machine vibration and temp by create mail events and a record of vibration in google sheet using Ubidots.Predictive Maintenance and Machine Health MonitoringThe rising of new technology i.e., Internet of Things, hnyav ind
Txaus Siab Rau Koj Lub Caij Ntuj Sov Nrog M5StickC ESP32 Ntxuam - Kho Kom Ceev: 8 Kauj Ruam
Txaus Siab Rau Koj Lub Caij Ntuj Sov Nrog M5StickC ESP32 Ntxuam - Kho Kom Ceev: Hauv qhov haujlwm no peb yuav kawm paub tswj FAN nrawm li cas siv M5StickC ESP32 board thiab L9110 ntxuam module
Pib Nrog ESP32 - Txhim kho ESP32 Boards hauv Arduino IDE - ESP32 Blink Code: 3 Cov Kauj Ruam
Pib Nrog ESP32 | Txhim kho ESP32 Boards hauv Arduino IDE | ESP32 Blink Code: Hauv cov lus qhia no peb yuav pom yuav pib ua haujlwm nrog esp32 thiab yuav ua li cas rau nruab esp32 cov laug cam rau hauv Arduino IDE thiab peb yuav ua haujlwm esp 32 kom khiav ntsais muag code siv arduino ide