Cov txheej txheem:

Lub Tsev Sensor Me: 5 Kauj Ruam
Lub Tsev Sensor Me: 5 Kauj Ruam

Video: Lub Tsev Sensor Me: 5 Kauj Ruam

Video: Lub Tsev Sensor Me: 5 Kauj Ruam
Video: Rau rau siab rau koj lub me neej nkauj hnub yaj nkauj tshiab 2024, Kaum ib hlis
Anonim
Lub Tsev Sensor Me
Lub Tsev Sensor Me
Lub Tsev Sensor Me
Lub Tsev Sensor Me
Lub Tsev Sensor Me
Lub Tsev Sensor Me
Lub Tsev Sensor Me
Lub Tsev Sensor Me

Nyob zoo cov phooj ywg, Kuv rov los nrog kuv qhov haujlwm tshiab uas yog lub tsev me me uas muaj ntau hom kev ntsuas thiab tseem ua haujlwm nyob deb ntawm txhua qhov chaw hauv ntiaj teb.

Muaj nuj nqi:

1. It muaj IR sensors uas yog txhawm rau txheeb xyuas tub sab. (Hauv qhov xwm txheej zoo li no nws qhib lub tswb nrov thiab tseem xa ntawv ceeb toom rau koj lub xov tooj.

2. Nws muaj qhov ntsuas kub thiab av noo (DHT-11) uas tig rau kiv cua cia thaum qhov ntsuas kub tau teev tseg tshwj xeeb.

3. It muaj lub teeb pom kev zoo (LDR) uas qhib lub teeb pom kev thaum lub teeb pom kev poob qis dua qhov tshwj xeeb txwv.

4. Light, kub, av noo thiab lwm yam ntaub ntawv sensor tso tawm tsis tu ncua ntawm koj lub cuab yeej ntse. (BLYNK huab)

5. Txhua yam khoom siv xws li lub teeb, kiv cua tswj nyob deb ntawm txhua qhov chaw hauv ntiaj teb. Yog li cia peb pib !!!!!

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau:

1. Daim ntoo (1feet*1/2feet).

2. Daim Sunboard.

3. ESP32 lossis NodeMCU.

4. DHT11.

5. Sawb teeb (Txhua xim).

6. 12volt DC kiv cua.

7. LWD.

8. PCB (qhov loj me).

9. Voltage regulator (7805).

10. 12 volt DC khoom

11. IR sensor.

12. Buzzzer.

13. 2-12 volt relay.

14. ULN2803 lossis ULN2003.

Kauj Ruam 2: Npaj Qauv:

Npaj Qauv
Npaj Qauv
Npaj Qauv
Npaj Qauv

Thawj daim ntawv nplaum rau ntawm daim ntoo (Daim ntawv yuav tsum tau kho kom raug vim tias txhua tus qauv tau teeb tsa ntawm nws).

Txiav lub hnub ci rau txhua qhov me me thiab txhua daim ntawv.

Kauj Ruam 3: Npaj Kho Vajtse:

Npaj Kho Vajtse
Npaj Kho Vajtse
Npaj Kho Vajtse
Npaj Kho Vajtse

Cov txheej txheem tseem ceeb hauv ESP32 no koj tseem tuaj yeem siv ESP8266 (Kuv siv ESP32 vim tias muaj ntau tus lej ADC pins uas tuaj yeem siv rau txuas ntau tus lej ntawm cov cim yav tom ntej thiab nws tseem muaj Wi-nkaus tuaj yeem xiav-hniav thiab BLE rau txuas nrog blynk (rau qhov txwv ntau yam)).

Txuas LDR thiab DHT-11 rau 3.3 Volts tsis nyob ntawm 5 Volts (Nws tuaj yeem ua rau koj lub cuab yeej puas tsuaj). Ntawm no kuv siv ULN2003 uas muaj darlington transistor uas tig rau 12 volt.

Tsuas yog IR sensor ua haujlwm ntawm 5 volts yog li kuv siv qhov faib hluav taws xob los hloov nws mus rau 3.3 volts.

Muab IR sensor tso rau ntawm lub qhov rooj

Koj tuaj yeem rub tawm Schematic thiab PCB hauv qab no:

Kauj ruam 4: Npaj Software:

Npaj Software
Npaj Software
Npaj Software
Npaj Software

Cov kauj ruam yuav tsum ua raws:

1. Installing Arduino: Yog tias koj tsis muaj arduino koj tuaj yeem rub tawm los ntawm qhov txuas

www.arduino.cc/en/main/software

2. Yog koj muaj NodeMCU Ua raws cov kauj ruam no ntxiv nrog arduino:

circuits4you.com/2018/06/21/add-nodemcu-esp8266-to-arduino-ide/

3. Yog koj siv ESP-32 Ua raws cov kauj ruam no ntxiv nrog arduino:

randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/

4. Yog tias koj siv ESP-32 (lub tsev qiv ntawv yooj yim DHT11 tsis tuaj yeem ua haujlwm tau zoo nrog ESP-32) koj tuaj yeem rub tawm los ntawm no:

github.com/beegee-tokyo/DHTesp

5. Download BLYNK app.

6. Download BLYNK lub tsev qiv ntawv.

7. Download code los ntawm hauv qab no.

Hloov lub npe wifi thiab tus password.

Ntxiv koj BLYNK API rau cov lej.

Kauj Ruam 5: Npaj Blynk App thiab Ua tiav:

1. Rub tawm thiab teeb tsa blynk app ntawm koj lub xov tooj ntse.

2. Tsim qhov phiaj xwm tshiab thiab nws yuav xa koj daim ntawv cim npe ntawm koj tus ID nkag mus.

3. Ua kom tiav daim ntawv pov thawj no hauv koj tus lej.

4. Tom qab hloov lub npe wifi thiab tus password tso tus lej.

ntawm no:

tus pin V0 (tus pin virtual) = Kub.

pin V1 = Vaum

tus pin V2 = Lub teeb kom muaj nuj nqis

Lwm cov cuab yeej raug tswj ncaj qha los ntawm cov koob digital.

Thaum siv khawm tus lej tus lej tau muab ncaj qha rau Nyees khawm.

Pom zoo: