Cov txheej txheem:

Motion Triggered Image Capture thiab Email: 6 Kauj Ruam
Motion Triggered Image Capture thiab Email: 6 Kauj Ruam

Video: Motion Triggered Image Capture thiab Email: 6 Kauj Ruam

Video: Motion Triggered Image Capture thiab Email: 6 Kauj Ruam
Video: Tub ntsuag ciaj ua Xeev txwj. 9/19/2018 2024, Hlis ntuj nqeg
Anonim
Tsab ntawv tsa suab ua duab ntes thiab Email
Tsab ntawv tsa suab ua duab ntes thiab Email
Tsab ntawv tsa suab txhais cov duab ntes thiab Email
Tsab ntawv tsa suab txhais cov duab ntes thiab Email

Peb tsim raws li ESP32-CAM cov phiaj xwm yav dhau los thiab tsim cov lus tsa suab kom pom cov kab ke uas tseem xa email nrog cov duab ua daim ntawv txuas. Qhov kev tsim no siv ESP32-CAM board nrog rau PIR sensor module uas yog raws li AM312 sensor. Pawg thawj coj tau siv sijhawm ntau nyob rau hauv hom pw tsaug zog thiab sawv los coj cov duab thaum pom cov lus tsa suab. Hauv ntu 1, peb hloov kho daim duab teev sijhawm dhau los yav dhau los txhawm rau ntxiv qhov ua kom pom lub ntsej muag. Tom qab ntawd peb hloov kho daim duab thiab ntxiv qhov tshwj xeeb email hauv ntu 2

Cov vis dis aus saum toj no npog txhua yam koj xav paub thiab tseem piav qhia qhov kos duab tau muab tso ua ke.

Kauj Ruam 1: Sau Cov Khoom Siv Hluav Taws Xob

Sau cov Electronics
Sau cov Electronics
Sau cov Electronics
Sau cov Electronics

Pawg ESP32-CAM twb muaj lub koob yees duab, thiab daim npav microSD uas peb xav tau rau daim duab no. Ntxiv rau qhov no, koj yuav xav tau daim npav microSD, PIR sensor module (raws li AM312 sensor), lub hom phiaj dav dav NPN transistor (BC547, BC548, BC549 lossis 2N3904), microUSB breakout board, 10K Ohm thiab 1K ohm resistor thiab tseem yog USB rau hloov pauv mus rau xa cov duab kos.

Kauj Ruam 2: Tshaj Tawm Sketch rau Tshooj 1

Upload Sketch rau Part 1
Upload Sketch rau Part 1

ESP32-CAM lub rooj tsavxwm tsis muaj lub onboard USB txuas yog li koj yuav tsum siv lub USB sab nraud rau hloov pauv mus rau xa cov duab kos. Koj tuaj yeem siv cov xov txuas txuas uas tau hais los saum toj no tab sis nco ntsoov tias USB rau cov hloov pauv txuas tau txuas nrog hauv 3.3V hom.

Nws raug nquahu kom siv sab nraud 5V muab lub zog rau lub rooj tsavxwm, tshwj xeeb yog tias koj tab tom siv FTDI pawg thawj coj tawm. Rau sab nraud 5V cov khoom siv, USB yooj yim breakout board yuav ua tau zoo xwb. Muaj qee qhov ua tiav hauv kev txhawb lub rooj tsav xwm ncaj qha los ntawm CP2102 pawg thawj coj tawg kom koj tuaj yeem sim ua ntej. Lub rooj tsavxwm tseem muaj tus pin 3.3V yog tias xav tau.

Lub jumper xav tau los tso lub rooj tsavxwm hauv hom rub tawm. Thaum koj muaj txhua yam txuas nrog, txuas lub zog rau lub rooj tsavxwm, qhib lub davhlau ya nyob twg (Cov Cuab Yeej-> Saib Xyuas Ib Leeg) nrog tus lej baud ntawm 115, 200 thiab nias lub pob pib dua. Koj yuav tsum tau txais qhov tso tawm raws li qhia hauv daim duab thiab qhov no yuav qhia tias txhua yam ua haujlwm raws li qhov xav tau.

Koj tuaj yeem rub tawm daim duab siv qhov txuas hauv qab no:

Kauj Ruam 3: Txuas lub Circuit thiab Test

Txuas lub Circuit Court thiab Test
Txuas lub Circuit Court thiab Test
Txuas lub Circuit Court thiab Test
Txuas lub Circuit Court thiab Test

Tsim lub voj voog uas siv lub khob cij thiab ntsuas kom paub tseeb tias txhua yam ua haujlwm raws li qhov xav tau. Kuv ntxiv lub ntsuas cua mus rau qhov ntsuas qhov kawg sensor los pab txiav txim siab nws lub xeev. Thaum koj zoo siab nrog txoj kev txhua yam ua haujlwm, txav mus rau ntu 2.

Kauj ruam 4: Nruab Mail Mail Client Library

