Build an ESP32-CAM Developers Module with Power Supply

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
today in the workshop we're building an esp32 cam developers module i'll show you how this simple project can simplify working with the esp32 cam it even has a built-in portable power supply that you can use for all types of experiments we're making things easy today so welcome to the workshop well hello and welcome to the workshop and today we're going to be building a project we're going to be building this thing that i'll show you in greater detail in a few moments now what is this thing you might ask well you might not ask because you probably saw the title of the video this is a development module for working with the esp32 cam and this project sort of came about out of necessity i was starting to film another video for you folks on the esp32 cam i'm going to be doing a lot of videos on this device because i'm working with a lot of iot devices right now and i think the esp32 cam is almost the perfect iot project device and i was starting to set up to do my video that i was going to do for you and that i will be doing for you and i found a little bit awkward working with the esp32 cam it's not that difficult but there are some issues with the device that make it a little harder to work with let's say an arduino uno for one thing it's got components mounted on both sides of the board in order to make the module so small and one of the things on the bottom side of the board is the reset switch and you need to get access to that switch when you're programming it you also need to get access to it when you're running the programs and the only way to get access to that switch if you have it on a solderless breadboard is to mount the device at the very very end of the breadboard and use something like a small screwdriver to get in at the switch it's a little awkward but you can do it another thing though that you need to do when you're programming is that you need to add an external ftdi adapter the esp32 cam unlike many other esp32 modules does not have an internal usb port and so you need to add that device and when you're programming you also need to tie gpio0 down to the ground another thing about programming this device and working with it in my iot applications is that many times after i get it working on the workbench i want to test it out in the location it's actually going to go and that could be a remote section of my home and that being the case having a portable power supply for the esp32 cam is a very useful thing so i've combined a lot of features into this little device in order to get around a lot of those problems the problem of getting access to the reset switch and of using the ftdi adapter etc etc so i wanted to show you today how i built this device now you may indeed want to build a similar device if you're working with the esp32 cam this can really save a lot of time during development but you might not have any interest in building this device however you may want to take the same principles and build another similar device for another microcontroller or another microcomputer this box also has an internal power supply that i constructed that can give you 3.3 or 5 volts and can use an ac power adapter or an internal 9-volt battery so that alone might make an interesting project so let me show you this thing in detail and then i will show you how i constructed it now before i show you the esp32 cam development module that i constructed i want to show you what the issue is with the esp32 cam that inspired me to do this in the first place so i've got a couple of modules over here now here is a typical esp32 cam module as you can see with the camera and the micro sd card on the front and this big led that can be used as a flash and one of the issues is the location of the reset switch which you need both in operation and programming and it is right up at the corner over here so that is the first issue if you take this module and place it on a solderless breadboard well the first thing that you can see is that you've used up most of the breadboard pins you're only going to get one pin over here to be able to connect to it it's also eaten a lot of your bread board up but it won't work in the position i've got right now because you simply can't get at that reset switch it's under here now you can resolve this two ways if you want to use a solderless breadboard you can put it up at the end over here and then you can kind of get at the switch if you use a screwdriver or something to press it so that's one resolution the other way you can do it is by connecting female to female jumper wires over here and connecting or female to male ones that go to the board over there you'll need a jumper wire as well between two the pins gpio zero which is down over here and there's a ground pin right next to it they need to be jumpered together while it's programming so there's a lot of jumping you'd have to do you need to have the board loose with the other wires or on the solderless breadboard at the very end and then remember you've got a camera over here so even if i do manage to mount it let's say on my breadboard at the end of the day i've got something that's facing my ceiling so i've got to move my breadboard around in order to work with it now the problem gets even worse when you attack the external antenna you remember i showed you how you can move the position of a small resistor and attach an external antenna for improved performance instead of using this printed circuit board antenna that you see over here and i've done that to this module and so you've got all the issues i just mentioned and you've also got this antenna to deal with which is a little bit difficult to manage sometimes at any rate it's not the world's worst problem but it is certainly something that can be improved upon and my feeling is that if you have to go through all these hassles in order to prototype with this it might turn you off from actually working with it we wouldn't want that to happen so let me show you now the solution that i came up for all of these issues and so here it is the fully assembled esp32 cam development module and as you can see of course the main feature on the front is the esp32 cam itself and the external antenna that i've got mounted over here and on the back the main feature that you can see is the solderless breadboard now the esp32 cam module itself actually just comes off like this it's a separate entity and it could be used on its own because basically all of the connections from the esp32 cam module have this been brought out to this female connector over here and of course there's also a place to mount the external antenna and you'll notice that i've got this at an angle these aren't just going at a right angle i bent the pins and that's intentional and that's so when i fit this back onto here the camera is held at a slight angle upwards so it can get a better shot now i'll have to confess that there is a design flaw over here that i can easily correct by redoing the front module and you'll see what that design flaw is in a few moments now at the back of course with the solderless breadboard behind the solderless breadboard there is a row of female connectors and these are for inserting wires into and this is a row of connectors that mimics what's on here and it has every single pin of the esp32 cam there and then we have a row of male connectors and they are exactly the same thing so you could use another jumper wire with a female end or you could use a ribbon cable or something to extend this off to another solderless breadboard you could also use it as a test point for something like an oscilloscope or a logic probe so you can test a point that you've already got wired up with the female connector now on the side over here of course you can see the ftdi adapter i'm going to remove it and take it out of its socket right now just so we can see this a little bit better now up in here you've got a three terminals and this is the 5 volts the ground and the 3.3 volts and beside it i'm hoping you can see that because it's kind of buried down here let me take the front module off it's a little easier to see now there are three more rows of the female connectors and this again is the 5 volts to ground and 3.3 volts so you can get at those for your experiments on the solderless breadboard this connector of course is for the ftdi module this jumper here has two positions and it is the voltage that is going to be applied to the ftdi module or taken from the ftdi module depending on what your voltage source is so this can change it from 3.3 to 5 volts and wire the ftdi module bcc to the 3.3 or 5 volt pins on the esp32 cam now this setting needs to match what you have set on your module now my module is a jumper some of these modules actually just have a solder bridge that you have to make so it's more permanent normally you would set this to 3.3 volts for the esp32 cam but some folks have reported better results by setting it to five so you just have to match this to that this other jumper here is actually open right now when it is closed in this position it ties gpio pin 0 to the ground and you need to do that when you're programming the esp32 cam now this could also have been a switch and in some ways it actually might be handier to have it as a switch but right now it's just two dupont pins that i can put a jumper over or put a jumper cable on to now you might notice at the bottom i've got a push button and i've got an led now there are another row here of four female connectors now the bottom two just go to the two pins on the push button it's a normally open single pole single throw push button switch and it just allows you to connect to the push button the other two go to the led through an 82 ohm dropping resistor now that may seem a little lower than what you're used to me using but remember we're using 3.3 volt logic over here the reason i've wired the push button and the led up is simply because on most experiments with the esp32 cam if i'm adding something external it's going to be a push button or an led so by having them over here i don't even need to bring components onto the breadboard i could even just do my wiring from the esp32 bus over to the led or the push button as the case may be and that'll probably save me even more real estate than the soldier's breadboard if i have to put other components on there now on the side over here you can see three binding pullers and the three binding posts are for the power supply of course and this is five volts ground and 3.3 volts over here this is the power switch when this is turned over to the red side this is actually powered up right now now there's no led on here i had thought of placing a power led on it and you could certainly do that since it's operating on batteries right now it's actually on it's actually providing power over here and providing power up over here to this board as well and i just thought the led would just consume a little extra current and may not be necessary but you could certainly add one this switch over here allows the power from the power supply to be applied to the module over here by having it in this position it's actually disconnected so the it so the ftdi module would be the thing supplying power to everything but with that switch in this position the power from the power supply is sent up this cable and applied to everything here so you can power things two ways you can also get at the power through these three terminals as i mentioned so you could also have an external power supply feed that so it's quite versatile as far as power supplies go and speaking of power supplies on the side over here is a jack that you can use for a 9 to 12 volt adapter instead of using the internal battery and as soon as you pull the jack in it cuts out the internal battery it doesn't make any attempt to recharge it or anything but there you go we'll put the top back onto it again and we have our completed esp32 cam development module all right now that we've seen our little experimenters module it's time to actually construct it now i constructed my module using perf board and i also used a small plastic case and all of these components were things that i happen to have around my workshop and none of them are particularly critical so you could build a similar device using different components and i'm sure it'll come out just fine so let's go and take a look at the construction of our esp32 development module now here are some of the components as well as a few of the tools that i use to assemble the experimenters module now the main construction is done on two pieces of perf board there's a small piece of perf board over here that i used for the esp32 cam itself and the antenna and this is a three by seven centimeter piece of perf board and these are very nice perf boards that you can get on amazon or ebay they're plated through and everything they're very high quality this is a five by seven version of the same type of perf board and i use that for the base that has a solderless breadboard on it now you don't have to use the exact same sizes that i did you might want to expand and use a bigger one for the base and put maybe a larger breadboard or maybe more leds and push buttons on it if you wish over here of course we have the esp32 cam which it goes without saying we need an ftdi module you don't have to use the same one i did be aware some of them have the components on the other side and are thus mounted in reverse but they have the same pin outs otherwise with the sawdust breadboard naturally with the adhesive back this is a three pin terminal strip that's going to be used for the power connection it's on a 0.2 into the grid it's a very common terminal strip but you can use a different connector or terminal strip if you wish that's not critical here is the led it's a three millimeter red led i would recommend staying with red leds just because they have the lowest forward voltage drop and we are using 3.3 volt logic you could use a bigger one though you could use a five millimeter led if you wanted to this is an 82 ohm dropping resistor for the led again the value is chosen because of the fact that i'm using 3.3 volt logic and not 5 volt logic you could play with the value but i wouldn't go below 52 ohms and anything above 150 ohms will probably make the led too dim to really be useful now here's a pretty standard uh pcb mount uh push button switch it's got four pins on it but there's really only two connections in each case two of the pins are duplicated and here's some headers that we're going to need for the jumpers you probably have a few of these lying around if not again amazon and ebay are great resources for that now these are female header strips and they are going to be used extensively in our wiring you're going to need at least two of these to complete it and you can use a set of diagonal cutters like this in order to cut these down to the size that you want now be aware when you do that you're going to end up sacrificing one of the pins but that's just the way it goes you can also use a diagonal cutters on these male header strips and you don't end up sacrificing any pins because there's a notch in between each one one of these strips will probably be enough although i've shown two over here and this is a right angled header strip that you're going to need to construct this i also used a few pieces of this down in the power supply construction that you're going to see later but this is what holds the front board on and i also ended up after clipping it down to 16 pins which is what we need i held one end in a device and i used some pliers to lift up the other end now i did the bulk of the wiring with this using wire wrap wire i'm not sure if you're familiar with wire wrap wire because wire wrapping is a virtually extinct technique from the 1970s that we used in order to wire up uh perf boards without actually soldering and although the technique is kind of dead the wire is fantastic and is very easily found on ebay and also on amazon wire wrap wire is 30 gauge wire so you'll need a stripper that can handle it and this can handle 30 gauge wire it also goes down to 20 on the other end which is convenient because i also used 20 gauge wire as well for some of my power connections here so i use both 20 gauge and 30 gauge wire for the connections and the 30 gauge wire is actually very easy to work with you might think it's kind of small but really it's not that hard to work with at all and of course a pair of needle nose pliers is essential for doing this kind of wiring and wrapping everything and naturally you're going to need a soldering iron and some solder and all the various equipment like that as well an electric drill to drill the holes that you're going to need for the antenna mount and also you're going to want to enlarge the holes that this terminal mounts into as well on this board and you'll need a drill when we come to the chassis for the power supply unit so there you go a lot of the components that we'll need to get together none of them are really critical except of course the esp32 cam so you can substitute a lot of stuff you probably have in your own workshop and i'm sure it'll work just fine the first section we're going to wire is the front module which is fairly straightforward we will need an esp32 cam module which we will mount on two eight pin female headers you can cut these headers from a larger header i'm not showing the external antenna connection you may add it if you wish and you should provide a mounting hole for the antenna on your module you'll also need an additional 16 pin female header that's mounted on the other side of the perf board or printed circuit board that you're using the two 8-pin female headers holding the esp32 cam are connected pin for pin to the 16-pin female header and this completes the wiring of the front module the main board can be wired in sections to make it easier we'll start with the 90 degree 16 pin male header this is the mate for the header on the camera module board i bent mine so it wasn't 90 degrees using a large pair of needle nose pliers in my bench vise this way the camera is propped up a little bit better on the other side of the board we have two gpio breakout connectors a female and male dupont header each of them 16 pins we need a three pin screw terminal for a power connection we also need three three pin female headers one of them for five volts one for ground and one for the 3.3 volt connection the power is also connected to a three pin male header this is the power connection from the onboard power supply two more male headers are also required for jumpers a two pin one for the programming jumper and a three pin one for the ftdi voltage select jumper a six pin female header is used for the ftdi adapter connection a four pin female header is used for the push button and led connections we'll also need a pcb mount push button an led and a dropping resistor for the led i used 82 ohms but any value from 56 to 150 ohms of work we'll begin by wiring the power section i used heavier wire for this section it's a good idea to do that to allow for a higher current draw start by hooking up the 5 volt connection from the 16 pin header to the 5 volt terminal and female headers the 5 volt connection is also run to the 3 pin external power input header and to one side of the 3 pin ftdi voltage select jumper you'll find several ground connections on the 16 pin esp32 cam gpio bus i use the one right next to the 5 volt lead to make a ground connection to the center terminal of the screw terminal block and to the female dupont headers used for ground connections another ground connection is made to the center pin of the three pin external power connector we will also connect the ground to the ftdi connector ground pin which is on one end of the connector the final power connection from the esp32 cam gpio is the 3.3 volt line this is connected to the 3.3 volt terminal and female headers we also run the 3.3 volt line to the external power connector and we complete the 3.3 volt wiring by connecting it to the line on the other end of the ftdi voltage select jumper we connect the remaining center pin of the ftdi voltage select jumper to the vcc pin on the ftdi connector this pin is separated from the ground pin by the cts or clear to send pin which we are not using in this design now for the ftdi data connections to the esp32 cam we start by connecting the uor or receive pin on the esp32 cam gpio to the ftdi adapter tx or transmit pin remember the ftdi transmit goes to the esp32 cam receive and vice versa the ftdi adapter tx pin is right next to the vcc pin we wired in the last step in the same fashion we connect the esp32 cam uot or transmit pin to the ftdi adapter rx or receive pin on both the gpio and the ftdi adapter these pins are next door to one another now let's hook up the programming jumper this is the jumper that needs to be closed when you're uploading code to the microcontroller one side of this two two-pin male header is connected to the esp32 cam gpio pin io zero the other side of the programming jumper is connected to ground and any ground on the gpio will now we'll move on to the led and push button connector which is a four pin female header connect the led plus pin to one side of the 82 ohm resistor and then connect the other side of the resistor to the led anode which is the longer lead on the led connect the led minus pin to the led cathode finally connect the pb1 and pb2 pins to two pins of the push button switch making sure to select the correct two pins use an ohm meter if you're not sure about the push button pin outs and solder all the pins including the two unused one to the board to secure the switch down to finish all the wiring connect all 16 connections from the male 90 degree header to the female and male dupont connectors pin for pin and this completes the module wiring so now that you've seen the wiring diagram i want to show you how i wired everything up now the first thing is the front module and it's a fairly simple wiring job because it's basically a straightforward connection pin for pin of the two connectors over here to the one there now the only difficulty that you might have of course is the fact that two of these connectors are mounted facing this direction and two are mounted on the opposite side so what i did is i first made all of my connections over here to the two female connectors that are going to hold the esp32 cam and i fed the wire through the hole above this connector over here i didn't have the connector here at the time i fed the wire through the breadboard hole brought it out to the end cut it and stripped it so it was the right length and then i inserted this which is a 16 pin female connector and i inserted that on this side over here and then this did the soldering job now this is a wire wrap wire it's 40 gauge wire so it fits very nicely through the holes if you're using larger wire and it won't go through you could always strip the insulation before you go through the hole and just have it go bare through here and there and that would also work very well and there's also a hole drilled here of course for the antenna on this now the esp32 cam is just going to fit onto its connectors over here into the two female ones and since that lifts it up so high it's very easy to get at this reset switch over here now which is nice and then this just feeds out the back over here and as you can see there's some nuts on here that i could screw it onto and then put the antenna there so that completes that front module now this is the main module over here the base module and it's fairly easy to wire as well what i would uh recommend you do you'll notice i used some heavier gauge wire as well as the wire wrap wire this is 20 gauge wire and i use this basically everywhere that i had a power or a ground connection to make and i just do that because it has to carry a little bit more current so i wanted to use a higher gauge wire but you could probably get away with the 40 gauge wire for everything i would recommend wiring everything up in this section over here the ftdi adapter the power supply connections the two jumpers the connections to the led and the push button switch get that all wired up and get your connections made and also i made all of those connections to this front connector over here so i made those connections first and then at the end of it i just simply took wires and went back one by one all 16 connections on the end over here i got to the female connector and then just made a very very long strip of the insulation and jumper it over there so there's no insulation on the wire between the two connectors and i'm not sure how well you can see the connection because it's thin wire and there's a pad underneath it but trust me every one of these is connected now of course when you work with this stuff what's important to do is as you're going through use your multimeter and make certain that all your connections are going it's a very easy one to buzz out because it's literally 16 pins that connect through to here and then a couple of connections here of course for power ground and the 3.3 volts over here and the ftdi connections so you can buzz all that out with a meter the same with the ones over here and you can be pretty confident it's going to work one final thing is this connector over here this is on a 0.2 inch grid so it goes every second hole but the pins are too large at least for this type of solderless breadboard so you'll need a small drill bit to enlarge the size of the holes for this one over here before you solder it all together but otherwise it's a fairly simple assembly on a perf board it doesn't take too long you can probably wire this all up in an afternoon if you've got everything together and then we can go and build the base and mount this onto it all right now that we've finished constructing the module it's time to focus on the base now in my case i have to admit the base was a bit of an afterthought i'd originally intended just to build the module and use it as it was and use my own external power supply and that's why i put the three terminals on it for connecting an external 3.3 or 5 volts to it but when i put the module together and put it on my workbench i found out it was a bit top heavy the antenna on the front was literally pulling everything over and it wouldn't stay flat on the workbench so it needed some form of a base now i originally thought well i'll just use a piece of wood for the base but then i started thinking about building a base with a power supply because as i said at the beginning of this video there are a lot of times when you want to experiment with an esp32 cam but you want to do the experiment in some remote location in your home and it may be a location you don't even have easy access to electricity so i found the small project enclosure in my collection of project enclosures you can use a different box if you want this one was about the right size it could hold a 9-volt battery in it too so i could build a small power supply out of it by putting in a little circuit card with some voltage regulators and that's exactly what i did i built a small power supply that supplies 3.3 and 5 volts it can run off a 9 volt battery and it can also run off an external power supply and it allows me to send power over to this module it also has a switch that allows me to cut the power to the module in case i want to use the ftdi power adapter instead so let's take a look now at the construction of my power supply base the power supply is based around two linear voltage regulator modules a 5 volt and a 3.3 volt one these modules are based on the ams-1117 series of linear regulators and they have a very simple pin out these look identical so make sure to make a mark on one so you can tell them apart we'll need a couple of switches an spst switch for power on off and a dpdt switch for the module power cut off you'll also need a power connector for the external power supply i used a 2.1 millimeter chassis mounted power jack with an internal cutoff switch which is a very common component if your intended power supply module uses a different connector you may substitute accordingly however note that this design requires a jack with a cut off switch we'll need a 9-volt battery and a suitable battery snap-on connector of course you can use a different battery if you wish it'll need to be a minimum of 7.5 volts and a maximum of 12 volts for best performance we'll require three binding posts preferably color coded and finally we need a three pin female dupont jack to connect to the esp32 cam developer module we'll begin by connecting the negative battery wire to the switch connection on the power jack use an ohm meter with your power jack and test it with a 2.1 millimeter plug if you're unsure of the pin outs connect the power plug ground connection to the ground connections on the inputs of both voltage regulator modules now connect the positive battery connection to the positive or tip connection on the power jack also connect the positive power connection to one side of the spst power switch connect the other side of the spst switch to the v-in connections on both regulator modules connect the v out of the 5 volt regulator to the red binding post connect the v out of the 3.3 volt regulator to the white binding post connect both regulator output grounds together and then connect this to the black binding post now connect the positive 5 volt output to one outside pole of the dpdt switch connect the positive 3.3 volt output to the adjacent pole on the switch and finally we need to hook up the module power cable this is the one with the 3 pin female dupont connector start by hooking the 5 volt wire on the outside end to the 5 volt center pole on the dpdt switch connect the 3.3 volt wire to the other center pole and finish wiring the power supply by connecting the ground or center wire to the output ground now here we have some of the components that we're going to use for the power supply base the key components are these two regulators and these are small regulator modules that just have three pin linear voltage regulators on them there's nothing really special about them and i went over this in a video that i did a while back about powering up your projects and these were a couple of the modules that i looked at now they look identical but one of them is a 3.3 volt and one is a 5 volt and they're both very simple they have two sets of pins one set are the input voltage and one set is the output voltage power and ground in both cases so that's a pretty easy to work with now you can use other voltage regulator modules if you'd like to the principle is pretty well the same otherwise i've got a 9 volt battery strap for my 9 volt battery and i've got a couple of switches a double pole double throw switch over here and a spst a single pole single throw switch over here and that's going to be the power switch now this is the jack that i'm using the 2.1 millimeter jack for the power adapter you'll notice it has three pins and that's because the ground pin is switched it can be switched between either the jack or the other terminal that's on here and that's how we're going to connect the nine volt battery as you saw in the wiring diagram so it's important again to remember that it's the negative side and not the positive side that is switched in this case and i used a little bit more of this angled dupont connector for the connections that i made on my little circuit board i just use a scrap of perf board to wire this on and that way i could make the connections for the inputs and outputs really easy and i could disconnect them if i wanted to and i'll show you how i did this now this is the little case that i have obviously if you're using a different case you'll need to assemble it slightly differently but as you can see i wired everything onto a board over here i've got my nine volt battery there this is just a scrap of perf board that i inserted in the slots here and i notched it out so the wires could go through it so it both holds the wires in place and also holds my nine volt battery in place you can see my switches my dpdt switch my single pole switch for the power and here's my power jack over here now on the board here you see i mounted my regulators facing downwards so that the actual voltage regulators themselves are facing toward the board what i did is i made sure that i spaced them quite a bit so it has a lot of room for air to flow and another thing i did is i drilled a couple of holes over here and these holes are right above where the voltage regulator on this module are so it gives it some more place for the heat to dissipate and even further on my case i also drilled two holes because these holes are going to end up underneath the the test module and so you're not going to see them anyway but it just gives the heat a little bit more area to dissipate and as you can see i've got the dupont connectors on here so all my connections to the board the two wires coming in for the input power and then two outputs one output going to the three binding posts that i have here and the other output that goes to the dpdt switch and then out through the other connector that i have fed up the top over here and that will also connect to the module now you'll notice i put four spacers on here so i can hold my module on top of everything and basically that's it you can see the layout here all we need to do is put the module on top of this and test it out and see if everything works properly now it's a good idea to give your power supply a final test before you hook it up to the module so we're going to do exactly that i've got a 12 volt power adapter over here and i'm going to plug it into my supply i'm going to switch it to the on position that i've marked off with this little red dot and we'll go to our output over here which should have some output that's the ground there and this should be about 5 volts and 4.995 volts is pretty darn close and this should be 3.3 volts 3.285 volts that's pretty close as well now let's see if our internal batteries working we'll unplug that we should still have the same outputs over here and 4.998 volts that's pretty close to 5. 3.286 volts so that's pretty close to 3.3 volts so that seems to be working one final test we can do we'll just turn it off for a second here we'll connect i've only got the bottom card of the esp32 cam experimenters board here i don't have the board with the cam on it just in case there's something wrong i'm going to connect this to its dupont connector and we'll turn the power back on now in this particular case this switch over here being out here should not be feeding the power to the board and so i'll just measure that to confirm that i shouldn't have anything here here's the ground and no i don't have anything there or there but now i'll throw this switch over here and that should change i should have an output over here and there's my five volts my 4.998 and output here is my 3.3 volts so that all seems to be wired correctly i can go and mount these on permanently and then we can give this whole assembly a test okay our module is all built and all that remains is to test it out so let's hook it up to a computer we'll bring up the arduino ide we'll run a demo sketch on the module and then we'll disconnect everything to make certain that our portable power supply is functioning properly so let's get to it and so here's our completely wired up and running esp32 cam module now i've got it connected to my computer with an ftdi adapter through a usb cable with a mini usb connector on the other end and right now the module is powering everything right now i've got the power switch off right now so i'm using the power from the module and i've got the module strap for 3.3 volts as well as the strap on the board for 3.3 volts now i have already programmed the esp32 cam module just with the demo sketch the same sketch that i used the last time that i looked at the camera module and in order to program it i used this jumper here i had to move it into the forward position during programming and then after programming i could move it back and i could reset it now before we take a look at the operation of the esp32 cam let's take a look quickly at this led and push button that we've wired onto the board and we'll try them out now we should have 3.3 volts over here coming from the module so i'll take 3.3 volts and feed it onto this terminal which is the led positive and i'll take a ground connection from the center thing here and feed that onto the led's negative side and as you can see our led is lit up so our led is working now we can also test the push button switch let's move the negative to one of the pins on the push button and we'll connect the led negative to the other pin so in other words we put the push button in series and now when i press the button lo and behold we have a working push button and a working led so our little peripherals here seem to be working fine now let's go and check out the asp 32 cam that i'm running off of the ftdi adapter power right now now if you take a look at my serial monitor you'll notice that i'm running into a condition that i've run into many times with the esp32 cam and that is that i have a brown out detection and this happens because there's not enough power being delivered through the ftdi module in order to power the esp32 cam now one solution that i've used before has been to use a usb powered hub in series with this like before the ftdi module that'll usually give it enough juice but right now i have another solution and that's to use my internal power supply so i've already got this switch facing forward let's put the power on and we'll take a look at our serial monitor and now it says that the wi-fi is connected and it's given us an ip address so the power supply that we've built has enough current in order to start the radio and get the wi-fi working you'll find that situation a lot with wi-fi and bluetooth so what we need to do is we need to highlight and then do a control c on that one and then go into a web browser and paste that address in there and i'll just refresh that because i had that there before and here is our esp32 control panel that's being broadcast so we'll start the stream to take a look at our image and we get a beautiful image that appears to be sideways and that is the development flaw that i was telling you about my camera module here should really be mounted sideways if i were to turn it sideways then i think you'd see that we have an actual proper picture over here and so now of course we are running this still connected to the computer before we go back and disconnect it and run it on its own let's just go back to the serial monitor over here and if you can see the serial monitor is actually showing what the performance of the camera is and it's actually not too bad 24 25 frames per second is a pretty good rate actually and so what i'm going to do right now is i'm going to just go back to this screen and we're going to disconnect this and we should still have a working camera because we are now battery powered and a working sideways camera that we can move around the workshop a bit and take a look at the tools over here and take a look at the drill press and some of the equipment over here we're getting this uh effect on the video by the way i suspect because of the led lighting over here the 60 hertz is beating against it so that's common under fluorescent and led lights and it seems like our portable camera is working just fine and we'll put it back down here on the bench and get our sideways picture and so there you go our esp32 camera development module is working and ready for doing all sorts of esp32 cam experiments and so there you go we have a working esp32 cam development module all set for doing all these wonderful esp32 cam experiments and you'll be seeing many more of those experiments very soon here in the dronebot workshop now as i said at the beginning of the video you don't need to necessarily construct something like this just for the esp32 cam you could do it for another microcontroller or microcomputer such as the arduino pro mini or maybe the raspberry pi zero w they could use the same principles the power supply alone could make a very good project for those of you who need a small portable power supply it's a very simple construction and it works quite well and of course there are improvements upon my design that i'm sure you could make you could make a printed circuit board instead of using the perf board you could take the module and rebuild the front module in fact i might do that to mount it sideways so the picture comes right side up there's a lot of room for improvement but what i really wanted to show you today was how i constructed a small project because you can use those same principles for constructing projects of your own now if you want some more information on today's project you want to get the schematics or a few more details there is an accompanying article to this video on the dronebotworkshop.com website and you'll find a link to that article right below this while you're on the website consider signing up for the newsletter as well i send out a newsletter now and then just to let people know what's going on here in the workshop and keep them up to date it's not a sales letter or anything i'd love to have you as a subscriber speaking of subscribers if you're not a subscriber to the youtube channel well please go and honor me by subscribing just click that little subscribe button and also click the bell notification so that you're aware every time i make new videos and those will be new videos on the esp32 cam and a number of other great electronic devices and if you like electronic devices you can also go over and visit the dronebot workshop forum we've got a bunch of great people who love to talk about electronics and if you're having a problem with one of your projects or if you'd like to help somebody else out it's a great place to be so until the next time we get together please take good care of yourself please stay safe and we will see you again very soon here in the dronebot workshop goodbye for now [Music]
Info
Channel: DroneBot Workshop
Views: 81,419
Rating: undefined out of 5
Keywords: esp32 cam, esp32 camera, ESP32 Developers, Power Supply, DIY Power Supply, Solderless Breadboard
Id: XXG0BqxGmOI
Channel Id: undefined
Length: 48min 27sec (2907 seconds)
Published: Sat Sep 26 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.