Cov txheej txheem:

Txuas Txuas Chaw Huab Cua Nrog ESP32: 3 Cov Kauj Ruam
Txuas Txuas Chaw Huab Cua Nrog ESP32: 3 Cov Kauj Ruam

Video: Txuas Txuas Chaw Huab Cua Nrog ESP32: 3 Cov Kauj Ruam

Video: Txuas Txuas Chaw Huab Cua Nrog ESP32: 3 Cov Kauj Ruam
Video: ស្វែងរកអ្នកពាក់ម៉ាស​​ ដើម្បីទប់ស្កាត់​Covid-19 | Mask Detection on Arduino ESP8266 Wi-Fi 2024, Hlis ntuj nqeg
Anonim
Txuas Chaw Huab Cua Nrog ESP32
Txuas Chaw Huab Cua Nrog ESP32
Txuas Chaw Huab Cua Nrog ESP32
Txuas Chaw Huab Cua Nrog ESP32

Hauv qhov kev qhia no koj yuav kawm paub teeb tsa chaw nres tsheb huab cua raws li ESP32, thiab yuav ua li cas saib xyuas nws cov ntawv nyeem nyob deb, ntawm Blynk app ntxiv rau ntawm lub vev xaib.

Khoom siv

1x ESP32 board + usb fais fab cable

1 x DHT11 sensor

1x lub teeb sensor 1x 10 Kohm resistor

1 x CJMCU CCS811 sensor

ob peb jumper xov hlau

tus naj npawb ntawm cov laug cam lossis PCB (yog tias koj txiav txim siab ua qee qhov txuas) tus poj niam lub taub hau (yog tias koj txiav txim siab ua tus laug)

Kauj Ruam 1: Teeb Chaw Huab Cua

Lub sijhawm ncua sijhawm ntawm cov txheej txheem sib dhos muaj nyob ntawm no.

Txuas cov khoom siv

Txuas cov sensors raws li hauv qab no:

Lub teeb sensor

Ib kawg rau 3V lwm qhov kawg rau 10kohm resistor uas nyob rau hauv lem txuas nrog GND. Qhov kawg ntawm LDR kuj tseem txuas nrog tus pin D34 ntawm ESP32

CJMCU CCS811

3V → 3V ntawm ESP32 pawg thawj coj saib

GND thiab GND

SDA -D21 tus pin ntawm ESP32

SCL -D22 tus pin ntawm ESP32

QAB → GND

DHT11

GND -GND ntawm ESP32

VCC → 3V ntawm ESP32

Tawm -D34 ntawm ESP32

Kauj Ruam 2: Program ESP32 Board

Program lub ESP32 Board
Program lub ESP32 Board
Program lub ESP32 Board
Program lub ESP32 Board
Program lub ESP32 Board
Program lub ESP32 Board

Tua tawm Arduino IDE.

Xaiv koj lub rooj tsav xwm ESP32 los ntawm cov cuab yeej ntawv qhia zaub mov.

Nco ntsoov tias koj tseem tau xaiv qhov chaw nres nkoj raug.

Muab cov cai no tso rau ntawm lub rooj tsavxwm. Yog tias koj qhib lub ntsuas saib (teeb tsa tus lej baud rau 9600), koj yuav tsum muaj peev xwm saib cov txiaj ntsig tau sau tseg los ntawm cov ntsuas sib txawv

Kauj Ruam 3: Saib Xyuas Chaw Nres Tsheb Huab Cua Los Ntawm Blynk App

Saib Xyuas Chaw Nres Tsheb Huab Cua Nyob Ntawm Via Blynk App
Saib Xyuas Chaw Nres Tsheb Huab Cua Nyob Ntawm Via Blynk App
Saib xyuas Chaw Nres Tsheb Huab Cua Los Ntawm Blynk App
Saib xyuas Chaw Nres Tsheb Huab Cua Los Ntawm Blynk App
Saib xyuas Chaw Nres Tsheb Huab Cua Los Ntawm Blynk App
Saib xyuas Chaw Nres Tsheb Huab Cua Los Ntawm Blynk App

Blynk app ua rau peb saib xyuas qhov txiaj ntsig tau teev tseg los ntawm chaw nres tsheb huab cua nyob deb, ncaj qha ntawm peb lub xov tooj ntawm tes, tsis hais peb nyob deb li cas ntawm chaw nres tsheb huab cua.

Txhua yam peb xav tau yog blynk app thiab kev sib txuas hauv is taws nem. Hauv txoj haujlwm no koj yuav kawm paub yuav ua li cas saib xyuas cov txiaj ntsig tau teev tseg los ntawm LDR sensor thiab DHT11 sensor nkaus xwb.

Tsim txoj haujlwm tshiab hauv Blynk app

Tom qab koj tau rub tawm lub app thiab koj tau ua tiav nkag mus rau koj tus lej nyiaj, pib los ntawm kev tsim ib qhov haujlwm tshiab.

Xaiv koj lub cuab yeej

Xaiv tus qauv kho vajtse uas koj yuav siv. Yog tias koj ua raws cov lus qhia no koj yuav zaum siv ESP32 pawg thawj coj.

Tus Thawj Token

Auth Token yog tus cim tshwj xeeb uas xav tau los txuas koj lub cuab yeej rau koj lub xov tooj. Txhua qhov haujlwm tshiab koj tsim yuav muaj nws tus kheej Auth Token. Koj yuav tau txais Auth Token txiav ntawm koj tus email tom qab tsim qhov project. Koj tseem tuaj yeem luam nws ntawm tus kheej. Nyem rau ntu khoom siv thiab xaiv cov cuab yeej xav tau, Thiab koj yuav pom cov cim

Teeb tsa Blynk app

Koj yuav tsum tsim txoj haujlwm ntawm blynk uas yog tsim los rau lub hom phiaj ntawm kev saib xyuas qhov ntsuas tsis tau kaw los ntawm chaw nres tsheb huab cua. Lob 3 tus nqi zaub widgets.

Kho lawv ib tus zuj zus. Thawj yuav tau txais V6 raws li kev nkag, thib V5 thiab thib V0. Koj yuav pom tias lawv txhua tus tau teeb tsa kom thawb hom.

Program lub ESP32 board

Tua tawm arduino IDE thiab qhib qhov haujlwm no. Xaiv lub rooj tsav xwm uas koj siv los ntawm Cov Ntawv qhia zaub mov, nrog rau qhov chaw nres nkoj raug. Upload cov cai. Yog tias kev tshaj tawm tiav, koj yuav tsum tuaj yeem pom cov lus los ntawm Blynk ntawm tus saib xyuas.

Pom zoo: