Cov txheej txheem:
- Kauj Ruam 1: Cov Khoom Peb Xav Tau
- Kauj ruam 2: Tsim Koj Cov Khoos Phis Tawj
- Kauj Ruam 3: teeb tsa AskSensors
- Kauj ruam 4: Rub tawm Txoj Cai
- Kauj ruam 5: Khiav Code
Video: Yuav Ua Li Cas Saib Xyuas Ultrasonic Distance Nrog ESP8266 thiab AskSensors IoT Cloud: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Cov lus qhia no nthuav qhia yuav ua li cas saib xyuas qhov nrug ntawm ib qho khoom siv ultrasonic HC-SR04 sensor thiab ESP8266 ntawm MCU txuas nrog rau AskSensors IoT huab.
Kauj Ruam 1: Cov Khoom Peb Xav Tau
Peb yuav xav tau cov cuab yeej hauv qab no:
- ESP8266 Node MCU
- Ultrasonic HC-SR04 Sensor
- Pawg Mov Ci
- Jumper xov hlau
- Micro USB kab
Kauj ruam 2: Tsim Koj Cov Khoos Phis Tawj
Txuas lub ntsuas hluav taws xob ultrasonic mus rau ESP8266 ntawm MCU:
- HC-SR01 TRIG tus pin rau ESP8266 D1 tus pin
- HC-SR01 ECHO tus pin rau ESP8266 D2 tus pin
- HC-SR01 VCC tus pin rau 5V (koj tseem tuaj yeem sim nrog 3.3V)
- Av rau hauv av
Nco tseg: ESP8266 GPIOs xav tau 3V3 cov cim (tsis yog 5V sib txawv). Txhawm rau hack sai, yog tias koj siv HC-SR (5V version), peb pom zoo kom ntxiv cov tshuaj tiv thaiv kab mob nruab nrab ntawm HC-SR TRIG thiab ECHO pins thiab ESP8266 pins. Txawm li cas los xij, rau kev tsim khoom, yuav tsum tau hloov 3V3/5V qib (txheeb xyuas nplooj ntawv no).
Txwv tsis pub, ESP8266 tau sib xws nrog HC-SR 3V3 version thiab tsis muaj kev hloov pauv qib xav tau hauv qhov no.
Kauj Ruam 3: teeb tsa AskSensors
- Tau txais tus lej pub dawb ntawm
- Nkag mus rau hauv thiab tsim lub Sensor tshiab.
- Luam koj li Sensor API KEY IN.
Kauj ruam 4: Rub tawm Txoj Cai
Rub tawm cov cai los ntawm AskSensors github Page.
Decompress nws thiab sau cov ntaub ntawv hauv qab no:
const char* wifi_ssid = "……………….."; // SIB
const char* wifi_password = "……………….."; // WIFI const char* apiKeyIn = "………………"; // API KEY IN
Kauj ruam 5: Khiav Code
Txuas ESP8266 rau koj lub khoos phis tawj thiab xa cov cai.
Tam sim no, Mus rau koj AskSensors dashboard.
Qhib koj lub sensor nplooj ntawv thiab ntxiv daim duab tshiab kom pom koj cov ntaub ntawv hauv lub sijhawm tiag tiag raws li qhia hauv daim duab.
Pom zoo:
Kev Saib Xyuas Cog thiab Kev Ceeb Toom Nrog ESP8266 thiab AskSensors IoT Huab: 6 Cov Kauj Ruam
Kev Saib Xyuas Cov Cog thiab Kev Ceeb Toom Nrog ESP8266 thiab AskSensors IoT Cloud: Txoj haujlwm no muaj lub hom phiaj txhawm rau txhim kho cov txheej txheem cog cog ntse siv ESP8266 thiab AskSensors IoT Platform. uas pab ua kom dej nyab
Yuav Ua Li Cas Txuas Cov Av Moisture Sensor thiab ESP8266 rau AskSensors IoT Cloud: 10 Kauj Ruam
Yuav Ua Li Cas Txuas Cov Av Moisture Sensor thiab ESP8266 rau AskSensors IoT Cloud: Cov lus qhia no qhia koj yuav ua li cas txuas koj cov av noo noo thiab ESP8266 mus rau IoT huab. uas ntsuas cov ntsiab lus volumetric ntawm cov dej sab hauv yog li
Kev Nyuaj Siab: Kev Saib Xyuas thiab Saib Xyuas Ntxiv rau Kev Teeb Meem: 9 Cov Kauj Ruam
Hard Drive: Kev Saib Xyuas thiab Kev Saib Xyuas Ntxiv Teeb Meem: Daim duab saum toj no yog Hard Drive ib txwm muaj. Cov no yog cov tsav tsheb feem ntau siv niaj hnub no, tab sis tsis tas yuav nrawm tshaj. Tib neeg siv tus tsav no rau nws tus nqi qis dua gigabyte thiab lub neej ntev dua. Phau ntawv qhia no yuav qhia koj txog qhov sib txawv
Yuav Ua Li Cas Ua IoT Device los Tswj Cov Khoom Siv thiab Saib Xyuas Huab Cua Siv Esp8266: 5 Cov Kauj Ruam
Yuav Ua Li Cas Ua IoT Device los Tswj Cov Khoom Siv thiab Saib Xyuas Huab Cua Siv Esp8266: Internet ntawm yam (IoT) yog kev sib txuas sib txuas ntawm cov cuab yeej siv lub cev (tseem hu ua "txuas nrog cov cuab yeej" thiab "ntse cov cuab yeej"), cov tsev, thiab lwm yam khoom - suav nrog cov khoom siv hluav taws xob, software, sensors, actuators, thiab
ESP8266: Yuav Ua Li Cas Saib Xyuas Kub thiab Vaum: 12 Kauj Ruam
ESP8266: Yuav Ua Li Cas Saib Xyuas Kub thiab Vaum: Hauv kev qhia hnub no, peb yuav siv ESP-01, uas yog ESP8266 hauv kev teeb tsa 01 (nrog tsuas yog 2 GPIO), rau qhov ntsuas kub thiab av noo ntawm DHT22 sensor. Kuv yuav qhia koj txog cov phiaj xwm hluav taws xob thiab ESP txoj haujlwm nrog Arduino