Setting UP ESP32-CAM for First Time

Published on


Have you ever wanted to install CCTV cameras for your room or workplace so that you can monitor your surroundings live? Fortunately, with the help of ESP32 technology and finally the ESP32-CAM module, you can easily do this. So, with energy and a few minutes of reading, you will understand how to implement this project. This is possible only by using a simple module. Well, until this part where the purpose of this tutorial is clear, let’s have a little exchange of information about the main components of this module, so we will start with ESP32 or the heart of this module. Visit CiferTech for more tutorials, and be sure to follow my Instagram page to support me.



ESP32 is the advanced generation of ESP8266. One of its differences is its internal Bluetooth. It also has a 2.4 GHz Wi-Fi core and built-in Bluetooth manufactured with TSMC’s 40 nm technology. This module has the best performance in energy consumption, which means it brings the best results for us with the lowest energy consumption. If we want to look more closely at this board, we must say that this is a chip in which the NodeMCU platform is implemented, and these types of chips are also called System on a chip microcontroller.

Other features of the ESP32-cam module include the OV2640 camera with the ability to record images in JPEG, BMP, and grayscale formats. You will also be able to take pictures in dark places with the LED flash assembled on this module. One of the practical features of this module is the micro SD input with the ability to expand up to 4GB, which allows the user to save images.

Setting up ESP32-cam

To start, the library related to this module must be installed in the Arduino IDE software. First, the following link should be copied and pasted in File > Preferences.



Then you will be able to download the relevant library by visiting the board’s section in Tools > Board > Boards Manager and searching for ESP32.


Next, you can find the codes related to this module in File > Examples > ESP32 > Camera. The CameraWebServer example is related to this tutorial.


Before uploading the code in the module, we must specify the network settings:



At this stage, specify the model of your module among other models that are available in the code with the command and that command.

Now it’s time to program the module, we need an FTDI programmer to program the codes in the Arduino IDE on the module, make the connections as shown in the picture below, be careful that the GPIO pin 0 must be connected to GND for the program to work Will happen.


Match the items selected in the image with your software from the Tools menu.


After the code is uploaded, disconnect the GPIO pin 0 that you connected to GND before. Then open the serial monitor in the Arduino software and set the band rate to 115200, then press the RESET button on the module.


As you can see, the software gives you an IP address that you can activate the camera by searching for this IP in your browser.



  1. ESP32-CAM
  2. FTDI programmer



Copy the following codes and paste them into the Arduino IDE. Then upload it to the Arduino board.

7 thoughts on “Setting UP ESP32-CAM for First Time

  1. محمدرضا

    خیلی مفید و عالی بود، ممنون که این پست رو گذاشتی

  2. Jj

    خیلی خوب بود، میشه کارای هر پایه رو بیشتر توضیح بدید

  3. عالی بود واقعا دمت گرم راستی یه سوال چجوری میشه صفحه وب ایجاد شده رو تغییر داد و تغییرات توش ایجاد کرد کتابخونه وبش کجاست ؟ و اینکه کیفیت دوربینش چطوریه میشه ارتقا داد ؟

  4. 0mniartist

    I am really impressed with your writing skills and also with the layout on your blog.
    Is this a paid theme or did you customize it yourself?
    Anyway keep up the excellent quality writing, it is
    rare to see a great blog like this one nowadays.

  5. درود ممنون از آموزش نکات ریزی که تو آموزش گفتید امیدوارم سری بعدی آموزش هم به زودی آماده بشه البته من ویدئو آموزش رو دیدم خیلی عالی بود اگه لینک ویدئو رو تو پیج بزارید خیلی خوب میشه بازم ممنون از آموزش خوبتون.

Leave a Reply

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