ESP32-Cam Quickstart with Arduino Code

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024

Комментарии • 144

  • @yoursunnyPower
    @yoursunnyPower 3 года назад +375

    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

  • @isiisorisiaint
    @isiisorisiaint 4 года назад +12

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

  • @VidarrKerr
    @VidarrKerr 3 года назад +2

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

  • @chuangfreeman4359
    @chuangfreeman4359 3 года назад +2

    This video can help many engineers when integrated ESP32 and Arduino

  • @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.

  • @duller9430
    @duller9430 2 года назад

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

  • @qwarlockz8017
    @qwarlockz8017 4 года назад +2

    Really clear and clean. Great video !

  • @bibhakardas5761
    @bibhakardas5761 2 года назад

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

  • @kasj570
    @kasj570 3 года назад +2

    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 2 года назад

      Reset pin on arduino pin :)

  • @didiersee
    @didiersee 2 года назад +1

    Congratulations from Belgium and thank you for sharing.

  • @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.

  • @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?

  • @yeetyeet7070
    @yeetyeet7070 4 месяца назад +3

    gotta love typing out text from a video back to text

  • @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....

  • @arletpaz7685
    @arletpaz7685 4 года назад +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  4 года назад +2

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

    • @arletpaz7685
      @arletpaz7685 4 года назад

      @@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

  • @corynardin
    @corynardin 4 года назад +3

    Great network id. Cool video too.

  • @heatherryan9820
    @heatherryan9820 Месяц назад

    But what if you don’t want to have to go to a browser to view it? Can you just connect a screen to the esp32CAM module and view it directly? Of so, how would you go about that?

  • @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

  • @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.

  • @Gallardo6669
    @Gallardo6669 Год назад

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

  • @evanwilliam9582
    @evanwilliam9582 4 года назад +1

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

    • @DavyBot
      @DavyBot  4 года назад

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

  • @TBL_stevennelson
    @TBL_stevennelson 4 года назад

    That's a handy trick. Good video as usual

  • @diegocassinera
    @diegocassinera 3 месяца назад

    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.

  • @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

  • @mohamedhichemmouzali6505
    @mohamedhichemmouzali6505 Год назад

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

  • @drjml351
    @drjml351 3 года назад

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

  • @ricardojohnson2439
    @ricardojohnson2439 4 года назад

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

  • @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?

  • @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.

  • @va5314
    @va5314 6 месяцев назад +2

    please provide the code too

  • @minggustuasuun4196
    @minggustuasuun4196 3 года назад

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

  • @yeetyeet7070
    @yeetyeet7070 4 месяца назад +1

    what USB driver do we need?

  • @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.

  • @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

  • @neail5466
    @neail5466 4 года назад +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?

  • @aisolutions834
    @aisolutions834 4 года назад +2

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

  • @JohnStevenson-bm2no
    @JohnStevenson-bm2no Месяц назад

    Hi Davy, thanks for the video. I can't find that exact code you are using on this video. I don't know if it's changed or what. Could you post that exact code somewhere that I could download it... Please. or point me to a link. Thanks. :)

  • @alvarocatanzano3603
    @alvarocatanzano3603 9 месяцев назад

    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.-

  • @djprogramer973
    @djprogramer973 2 года назад

    You actually explain the code, thank you

  • @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?

  • @phanikrishna0000
    @phanikrishna0000 Год назад

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

  • @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

  • @gregoriopancho8661
    @gregoriopancho8661 3 года назад

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

  • @yanpetrov7758
    @yanpetrov7758 4 года назад

    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.

  • @alfredoespinozapelayo
    @alfredoespinozapelayo 4 года назад

    Miracle video I needed

  • @riffrafftracey
    @riffrafftracey 3 года назад

    Thanx davy more please on the esp32

  • @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();
      }

  • @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.

  • @lorinlorin5626
    @lorinlorin5626 2 года назад

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

  • @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.

  • @SC8terRiderMotoVlogger
    @SC8terRiderMotoVlogger 3 года назад +1

    Does it record video?

  • @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(

  • @usmani93
    @usmani93 4 года назад

    Love your work! thankyou!!!

  • @prashantgunjal5566
    @prashantgunjal5566 4 года назад

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

  • @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.

  •  Год назад

    Great job, keep it up!

  • @va5314
    @va5314 6 месяцев назад

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

  • @omeroglu9684
    @omeroglu9684 4 года назад

    What is camera range distance?
    Please🙏🏻

  • @nikos4586
    @nikos4586 5 месяцев назад

    How is it powered?

  • @gregoryturner1505
    @gregoryturner1505 4 года назад +1

    Great video, thank you.

  • @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.

  • @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. ruclips.net/video/Sb08leLWOgA/видео.html

  • @subhashbs2540
    @subhashbs2540 3 года назад

    Thanks a lot it worked perfectly, all thanks to u

  • @yogeshk.c765
    @yogeshk.c765 2 месяца назад

    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?

  • @wattage2007
    @wattage2007 2 года назад +2

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

  • @johnking6624
    @johnking6624 3 года назад

    Superb video. Thanks.

  • @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 😔

  • @arletpaz7685
    @arletpaz7685 4 года назад +4

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

  • @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

  • @yourinspirationchannel
    @yourinspirationchannel 2 года назад

    Nice video!

  • @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

  • @RixtronixLAB
    @RixtronixLAB Год назад

    Nice info, thanks :)

  • @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

  • @JK-Real-Science
    @JK-Real-Science 3 месяца назад

    Very nice video

  • @shuntera
    @shuntera 4 года назад

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

  • @matomerampedi9745
    @matomerampedi9745 Год назад

    Does anyone else get the WIFI failure in the serial monitor

    • @juantellez2176
      @juantellez2176 Год назад

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

  • @harshvardhan2952
    @harshvardhan2952 4 года назад

    its shows that o programmer for this board help me

  • @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.

  • @sanjaybhatikar
    @sanjaybhatikar 2 года назад

    Great, thanks 🙏

  • @giftthane
    @giftthane Год назад

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

  • @HuyPham-sr6zo
    @HuyPham-sr6zo 4 года назад

    can i have this code ?

  • @anasarshad3453
    @anasarshad3453 8 месяцев назад

    where is code file

  • @samuelwesley668
    @samuelwesley668 3 года назад

    instant sub

  • @khellafsamy
    @khellafsamy 3 года назад

    good job

  • @borunzhou2010
    @borunzhou2010 2 года назад

    where is source code

  • @yaufunglam6853
    @yaufunglam6853 8 месяцев назад

    TX -> TX ? TX -> RX?

  • @mohamadhayqalmahat2713
    @mohamadhayqalmahat2713 2 года назад

    coding c++ or java or what?

    • @anakpinguin3942
      @anakpinguin3942 7 месяцев назад

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

  • @sunhilldiy
    @sunhilldiy 2 года назад

    great.

  • @TECHAB254
    @TECHAB254 Год назад

    How to solve Forward.h library error problem

  • @infinitlabs2419
    @infinitlabs2419 4 года назад

    Grate

  • @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

  • @statwizard
    @statwizard 4 года назад

    Well done! + 1 Subscribed. Lol

  • @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 RUclips 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 RUclips 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!!

  • @sintegrysllc8293
    @sintegrysllc8293 4 года назад

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

  • @gutawire
    @gutawire 4 месяца назад

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

  • @alinavaid9291
    @alinavaid9291 10 месяцев назад

    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