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! Хобби
i saw it :p
Great, you receive a pinned comment as a reward!
Thanks for the video. Nice to see multiple ways to view your cameras
You are welcome 🙏
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.
Haha thanks, although this soldering iron is still working perfectly fine, I bought another one for more precise soldering :)
Hey Kiril nice video and i like your descriptions, so we can read the instruction for own projects. Thx
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
Hi Kiril, It's really works. Took 5 minutes to arrange all and works exellent. Spaciba ;)
Great to hear! Check my other videos as well they are working as well :)
Yes, I am interested and thank you.
Thank you Ron.
Hello Ron, can I use your comment in my next video?
@@KPeyanski Yes sir you can.
@@ronm6585 Thank you Ron. See you around...
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.
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).
Very sorry, but I'm not using these anymore and I don't plan updates at least for now...
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.
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
Hi Max, can I use this comment of yours in my next video?
@@KPeyanski Yes, feel free to use any of my comments however you like.
Great to hear that Max. Thanks.
i tried with esp32-cam color detection, i use the IP Address but the entire website are displayed on template
Great video, add a relay, and use the led's.
Thanks for the tip!
Hi Kiril. Which pins you use to connect the black/red wires to power up the esp32?
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
how can i increase the resolution to (XGA) 1024*768 , and with its frame rate can i use img/ facial regonition?
Sorry, I'm not sure about that.
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?
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.
@@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.
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.
Thanks for the challenge, I will think about it ...
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?
same here. I suspect something has changed in node-red since he made this video.
Hi can I know the exact model for the FTDI programmer ?
The amazon link cannot be accessed anymore
It is the same as this one - amzn.to/3Cxe0KM
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?
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 👍
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.
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
you better check the chip specification, I don't want to mislead you because I'm not quite sure
@@KPeyanski
My cam board has. 3.3v pin and also has a 5v pin
Yes. Very interested also in image recognition.
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
Gregory, can I use your comment in my next video?
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?
I don't know that
@@KPeyanski Thanks for replying. I’ll keep investigating 😀
@@SprocketN Wish you success! And please share it if you find something ;)
I am interested in imagine recognition. Also false recognition/motion editing.
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.
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.
Yes. I am interested in image recognition software!
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?
@@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?
@@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.
Hey there, can I use your comment above in my next video?
KPeyanski Yes. Sure!
Yes
Just in time Christian. Can I use your comment in my next video?
KPeyanski of course you can!
Thank you :)
How do u handle the IP change if the ESP32cam is turn off ?
make a static IP for it in your router
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?
do you get the video on the ip of the esp32 ?
Is the video streaming available locally only or you can stream from everywhere?
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
this esp32cam will support audio streaming ????
no, sorry
how does that work with arduino nano plz?
I'm not sure. I guess you have to test it...
Can we use this with mqtt protocol?
Probably yes, but not with this Arduino sketch
Is it work on different WiFi network ? Anywhere access in world
lokesh saini yes, but you have to change the SSID and password in the script. If I understood your question correctly
Sir is it access anywhere in the world ? The device is location or access location is different locations .then is it work ?
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.
@@KPeyanski sir please send link of zerotier video ? Sir I want esp 32 cam. Access anywhere in the world .
@@lovekeshstatuspro5296 this is the link - ruclips.net/video/lFmeF5xoAPI/видео.html
Yes this is ultimate goal 😁
And you had terrible solder iron 😭
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
@@KPeyanski would you put some test video on channel?
Michał Szura of the soldering iron ? :)
Hi Michal, can I use your comment in my latest video that I plan to release next week?
@@KPeyanski no problem in fact why ask it's obvious
Make sure to set the FTDI signal levels to 3.3v.
Yes, this is important :) Thanks for the comment!
hi, can we see the images with 4G?
I don’t understand. Are you talking about cellular network? If yes, you will need a VPN for that.
Where can I find the sketch ?
Check the video description
Yes
Very Good, Brian. Thanks for your comment.
Hi Brian, can I use your an image of your comment in my video that I'm about to release next week?
KPeyanski absolutely
Thanks Brian. I highly appreciate that :)