ESP32 CAMERA MODULE - Getting Started & Tips for Error Free Usage

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello all this video is an esp32 camera module this camera module comes with a small camera which is ob2640 2 megapixel camera and this camera has got a small connector at the end there is 24 pin connector this 24 pin connector can be easily slided onto the base port this base port has also got a micro sd interface and a small led for flash the module used on this board is esp32 s module and there is also a ps ram that eight pin black ics ps ram 4 mb external flash ram for antenna wifi antenna there is a pcb drone antenna and also a external antenna can be connected if you want to use the external antenna then the zero ohms resistor should be re re-soldered at the bottom there is a reset switch which is used to upload the code this module is breadboard friendly it comes with pin solder but there is a problem while using a breadboard if you plug it onto the breadboard then there is a pin goes to the bottom so it is difficult to access the reset pin this is a design problem so we'll be using jumper wires only now let us connect the camera to the connector the camera connector has got a black portion just flip flip it open just pull it up do not remove it just pull it open it will open like a door gently pull it up and then take the camera module slider gently slide it the 24 pin gold pins should go to the bottom side and there is a white line you can see we just slide it into the connector and then close the flip door now the camera module is locked properly and you will not see the white line once it is locked properly now the camera model is ready for use now let us see the pin connections to the top right is the 3.3 volt pin first pin is 3.3 volt and to the bottom one gpu 16 is there and the third pin is gpio0 and the fourth pin is ground if you want to upload code you have to put a short jumper between this gpu 0 and ground the next pin is vcc output pin do not connect power to this vcc pin this vcc output and to the bottom of it is rx spin and then tx pin and ground the rx pin is mentioned as u0r and then u0 t4 tx to the left first pin is the 5 volt power pin and next to that is ground and then some gpu pins we'll be using one usb to ttl module like this for uploading code as the esp32 camera model has got no usb input we'll be using this type of usb to ttl fddi module like this can also be used with a 3.3 volt and 5 volt jumper on it will be we'll be checking out both these modules first let us use the cp2102 module this has got volt supply and then rxdx pins connect 5 volt of usb to ttl to 5 volt of camera module and ground to ground and rx that is u0 or rx pin should go to tx of usb dtl and u0t tx pin of camera module goes to rx pin of usb to tdl we'll be using this female to female jumper wire for this so this is the important connections and then plug the usb to ttl to pc one more important connection is required that is gpu zero should be connected to ground this will make the this will put the esp32 module into flash mode this is very important gpu zero pin should be connected to ground by a female to female jumper wire or you can use a black jumper for this so this is the connection diagram for between usb to ttl and our esp32 camera module now open the device manager on your pc and not on the com port allotted to the usb to ttl module for this you should have installed the cp2102 driver already now open the arduino ide and go to file preferences here we have to install the arduino code for esp32 at the bottom you will see additional download manager url and here you have to feed in the json link the link is given in the description below go to that link this is the audio core for esp32 and then copy the standard stable link json link and go to the file preferences and click on the box nearby and then use ctrl v to paste it here already i have esp8266 links so i'm using this box to paste the link now go to tools boards and then boards manager and search for esp32 for this internet connection is must search for esp32 and then select the esp32 arduino core and click on install install the latest version it will take it some while for installing this arduino core once it is installed close this window and then go to tools and then click boards manager here select the esp32 arduino and then select the board as this a thinker esp32 cam note that it is not in alphabetical order you have to search for this a thinker cam module select the board and then under the tools select the com port that is allotted to usb to ttl module select the com port and then go to file examples and then esp32 esp32 camera and then esp32 camera server web server this is the only sample code provided this code is a highly sophisticated code with three header files one header file for index and the other one for camera pins and the third one for http at the top of the code you can see some definition for selecting camera module the first definition is for a rover module i comment this line and then at the bottom you will see a thinker camera module you have to uncomment this as most of the modules available on the market is a thinker module you uncomment this to select the a thinker camera module at the bottom you'll see the wi-fi credentials here you have to provide your ssid and password of your wi-fi once this is done you can click on the upload button to upload the code uploading code will take a while and once the compiling is done at the bottom you can see the connecting and then some dots while seeing the dots you have to press the reset button the reset button should be pressed at the correct time otherwise the code will not be uploaded once the reset button is pressed at the right time you can see the uploading of code and the percentage of uploading is you can see the percentage of uploading once it reaches 100 you can see done uploading at this stage you can press the serial monitor and then remove the jumper from gpu gpu to ground you remove the jumper and then again press the reset switch now the web server is being started you can see the dots here and finally you can see the ip address allotted to the camera here ip local ip address alerted to my camera is 192.168.1.5 note on this ip address and open your browser and feed in the ip address now you will get the camera control panel here you can see the set the resolution quality brightness contrast and all credentials you can adjust at the bottom you can see two buttons one is get still button other one is the start streaming button to take pictures you will be using the get still button click on get still and you can take a picture from the camera suppose you want to change the resolution you change from caf to vga or svg so the pixels will get more when you select the resolution in the upper grid the size of the image will be more and the image will be clearer this is the get still button and the next button is start streaming that is you can stream a live video using this start streaming button click on the start streaming and then the camera will start the real time streaming of video so this very powerful camera and you can use face recognition also on serial monitor you'll get the detail that is the frame per second and the timing of the still or video streaming now let us see some important problems faced during this usage of this camera while uploading the code the compiling of code will be done and at the bottom you will see the dot connecting and this connecting and this dot will continue and finally you will get a error that is a timed out error for under looking for packet header this is because of gpu 0 being not connected to brown that is the esp32 module is not put in the flash mode in this case you will get the error now connect the gpu 0 to ground and then upload the code again the code will upload compile correctly and then being uploaded the second problem uh that may arise is because of wrong selection of the camera the compiling will be done and if you press the reset at this connection time the code will get uploaded you will get 100 code uploaded and after that you will be opening the serial monitor and removing the gpu 0 ground connection you will press the reset and finally you will get the error that is the camera is not responding or wrong camera model selected not supported the camera model selected is not supported the code you have to select the correct camera module here we have selected the rover model so command this model and then unselect the and command the a thinker model now click on upload by selecting the a thinker camera module now the compiling will be done and after resetting the code will be uploaded 100 on opening the serial monitor and then removing the gpu 0 and ground and pressing the reset you can see the camera web server being started correctly now now the most important friend frequent problem raising is because of power now let us try this model with fdda cable ftda connector now let us select the 3.3 volt sample on the ftda module and then connect to 3.3 volt of usb 32 camera module now select the a thinker camera module and then click on upload and after resetting in the serial monitor you can see the camera web server is not being started and repeatedly you will get this display that is it is getting booted it is trying to start the web server but because of the power problem it is not able to do that so this is because of the 3.3 volt supply so always use five five volts supply for the camera esp32 camera thank you for watching you
Info
Channel: Saravanan AL
Views: 134,290
Rating: undefined out of 5
Keywords: esp32, ESP32 CAMERA
Id: JYchUapoqzc
Channel Id: undefined
Length: 14min 4sec (844 seconds)
Published: Fri Apr 02 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.