Cov txheej txheem:
- Kauj ruam 1: Kho vajtse thiab Software xav tau
- Kauj Ruam 2: Cov Kauj Ruam Xa Cov Ntaub Ntawv mus rau Labview Kev co thiab Kub Platform Siv IoT Long Range Wireless Kev co thiab Kub Sensor thiab ZigBee Tus Saib Xyuas Ntev Ntev Wireless Mesh Modem Nrog USB Interface:
- Kauj Ruam 3: Tshaj Tawm Txoj Cai rau ESP32 Siv Arduino IDE
- Kauj ruam 4: Serial Monitor Output
- Kauj Ruam 5: Ua Ubidots Ua Haujlwm
- Kauj Ruam 6: Tso Tawm
- Kauj Ruam 7: Tsim Cov Txheej Txheem hauv Ubidots
Video: Tsim-Ceeb Toom-Siv-Ubidots+ESP32 thiab Kev Ruaj Ntseg Sensor: 8 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Hauv txoj haujlwm no, peb yuav tsim email ceeb toom ntawm lub tshuab kev co thiab ntsuas kub siv Ubidots-vibration sensor thiab ESP32
Kev co yog tiag tiag mus thiab txav mus los - lossis oscillation - ntawm cov tshuab thiab cov khoom siv hauv cov cuab yeej siv tshuab. Kev co hauv kev lag luam tuaj yeem yog cov tsos mob, lossis mob siab rau, tsis yooj yim, lossis nws tuaj yeem cuam tshuam nrog kev ua haujlwm niaj hnub. Piv txwv li, oscillating sanders thiab vibratory tumblers nyob ntawm qhov kev co kom muaj qhov tshwj xeeb. Sab hauv cov tshuab hluav taws xob thiab cov cuab yeej tsav, tom qab ntawd rov zoo siab kom paub qhov tseeb ntawm qhov tsis tuaj yeem ua rau muaj kev co. Kev co tuaj yeem cuam tshuam qhov teeb meem thiab yog tias tsis muaj kev tshuaj xyuas tuaj yeem ua rau raug mob lossis ua kom nrawm dua. Kev co tuaj yeem tshwm sim los ntawm ib lossis ntau yam ntxiv nyob rau txhua lub sijhawm, qhov siab tshaj plaws tsis txawv txav yog qhov tsis sib xws, ua tsis raug, muab tso rau, thiab xoob. Qhov kev puas tsuaj no tuaj yeem txo qis los ntawm kev txheeb xyuas Kub thiab Kev Ruaj Ntseg Cov Ntaub Ntawv ntawm Ubidots siv esp32 thiab NCD wireless kev co thiab ntsuas kub.
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.
- IoT Long Range Wireless Vibration Thiab Kub Sensor: IoT Long Range Wireless Vibration Thiab Kub Sensor yog roj teeb ua haujlwm thiab wireless, lub ntsiab lus tias tam sim no lossis kev sib txuas xov hlau tsis xav tau rub kom nws nce thiab ua haujlwm. Nws taug qab cov ntaub ntawv kev co ntawm koj lub tshuab tas li thiab ntes thiab ua haujlwm nyob rau lub sijhawm daws teeb meem ua ke nrog lwm qhov ntsuas kub. Hauv qhov no, peb tab tom siv NCD's Long Range IoT Industrial wireless kev co thiab ntsuas kub, khav theeb txog li 2 Mais ntau yam siv cov wireless sib txuas sib txuas ua ke.
- ZigBee Tus Saib Xyuas Ntev Ntau Yam Wireless Mesh Modem nrog USB Interface
Siv Software
- Arduino IDE Cov
- Ubidots
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 () thawj Arduino WiFi Shield - yog tias koj xav xa cov pob 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 kis
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: Cov Kauj Ruam Xa Cov Ntaub Ntawv mus rau Labview Kev co thiab Kub Platform Siv IoT Long Range Wireless Kev co thiab Kub Sensor thiab ZigBee Tus Saib Xyuas Ntev Ntev Wireless Mesh Modem Nrog USB Interface:
- Ua ntej, peb xav tau Labview cov ntawv thov siv uas yog ncd.io Wireless Vibration thiab Kub Sensor.exe cov ntaub ntawv uas tuaj yeem saib.
- Qhov Labview software no yuav ua haujlwm nrog ncd.io wireless Vibration Kub sensor nkaus xwb.
- Txhawm rau siv UI no, koj yuav tsum teeb tsa cov tsav tsheb hauv qab no Teeb tsa lub sijhawm ua haujlwm cav ntawm no 64 ntsis
- 32 bit ib
- Nruab NI Visa Tsav Tsheb
- Nruab LabVIEW Khiav Sijhawm Cav thiab NI-Serial Runtime.
- Pib qhia rau cov khoom no.
Kauj Ruam 3: Tshaj Tawm Txoj Cai rau ESP32 Siv Arduino IDE
- Rub tawm thiab suav nrog PubSubClient Library thiab Wire.h Library.
- Koj yuav tsum muab koj tus kheej tshwj xeeb Ubidots TOKEN, MQTTCLIENTNAME, SSID (WiFi Lub Npe) thiab Lo lus zais ntawm lub network muaj.
- Sau thiab xa Ncd_vibration_and_temperature.ino code.
- 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 4: Serial Monitor Output
Kauj Ruam 5: Ua Ubidots Ua Haujlwm
- Tsim tus as khauj ntawm Ubidots.
- Mus rau kuv qhov profile thiab sau cia tus cim token uas yog tus yuam sij tshwj xeeb rau txhua tus as khauj thiab muab nws tso rau koj tus lej ESP32 ua ntej rub tawm.
- Ntxiv ib lub cuab yeej tshiab rau koj lub Ubidot dashboard lub npe ESP32.
- Nyem rau ntawm cov cuab yeej thiab xaiv cov cuab yeej hauv Ubidots. Tam sim no koj yuav tsum pom cov ntaub ntawv tshaj tawm hauv koj tus lej Ubidots, sab hauv lub cuab yeej hu ua "ESP32".
- Sab hauv lub cuab yeej tsim qhov hloov pauv lub npe tshiab uas koj qhov ntsuas kub yuav pom.
- Tam sim no koj tuaj yeem saib Qhov Kub thiab lwm yam ntaub ntawv ntsuas uas tau pom yav dhau los hauv cov ntawv saib. Qhov no tau tshwm sim vim tias tus nqi ntawm kev nyeem ntawv sib txawv tau dhau los ua txoj hlua thiab khaws cia hauv qhov sib txawv thiab tshaj tawm rau qhov sib txawv sab hauv ntaus ntawv esp32. Mus rau cov ntaub ntawv xaiv dashboard thiab sab hauv dashboard tsim cov cuab yeej sib txawv thiab ntxiv cov cuab yeej tshiab rau koj lub vijtsam dashboard.
- Tsim lub dashboard hauv Ubidots.
Kauj Ruam 6: Tso Tawm
Kauj Ruam 7: Tsim Cov Txheej Txheem hauv Ubidots
- Xaiv Cov Txheej Txheem (los ntawm Cov Ntaub Ntawv dropdown.
- Txhawm rau tsim qhov xwm txheej tshiab, nyem lub cim daj ntxiv rau lub kaum sab xis saum toj ntawm lub vijtsam.
Hom Txheej Txheem Ubidots txhawb nqa cov xwm txheej sib koom ua ke tso cai rau koj xa Cov Txheej Txheem, Kev Ceeb Toom, thiab Kev Ceeb Toom rau cov uas xav paub thaum lawv xav paub. Ubidots 'kev sib koom ua ke ua ntej suav nrog:
1. Email ceeb toom
2. SMS ceeb toom
3. Webhook cov xwm txheej - kawm paub ntau ntxiv
4. Telegram ceeb toom
5. Cov ntawv ceeb toom qeeb - kawm paub ntau ntxiv
6. Lub suab ceeb toom hu - kawm paub ntau ntxiv
7. Rov qab mus rau qhov kev ceeb toom ib txwm muaj - kawm paub ntau ntxiv
8. Geofence ceeb toom - kawm paub ntau ntxiv
- Tom qab ntawd xaiv lub cuab yeej thiab koom nrog qhov sib txawv uas qhia txog cov cuab yeej "qhov tseem ceeb."
- Tam sim no xaiv tus nqi pib rau koj qhov kev tshwm sim los ua kom zoo thiab sib piv nws rau cov cuab yeej muaj txiaj ntsig thiab tseem xaiv lub sijhawm los ua rau koj qhov xwm txheej.
- Tsim thiab teeb tsa cov haujlwm uas yuav tsum ua thiab cov lus rau tus txais: Xa SMS, Email, Webhooks, Telegrams, Hu Xov Tooj, SLACK, thiab webhooks rau cov uas xav paub.
- Kho qhov ceeb toom ceeb toom.
- Txiav txim siab lub qhov rai ua haujlwm cov xwm txheej yuav/tsis tuaj yeem ua.
- Paub meej tias koj Cov Txheej Txheem.
Pom zoo:
ESP32-CAM Tsim Koj Tus Kheej Lub Tsheb Nrog Lub Vev Xaib Live: 4 Kauj Ruam
ESP32-CAM Tsim Koj Tus Kheej Lub Tsheb Nrog Lub Vev Xaib Live: Lub tswv yim yog ua kom cov neeg hlau tsheb piav qhia ntawm no kom pheej yig li sai tau. Yog li ntawd kuv cia siab tias yuav ncav cuag pab pawg loj nrog kuv cov lus qhia ntxaws thiab cov khoom xaiv rau tus qauv pheej yig. Kuv xav qhia koj kuv lub tswv yim rau lub tsheb neeg hlau
ThingSpeak, ESP32 thiab Long Range Wireless Temp thiab Vaum: 5 Kauj Ruam
ThingSpeak, ESP32 thiab Long Range Wireless Temp thiab Vaum: Hauv qhov kev qhia no, peb yuav ntsuas cov ntsuas kub thiab av sib txawv siv Temp thiab cov av noo. Koj tseem yuav kawm paub yuav xa cov ntaub ntawv no mus rau ThingSpeak li cas. Yog li koj tuaj yeem txheeb xyuas nws los ntawm txhua qhov chaw rau cov ntawv thov sib txawv
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
ESP32+RC522+IFTTT = Kev Ruaj Ntseg Hauv Tsev: 5 Kauj Ruam
ESP32+RC522+IFTTT = Kev Ruaj Ntseg Hauv Tsev: Nyob Zoo! Kuv tau ua qhov haujlwm me me nrog ESP32 pawg thawj coj txhim kho, RC522 RFID nyeem ntawv, cov neeg laus hauv tsev thiab IFTTT. Koj yuav tau txais ntawv ceeb toom lossis SMS ntawm lub cuab yeej ntse yog tias ib tus neeg qhib Koj lub qhov rooj thiab tsis tso qhov cim npe RFID hauv 10 vib nas this Qhov no yog nws ua haujlwm li cas
ESP32 - Kev daws teeb meem pheej yig rau hauv Kev Pabcuam Debug: 5 Kauj Ruam
ESP32 - Kev daws teeb meem pheej yig rau hauv Kev Tshaj Tawm Debug: Nyob Zoo, Hauv cov lus qhia no tau piav qhia yuav teeb tsa JTAG adapter pheej yig raws li FTDI 2232HL nti, nrog cov lej pom thiab arduino addon. - FTDI 2232HL module nrog USB txuas pib ntawm 8 $ ntawm ebay thiab tsis xav tau software them nyiaj. Qhov no yog qhov zoo tshaj plaws