ESP32-CAM: abin da ya kamata ku sani game da wannan rukunin

Saukewa: ESP32-CAM

Mun riga mun buga game da Wurin WiFi para Arduino wani lokaci, amma wannan lokacin game da koyaushe ne Saukewa: ESP32-CAM, ESP32 WiFi module tare da karamin ginanniyar kyamarar bidiyo. Wannan yana ba da damar sabbin ayyuka, kamar sa ido ko leken asirin ƙasa, ɗaukar duk abin da ya faru lokacin da ba ku can kuma aika shi zuwa kowace na'ura don yin rikodi ko don ganin cikin-wuri.

Kusan duk abin da aka faɗi don tsarin WiFi ɗin da muka riga muka tattauna, zai dace da wannan, kawai yana da wasu ƙananan abubuwan ban da ƙari ga hadedde kyamara. Amma duk abin da kuke buƙatar sani za mu nuna muku a cikin wannan jagorar ...

Menene ESP32-CAM?

El Saukewa: ESP32-CAM Moduleauki ne wanda zaku iya amfani dashi tare da yawancin ayyukan, tare da Arduino. Cikakken tsari ne tare da hadadden microcontroller, wanda zai iya sanya shi yayi aiki kai tsaye. Baya ga haɗin WiFi + na Bluetooth, wannan rukunin yana da haɗin kyamarar bidiyo, da kuma ramin microSD don ajiya.

Wannan tsarin ba shi da tsada kwata-kwata, kuma yana iya kasancewa taron na aikace-aikace. Daga wasu sauki IoT, zuwa wasu masu ci gaba don sa ido kan hoto da fitarwa ta amfani da AI, har ma a matsayin tsarin sa ido don bincika abin da ke faruwa a wuri nesa duk inda kuke ...

Sayi daya

Tsarin ESP32-CAM ba shi da tsada kwata-kwata, kamar yadda na ce, don 'yan kuɗin Yuro za ku iya samun ɗaya. Kuma zaka iya samun saukinsa a cikin wasu shagunan musamman ko akan Amazon. Misali, ga wasu shawarwari akan farashi mai kyau:

Kamar yadda kake gani, bashi da tsada ...

Halayen fasaha na ESP32-CAM (takaddun bayanai)

ESP32-CAM koyaushe yana da wasu halaye na fasaha mai ban sha'awa sosai wanda zaku iya gani a cikin takardar bayanai masana'anta Anan na taƙaita mahimman abubuwa:

  • Gagarinka: WiFi 802.11b / g / n + Bluetooth 4.2 tare da BLE. Tana goyon bayan loda hoto ta hanyar WiFi.
  • Haɗin kai: UART, SPI, I2Cda kuma PWM. Yana da fil na GPIO 9.
  • Mitar agogo: har zuwa 160Mhz.
  • Microcontroller sarrafa kwamfuta: har zuwa DMIPS 600.
  • Memoria: 520KB na SRAM + 4MB na katin katin PSRAM + SD
  • extras: yana da halaye masu yawa na bacci, firmware mai haɓakawa ta OTA, da LEDs don amfani da ginannen ƙwaƙwalwar ajiya.
  • Kamara: Yana goyan bayan kyamarorin OV2640 waɗanda zasu iya zuwa cikin fakitin ko a saya su da kansu. Wadannan nau'ikan kyamarori suna da:
    • 2 MP akan firikwensin ku
    • 1622 × 1200 px UXGA girman tsararru
    • Tsarin fitarwa YUV422, YUV420, RGB565, RGB555 da 8-bit matsawa data.
    • Zaka iya canja wurin hoto tsakanin 15 da 60 FPS.

Pinout

Hasken ESP32-CAM

El kuraje na ESP32-CAM mai sauqi ne, kamar yadda zaku iya gani a zane na baya. Kuma kyamarar an haɗa ta da mahaɗin da aka kunna mata. Bayan haka, da misalin Arduino, zaku fahimci yadda aka haɗa shi da abin da kowannensu yake, kodayake kuna iya samun ra'ayi.

Af, kodayake bai bayyana a cikin hoton ba, galibi suna da mahaɗin zagaye a kan PCB wanda ake amfani da shi don haɗa igiyoyin eriya na waje a wasu yanayi. Galibi galibi yana kusa da takardar ƙarfen na soket din SD.

