How to program ESP-32 cam using Arduino UNO board

In this article, I am going to describe how to program ESP32 cam module using arduino IDE & without FDTI & any other USB to ttl converter.

ESp32 cam

This low price development board has onboard 5volt to 3.3-volt voltage regulator chip, an ESP32 chip with Bluetooth(BLE), wifi, GPIO pins, 2MP camera & a big sized SMD led but unfortunately this cheap board has not any onboard programmer chip like other nodemcu board. Usually, we have to program it using FDTI or USB to TTL converter.

IF you don’t have any USB to TTL converter & have an Arduino UNO then no need to waste money to buy this TTL converter.

You need to program in this method

  1. ESP32 cam ( I am using AI thinker)
  2. Arduino UNO board
  3. Jumper wire
  4. Arduino IDE software

Connection ESP32 cam to Arduino UNO

  • Connect Arduino 5volt to esp 32 cam 5 volt.
  • Arduino GND to GND
  • Arduino RX to Cam board RX & TX to TX
  • Arduino reset pin to GND
  • ESP 32cam D0 to Gnd

Make sure the cam board DO is connected to gnd. It will enable esp 32 flash mode otherwise you can’t program it. after compleat, the programming remove D0 to gnd

COnnection of arduino uno to esp32 cam

Now open Arduino IDE on your PC, go to File > Preferences >

Now paste below link in the board manager URL

esp32ca programming

Now go to Tools > Board > Board manager > & search for ESP 32

You can see esp 32 board Download & install the latest version package

After complete, the installation go to Tools > Select port where arduino UNO is connected

  • Now go to board > select board > ESP32 ” Wrover Module”
  • Flash Mode > QIO
  • Flash Frequency > 40MHZ
  • Partition Scheme > Huge App (3mb No OTA)
  • Upload speed > 115200
  • Programmer > AVR ISP

Now it is ready for uploading sketch

You can test it Go to File > Example > ESP32 > Camera > Camera web server and upload the sample sketch

This is video of esp 32 cam programming


  1. hey bro, i had tried to build program in esp32 cam module as pr ur instruction but it not success.
    there are some error shown in ide

    A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

    can u help me to solve this issue.

    1. Hello Rucha,
      make sure D 0 is connected to gnd
      power connected to Arduino 5V & check all jumper wires
      press reset on esp32 cam when uploading.

  2. This is the solution that solved my “Timeout waiting for header” issue. I tried around 20 other solutions prior to this.

  3. If you ever want to take some of the load off, I’d love to write some articles for your blog in exchange for a link back to mine.Please blast me an e-mail if interested. Cheers!

  4. It’s a pity you don’t have a donate button! I’d without a doubt donate to this fantastic blog! I guess for now i’ll settle for bookmarking and adding your RSS feed to my Google account. I look forward to new updates and will share this site with my Facebook group. Chat soon!| а

  5. it looksfine however, if opening in Internet Explorer, it has some overlapping issues.I merely wanted to provide you with a quick heads up!Other than that, fantastic website!

  6. Hey there I am so thrilled I found your webpage,I really found you by error, while I was searching on Google for something else.

  7. Appreciating the dedication you put into your website and
    in depth information you provide. It’s nice to come across a
    blog every once in a while that isn’t the same old rehashed material.
    Great read! I’ve bookmarked your site and I’m adding your
    RSS feeds to my Google account.

  8. I think the admin of this website is genuinely working hard in support of his web site,
    because here every stuff is quality based data.

  9. Hello there, just became aware of your blog through Google, and found that it is truly informative.I am going to watch out for brussels.

  10. Exploring in Yahoo I ultimately stumbled upon this website.Studying this info So i’m glad to show that I have an incredibly excellent uncanny feelingI came upon just what I needed.

  11. I’m really enjoying the design and layout of your blog.It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit more often.

  12. Hello
    I have problem can every body help me please
    That I connected my arduino uno to the esp32 and uploaded the code from arduino ide to the arduino and it uploaded but when I opened the serial monitor that not appeared the IP address as above that write error
    Camera_probe(): detected camera not supported
    esp_camera_init(): camera probe failed with error 0×20004
    So,can any one help me please …

  13. Any reason why it should not work equally good with the MKR1010 board (my UNO is occupied in another project)?
    As soon as I connect the MKR1010 reset to GND, the USB port connected to are gone in the “Tools/Port”-list.
    any thoughts on that?
    Great tutorial btw!

Leave a Reply

Your email address will not be published. Required fields are marked *