ESP32-CAM Video Streaming Camera that works with Node-RED and Home Assistant

Поделиться
HTML-код
  • Опубликовано: 28 янв 2020
  • In this video I will show you the #ESP32-CAM. This is the cheapest WIFI camera that I've ever found on the market. Also This tiny #Camera can stream video via web server and can work with Node-RED & #HomeAssistant and I will show you how.
    1:07 Requirements
    5:44 Node-RED integration
    8:13 Home Assistant integration
    9:31 How to create a ESP32-CAM cable
    11:30 mounting ESP32-CAM inside fake security camera case
    Steps
    To make this camera to work as I want I will flash it will Arduino sketch which will actually start a mini Web Server inside it that can be accessed from any web browser and of course Node-Red and Home-Assistant.
    Before I continue I want to say that all the credits for the Arduino sketch and the Idea as a whole goes to the guys from randomnerdtutorials.com. They have a great video and article about ESP32-CAM showing how to flash the camera and how to integrate it with Home Assistant. So thank you guys for your great work.
    Be careful with the ESP32-CAM model, there a 4-5 different brands out there the one that you want is Ai-Thinker.
    To complete this tutorial you will need:
    * A computer with USB and Arduino installed - www.arduino.cc/en/Main/Software
    * ESP32-CAM with OV2640 - s.click.aliexpress.com/e/_sD0uUd around $10
    * FTDI programmer - amzn.to/3Cxe0KM around $1.65
    * Female-to-female jumper wires - amzn.to/2F69gxt around $7 ($0.12 for two wires)
    * Fake/dummy dome security camera (optional) - s.click.aliexpress.com/e/_rIrELj around $4
    * 5V power supply for ESP32-CAM - s.click.aliexpress.com/e/_sGcdip around $1.5
    Other brands may also work, but it's not guaranteed. I tried with the one camera that looks the same, but it has no labels on it and everything went fine, but at the end there is some strange flickering during the streaming.
    With that being said lets flash the ESP32-CAM now:
    * Install Arduino IDE for your OS
    * Go to Arduino \ Preferences
    * Enter dl.espressif.com/dl/package_e... into the “Additional Board Manager URLs”
    * Go to Tools \ Board \ Boards Manager…
    * Install “ESP32 by Espressif Systems“ for me only version 1.0.2 worked OK
    * Copy and paste the following sketch inside your Arduino - github.com/peyanski/ESP32-CAM...
    * Replace SSID and password with your WIFI credentials
    * If you are using other ESP32-CAM model than Ai-Thinker uncomment your camera model in the code
    * Connect the ESP32-CAM board to your computer using an FTDI adapter and Follow the diagram in the video.
    * Chose all the settings in Arduino exactly as shown in the video
    * Click the upload button to upload the code.
    * After uploading the code, disconnect IO0 from GND. Open the Serial Monitor at a baud rate of 115200. Press the ESP32-CAM on-board Reset button. The ESP32 IP address should be printed in the Serial Monitor.
    Node-RED integration
    * Inside Node-RED Install node-red-dashboard from Manage Palette menu, if you don’t have it already
    * Import the whole flow from here - github.com/peyanski/ESP32-CAM...
    * Don’t forget to create and assign Group and Tab to the template in your Node-RED
    * Open your dashboard
    Home Assistant integration
    * Click on Configure UI in the upper right corner
    * Click on the Plus button in the lower right corner
    * Click on the Picture Card
    * Type the URL of the ESP32-CAM in the Image Path of the Picture Card Configuration
    Question?
    Are you interested in image recognition software - you can say yes or no in the comments section bellow and I will know for what you are talking about.
    Support my work
    Any sort of engagement on this channel does really help out a lot with the RUclips algorithm, so make sure you hit the subscribe, Like and Bell buttons If you enjoy this video.
    Also feel free to add me on Twitter by searching for KPeyanski username. I post there pretty much daily.
    I really hope that you find this information useful and you are going to make your ESP32-CAM to work with Node-RED, Home Assistant and as video streaming web-server
    Thank you for watching, stay safe and see you next time.
    DISCLAIMER
    Some of the links above are affiliate links, where I earn a small commission if you click on the link and purchase an item. You are not obligated to do so, but it does help fund these videos in hopes of bringing value to you!
  • ХоббиХобби

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

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

    i saw it :p

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

      Great, you receive a pinned comment as a reward!

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

    Thanks for the video. Nice to see multiple ways to view your cameras

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

      You are welcome 🙏

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

    Respect for the soldering iron! I was using similar, made in CCCP in 1978 until I switched to some modern one around 20 years ago ;) - SMD0805 were the challenging to solder.

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

      Haha thanks, although this soldering iron is still working perfectly fine, I bought another one for more precise soldering :)

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

    Hey Kiril nice video and i like your descriptions, so we can read the instruction for own projects. Thx

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

      Thank you! I tried to make them as detailed as possible and very often I hit the 5000 char limits for a RUclips video description

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

    Hi Kiril, It's really works. Took 5 minutes to arrange all and works exellent. Spaciba ;)

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

      Great to hear! Check my other videos as well they are working as well :)

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

    Yes, I am interested and thank you.

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

      Thank you Ron.

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

      Hello Ron, can I use your comment in my next video?

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

      @@KPeyanski Yes sir you can.

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

      @@ronm6585 Thank you Ron. See you around...

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

    I am glad I found your videos. I am a big fan of the esp32. I know you made this video 3 years ago so maybe something has changed.
    After following your video using node-red for the display. I get only a small icon on the dashboard. I did check to make sure the camera is working by using esp32 ip in a browser. I am not that experienced with node-red. I tried a bunch of things without success. Any ideas would be appreciated.

  • @mrbarrington-smythe9033
    @mrbarrington-smythe9033 2 года назад

    Thanks. Could you do an update video, adding a microphone and speaker please? I'd like to build this project, but need help to add the two-way communication (hopefully it can be achieved with minimum lag).

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

      Very sorry, but I'm not using these anymore and I don't plan updates at least for now...

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

    I also think that intellectual video analysis in real time is very interesting and promising at once. The only downside is that it requires more computational power.

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

      Yes, you are absolutely right Max as always ;). Good thing is that there a several cloud services for that and they even have some kind of free tier. I have to research a bit more this topic

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

      Hi Max, can I use this comment of yours in my next video?

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

      @@KPeyanski Yes, feel free to use any of my comments however you like.

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

      Great to hear that Max. Thanks.

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

    i tried with esp32-cam color detection, i use the IP Address but the entire website are displayed on template

  • @7Trident3
    @7Trident3 2 года назад

    Great video, add a relay, and use the led's.

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

    Hi Kiril. Which pins you use to connect the black/red wires to power up the esp32?

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

      Hi, I forgot the exact PIN numbers, but I used the 5V and any of the GND pins exactly as shown in this picture in my website (scroll down a bit) - peyanski.com/esp32-cam-video-streaming-camera-that-works-with-node-red-and-home-assistant/#Flashing_the_ESP32-CAM

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

    how can i increase the resolution to (XGA) 1024*768 , and with its frame rate can i use img/ facial regonition?

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

      Sorry, I'm not sure about that.

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

    THANK YOU VERY MUCH! Its work. I want to ask, it doesn't matter right if I use mobile tethering or wifi ? or which one is the best for internet connection?

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

      Hay there, I’m glad that is working. If I understood your question correctly use Wi-Fi when you are at home and mobile tethering when you roaming around.

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

      @@KPeyanski sir, the node-red need to install in my laptop (windows) if I want to use? or it can set up through the web browser. if need to install, can you share the link to download? because I'm trying many times, it didn't work. this part I'm a little bit confuse.

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

    I would like to propose a challenge for you. My challenge is to add face recognition to your doorbell project. There are several codes available for face recognition and after that, use Alexa to announce who is outside. I think you are the best person to do that. I will be happy to see your solution.

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

      Thanks for the challenge, I will think about it ...

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

    Hi I have problem with your setup of node-red it shows me the dashboard but the view is just an image icon is there any additional step?

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

      same here. I suspect something has changed in node-red since he made this video.

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

    Hi can I know the exact model for the FTDI programmer ?
    The amazon link cannot be accessed anymore

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

      It is the same as this one - amzn.to/3Cxe0KM

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

    Hi kirill, not sure about that question so I hope that u Will answer it corectly... Do the esp32 cam is able to use further than just being a camera? I mean, it ve got the esp32 so i wanna be able to move a servo while i can Take a photo from what the camera is seeing... It is that posible?

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

      I don’t know. Probably it’s possible you just have to find the right sensors and mechanics for that. It seems like a nice project 👍

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

      Unfortunately, the ESP32 has only one unused GPIO pin when you use an SD card. Without an SD card inserted I understand you can use the pins allocated to it, but I’m not sure.

  • @motivation.ai.shorts
    @motivation.ai.shorts 4 года назад +1

    Is it okay to power Esp32 cam board?.
    Because this cable carries 5v,2A ....or.
    5v&1.5A ... depending upon charger adapter.
    It can damage esp32cam..
    Give me some explanation

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

      you better check the chip specification, I don't want to mislead you because I'm not quite sure

    • @motivation.ai.shorts
      @motivation.ai.shorts 4 года назад

      @@KPeyanski
      My cam board has. 3.3v pin and also has a 5v pin

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

    Yes. Very interested also in image recognition.

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

      Thanks Gregory. It seems that there is a lot of interest in that topic. I will try to read more about it and eventually to create a video tutorial

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

      Gregory, can I use your comment in my next video?

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

    Hi, thanks for doing this. I followed the steps and it worked 😀
    I have a question though. I am using NodeRed and I can only view the live feed on one device at a time, the other devices show a blank area where the feed would be. is this normal? If so, is there a fix to allow the stream to go to multiple devices?

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

      I don't know that

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

      @@KPeyanski Thanks for replying. I’ll keep investigating 😀

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

      @@SprocketN Wish you success! And please share it if you find something ;)

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

    I am interested in imagine recognition. Also false recognition/motion editing.

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

    I tried following your video, but your wiring of your FDI board does not match the actual marking on the pins on the board. It seems like your connection diagram is drawn in reverse.
    So I didn't know whether to follow your wiring or the markings on the FDI board.

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

      What is FDI board? Did you mean FTDI adapter/programmer? If yes then follow the markings of your adapter, there are different versions available and maybe there are differences with the pin out.

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

    Yes. I am interested in image recognition software!

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

      Thumbs up. This is actually in my TODO list. I want to find a way for Home Assistant or Node-RED compatible camera to motion detect only people and not animals for example. What is your idea for image recognition?

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

      @@KPeyanski Hi, I think about reading a gas meter for example. Take a picture and make numbers from the picture with OCR, where I can find out my gas consuption, ( or any anaog meter ). I think there is no need a lot of local compute power, instead we can use cloud. For examble if you upload a picture to google drive, it can make an OCR , and download the recognised file only. I don't now but I think it is possible with API calls. If yes I think it is possible to do with Node-Red. What do you think?

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

      @@rebetli6 This can be really useful. And I think it's absolutely possible as there are already integrated software to read car number plates for example. But I'm not sure if it is going to be entirely free if you are trying to call some cloud API services. This has to be researched in my opinion.

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

      Hey there, can I use your comment above in my next video?

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

      KPeyanski Yes. Sure!

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

    Yes

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

      Just in time Christian. Can I use your comment in my next video?

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

      KPeyanski of course you can!

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

      Thank you :)

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

    How do u handle the IP change if the ESP32cam is turn off ?

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

      make a static IP for it in your router

  • @Manuqtix.Manuqtix
    @Manuqtix.Manuqtix 2 года назад

    Mine keeps on saying
    failed to connect to ESP32: timed out waiting for packet header
    I tried absolutely everything
    Switching 3.3v to 5v
    Checked ftdi drivers
    Checked ftdi wiring
    Used board wrover and aithinker
    Pushed rest button
    Changed usb cables
    Changed computers
    Nothing seems to work. What am I doing wrong?

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

      do you get the video on the ip of the esp32 ?

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

    Is the video streaming available locally only or you can stream from everywhere?

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

      Locally, if you want to see it from everywhere you can use a VPN. Here are some video tutorials of mine that you can use - ruclips.net/video/df9xjMsNVaI/видео.html ruclips.net/video/lFmeF5xoAPI/видео.html

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

    this esp32cam will support audio streaming ????

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

    how does that work with arduino nano plz?

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

      I'm not sure. I guess you have to test it...

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

    Can we use this with mqtt protocol?

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

      Probably yes, but not with this Arduino sketch

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

    Is it work on different WiFi network ? Anywhere access in world

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

      lokesh saini yes, but you have to change the SSID and password in the script. If I understood your question correctly

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

      Sir is it access anywhere in the world ? The device is location or access location is different locations .then is it work ?

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

      You can access the camera from anywhere in the world only if you have some kind of VPN. Watch my ZeroTier video to setup a VPN.

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

      @@KPeyanski sir please send link of zerotier video ? Sir I want esp 32 cam. Access anywhere in the world .

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

      @@lovekeshstatuspro5296 this is the link - ruclips.net/video/lFmeF5xoAPI/видео.html

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

    Yes this is ultimate goal 😁
    And you had terrible solder iron 😭

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

      Yes, I know. And I just bought a new cordless one, that I didn’t have time to test yet. However this is truly the ultimate goal for me as well. Thank you for your comment

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

      @@KPeyanski would you put some test video on channel?

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

      Michał Szura of the soldering iron ? :)

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

      Hi Michal, can I use your comment in my latest video that I plan to release next week?

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

      @@KPeyanski no problem in fact why ask it's obvious

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

    Make sure to set the FTDI signal levels to 3.3v.

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

      Yes, this is important :) Thanks for the comment!

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

    hi, can we see the images with 4G?

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

      I don’t understand. Are you talking about cellular network? If yes, you will need a VPN for that.

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

    Where can I find the sketch ?

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

      Check the video description

  • @brian.hanifin
    @brian.hanifin 4 года назад +1

    Yes

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

      Very Good, Brian. Thanks for your comment.

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

      Hi Brian, can I use your an image of your comment in my video that I'm about to release next week?

    • @brian.hanifin
      @brian.hanifin 4 года назад +1

      KPeyanski absolutely

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

      Thanks Brian. I highly appreciate that :)