Kuna iya amfani da a FTDI adaftan waje don haɗa wannan darasin kuma ya sauƙaƙa maka don sarrafa shi. Wannan yana ba da izinin amfani da tashar tashoshi ta miniUSB maimakon wayoyin ESP32-CAM. Don amfani da ɗayan waɗannan matakan, zaka iya haɗa shi kamar haka:

  • Sanya fasalin FTDI don aiki a 3.3v.
  • Tsallake lambar GPIO 0 da GND na tsarin ESP32-CAM.
  • Dole ne a haɗa pin na 3v3 na samfurin zuwa Vcc na FTDI.
  • GPIO 3 (UOR) na koyaushe zai tafi zuwa TX na FTDI.
  • GPIO 1 (U0T) na wannan rukunin yana zuwa RX na FTDI.
  • Da sauran GND na ESP32-CAM tare da GND na FTDI module.

Yanzu kuna da ɗaya Nau'in kebul na USB, wanda zai iya sauƙaƙe haɗin aikin ku ...

Haɗuwa tare da Arduino IDE

FTDI, ESP32-CAM Arduino

Don samun damar hade tare da FTDI, haɗin yana da sauƙi. Ya kamata ku yi haka kawai:

  • Haɗa haɗin 5v na ESP32-CAM module zuwa Vcc na modul FTDI.
  • Haɗa GND na samfurin ESP32-CAM zuwa GND na tsarin FTDI.
  • TX0 daga hukumar FTDI yana zuwa GPIO 3 (U0RXD).
  • RXI daga hukumar FTDI yana zuwa GPIO 1 (U0TXD).
  • Kuma yana kewaye GPI0 da GND na hukumar ESP32-CAM.

Yanzu zaka iya haɗa shi zuwa kwamfutar ta amfani da kebul na USB ta hanyar tsarin FTDI. Wani zaɓi shine haɗa shi da arduino kai tsaye, ba tare da amfani da tsarin FTDI ba. Amma bari mu ga lamarin tare da FTDI wanda shine mafi alkhairi ga mafi yawan shari'oin ...

da matakai don bi don tsarawa da tsara komai don aiki:

  1. Domin loda lambar zuwa allon, dole ne haɗa kebul zuwa kwamfutarka.
  2. Mataki na gaba shine shigar da ESP32 laburare don samun damar amfani da wannan. Don haka, daga Arduino IDE je zuwa Fayil> Zaɓuka> A can, a cikin filin don ƙara URL, ƙara: https://dl.espressif.com/dl/package_esp32_index.json kuma latsa OK. Yanzu je zuwa Kayan aiki> Kwamitin> Manajan Hukumar> bincika ESP32 kuma latsa shigar "ESP32 ta hanyar Espressif Systems".
  3. Sannan bude IDE na Arduino > Kayan aiki> Allon> zaɓi AI-Mai Tunani ESP32-CAM (dole ne a shigar da addon ESP32 don wannan zaɓin ya bayyana a cikin menu). Daga nan sai ka tafi Kayan aiki> Port sannan ka zabi COM, inda aka hada allon ka.
  4. Yanzu zaka iya loda zane a kan allo, don sauƙaƙa shi, yi amfani da ɗayan misalan duba Fayil> Misali> ESP32> Kamara> KamararWebServer. Da zarar anyi, lokacin da sakon da aka ɗora shi cikin nasara ya bayyana, cire kebul daga maɓallin GPIO 0 na GND sai a danna Sake saitin maɓallin akan allo.
  5. A ƙarshe, zaku iya amfani da farawa duba sakamako a cikin gidan yanar gizo ... Lokacin da kake aiki da shi, zai ba ka a kan saka idanu URL tare da IP wanda dole ne ka saka a cikin burauzar yanar gizon ka don samun dama. Daga gareta zaka iya daidaita sigogi ka ga abin da aka gani daga firikwensin kyamara.

Babu shakka, zaka iya yi da yawa amfani da WiFi da damar Bluetooth na wannan rukunin. Ka tuna cewa iyaka shine tunaninka. Anan kawai zan nuna muku sauƙin gabatarwa ...

Informationarin bayani - Kyautar Arduino kyauta


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

Kasance na farko don yin sharhi

Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.