Build The Most EQUIPPED Security Camera with ESP32-CAM

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
this video is sponsored by DF robot and PCB way [Music] How's it going everyone! In the last video I covered how to get set up with the ESP32-CAM for Wi-Fi security cameras using a very well-developed Arduino web server code with loads of Handy features having played around with a camera long enough I decided to embark on the Journey of making a fully equipped 3D printed solar Wi-Fi Security Camera all based on an ESP32-CAM. Instead of going out and just purchasing a security camera, I thought what the heck I'll take on the challenge of developing my own one from the ground up, utilizing the best of the camera web server's capable features. If you want to get started with the ESP32-CAM, I'd highly suggest you watch my last video instructing on loading the code and how to operate it before we move on could you do me a favor and please leave a thumbs up on the video in advance I'd appreciate it so in December of 2022 on an A4 sheet of paper I started designing a rough sketch of what I wanted the camera to look like I then received a sponsored package with the camera's Parts I ordered from dfrobot.com in one box I got a battery holder module in the other a six volt solar panel and a whole bunch of other parts which are unpacked such as a large antenna cooling fan Servo Motors different sensors power management modules and last but certainly not least an esp32 cam board you can find purchase links to all these parts in the description dfrobot.com is a great online electronics store for makers that offers a decent selection of high quality parts from different sensors and modules to well-known microcontrollers and even single board computers like the Raspberry Pi to power your DIY robotic projects there's many options for esp32 development boards a wide variety of different sensors and even a good selection of power converter boards and solar panels to run off-grid projects like a security camera as an example check out their website dfrobot.com to see what might interest you out of the many other categories of unique electronic parts that they sell click the link in the description below aside from what they sent me additionally I put in my own parts and materials like some wire bolts batteries IR sensors and image sensor fancy push button and a pack of threaded inserts all of which cost me 60 US dollars retail from Amazon combined with the rest here's all the modules and parts that will make up the camera so I pulled out my handy calipers and took measurements of each and every part before designing the camera Parts in a CAD program I then opened up Fusion 360 on my computer and got to work 3D designing the security camera based on my 2D sketches the design process involved hollowing out the camera body chamfering edges providing accurate measurements to holes and fittings for parts to poke out through a lot of attention on detail even internally I also had to figure out a way for the two body shells to close together tightly then I focused more on surrounding Parts like the camera supports and swiveling Joints the whole 3D designing process itself took up about two weeks of my focus when I got the camera to look to my satisfaction I exported the parts into an sdl file for submission for pcbway.com I also managed to design a ball and socket joint pair to hold the camera's solar panel [Music] I ordered both designs got a bit too impatient and pulled them out of the digital world one by one leaving me with a whole bunch of parts which I could already start working on 3D screen printing is on a whole different level just look at the beautiful Parts I'm now left with [Music] just playing with you this project was also made possible thanks to sponsors at PCB way I opened up the package of 3D printed Parts sent to me based on my submitted designs on their website if you ever need anything 3D printed for your own projects try out pcbway.com they also offer other services such as CNC metal Machining injection molding PCB manufacturing and more whatever project idea it is you have PCB way can help bring it to life click the link below to try out their services having all the camera parts and white printed out of polycarbonate which is known to be a good roofing material that's resistant to the Sun's UV rays will make this quite the durable camera and I received my second submitted design the ball joint pieces printed in nylon as expected I had to then do some sanding and scraping of rough edges to get the camera parts to my perfection keeping in mind this is my first experience with 3D printed Parts not all things were meant to turn out perfect I had to grind out the holes a little wider to get certain parts to fit in nicely such as the night vision sensors and the lid bolts [Music] my idea was a double-edged sealant Rim didn't make the two shells close together so I sanded the top piece down flat and with some silicon this would be enough to get a watertight seal [Music] so with the surfaces on all the parts sanded smooth I went on to mask taping away any areas I wanted to leave unpainted I decided to paint only the camera arm pipe Mount and wall mount pieces in Black leaving the security camera body itself in white for a black and white contrasting theme after peeling away all the masking tape and checking to see that the parts fit together through the unpainted Parts maintaining the black look on the outside I went on to installing the threaded inserts foreign I decided to use what seemed like the right size this pack of 3M brass threaded inserts I began by installing them into Parts which needed them with a soldering iron heating up and pushing one at a time into the plastic As It Gets melted [Music] foreign [Music] [Music] so now I've just finished embedding all of the threaded inserts into the camera parts that needed them including the pipe and wall mount for the camera arm the camera arm piece the top shell to the camera body and the bottom shell of the camera body itself with 23 threaded inserts the two pieces go together pretty nicely especially once bolted then there is quite a good seal except of course I'll need a silicon the two that'll be done once all the parts are in speaking of which The Next Step will be making the circuit itself for the camera for the circuit we'll be using the parts sent to me by DF robot let's do it so I got to my desk and on a sheet of paper started designing the full circuit diagram illustrating how all the components and modules should be wired together foreign [Music] next I came up with a quick test circuit to start with so I could see that the servos and motion sensors work well with the ESP cam part of how I knew I could have so many modules to run as on the diagram was because I initially measured and added up the maximum current draw of each and every module to get a Max instantaneous current draw of under an amp resulting in two to four watts of power which will be pulled from the whole circuit foreign I made a mistake guys just as I'm part way into making the project work something just had to go wrong please no no guess what I ended up frying the 18650 battery Shield sent to me by DF robot no a boost converter on the back now that's right because I stuck the batteries in the wrong way even when it told me not to it was a bit dark and I was in a rush at that time learned my lesson I hope but there's always a work around I guess I'll just have to bypass all of its fancy features and just use the battery Shield as a battery holder that's it let's move on with the project this is an i2s mems microphone module which works with digital signals and is the only type the esp32 cam could support here's a sound test testing testing one two three I'm doing a sound test sounded good enough for my security camera if only I could get this esp32 C3 chip going as an i o extender to run the remaining Motors and sensors while having the mic hooked up to the ESP so as of now I got the esp32 came to work with all the different sensors I wanted to be connected with though unfortunately I'll have to kick out the microphone from this project since I couldn't get the esp32 C3 IO extender chip going since there's limited information about it and literally no tutorials out there on how to program it I had to remove One sensor that took up too many pins so this should wrap up my components and parts testing at the computer and I should be able to make a final circuit sort of according to this diagram with a few little adjustments as this was a rough one and then put things into the camera shell completing the camera let's do it because I wanted to implement this fancy push switch it requires a specific circuit to make it latch yes a latching switch circuit actually the simplest one possible based on a mosfet some transistors and passive components credits today from EV blog for the diagram so I first popped in the components on a breadboard to confirm that the circuit indeed would work yup no issues here then I converted it to protoboard form for a more permanent integration [Music] to tidy up connections during wiring to the ESP camera thought I'd make this convenient esp32 board Shield that connects modules with similar connectors all to one spot and diverts power accordingly [Music] foreign to the back of the camera board keeping connections much more tidy I also made adjustments to any sensors that needed certain components extended with wires to make things adapt according to how I designed the internals of the camera shell [Music] same goes for the solar power management module with its connectors next I moved on to prepping some power connections with more wire in case you were wondering this is the ts80p model soldering iron that I'm using from anywhere to make the camera's connections you can find a purchase link to it below in the video description a reliable iron that I can highly recommend for your workbench consider checking it out with most of the modules pre-wired I started putting together the circuit so the next step is to get the camera's guts into the shell and wire them [Music] [Music] after fitting in the motion sensors I went on to inserting the pair of infrared LEDs with light sensors certain parts as such were well off simply being glued and sealed around the edges with hot glue or super glue before I got the camera module installed I took measurements for cutting a thin sheet of clear plastic that goes in front of the lens protecting it from dust and liquids then came the time to secure the esp32 can [Music] foreign [Music] how well things fit at this stage a lot comes down to what adjustments you make in the 3D design process with the front Parts already in I then focused on getting the rear end components into the shell including the push button antenna SMA connector and the tiny 5 volt cooling fan in the design process I left a little square hole for Servo motor and solar panel cables to fit through for the pan and tilt Motors I chose these 5 volt 2.5 kilogram torque micro Metal Gear servos these are more than strong enough to move this camera around once I got the motor in I could fasten it with a pair of bolts thanks to the threaded inserts I added earlier this was the Tilt motor to install the pan Servo motor into the camera arm I had to really go to town sanding all four of its sides down enough so it could fit in using up the remaining hole space I pulled through a couple of wires from this USB cable for the solar panel's connection hooked up the button switch to the latching circuit and secured it with a dabble of hot glue in the far corner I shoved in and secured the battery holder module making good use of the remaining space it worked out good also for hiding any underlying wires the solar power management module can get pretty warm so I thought installing the included heatsink would work in well with the air cooled space inside with everything in the camera shell I could then further continue wiring modules to each other [Music] [Music] at this point the circuit was all wired up and can finally take this pair of 2500 milliamp hours 18650 cells which sit in parallel with each other doubling the capacity to 5 000 milliamp hours pressing the button on the rear once turns on the security camera and can then be accessed via his web server online through any device so I logged in testing the servos and the camera feed to see that things work just fine until I realized that the camera kept resetting after each spike in current draw from the servos I combated this issue by soldering a 470 microfarad capacitor to the power input terminals of the esp32 cam for stabilizing power during such spikes afterwards the camera ran okay for some time while testing the servos under no load having more confidence with the camera's overall working status I sealed the camera lid Shut by first applying a line of adhesive silicone around the edges and then tightening the lid with eight bolts [Music] after wiping off excess silicon from around the camera you can notice how well it filled different gaps and created a lasting silicon lip that will handle having the lid taken off and put back on whenever needed I also filled some silicon into any remaining gaps next I put together this pan and tilt supporting piece with the included Servo horns and wheels and started attaching the camera body to the arm foreign [Music] I then screwed on this big antenna which I thought would suit the camera's overall look and provide better signal announcing the solar panel I chose to use the steel shaft of a longer screwdriver which I had to smash the handle off to get to I could now glue and shove the ball piece onto the rod then I glued the socket Mount onto the back of this six volt solar panel foreign sticking the rod into the camera arm further back I could clip the solar panel onto the ball securing a good adjustable fit to tidy up the solar power cable I secured and wrapped it all the way up to the panel with some super glue for the camera's pipe Mount I drilled a couple of holes in this one inch PVC tube and gave it a layer of matching paint with a couple of screws installed this made the pipe Mount one solid piece the camera with its arm could now slide on and later get secured with a screw so it's nearly impossible to steal so now that the camera is fully assembled and ready for installation before we install it I thought it would be worth just to give it a quick test on the bench so I'll turn it around press on the power button back here just a quick press don't know if you hear it but the fan is just turned on oh Robo camera initiated I'll just press reload on the IP address that I've typed in earlier and it should connect to the camera web server which it's programmed with there we go so I should be able to press Start stream and it'll start streaming but the camera is currently seeing it's quite laggy since I'm pretty far away from my router in a different room but we want to really test is how the servo Motors move the camera around so I'm going to go into camera control and then adjust the camera tilt slider to make the camera tilt up oh now it's straight tilt it up a bit more really cool and then down looks like some Servo speed adjustment would need to be made there so what I did next was partially disassemble things to weatherproof the lower Servo with some hot glue if I didn't do this water would fill up the servo cavity now comes the time for installation I whacked a decent stick into the ground firmly enough so it could support the camera followed by the pipe and its Mount the camera with its arm could now slide on and get secured with a little screw at the top a single press of the power button makes the camera turn on and straighten to its default position with the Sun out and the camera running it takes up to eight or more hours of direct sunlight to fully charge the cooling fan at the back does its job of blowing air through the internal circuitry and out through the front air vents cooling the camera down by about 5 to 10 degrees Celsius so now I've got my phone out I'm in the camera web server online and I'm about to test out how it pans left and right after having adjusted the servo motor speed to a delay of 35 milliseconds between each degree resulting in this kind of motion it's a bit slower but much smoother before it was quite jerky and it just yank its head sideways and that actually pulled on the current so much that the esp32 cam just shut down restarted in that sense it was a pain in the butt having to reset it all the time so this solves that dilemma now I'm going to pan it all the way to the right towards me just like that and then all the way to the left right back up and then down so cool seeing my first ever 3D printed creation come to life [Music] [Music] so the way this camera detects motion is no longer through the image sensor through Visual motion detection but instead the PIR motion sensors on the cheeks of this camera so there's one on each side with a hundred degree field of vision you could stand behind the camera slightly off to the side start running or whatever and it'll detect you or you could be way in front and it'll detect you from either of the two motion sensors the recording symbol at the top starts blinking and this message saying capture started by PIR shows up on the screen but getting the PIR sensors working required me to place a filtering capacitor and diode at the signal pin of each one to prevent false triggering I can now take breaks between my work and switch to the camera web server tab to monitor the camera's alive feed and tilt or pan to observe further surroundings the way I extract footage from the camera is as simple as going to the playback back and file transfers tab selecting and downloading the files one by one after previewing them saving them to my device this way I can later go to the footage folder on my PC and play back the video clips I downloaded unlike what I heard about only using four gigabyte cards I learned that you can actually use memory cards with a larger storage such as this 32 gigabyte micro SD card and fill them up all the way so another adjustment I had to make to the camera was to remove the IR filter for night vision I did this by unclipping the 5 megapixel image sensor and stripping it apart to remove the little glass filter believe me when I say this it's one fiddly process that requires extreme care to prevent from damaging the image sensor chip I'm just glad that I succeeded doing this in the first try so I soldered and glued it back together then clipped it back into the camera [Music] [Music] the IR LEDs provide just enough infrared light to emit up to a distance of 4 meters light that can only be picked up by unfiltered cameras and yes this does mean that during the day the colors won't be as vibrant as they used to such as any Greenery but I don't have an issue with this in the Rain the camera handles being wet deflecting water from dripping into the camera's air vents all by my design I also had this wall mount 3D printed in case I wanted to mount the camera on the eve of a roof like up here if this camera runs in areas that lack sunlight USB power through a phone charger can keep it powered instead here's my first esp32 cam security camera and my new version side by side [Music] even though the esp32 security camera may not yet be set up for FTP file transfer nor is it Cloud hosted to be accessed when I'm away from home it still has come a long way from being a plain idea to being 2D sketched 3D designed printed then assembled into a functional handmade robotic camera that runs off the sun's energy despite facing a handful of setbacks and mistakes along the way it has overall been a very rewarding journey and learning curve having my first ever 3D design actually come to life right over there once again I thank my sponsors at DF robot and PCB way for making this project possible to try out their products and services for your own projects click the links below and see what they have to offer if you're planning to make a similar camera of your own just so you know I'm selling the 3D designs of this very same security camera you can contact me through email or in the DMS of my Instagram page on how to go about purchasing your own copy of the 3D designs circuit diagrams and code can be found Linked In the description below for free if you appreciate what I do here on the channel and would like to show some support then feel free to buy me a coffee through the link in the description below the video as per usual consider leaving a like subscribing and sharing this video see you with another one peace [Music]
Info
Channel: Max Imagination
Views: 343,038
Rating: undefined out of 5
Keywords: max imagination, diy, security camera, esp32-cam, esp32 camera, esp32 projects, esp32 tutorial, 3d printed, 3d design, 3d printed project, 3d printed camera, esp32, arduino camera, arduino based, esp32 arduino, esp32 cam camera module, diy cctv camera, diy surveillance camera, surveillance camera, diy home security, dfrobot, pcbway, motorized, servo motor, solar powered, wifi security camera, night vision camera, ov5640, esp32 cam arduino, solar security camera, cctv, surveillance
Id: Ul0h5Maeoeg
Channel Id: undefined
Length: 26min 35sec (1595 seconds)
Published: Wed Apr 26 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.