ESP32-Cam Quickstart with Arduino Code

Поділитися
Вставка
  • Опубліковано 2 жов 2024
  • Learn how to add a camera to your Arduino projects the easy way using one of these cheap ESP32-Cam modules. Great for pet cams, home surveillance, time lapses, and computer vision applications.
    /* ESP32-Cam */
    www.icstation.c...
    Discount code: DavyICS
    /* Cam-Prog ESP32-Cam Programmer*/
    www.tindie.com...
    /* Esp32cam Arduino Library */
    github.com/you...
    #ESP32 #Arduino

КОМЕНТАРІ • 141

  • @yoursunnyPower
    @yoursunnyPower 3 роки тому +335

    I'm the library author. This video is one of the best explanation of how to use my library. 👍

    • @akhildev1674
      @akhildev1674 3 роки тому +1

      Wow

    • @Richie_
      @Richie_ 3 роки тому +5

      The example in the Github download is different to the one being used here. Where can I find the same code used in this video?

    • @kdarban
      @kdarban 2 роки тому

      Very cool

    • @DarkBoyNomis
      @DarkBoyNomis 2 роки тому +4

      The code doesnt work for me, it gives me library errors. I am writing the same code like in the video, but i get errors from the esp32cam library.

    • @bobfrediii2131
      @bobfrediii2131 2 роки тому +3

      @@DarkBoyNomis same

  • @wattage2007
    @wattage2007 Рік тому +2

    Should really be called “ESP32Cam QuickStart, WITHOUT Arduino code.”

  • @arletpaz7685
    @arletpaz7685 3 роки тому +4

    your videos let's me DreamBig now on to my projects so that i can FightHard.
    #Robotics

  • @duller9430
    @duller9430 2 роки тому

    Great video good quality arduino videos are rare these days I hope you keep uploading

  • @isiisorisiaint
    @isiisorisiaint 3 роки тому +10

    you, and people like you, make the world turn around. just sharing knowledge for the goodness of sharing, way to go man!

  • @yeetyeet7070
    @yeetyeet7070 2 місяці тому +3

    gotta love typing out text from a video back to text

  • @bibhakardas5761
    @bibhakardas5761 Рік тому

    It's one of the best video on ESP32 cam.

  • @va5314
    @va5314 4 місяці тому +2

    please provide the code too

  • @randyortop
    @randyortop 2 роки тому +1

    Hi, I have a little problem here. When I connected GND with EN my ESP32 is not working. How can I fix it?

  • @KC5UNL
    @KC5UNL 2 роки тому +1

    Davy, when I take a picture using the code you provided, it seems to be one frame behind. Can you address this? Is there a simple workaround? I can just take a second picture immediately, but it's a bit of a pain....

  • @Autotrope
    @Autotrope 4 роки тому

    I think this has a minimum current of around 6mA (not uA) in deep sleep as it's not optimised for low power. Do you know if you could use an ESP32 on a more barebones breakout board with your own OV camera and be able put the camera to sleep when not using it and achieve the ~10uA of the deep sleep? What about this esp32-cam drains that additional current?

  • @didiersee
    @didiersee 2 роки тому +1

    Congratulations from Belgium and thank you for sharing.

  • @diegocassinera
    @diegocassinera Місяць тому

    Thank you, I bought some with the es32-cam-mb had and was unable to flash. with your wiring, even do i got an error during the flash process once i rebooted it had my code in it.

  • @VidarrKerr
    @VidarrKerr 3 роки тому +2

    You have the same pajama top as my son. I can't believe you still fit in it!

  • @kasj570
    @kasj570 3 роки тому +1

    Help! Using an Arduino instead of esp32 dev. board ... at 1:33, you "connect EN pin to Ground". What is the equivalent of the "EN Pin" on the Arduino Uno?

    • @M4CHINE69
      @M4CHINE69 Рік тому

      Reset pin on arduino pin :)

  • @aisolutions834
    @aisolutions834 4 роки тому +2

    Very informative Davy!, thank you, btw have you uploaded this code on Github or elsewhere?

  • @evanwilliam9582
    @evanwilliam9582 3 роки тому +1

    Can the ESP 32 CAM do everything the ESP 32 is capable of, like be an AP and web server.

    • @DavyBot
      @DavyBot  3 роки тому

      Yes, it is a normal ESP32, just with an added camera. Any code for normal ESP32 boards will run (including MicroPython, for instance).

  • @shamansusu
    @shamansusu 2 роки тому

    Hello Davy, Thanks for the video. Im completely new to ESP32. I have a big doubt in my mind... Please show some light....
    I want to feed AV/HDMI output signal of a DSLR or Mirrorless Camera --> ESP32, And I want transmit over wirelessly to My Smartphone or a FPV monitor..... Is it possible to do this.... Gratitude

  • @arletpaz7685
    @arletpaz7685 3 роки тому +1

    is internet needed at all to access the esp AP live feed mode from say the cellphone user? as in the phone only works with wifi not sim card so no network. can we use the phone to find the AP from the esp32 and tap into it just like any other wifi public network and instead of getting wifi i get a webpage that provides live feed as long as im withing proximity ? because this sounds like something im looking for if so!

    • @DavyBot
      @DavyBot  3 роки тому +1

      That's correct. In AP mode you can connect to it directly without needing to connect to the internet at all.

    • @arletpaz7685
      @arletpaz7685 3 роки тому

      @@DavyBot wow i have asked this question in allot of videos similar to yours, feels good to be acknowledge when a question is asked so thanks Davy! very appreciated

  • @neail5466
    @neail5466 3 роки тому +1

    Hey, thanx for your efforts, could you please elaborate how to upload the images to a http client? Is it possible to do with Google drive or such?

  • @yogeshk.c765
    @yogeshk.c765 13 днів тому

    hey, i have been trying to use the esp 32 cam board with ov7670 instead of the OV2460.
    here's what error i am facing.
    ets Jul 29 2019 12:21:46
    rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:1
    load:0x3fff0030,len:4916
    load:0x40078000,len:16436
    load:0x40080400,len:4
    ho 8 tail 4 room 4
    load:0x40080404,len:3524
    entry 0x400805b8
    WiFi connected
    E (10921) camera: JPEG format is not supported on this sensor
    camera initialize failure
    E (32165) wifi:NAN WiFi stop
    ets Jul 29 2019 12:21:46
    Could u help?

  • @alvarocatanzano3603
    @alvarocatanzano3603 7 місяців тому

    Hi Davy, sorry for my ignorance but where can I download your code to make this ESP32-Cam works? Thanks and Congrat for you project.-

  • @scootergem
    @scootergem 3 роки тому

    i tried ICSTATION and the site is not secure so my browser wouldn't let me buy anything.
    went to TINDIE and they are sold out
    GITHUB does have the library so that much works
    good video, I just wish I could follow up on the links X(

  • @danfarber2913
    @danfarber2913 Рік тому

    during compilation of your sketch i get error " class WebServer' has no member named 'setContentLenght- I am using arduino ide ver 1.85- thanks in advance for your advice

  • @alinavaid9291
    @alinavaid9291 8 місяців тому

    C:\Users\coolz\AppData\Local\Temp\.arduinoIDE-unsaved2024025-14784-1vft4t4.chfw\WifiCam\handlers.cpp:3:27: fatal error: uri/UriBraces.h: No such file or directory
    compilation terminated.
    exit status 1
    Compilation error: uri/UriBraces.h: No such file or directory
    I am getting this error

  • @giftthane
    @giftthane Рік тому

    Hello thanks for the video I would like to connect to you I’m working on projects

  • @essinomahahqfortraitorouse1130
    @essinomahahqfortraitorouse1130 3 роки тому

    You said "dual core" which is ESP32-S2, not ESP32-S. You show the
    single core model. I don't think the -S2 ever comes with a camera

  • @sintegrysllc8293
    @sintegrysllc8293 4 роки тому

    Here is another ESP32 Camera project - video surveillance robot: create.arduino.cc/projecthub/KDPA/esp32-cam-video-surveillance-robot-a22367

  • @mattivirta
    @mattivirta 4 роки тому

    why not made working code to arduino ide ??? why all code have fail and broken error error alltime. apps httpd.cpp file have lto error in text ewery version ,have idiot write this code ?? why not newer working, alltime compile and error lot. not can burtn to esp32 because not compile newer.

  • @yeetyeet7070
    @yeetyeet7070 2 місяці тому +1

    what USB driver do we need?

  • @clintreeve9875
    @clintreeve9875 3 роки тому

    Everything works brilliantly except it won't accept my custom ap details just shows up as Esp32cam with no password when connecting

  • @corynardin
    @corynardin 4 роки тому +3

    Great network id. Cool video too.

  • @christophauer3514
    @christophauer3514 4 роки тому +1

    Very cool trick to flash the cam. Thanks. FYI: You can also flash your cam via OTA after the first flash. I have not tried that yet, but it should work.

  • @Gallardo6669
    @Gallardo6669 Рік тому

    Thx for the vid. What's about the warning in the web cast for the cam? To easy hackable?

  • @gregoriopancho8661
    @gregoriopancho8661 2 роки тому

    I have problem about " Brownout detector was triggered
    " :(

  • @thisusernameismine10
    @thisusernameismine10 4 роки тому +1

    So, to program it I could just use a USB FTDI device, am I right? Discount code, sweet!

    • @DavyBot
      @DavyBot  4 роки тому

      Yep, and something I forgot to mention is that it's 3.3v logic so you may need to be careful in selecting a USB->FTDI device (some of them are 5v).

    • @thisusernameismine10
      @thisusernameismine10 4 роки тому +1

      @@DavyBot great thanks, yeah, 3.3v good point - not such a daft question after all then, hopefully save someone risking their kit.

  • @drjml351
    @drjml351 3 роки тому

    How do I find the “description below”? Sorry for such a basic question.

  • @mohamedhichemmouzali6505
    @mohamedhichemmouzali6505 Рік тому

    please how to turn it off after finishing taking photos and stoping the board from working ?

  • @kfmm3411
    @kfmm3411 4 роки тому +1

    Thank you very much for the explanation, teacher, I loved the video, I'm a big one on the channel, but I have a question
    How can I view images from the camera while on another network, ex: through my 4G and I see everything that happens with esp 32 in my house that is connected to wifi

    • @wattage2007
      @wattage2007 4 роки тому

      You'd need to use a dyndns service (unless your internet provider gives you a static IP) and forward a port on your router although as the video explains, that could have security implications.

  • @minggustuasuun4196
    @minggustuasuun4196 3 роки тому

    Hello. Is your esp 32cam hot too? . When you use it for streaming

  • @chuangfreeman4359
    @chuangfreeman4359 3 роки тому +1

    This video can help many engineers when integrated ESP32 and Arduino

  • @Cptnbond
    @Cptnbond 4 роки тому +4

    Thanks, exactly what I was looking for. :-). The discount worked for me, as of today (Jan 23rd). I ordered two from them, just to be sure.

  • @phanikrishna0000
    @phanikrishna0000 Рік тому

    Can you do the project on esp32 cam based fire fighting robot

  • @petr6067
    @petr6067 2 роки тому

    Hi, I'm starting with ESP32 and I'd like to use a CAM, but I need to rotate the image 90 degrees. Please advise where in the code and how to edit please? Thank you

  • @RogerGarrett
    @RogerGarrett 4 роки тому

    Does the esp32cam::capture() method always return a JPEG type file? Is it possible to tell it to capture it as a BMP type file?

    • @yoursunnyPower
      @yoursunnyPower 3 роки тому +1

      Yes and no. My library has a Config::setRgb() function to select RGB565 mode. It's basically a BMP but without the BMP header. If you need the BMP header, please open an issue on my GitHub repository and explain your use case.

  • @mattivirta
    @mattivirta 4 роки тому

    cheap you can program easy espcamwhit FTDI serial board. usb to pc and ftdi to esp ready can program, not need other boards.

  • @lorinlorin5626
    @lorinlorin5626 Рік тому

    What is the solution of this issue please:
    A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

  • @shuntera
    @shuntera 4 роки тому

    icstation does not have HTTPS????? Not ordering from there!!!

  • @gutawire-ci8jw
    @gutawire-ci8jw 2 місяці тому

    This helped me to solve my esp_camera.h not found❤

  • @berjosephmagallano5467
    @berjosephmagallano5467 3 роки тому

    Is it possible to use an esp32 cam to scan qr codes and send the data on the cellphone?

  • @qrsimon
    @qrsimon 2 роки тому

    How do you use a bluetooth connection for your pc?

  • @va5314
    @va5314 4 місяці тому

    we have to connect 3.3v pin of esp32 or 5v pin

  • @falopio2007
    @falopio2007 4 роки тому

    What address should I input in the browser to access the cam once connected through WiFi ?

    • @DavyBot
      @DavyBot  4 роки тому

      192.168.4.1/capture.jpg but you can configure that from the Server object. ua-cam.com/video/Sb08leLWOgA/v-deo.html

  • @RogerGarrett
    @RogerGarrett 4 роки тому

    I want to actually do some processing on the image that's captured. Basically I want to scan the pixels of the image, using some Arduino code running on the board, and locate pixels with a specific RGB color. Can that be done directly on the ESP32-CAM module?

    • @yoursunnyPower
      @yoursunnyPower 3 роки тому

      Yes you can. Select RGB565 pixel format, and you can work with raw pixel data. However, you only get 4MB RAM.

  • @wretchedfibs4306
    @wretchedfibs4306 4 роки тому

    liked the code and buying 4 more to add to 2, I already got programmed with the arduino example sketch.
    thanks ... plus if you hit the reset after programming it you can get the ipaddress from the serial monitor in arduino.

  • @harshvardhan2952
    @harshvardhan2952 3 роки тому

    its shows that o programmer for this board help me

  • @yanpetrov7758
    @yanpetrov7758 3 роки тому

    I guess you could additionally use GPIO0 and RST from that board with USB, instead of PITA with the button

    • @yoursunnyPower
      @yoursunnyPower 3 роки тому

      Sadly you can't. The RST button is not on any pin header.

  • @qwarlockz8017
    @qwarlockz8017 4 роки тому +2

    Really clear and clean. Great video !

  • @JK-Real-Science
    @JK-Real-Science Місяць тому

    Very nice video

  • @ricardojohnson2439
    @ricardojohnson2439 4 роки тому

    this will help a lot with my final year project. can it be armed and disarmed remotely?

  • @riffrafftracey
    @riffrafftracey 2 роки тому

    Thanx davy more please on the esp32

  • @subhashbs2540
    @subhashbs2540 3 роки тому

    Thanks a lot it worked perfectly, all thanks to u

  • @matomerampedi9745
    @matomerampedi9745 Рік тому

    Does anyone else get the WIFI failure in the serial monitor

    • @juantellez2176
      @juantellez2176 10 місяців тому

      yes bro u had this issue for 6 months have u figured it out i need help too

  • @nikos4586
    @nikos4586 3 місяці тому

    How is it powered?

  • @gregoryturner1505
    @gregoryturner1505 4 роки тому +1

    Great video, thank you.

  • @icantthinkofaname9624
    @icantthinkofaname9624 4 роки тому +1

    how far can this work? anyways great work. always loved your videos

    • @DavyBot
      @DavyBot  4 роки тому

      Since it's WiFi based the range is pretty limited but I was able to double the range by using another ESP32 as a proxy in one test. I did it by putting the proxy node in dual Access Point + Station mode and having it repeat all requests, extending the effective range. You could certainly do more proxy nodes to get better range but at a certain point it would probably be more cost/performance efficient to just run some Ethernet cable.

    • @icantthinkofaname9624
      @icantthinkofaname9624 4 роки тому

      Sir, can we leave the wifi password and wifi name brackets open, then can it travel through wifi routers till it reaches us, is this possible?

    • @DavyBot
      @DavyBot  4 роки тому

      Mesh configurations are possible with WiFi. I didn't do anything that fancy, just had one proxy device relaying all HTTP requests. But Espressif has some info on setting up WiFi mesh applications using ESP32: github.com/espressif/esp-mdf

  • @nimaamini9038
    @nimaamini9038 4 роки тому

    Hi
    I finally got it working but I have a new problem, if the esp32cam gets disconnected it won't reconnect to the router/hotspot/network automatically and I have to reach the esp32cam and restart it by hand. What if I want to fix it in some place high? Do I really need to restart it every time? Can't it just get reconnected to the network like any other normal device?
    And btw can I add multiple network credentials to esp32cam code so if one is not in range it would connect to the other ones.

    • @johnschindler9641
      @johnschindler9641 4 роки тому

      I have the same question, I have to cycle power and press reset, twice to get it to boot and go online.

    • @SlavTiger
      @SlavTiger Рік тому

      it's an issue with the handshake between router and esp32 im pretty sure. i think maybe it tries to reauth and fails, but works connecting the first time. i had a similar issue and switched to access point mode.

  • @RixtronixLAB
    @RixtronixLAB Рік тому

    Nice info, thanks :)

  • @johnking6624
    @johnking6624 3 роки тому

    Superb video. Thanks.

  • @statwizard
    @statwizard 4 роки тому

    Well done! + 1 Subscribed. Lol

  • @omeroglu9684
    @omeroglu9684 4 роки тому

    What is camera range distance?
    Please🙏🏻

  • @prashantgunjal5566
    @prashantgunjal5566 4 роки тому

    this is exactlty what i was loking for my car thanks a ;lot

  • @SC8terRiderMotoVlogger
    @SC8terRiderMotoVlogger 3 роки тому

    Does it record video?

  • @TBL_stevennelson
    @TBL_stevennelson 4 роки тому

    That's a handy trick. Good video as usual

  • @jim9689
    @jim9689 3 роки тому +1

    Okay Davy, I see your 36-line program, it looks great and I want to try it out. So now I have to type it all? I do not see a link to that code. Or am I missing something?
    Maybe I will try some OCR trickery, I really don't want to type.

    • @jim9689
      @jim9689 3 роки тому +3

      #include
      #include
      #include I
      #define AP_SSID "PasswordProtected"
      #define AP_PASS "HiJimPassword1234"
      WebServer server(80);
      void handleCapture() {
      auto img = esp32cam: :capture();
      if (img == nullptr) {
      server.send (500, "", "");
      return;
      }
      server.setContentLength (img->size());
      server.send( 200, "image/jpeg");
      WiFiClient client = server.client();
      img ->writeTo (client);
      }
      void setup() {
      auto res = esp32cam: : Resolution:: find (1024, 768);
      esp32cam:: Config cfg;
      cfg.setPins (esp32cam: :pins::AiThinker);
      cfg.setResolution (res);
      cfg.setJpeg (80);
      esp32cam:: Camera.begin(cfg);
      WiFi.softAP (AP_SSID, AP_PASS);
      server.on("/capture.jpg", handleCapture);
      server.begin();
      }
      void loop() {
      server.handleClient();
      }

  • @borunzhou5076
    @borunzhou5076 2 роки тому

    where is source code

  • @1science100
    @1science100 3 роки тому +1

    Why did you show your good working ino file with local AP_SSID and AP_PASSWORD setup without giving a downloadlink to that file? Instead only showing a link to an original unchanged llibrary file that simply won't work without any changes that first have to be made. Instructions like: Clone this repository under $HOME/Arduino/libraries directory do not help in anyway to understand how to simply use these cheap CAM modules. After 2 days of effortless reading and testing all presented internet examples, I'm beginning to question if my cheap China made module is okay? Uploading all found code was never any problem but explanations like these UA-cam videos are no help at all because too many questions are never answered when it doesn't work! Even just knowing what all the right needed Arduino libraries are makes this Arduino product a very complicated and bad experience! Instruction videos like all these short UA-cam explanations are a complete waste of time. Just a good PDF instruction manual with the right working code would make all the difference! This way there is no quick start at all!

    • @1science100
      @1science100 3 роки тому +1

      After 2 days of wasted experimenting, uploading, upgrading and testing the Arduino 1.8.13 IDE I found Rui Santos's standalone AP Webcamserver version that worked right away from the given ino file!
      PS: The discount ordering code looks nice until the shipping costs are shown which are way too expensive!!

  • @djprogramer973
    @djprogramer973 2 роки тому

    You actually explain the code, thank you

  • @yaufunglam6853
    @yaufunglam6853 6 місяців тому

    TX -> TX ? TX -> RX?

  • @almirbajsini
    @almirbajsini 4 роки тому

    What is the distance like on the esp32cam with a antenna like ?

    • @leonbrm1430
      @leonbrm1430 3 роки тому

      realy good i got like 300 meter open field

  • @samuelwesley668
    @samuelwesley668 3 роки тому

    instant sub

  • @sunhilldiy
    @sunhilldiy 2 роки тому

    great.

  • @yourinspirationchannel
    @yourinspirationchannel Рік тому

    Nice video!

  • @AzharAouni
    @AzharAouni 4 роки тому

    hello , i have some problm "detected camera not supported" and "psram failed" what should i do please answer me

    • @davywtf
      @davywtf 4 роки тому

      You get that error with the same code shown in this video? If so then you're either using a different version of the esp32cam which may require a different library if it's not configured the same, or your board might be malfunctioning. You might have better luck submitting an issue to the Github account of the camera library if it's a compatibility issue because I bet the author would like to support more models.

    • @AzharAouni
      @AzharAouni 4 роки тому

      @@davywtf I am using the same version of esp32cam I don't know the reason of this error, I tried other code but always I have the same problem PSRAM int failed 😐 I need to fix the problem please help me I have an academic project to present

    • @AzharAouni
      @AzharAouni 4 роки тому

      Can you please answer me🙏

    • @davywtf
      @davywtf 4 роки тому

      @@AzharAouni Like I said, it may be that the device has a hardware issue in which case I can't help you. It may be that you're using the wrong board setting in Arduino. Or it may be that the model is slightly different (depending on where you get them they can use slightly different parts and pin configurations). Again, go to the esp32cam library's github account and open an issue there since they're the ones who wrote the library code.

    • @AzharAouni
      @AzharAouni 4 роки тому

      @@davywtf I check all the parameters nothing wrong 😔

  •  Рік тому

    Great job, keep it up!

  • @sanjaybhatikar
    @sanjaybhatikar 2 роки тому

    Great, thanks 🙏

  • @HuyPham-sr6zo
    @HuyPham-sr6zo 4 роки тому

    can i have this code ?

  • @khellafsamy
    @khellafsamy 3 роки тому

    good job

  • @mohamadhayqalmahat2713
    @mohamadhayqalmahat2713 2 роки тому

    coding c++ or java or what?

    • @anakpinguin3942
      @anakpinguin3942 5 місяців тому

      The basis is c, but has an extension of .ino

  • @alfredoespinozapelayo
    @alfredoespinozapelayo 3 роки тому

    Miracle video I needed

  • @anasarshad3453
    @anasarshad3453 6 місяців тому

    where is code file

  • @usmani93
    @usmani93 4 роки тому

    Love your work! thankyou!!!

  • @Javaman92
    @Javaman92 2 роки тому

    I'm thinking that this would be handy to put in my basement so I can check how much heating fuel I have without having to go outside, digging out the door and going down there. :-D

  • @infinitlabs2419
    @infinitlabs2419 4 роки тому

    Grate

  • @TECHAB254
    @TECHAB254 Рік тому

    How to solve Forward.h library error problem