ESP32 First Impressions: Flashing Code

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys so in the last couple videos I unboxed and sort of put together my first ESP 32 module and so if you haven't checked out those videos go check them out right now they're up on screen and also links in the description of this video I've been nerding out about the ESP so you know if you're interested in that go check those videos out and today what I want to do is sort of the initial programming of this module so something that I would like to note from my last video what I did was I went and soldered the ESP 32 module onto this little breakout board here and so this is the ESP module ESP 32 from seed studio and it came with this little breakout board which is awesome because the pin spacing on a standard ESP 32 just this little guy here is really really small it's even smaller than the pin spacing for an esp8266 12 or o7 model so although you can use this just barely you can use this on your own just by soldering up wires I don't think you're going to be able to use this without sort of an adapter a breakout board at least not easily one thing that I did want to note from that experience is though I soldered this on and then I put these female headers on and I didn't test it so what happened was I started to try to hook this up and figure out how to wire it for this video and I couldn't get anything to upload and I couldn't find too much documentation out there about flashing these to begin with so I assumed that I needed more wires plugged in I wasn't pulling the right pins nope none of that the flashing on this guy is actually even easier than an 82 66 believe it or not my problem was that the pin all the way on the corner here on the module will focus there we go the pin all the way over there the furthest one that's the 3.3 volt pin and I did not solder that correctly so I had to go back and very carefully try to solder between the headers and the board and yeah I could have taken the headers off but I didn't want to just because I'm not the best desolder ER nor am I the best solder ER so well you know whatever but point is is that if you are going to do this and you're going to solder this on here check your connections first at least check the three point three ground transmit and receive on the serial line so at least check those four because those are the four that you need to upload programs you also need to reset button but that's sort of on the board so it's easier to test so let's get into how to wire this up to a serial module so the first thing I have here I have four wires I have a yellow a blue an orange and a black now I would like to have this orange be red because I'm going to use this for 3.3 volts but let's just pretend that my white balance is off and this is a red wire so the red wire or the orange one in this case I'm going to plug into 3.3 volts and really conveniently on the back of these boards there is a little pin out on the expansion board so you can see that the 3.3 volt pin is this pin right here so that would be the outer pin on this side so there's 3.3 volts ground is right next to it so those two on the end 3.3 and ground and then I'm going to have blue be my receive so our X as you can see on the back of this is on the outside on the same side as power and it's three down so there's my rx and the last one TX is right there in between our X and positive so they have everything clustered neatly together hopefully you can see it there fill focus so you have power and ground and TX and rx all right they're clustered neatly together so that's easy enough if you don't have a breakout board like this you will also need the reset button I don't believe you need the io0 button or i/o zero connection at all the reset button is should be pulled high and then when you click it it gets pulled low so maybe I'd like a 10k resistor 23.3 and then a connection to ground on the button but luckily this little breakout board does all of that for me so now we just wire it up to a serial module now this is a serial module that I actually modified a while ago for the 80 to 66 it's got a much beefier 3.3 volt output but I'll be honest I haven't tested this with 3.3 volts just on a standard you know power input from what's on board these guys I do believe that the 32 is supposed to be more power efficient so you might be able to get away without having a beefier power supply on your uploader but at least for right now I'm going to use this one because I know that this works and I've tested it so my TX here my yellow wire I'm going to connect that to the RX the receive line on my serial module the power my orange wire I'm going to connect up 3.3 black to ground and blue to TX because remember TX from here goes to RX on here and TX on here goes to rx on here so it's backwards okay so now I should be all wired up and ready to upload a program so let's hop over to the computer I'll plug this in we'll see if we can get a program to upload all right so here you can see on the screen I have the Wi-Fi scan example open and once you get the tool chains set up you can go straight to examples and there are some directly for the 32 dev module and so you can see it's basically some of the similar programs from the 80 to 66 so just as a test I want to try uploading this so my serial port has been set and I've set my upload speed to 11 5200 I will note it defaulted to 921 600 I didn't have much success with that but I'm sure it's probably a speed that you could upload at but for now I'm sticking with 11 5,200 and of course I'm selected on the ESP 32 dev module so I believe all I have to do is reset the board and upload but you may also need to hold down I of 0 like you do on the 80 266 so let's see whether or not this works so I'm going to upload I'm going to hold down reset okay uploading it looks like it is uploading I see activity both directions up nope did not upload okay we got an invalid header packet so let's try this again maybe hold down I of 0 okay still not working ok so I was wrong my bad you do also you need to both reset and hold down the i/o 0 so I reason both of these should be pulled high and then on your buttons when you push them should pull low so that is the lesson here so it is just about as difficult as uploading to the 80 to 66 but with these little breakout boards especially when they include the buttons on them it shouldn't be too hard and like I said you do need basically a breakout board because the pin spacing on these it's basically it's built to be surface mounted so you really do need to mount it on a board first but let's just try this again I'm going to hold them both down release okay yep so that is the process they're pulled down both release reset and then release io0 and that puts into bootloader mode so as you can see on the screen it is uploading 676 84 9200 done uploading so now if I open up the serial monitor we should be able to see various Wi-Fi hotspots May after I think you do have to reset the board after you upload it there is no auto reset so let's try that yep there we go it's starting up it's scanning and it's found a whole lot of networks around me so that seems to work that's really awesome and it just keeps scanning so there is your first well my first program on a ESP 32 so here's the whole process start to finish as I have now figured it out you need tx/rx power all that going to a serial module you need reset which is also the enable pin so on the 80 to 66 there were there were two pins there was a reset pin and then an enable pin separately those are now the same pin so there's no more differentiation between reset and enable so you hold down reset hold down I of 0 release reset release io0 and that puts into bootloader mode then you upload your program on your computer and if all goes well it should upload to the module one thing that I will note that is somewhat upsetting and I'm sure is more variants of the ESP 32 model come out this will be fixed but there's no LEDs on here there's no there's no indicator to me that I even have power which was sort of where the problem came from before me having to resolder the power wire I couldn't figure out I didn't know I didn't even have power on here so I would like to see some LEDs I'm sure that I could you know hack it together and put an LED on here but it would be nice to have it by default so that's my really only big complaint here the next thing that I do have to say is don't worry about getting this right now ok I'm sure you guys all have tons of projects that you love to do with this but at the moment if I go to the github page for the ESP this Wi-Fi about 99% the same as esp8266 and I noted that there were going to be some differences here so they have not figured out how to get LW IP running or haven't gotten it working successfully fully on here yet which means that things like Wi-Fi client and server and UDP and mdns responder which is what I believe mqtt uses the library doesn't work right now so I can't even use this for anything really all that useful right now and half the functionality I mean they barely have things running so honestly I think I have this running right now I think it's going to be a really really useful module but it's not ready quite yet it's it's there we have it there physical boards they're going out to people but it's not the software isn't totally right so don't be you know don't be upset that you can't get yours right now I'm honestly going to probably shelf these for another couple months before I really do anything big with them just until the software stabilizes a bit but it is really cool it's really nice to know all the features and functionality that this guy has I really like that at least this little breakout board that they gave me with these two buttons does make uploading programs much easier I'm not having to fabricate my own you know breadboard setup which I actually started doing a little bit last night before I realized that it was the power wire that was not connected so yeah I think that's going to wrap up my initial couple videos on the ESP 32 I want to thank you guys for watching I want to hear what your thoughts are on the ESP 32 I want to hear what you guys think that I should do with this module because honestly right now I don't even know this thing's got bluetooth I don't even know what to do with bluetooth right now so if any of you guys have some cool project ideas that you want to see me try or you want to talk about you want me to talk about definitely let me know in the comments and if you like this video subscribe to the channel I'm definitely going to be working with the ESP 32 more and I'm also back and I will be making more esp8266 and Arduino videos so definitely subscribe I'm back and I'm making videos thanks guys for watching I'll see you guys next time
Info
Channel: ItKindaWorks
Views: 68,148
Rating: undefined out of 5
Keywords: ESP32, ESP32S, Seedstudio, Arduino, ESP8266, ESP-01, ESP-07, ESP-12, ESP8266-01, ESP8266-07, ESP8266-12, IoT, Internet of Things, Home Automation, Code, Software, Arduino IDE, upload, programming, C++, microcontroller, tutorial, testing, new, hardware, intro, introduction, review, part 3, part 2, part 1, getting started, easy, simple, fun, technology, toolchain, core, wifi, bt, bluetooth, blutooth, btle, ble, seeed, ikw, it kinda works, itkindaworks, test
Id: ZR2ob_wYX60
Channel Id: undefined
Length: 15min 3sec (903 seconds)
Published: Mon Dec 12 2016
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.