Nruab Mail Mail Client Library
Nruab Mail Mail Client Library
Nruab Mail Mail Client Library
Nruab Mail Mail Client Library

Qhib tus thawj tswj tsev qiv ntawv thiab ntaus hauv "ESP32 Mail Client". Nruab ib lub tsev qiv ntawv uas pom zoo li peb xav tau qhov no rau daim duab.

Kauj Ruam 5: Tshaj Tawm Sketch rau Tshooj 2

Upload Sketch rau Part 2
Upload Sketch rau Part 2
Upload Sketch rau Part 2
Upload Sketch rau Part 2
Upload Sketch rau Part 2
Upload Sketch rau Part 2

Rub tawm cov duab kos los ntawm qhov txuas hauv qab no:

Qhib nws siv Arduino IDE thiab tom qab ntawd hloov kho nws nrog koj cov ntsiab lus. Koj yuav tsum tau ntxiv lub npe network thiab tus lej zais raws li pawg thawj coj xav tau txuas rau WiFI network. Koj kuj tseem yuav tsum tau muab email chaw nyob nrog rau tus password rau pawg thawj coj saib yuav xa email. Kuv xav kom tsim tus lej GMAIL tshiab. Thaum tus as khauj raug tsim, koj yuav tsum pab kom muaj kev ruaj ntseg tsawg dua los ntawm kev mus saib qhov txuas hauv qab no:

myaccount.google.com/lesssecureapps?pli=1

Koj kuj yuav tsum qhia tus neeg txais thiab koj tuaj yeem muaj ntau yam yog xav tau. Saib cov vis dis aus kom paub ntau ntxiv. Thaum tag nrho cov no ua tiav, xa cov duab kos rau lub rooj tsavxwm thiab ua kom nws ON. Kuv xav pom zoo txuas lub davhlau ya nyob twg thiab saib cov khoom tawm raws li qhov no yuav ceeb toom rau koj yog tias muaj qhov ua yuam kev.

Yog tias txhua yam ua haujlwm tau raws li qhov xav tau, tom qab ntawv pawg thawj coj yuav tsum ntes, khaws cov duab thiab tseem xa nws hla raws li email.

Kauj Ruam 6: Ntxiv Cov Khoom Siv Hluav Taws Xob mus rau qhov kaw

Ntxiv Cov Khoom Siv Hluav Taws Xob rau Qhov Ruaj Ntseg
Ntxiv Cov Khoom Siv Hluav Taws Xob rau Qhov Ruaj Ntseg
Ntxiv Cov Khoom Siv Hluav Taws Xob rau Qhov Ruaj Ntseg
Ntxiv Cov Khoom Siv Hluav Taws Xob rau Qhov Ruaj Ntseg
Ntxiv Cov Khoom Siv Hluav Taws Xob rau Qhov Ruaj Ntseg
Ntxiv Cov Khoom Siv Hluav Taws Xob rau Qhov Ruaj Ntseg

Kuv siv lub thawv ntawv los ntawm qhov txuas hauv qab no:

Kuv ntxiv kev txhawb nqa thiab luam tawm nws lub ntsej muag, uas tsis tau ua tiav zoo tab sis qhov no yuav tsum ua haujlwm tam sim no. Txij li thaum PIR sensor tau loj me me rau lub thawv ntawv, Kuv desoldered lub sensor thiab txuas nws mus rau PCB siv cov xov hlau. Tom qab ntawd kuv tsim cov kev cuam tshuam sib txuas siv lub protoboard thiab txuas nws rau hauv qhov chaw. Siv daim duab txuas uas tau qhia ua ntej los txuas nws txhua qhov ua ke thiab koj tuaj yeem ntxiv qee daim kab xev Kapton rau rwb thaiv tsev.

Kuv pib los ntawm lo rau hauv PIR sensor, ua raws li PIR PCB. Tom qab ntawd kuv tau muab ESP32 pawg thawj coj saib sab hauv thiab pom tias rooj plaub tsis tso cai rau koj nkag mus rau daim npav microSD tab sis qhov no tsis muaj teeb meem rau kuv li cov duab yuav xa tuaj. Tom qab ntawd kuv tau ntxiv lub rooj sib tham sib tham thiab lo rau hauv microUSB pawg thawj coj tawg. Thaum kawg, Kuv khoov lub transistor kom lub hau kaw rau qhov chaw. Lub hwj chim ntawm lub rooj tsavxwm thiab nws yuav tsum siv daim duab thaum pom cov lus tsa suab.

Yog tias koj nyiam qhov tshaj tawm no, tom qab ntawd tsis txhob hnov qab ua raws peb siv cov kab ntawv txuas hauv qab no vim peb yuav tsim ntau txoj haujlwm ntxiv zoo li qhov no:

  • YouTube:
  • Koj li xyoob ntoo Instagram:
  • Facebook:
  • Twitter:
  • BnBe Lub Vev Xaib:

Pom zoo: