Cov txheej txheem:

Capture & Send Images With ESP32-Cam Siv ESP8266 WeMos D1 R1 Wifi Processor Nrog Uno: 7 Kauj Ruam
Capture & Send Images With ESP32-Cam Siv ESP8266 WeMos D1 R1 Wifi Processor Nrog Uno: 7 Kauj Ruam

Video: Capture & Send Images With ESP32-Cam Siv ESP8266 WeMos D1 R1 Wifi Processor Nrog Uno: 7 Kauj Ruam

Video: Capture & Send Images With ESP32-Cam Siv ESP8266 WeMos D1 R1 Wifi Processor Nrog Uno: 7 Kauj Ruam
Video: ESP32-CAM - Guide to making YOUR first DIY Security Camera 2024, Kaum ib hlis
Anonim
Capture & Xa Duab Nrog ESP32-Cam Siv ESP8266 WeMos D1 R1 Wifi Processor Nrog Uno
Capture & Xa Duab Nrog ESP32-Cam Siv ESP8266 WeMos D1 R1 Wifi Processor Nrog Uno
Capture & Xa Duab Nrog ESP32-Cam Siv ESP8266 WeMos D1 R1 Wifi Processor Nrog Uno
Capture & Xa Duab Nrog ESP32-Cam Siv ESP8266 WeMos D1 R1 Wifi Processor Nrog Uno

Kev ntes cov duab siv ESP32-Cam (OV2640) siv ESP8266 WeMos D1 R1 WiFI Processor nrog Uno thiab xa nws mus rau email, txuag rau Google Drive thiab xa mus rau Whatsapp siv Twilio.

Yuav tsum:

  1. ESP8266 WeMos D1 R1 WiFI Processor nrog Uno (https://protosupplies.com/product/esp8266-di-wifi-with-uno-footprint/)
  2. ESP32-Cam Ai-Thinker nrog OV2640 lub koob yees duab (https://robu.in/product/ai-thinker-esp32-cam-development-board-wifibluetooth-with-ov2640-camera-module/)
  3. Cov qhob cij
  4. 10 KOM resistor
  5. Laub khawm

Kauj Ruam 1: ESP8266 WeMos D1 R1 WiFI Processor Nrog Uno

ESP8266 WeMos D1 R1 WiFI Processor Nrog Uno
ESP8266 WeMos D1 R1 WiFI Processor Nrog Uno
ESP8266 WeMos D1 R1 WiFI Processor Nrog Uno
ESP8266 WeMos D1 R1 WiFI Processor Nrog Uno
ESP8266 WeMos D1 R1 WiFI Processor Nrog Uno
ESP8266 WeMos D1 R1 WiFI Processor Nrog Uno

Kauj Ruam 2: ESP32-Cam Ai-Thinker Nrog OV2640

ESP32-Cam Ai-Thinker Nrog OV2640
ESP32-Cam Ai-Thinker Nrog OV2640
ESP32-Cam Ai-Thinker Nrog OV2640
ESP32-Cam Ai-Thinker Nrog OV2640
ESP32-Cam Ai-Thinker Nrog OV2640
ESP32-Cam Ai-Thinker Nrog OV2640

Kauj Ruam 3: Cov Lus Qhia Dav Dav

Hauv qhov haujlwm no peb yuav siv ESP32-cam txhawm rau ntes cov duab siv OV2640 thiab xa nws mus rau email, txuag rau Google Drive thiab xa mus rau Whatsapp siv Twilio. Peb tuaj yeem siv ESP32-cam nrog FTDI programmer vim tias nws tsis tuaj nrog USB txuas tab sis hauv txoj haujlwm no, peb tab tom siv ESP8266 WeMos D1 R1 WiFI Processor nrog Uno txhawm rau tso tus lej. Ntxiv mus, peb tab tom siv Google Apps Script (https://developers.google.com/apps-script) xa cov ntaub ntawv duab mus rau email, txuag rau Google Drive thiab xa mus rau Whatsapp siv Twilio API.

Kauj ruam 4: Schematic

Schematic
Schematic
Schematic
Schematic

Muaj peb tus pin GND thiab ob tus pin rau lub zog: ib qho 3.3V lossis 5V.

UOT thiab UOR yog tus lej txuas. Koj xav tau cov pins no txhawm rau xa cov lej rau koj pawg thawj coj. Ib qho ntxiv, GPIO 0 (Io0) kuj tseem ua lub luag haujlwm tseem ceeb, txij li nws txiav txim siab seb ESP32 nyob hauv lub teeb nyem lossis tsis yog. Thaum GPIO 0 (Io0) txuas nrog GND, ESP32 nyob rau hauv hom nyem. Thaum koj ua tiav uploading

  1. Tshem tawm jumper hlau X
  2. Nias lub RST khawm

Peb siv GPIO2 rau lub laub khawm nkag

Kauj Ruam 5: Nruab ESP32 Board

Hauv qhov piv txwv no, peb siv Arduino IDE los teeb tsa ESP32-CAM board. Yog li, koj yuav tsum muaj Arduino IDE teeb tsa nrog rau ESP32 pawg thawj coj siv Arduino core rau ESP32. Ua raws li ib qho ntawm cov lus qhia tom ntej los teeb tsa ESP32 pawg thawj coj, yog tias koj tsis tau ua dhau los:

Cov lus qhia teeb tsa siv Arduino IDE Tus Thawj Saib Xyuas Haujlwm

- Kev tso tawm ruaj khov txuas:

raw.githubusercontent.com/espressif/arduin…

Pib nrog 1.6.4, Arduino tso cai teeb tsa pob khoom thib peb platform siv Tus Thawj Saib Xyuas Haujlwm. Peb muaj pob khoom muaj rau Windows, Mac OS, thiab Linux (32, 64 ntsis thiab ARM).

  • Txhim kho tam sim no ntws Arduino IDE ntawm 1.8 qib lossis tom qab. Qhov tam sim no nyob ntawm Arduino lub vev xaib.
  • Pib Arduino thiab qhib Qhov Nyiam Qhov rai.
  • Nkag mus rau ib qho ntawm qhov txuas txuas saum toj no rau * Tus Thawj Saib Xyuas Haujlwm Ntxiv URLs * teb. Koj tuaj yeem ntxiv ntau qhov URL, cais lawv nrog tus lej.
  • Qhib Tus Thawj Saib Xyuas Haujlwm los ntawm Cov Cuab Yeej> Pawg ntawv qhia zaub mov thiab teeb tsa * esp32 * platform (thiab tsis txhob hnov qab xaiv koj li `ESP32` lub rooj tsavxwm los ntawm Cov Cuab Yeej> Cov ntawv qhia zaub mov tom qab teeb tsa). Hauv peb rooj plaub yog 'ESP32 Wrover Module'.

Kauj Ruam 6: Kev Txhim Kho

Kev txhim kho
Kev txhim kho
Kev txhim kho
Kev txhim kho

Tom qab ua tiav kev teeb tsa, clone lub chaw cia khoom lossis rub tawm ncaj qha los ntawm Github thiab qhib [esp32_cam.ino] (esp32_cam.ino). Ua ntej xa cov cai, koj yuav tsum tau ntxig koj lub peev xwm network hauv cov kev hloov hauv qab no:

const char* ssid = "REPLACE_WITH_YOUR_SSID"; const char* password = "REPLACE_WITH_YOUR_PASSWORD";

Tsis tas li, tawm tswv yim txog kab qauv lub koob yees duab tshwj xeeb, hauv peb qhov xwm txheej nws yog

#define CAMERA_MODEL_AI_THINKER // Peb muaj tus qauv ntawm Esp32-cam

Ntxiv mus, koj yuav tsum hloov qhov "myScript" Google Apps Script URL nrog koj tsab ntawv URL, "myRecipient" nrog koj tus email & "mySubject" nrog koj cov ncauj lus.

Txoj hlua myScript = "/macros/s/**********/exec"; // Tsim koj li Google Apps Script thiab hloov txoj "myScript" path. String myRecipient = "youremail@gmail"; // Sau koj li email chaw nyob Txoj hlua mySubject = "Duab Captured from Arduino Esp32-Cam"; // Nkag mus rau qee qhov kev kawm

Koj tuaj yeem tsim txoj haujlwm tshiab hauv Google cov ntawv sau thiab luam cov cai los ntawm (Code.gs) thiab hloov POST thov URL nrog koj li server URL. Peb siv Siteground sib koom hosting rau lub hom phiaj no thiab ib qho yooj yim hosting tuaj yeem siv rau lub hom phiaj no.

var url = 'https://server-url/esp32/esp32.php';

Tshaj tawm koj tsab ntawv nrog kev nkag mus tsis qhia npe.

Upload (esp32.php) rau koj lub server nrog rau Twilio PHP SDK uas peb tau suav nrog hauv PHP cov ntaub ntawv. Hloov Twilio Account Sid thiab Auth Token. Nrhiav koj tus Account Sid thiab Tus Thawj Coj Token ntawm twilio.com/console.

$ sid = "xxxxxxxxxxxxx";

$ token = "xxxx";

Koj kuj tseem yuav tsum tau hloov Tus lej WhatsApp nrog tus lej uas koj tau txuas rau hauv Twilio.

-> tsim ("whatsapp:+xxxxxx", // rau

Ua ntej xa cov cai mus rau ESP32-Cam nco ntsoov tias koj tau txuas nrog GPIO 0 (Io0) rau GND yog li ESP32-cam yuav nyob rau hauv hom nyem. Tsis tas li, khaws ESP32 Wrover Module board xaiv hauv txoj haujlwm no thiab ua ntej tshaj tawm. Nias lub khawm pib dua ntawm ESP32-Cam thiab nias lub pob upload hauv Arduino IDE. Tom qab ua tiav qhib cov ntawv saib hauv IDE thiab nias lub pob pib dua ntawm ESP32-cam dua. Nws yuav txuas rau wifi sai sai. Tom qab ntawd nias lub pob nyem kom ntes thiab xa daim duab mus rau email thiab WhatsApp tus lej.

Ib feem ntawm cov cai peb siv yog coj los ntawm

Kauj Ruam 7: Ua kom tiav

Muab qhwv
Muab qhwv
Muab qhwv
Muab qhwv

Thiab qhov ntawd yog nws. Koj tuaj yeem tshawb xyuas email thiab whatsapp rau cov lus tsis ntev los no.

ESP32-CAM muab txoj hauv kev pheej yig los tsim cov phiaj xwm kev siv tshuab hauv tsev zoo dua qub uas muaj cov vis dis aus, thaij duab, thiab paub lub ntsej muag.

Pom zoo: