ESP32 CAM - 10 Dollar Camera for IoT Projects
Тәжірибелік нұсқаулар және стиль
Today we are working with the ESP32-CAM, an amazing 32-bit microcontroller module with a built-in camera and microSD card interface that retails for less than 10 dollars!
Article with code: dronebotworkshop.com/esp32-ca...
More articles and tutorials: dronebotworkshop.com
Join the conversation on the forum: forum.dronebotworkshop.com
Subscribe to the newsletter and stay in touch: dronebotworkshop.com/subscribe/
Quick quiz - what has a camera, a microSD card socket, several GPIO pins, WifI and Bluetooth and costs less than 10 bucks? Answer - the ESP32-CAM module from A-Thinker!
We have already worked with the ESP32, it’s a 32-bit microcontroller from Espressif Systems that has a wealth of features. The ESP32 is a perfect choice to build WiFi-enabled or IoT projects, and it can be programmed using the familiar Arduino IDE.
There are many different modules that use the ESP32, and today we will look at one of the most popular ones - the ESP32-CAM. As its name would imply this module has a built-in 2-megapixel camera, as well as a microSD card and provisions for using an external antenna.
The demo sketch that comes with the module creates a full-featured Camera Web Server, complete with a control panel and advanced features like face detection. All you need to do to get it working is to add your WiFi credentials.
One thing that is missing from the ESP32-CAM module, however, is a USB connector. To program this device you’ll need to use an FTDI adapter, the same type you would use when programming an Arduino Pro Mini.
Today I’ll show you how to hook up that FTDI adapter and program the ESP32-CAM. I’ll also show you how to add an external antenna, and how to troubleshoot any “brownout condition” errors you might get when experimenting with this device.
Here is what we will be covering today:
00:00 - Introduction
03:23 - ESP32-CAM Introduction
08:18 - Using the FTDI Adapter
09:28 - Camera Web Server Example
15:44 - Resolving Brownout Problems
22:39 - Using an External Antenna
If you need more information or would like a copy of the Antenna Test Sketch head over to the DroneBot Workshop website where you will find an article that accompanies this video at dbot.ws/esp32cam.
If you want to discuss the ESP32_CAM or anything you see here on the DroneBot Workshop channel just head over to the forum at forum.dronebotworkshop.com. The Forum is also the place to go to suggest content for new articles and videos, and it’s a great place to meet new people who have similar interests to you.
I hope you enjoy the video!
Пікірлер: 537
He's the Bob Ross of electronics.
@Slushee
3 жыл бұрын
You nailed it. 100% True
@chrisreeves5984
3 жыл бұрын
@Magic Man ,-__-, so true
@life-explorer
2 жыл бұрын
true
@life-explorer
2 жыл бұрын
he will beat the brush anytime
@cw4608
2 жыл бұрын
@Magic Man hanks for the laugh
I thought your videos were high quality tutorials. Then I went to your website. You have put a lot of work into making a polished written tutorial! Thank you for all your work.
I can't get over the quality of these videos. So much useful information presented clearly and thoroughly. So glad I found this channel!
I am impressed with this gentleman. I have seen lots of his videos in the past couple of years, but never had time to "like" them, never mind "subscribe". You cannot hear a single false info on his channel, as opposed to most of the similar videos on the same subjects. The verbal part is just perfectly proper...not too much, not insufficient. If he is not an engineer (or other post-graduate), he certainly thinks like one. I wish I had professionals like him working in my team.
Absolutely fantastic introduction to the ESP32-CAM, thank you so much for pointing out all the small quirks like the brown-outs and the modifications you need to do to use an external antenna.
Thank you VERY much for this video. I had this exact module laying around for more than a month now, could not get it working. Now my project is moving on, thanks to your tutorial. Very precise, very interesting learning material, thank you for sharing!
I'm in my sixties, getting back into electronics, and ran across "Arduino", and have found your tut's among the best I've watched. I especially enjoy the clarity of the sketches and explanations, you are very clear and exact with the pieces putting the program together, connecting the pieces with what they do. Thanks very much.
@OrixMovies
3 жыл бұрын
Its great👍🏻
@qiangzhang9368
2 жыл бұрын
Great!
@jethrotull5847
2 жыл бұрын
Hi John, 58 and me too. I’m integrating everything into home assistant. While I’m having flashbacks on my 20 year electronics career I’m having nightmares based on my last job ( network engineer ) regarding my paranoia with network security. It is a crying shame hooking anything to the internet is a invitation to a security breach. So every in house camera needs to be on a non inet wireless network. Even so the wireless signal is hackable. It leaves me insecure. Of course my kids think think internet is private. Oh well guess I’m just old.
@jamescullins2709
2 жыл бұрын
Nice to hear John, I will be 80 in June and still do electronics, CNC, 3d printing. This is a very good channel to subscribe to.
@jamescullins2709
2 жыл бұрын
@@_marlene Thank you for sharing, remember NEVER give up. I will pray for you.
I am a students of Robotics and AI, and believe me this video taught me literally everything about esp32 cam. Hats Off to you, sir
Got mine today (also in my sixties and getting back into electronics after many years away). A note quick note for anyone with issues getting the PC to even recognise (beep) that something's been plugged in. Double and even triple check your micro-USB cable. I say that because the 1st 2 cables I tried produced the same result ... no beep from PC when ESP32-CAM plugged in, so I had almost given up. I remembered another cable that I had in my travel kit that I had bought directly when I had forgotten a cable whilst on holidays ages ago. Bingo ... it worked. Turns out the 1st 2 were charging cables only and were probably provided with phones sometime in the past. Once that was sorted, everything worked perfectly. Brilliant video ... working through the examples now (it's only midnight ... plenty of time yet :) )
Hi Bill, I just received this in the post today and by the time I had watched your video I had this all working just fine. Thanks so much for these great videos...
Thank you very much for these very clear explanations and for sharing your videos with passion. I'm from the south of France and now the ESP32 CAM has no secrets for me.
I love.... LOVE.... your videos, youre so detailed, you dont make any assumptions on our abilities and explain everything Seriously, thank you
I've been waiting for the esp32 followup vids.. THANK YOU!!
Thank you for this video! It helped me to get going with the ESP32-CAM. One note: I had to change the 3.3V power from the USB interface board to 5V and connected this power to the VCC pin of the ESP board and then the programming worked.
Hello Sir, I have seen 1000's of tutorial videos about Arduino, ESP, RasPi etc etc but being honest, your tutorial videos are THE BEST, Very Clear and Detailed with circuit, codes, troubleshooting etc etc. Please keep up the great work for the community. You should come up with more number of projects using ESP32 Cam for Robotics etc
The tidiness and organisation of that workshop is amazing.
@CDRClarisse
3 жыл бұрын
dreamshop
Awesome! just what I was looking for. Amazingly organized and clear video, as always! thank you!
I Just love your videos, you explain every detail in a very clear way.
Great, I received one of these about two weeks ago and have been itching to give it a go, thanks for the info
THE most thorough tutorials AFAIK of... thank you very much!
I really enjoyed this video about such a useful and affordable micro-controller. It's abundantly clear that you put a lot of hard work into developing your skills and your videos. I'm super impressed. Thanks!
I received an ESP32 CAM Kit yesterday. It consists of the ESP32 CAM board, a camera, an external antenna and an adapter board. The adapter board contains a USB micro connector which can be used for programming and power. The adapter board includes its own ReSeT switch. I set my Arduino IDE to the board suggested above and tried loading the WiFi Scan example that Bill showed in an earlier video. This worked fine. I then loaded a known good working sketch that I have used with an ESP32 Dev board (not CAM). This used the ESP32 as an Access Point. This worked fine also. With the adapter board in place, there is no way to connect the GPIO 0 pin to ground but the adapter board must handle that as the sketch loaded right after being compiled. Things looked great. Next I removed the adapter board and installed the loose ESP32 CAM board on a breadboard. I tried using a breadboard power supply both at 3.3V and also at 5V from a battery. This was not successful. Also my camera was packaged separately and I haven't been able to connect it to the ESP32 CAM board. It appears that with the adapter board in place, I will not be able to access any of the GPIO pins which I need for my projects. This is why I planned on using the board loose to expose the pins. Any tips on my problems?
I am continually stunned by the clever introductions and how they accurately portray the coming attractions. "We're taking pretty pictures today...." I so look forward to your videos. Stay safe.
@kennmossman8701
4 жыл бұрын
I thought he said....dirty pictures!
Excellent video....I got one of these last year and was able to get it operating but you have made it very simple and easy to understand...
You are just a father! I cannot wait to subscribe to your channel. In fact, i will go through all your videos, and not this alone. Live Long Father!
Thank you for your very well produced technical videos. They are excellent. Keep up the great work. It is much appreciated.
Once again very informative. Thanks a lot for the clear and concise explanations. It is greatly appreciated by everyone I'm sure
Thank you very much for the work you've been doing, I really like your presentation style, keeps me calm and clear headed. Gotta remeber to watch more of your stuff, or probably all of it!
Thank you for all your excellent videos! Hope you are doing great and staying well.
Let me drop a message here. I am hungarian and i handle written english well. But when it comes to listening and understanding i have difficulties. There are a lot of english speaking youtubers i cant fully understand (i cant even practice here in our country) Its very important how you speak when you are educating people. Your speech and style is clear, i believe that its understandable for people all over the world, and your voice is calming as well. You are a pro in education. Congratulations and thank you for the valuable videos. Keep the good work.
Thanks a lot for all your work to help me and others arduino fans all over the world with your excellent tutorials!
I do some work for a dance school. I just ordered some ESP32s for a couple of WS2812 lighting projects I'm starting and just discovered the ESP32-CAM. They create a lot of videos of their classes and choreography for social media, and love cool lighting effects. They have TVs serviced by Ras Pis in the parent area (showing a lot of the previously mentioned videos) and it's been a wish list item to inexpensively put a live feed of classes for the littlest (2-4 y.o.) students on one or more of these TVs so the parents can watch without being seen through the windows which always distracts the littles. These ESP32-CAM modules are $19.99 for a three pack right now, and I'd be a fool to not give this a try. It appears that I can use omxplayer on a Pi to bypass the web interface for the stream. If so, it'd be so easy to keep dumb controls for the non-techie staff. I quickly thought about getting a carrier board made by Oshpark to carry the ESP32-CAM, a D2D so I can route 12v from an outlet to the module (not a short run for optimum perspective) as well as include a GPIO0 jumper point and a socket for an FTDI in case I need to reprogram it. Funny part is that the Oshpark board would probably cost more than the ESP32-CAM... It would make sense to put a hole in the board for easy access to the reset switch, and keep the area adjacent to the on board antenna free of copper to prevent blocking/interference.
Your videos motivate me to stop laying on the bed, buy the tools and start to made something
Great video. I like your calm way of explaining things and your excellent English that makes it possible for me as a German to follow you. Stay healthy. 👍 👍 🙂
Great video, nicely explained. Clearly pronounced, easy listening. Thanks.
Thanks for this video. Not much content is there on ESP32 "CAM" online specially. Thank you so much
Excellent video, and a very detailed explanation as always! Thank you!
Excellent video my setup went like clockwork!. Thank you very much!.
Took a while to puzzle out the ribbon cable connection. Now that I know, I'm dangerous!! Ready to explore the face recognition stuff. Thank you for a super video.
Once again a wonderful weekend project. I am using a number of Pi’s and MotionEysOS all thanks to one of your videos. Question. Are you planning to make a video on how you can use this board in a light weight security camera?
Thanks for the video, very helpful. I feel like ill watch this a few times to really understand the ESP32 cam.
Very clear and informative video. Just the motivation I needed to try out the ESP 32. Thank you for the video. You are a great teacher.
@SincereFirstAiotVision
Жыл бұрын
SincereFirst branded camera modules is great.
17:20 actually high gauge = thinner wire. Great video. I just got an esp8266 going last night to make an info center for my house. They are fun!
@casemodder89
3 жыл бұрын
@@douganderson7002 that AWG is a whole bunch of BS. Why would you call a thinner wire bigger ? Because we can ? Nonsense. At least the murrican V8 engines aren't called 1,5L because of their 6L displacement.
This is the one of the best explanation videos I ever saw!
Fantastic video. You are very thorough and do a wonderful job of explaining. Thank you!
Re-visiting the video, as I just got one of these. Had to switch it up to 5v as I was getting brown-outs on 3.3 - Nice that it tells you it's browning-out on the serial output!
Just ordered two of these, thank you for the tips.
This was much needed help, thank you
Thanks for your Time and Efforts
Explained, flawlessly
Can't wait for the next video!
Thank you a lot. You made things very clear here.
Thanks for the overview. I already considered getting a couple of them to monitor our chicken coop. And double thanks for using a free OS. :)
Perfect tutorial. Great job as always!
Excellent video, as it is usual from him. Just a point that had me stumped. He says to use the 3.3v settings. That was giving me issues because the board kept having brown-outs. A powered USB hub still was not solving the issue. I put the FTDI to 5v and powering the ESP31-CAM on the 5VDC pin. That has removed all problems.
Great video. Thanks a lot, Bill !
Still after 3 years, this is very helpfull! :D
Exceptionally detailed 😱
Love how he explains thing!
Another great video. Thanks for posting.
You are a great human being.... thank you!
FANTASTIC AS ALWAYS THANK YOU
Thank you so much, what a great video! I was a little concerned if this was going to be a painful project. I see the hard part is making the enclose. :D
I LOVE THIS CHANNEL!!! Thank you!!!
very nice! as always i like the perfection in details. thanks from users..
I bought one of these and found having to use FTDI was inconvenient; so, I found another version of the board called the ESP32-CAM-CH340 that includes the USB and is only a couple of dollars more. Well worth it IMHO.
Good intro. One small thing: when subtracting two powers in dBm, the unit of the result is "dB" not dBm". I can explain further if anyone wonders why, but it's basically because dB is a logarithmic power ratio, while dBm is an absolute power expressed as a ratio to 1 mW (0 dBm).
@varmint243davev7
4 жыл бұрын
I was a little disappointed that he did not explain that for each 3db change, the power is either halved or doubled 30db = 1w and 33db =2w and 36db=4w (rounded)
Nice video, thank you for teaching me! Best regards and be safe.
Great video!I like your instrutional approach on this subject.Hopefully in the future, you'll feature this Cam again in a cool project.Maybe something like a cam hidden in a birdhouse or garden gnome.That is the plan for my ESP cam.If so, all I ask is that you you name the project something ridiculously corny, such as "Operation Garden Gnome Sentry" 😂
Wow! Thank you for such a great video
Thank you for the video Bill
Great video ESP32 looks a great device... more please
Great work shop, thank you.
Further to my first comment. The ESPCam now working fine from a USB power supply. Original one I tried was faulty. Facial detection working - not such a bad little camera after all!
Love your videos, thank you for sharing your knowledge
This video is excellent, many thanks. BTW, I'd like all Americans speak like you, excellent enunciation.
Update, That 0 ohm resistor was the biggest pain to move. I had to break out my magnifier just to see the darn thing. Had to use the 5v pin to upload my sketch, the 3v wasn't enough for the sketch maybe? other then that, what a fun project. Thank you again for all your help.
You are so smart. Your all videos are inspiring. Thank you a lot lot lot.
Your Intro is superb big bro.
Great explanation. Thank you
I am very poor english guy but I can understand everything what your teach. Thank you.
On the PCB WiFi antenna polarization. If you are getting terrible signal strength, before adding an antenna, simple rotae the ESP32CAM 90 degrees (in the parallel plane) to your router to find the optimized polarization position. To "fix" without having a sideways image.. you may also rotate one of your WiFi router's antennas orientations to get optimized antenna gain (polarization matching).. or.. as you said.. install an external antenna on the ESP32cam.
Great session, as always. Thank you for publishing this. When talking about potential problems, I'd want to mention the most important problem that I see: all of my esp32-cam boards stop sending camera signals after some time because they overheat. It seems that both the ESP chip on the board and the tiny camera sensor get too hot during continuous operation. I am still experimenting with heat sinks to fix this problem.
@aha5888
2 жыл бұрын
Any update?
@anonymoususer6448
2 жыл бұрын
@@aha5888 I noticed that, at least in Home-Assistant, the ESP32cam reduces it frame-rate when there is no browser watching the video stream. The cam is usable when not continuously watching the videostream (and it is not a hot, +30C, summer day) I have connected a motion sensor, a Dallas temperature sensor and small fan (via a FET) to the GPIOs. When the motion sensor sees motion, it sends a picture via Telegram (using a Telegram Bot). and when it gets too hot, it turns on the fan (controlled by Home Assistant) There are several projects on the internet that explain this.
@aha5888
2 жыл бұрын
@@anonymoususer6448 nice. Tnx
Nice! Need to try it.
This video is so useful. Thanks so much sir!
Excellent explanation. Thanks.
Great as usual Thank you
You again! Ok I'm subscribing so i get more of these videos
as usual : EXCELLENT work -- thanks for sharing with us
@1science100
3 жыл бұрын
Sadly your excellent information video and instructions didn't work at all to show and establish a working IP connection with my AI Thinker CAM. Not even in the serial monitor! And no other ino example worked showing any IP address in the serial monitor or in my browser either although they only did show my SSID name and Password! I guess my ESP32-CAM module is defect somehow. Uploading the code was never a problem but none of them ever worked! After 2 days of wasteless trying I give up on this terribly bad made China product! That without the right Arduino help and correct information never will work! Too many questions are still unanswered on how to find the cause if it doesn't work!
@MrDebug65
3 жыл бұрын
@@1science100 you answered to a comment of me -- I'm unfortunatly not the author of the video...
Great video, really well explained, very interesting indeed. Thank you very much!!
Hi Bill ... just a thought. I was having problems programming an ESP32-CAM even with your super instructions ... but still had problems. I was using what looked like the same FTDI adapter as you. I measured the 3.3V output on several of the same ... all 3.1 volts. So I switched to another brand with the same FTDI chip. They measured just over 3.3 volts. No problems now. Just thought I'd mention cause you suggested some finicky power issues. Happy Holidays to all !!!
2 thumbs up. i love the subject and presentation. i watched this channel before and was critical of the presentation, but i no longer am. thanks for the great video! i'll be watching a lot more
@kwisatzhaderach1458
4 жыл бұрын
Drink that kool aid
@iflnr978
4 жыл бұрын
Kwisatz Haderach is this comment descriptive? Does it have a point? I am trying to derive meaning, but have nothing, yes I am aware of the James Town massacre and the use of cool aid, still, what does that have to do with this video?
Thank you !
A man in control of his tools. And as alsways a great video. Love it.
i always like ur introduction.
Thank you very much on this great tutorial. Very didactic. I heard that the ESP32-CAM can also run machine learning algorithm to recognize faces and and other objects. Is it true? If you can demonstrate in another short video such real time operation it will be superb. Anyway, thank you very much for your productive efforts to teach an important community of fans that like this kind of stuff.
thanks bill! I want to make a bird breeding house with a cam inside. I think this is a wonderfull camera for this application.
Thank you ❤
Thanks good tutorial easy to understand
a few others snags I discovered others might encounter: - @7:56 & @9:16 the GPIO 0 programming pin mentioned that needs to grounded to program needs to be grounded **prior** to applying power (or prior to pressing the reset button). And rather than using a jumper wire which I had to insert and remove everytime I wanted to reprogram the module, I found using a maintained switch (rather than a momentary button) for toggling the GPIO 0 connection to ground was easiest. - Although the reset button is hard to use when connected on a breadboard (which is why the workshop video suggests to not use a breadboard), however if I insert the module at the top of my breadboard then I can depress the reset button by sliding a small thin piece of plastic inbetween the top of the breadboard and the module and then use the edge of the breadboard as a lever to press the reset button. Only slightly cumbersome but this at least allows me to use the module in a breadboard. - To access the serial debugging feed in Arduino's IDE, I had to set the Serial Logger's baudrate to 115200. - If I used the external FTDI programmer for power, I got a lot of horizontal static lines on my video feed. Happend with both 3.3 V and 5 V settings. Looking on reddit I see others experienced this issue when powering through their FTDI programmer too. (I suspect maybe the serial messages cause fluctuations in the FTDI's power rails resulting in too weak of power for the camera's sensors, producing these static lines.) The solution was to simply use a more reliable power supply...and I found just using the power supply from another arduino board with the same voltage setting was reliable enough.