ESP32 Tutorial 44 - ESP32 Camera Web Server Video Stream Over Wifi CAM-2 | SunFounder's ESP32 kit

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Hi. welcome to esp32 tutorial from  Robojax. in this video we are going   to use SunFounder esp32 camera extension  board to stream video using this camera   let's get started with this and the stream will start this detection is activated esp32  starter kit from SunFounder this is the   best esp32 learning kit from SunFounder it  has this ESP 32 microcontroller which has   belt and Wi-Fi and Bluetooth this board can do  everything Arduino Uno can do or many other U   can do plus extra more features because we  have Wi-Fi and Bluetooth the possibilities   are endless you can get connected to  the cloud or do the control or read   information or values via your mobile device  or your desktop or over the cloud from a far location it comes with a camera extension  kit where you can stream the video over   Wi-Fi either through the cloud or to your  network and also it comes with micro SD   card where you can save images on the micro  SD card or you can write from the device any   information log the information on the device  and read it back you can power the board using   this included 18650 lithium battery and it has  built-in charger where you can connect micro USB   and charge the battery the kit comes with 320  pieces of component that you can learn tons of projects I have a separate video explain this  esp32 camera module like this and it has been   viewed over 100,000 times the link is below  the video in the description but this has   nothing much all the ports have been blocked  you can do anything even though it has ESP 32   module everything is there but you cannot  use it uh this can be just used for this   purpose but with this with the SunFounder  esp32 module there are pens available that   you can program and do other tasks and it  comes with a battery everything looks very   nice and easy to use and you can stream  it the video over your Wi-Fi network this   this tutorial is about viewing or streaming  video over the same Wi-Fi Network and the   speed of stream depends on your Wi-Fi uh  router mine uh seems to be not that good quality so my router might not be as  good as it's supposed to because the   speed is like 200 megab per second and  it's very slow let's invert this into   the cord we're just pulling this up like  this and because the metal connectors are   at the bottom this these shiny wires should  be facing down and the camera will be facing up so we just insert it make sure it's aligned up  to this portion you see here it should be almost   equal to this and then press it now the camera is  facing up if I hold it the camera is facing that way come to this page docs.SunFounder.com  scroll down until you see esp32 then   click on esp32 starter main on  the left side click on Arduino user and here scroll down until you see 8.2 camera web server this is a documentation  page for today's lesson and we just need our esp32   board and esp32 camera extension board  attach the camera which I've shown you   in previous lesson so we can attach it first and  connect it and upload this code and I'm going to   explain it and we have these two settings  make sure to set these settings otherwise   the camera will not work and then we have these  settings on the browser which I'm going to show you I'm opening Arduino IDE let's open our project by clicking  on file open on the left side click on   downloads then esp32-starter-kit-main  on the right side double click to open   it double click on C double click on codes  and on this screen scroll down to IoT number two IoT 2 camera server double click to open  it and select the file open to open it this   is a file at the top we have esfp camera uh  header file Wi-Fi you don't need to install   anything once you prepare the orino for esp32  everything is already included and this code   can work with multiple cameras the camera  the code that we are using is camera model   AI thinker as you can see this is active so this  is the activated line and the camera pens don't   worry here you enter your SS ID for the Wi-Fi  and this is a uh Wi-Fi password pay attention   this is Dar and and that's D is lower case if  I put capital D it will not work so make sure   to respect the case for the SSID because upper  ke lower ke will make big difference then then   you don't need to do any other setup uh in  here this is the frame size and the format uh if I go to on GitHub I searched for this  variable and here it has been explained that   the format that you can enter is y uv422 gray  scale RGB 565 and JPG just search for this on   Bing or Google and then follow the link that goes  to getap and you will get a lot of information   about this and here it says configure the frame  name size 240 by 240 uh if certain device is selected this line will get connected to  the Wi-Fi and if it's not connected this   will print continuous dots because it says  Wi-Fi status is not equal WL connected so   this will continue until it's connected once  it's connected you will see this text on the   screen and the IP address after this word so  you know which IP you should get connected to now let's see how we can select the esp32 board  we can click here there the select board and type   here esp32 D as soon as you type Dev you will see  Dev board you can select it and click okay so the   board have been selected now we have to select  the port the other way to select the board is   Click On Tools board esp32 and select the esp32  dev module now we have to select the port if I   click here it shows two port and I don't know  which one belongs to my device sometimes you   will see you will not see the number properly  so the best way to be sure the right click on   the start menu go to the device manager and you  will see here the ports if I click on this Arrow   it will show me the ports one is USB serial  ch340 one the other is USB serial device and   here now it's connected if I disconnect this one  of them disappear the one that disappeared is my board so six stays and it disappeared if I connect it so it is my comport ch340 now it is my comp  port and I can select it or I can click on tool   port and here you will see it you can select  whichever you want ours is com8 now we have   successfully selected the board and the port  and this is very important it must be done first once the code is ready click  here to upload the code to the esp32 once it got connected you will see the IP  address here 1921 168 0 and 100 now let's   open the browser and type HTTP uh column1  192168 whatever is the address for yours   mine is this once I clicked it shows this  these settings click Start stream and the   video will start streaming here it will  start working from here you can select   the resolution let's say HD give it  a little time and the stream will start and from here we can take photo now once I clicked the photo is  there so right click and then save the   photo wherever you want this way you  can save the picture and then start   stream it will come back let me select a smaller resolution like that so you can see it  and there are a lot of option you can   play with this for example gray scale  you can make it gray scale and gray   scale uh would be faster maybe  Sapia you can do that negative like that and no effect and from here we can do  uh mirror horizontal mirror vertical Flip as well   if the camera is upside down there are other  options like enroll uh faith pH detection for   example if I do this it says it cannot work so  we have to enable face or we have to reduce the   resolution to the lower like 320 by 240 and then  we can enable this and then now phase detection   is activated but we have to enroll the phase  and which is not part of our uh lesson because   it needs a lot of other setups the moment we  we don't have face recognition maybe Sounder   will uh provide a code in the future make sure to  check their website and here's a demonstration I   have connected it to the battery there is no wire  or anything and this these are all the settings   that you see on the screen it's available but  the video will be at the bottom so but just   make sure that you connect this and here is the  demonstration I've entered the IP address for   the esp32 my mobile phone is connected to the  same router as the esp32 and once you see this   screen there is a start stream once you touch  that the video will be displayed at the bottom and the speed of the stream uh depends on how  fast your router is the router that I'm using   for this is not a maybe good quality but this  works very well this camera is much better than   this option and the price is very high and you can  get this with 320 other components and learn plus   the camera and other features and also it has  18650 lithium battery with built-in charger so   you can charge it and carry it and take photo this  is much better than uh this I definitely recommend this
Info
Channel: Robojax
Views: 1,261
Rating: undefined out of 5
Keywords: robojax, sun, founder, sunfounder, course, tutorial, kit, learn, learning, step by step, esp32, arduino, iot, wifi, cam, camera, esp32-cam, OV2640, browser, setup, take photo, face, recognition
Id: TSIO1mQXn4U
Channel Id: undefined
Length: 13min 53sec (833 seconds)
Published: Thu Jan 04 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.