How to Setup ESP32 Microcontroller for Arduino and Micropython

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments

Yes, it is. Specifically because it was posted in this group.
The standard method to relieve the threat, is to start by 'reprogramming' the messenger.
.
Oh wait. It is YOUR y/t channel. Your channel will be assimilated.

πŸ‘οΈŽ︎ 6 πŸ‘€οΈŽ︎ u/other_thoughts πŸ“…οΈŽ︎ Dec 21 2019 πŸ—«︎ replies

Progress is never heresy. It can still get you burned at the stake tho.

πŸ‘οΈŽ︎ 1 πŸ‘€οΈŽ︎ u/Mad_Jack_McMadd πŸ“…οΈŽ︎ Dec 22 2019 πŸ—«︎ replies
Captions
welcome to ball guide DIY in this video I'm going to show you how to set up one of these ESP 32 micro controllers for use with either Arduino IDE or micro Python on your next electronics project [Music] these ESP 32 microcontrollers are really powerful because they come with built-in Wi-Fi and bluetooth which isn't standard on most arduino products but i thought it would be great to set one up with arduino ide capability and one with micro Python because i've been itching to try that out so then on the projects that i have coming up i'm gonna be able to test out which one works a little bit better for me and which is more comfortable to program in stick around i'm gonna show you how to set up the ESP 32 for both arduino ide and for micro python we're going to be doing this project using Microsoft Windows so the first thing you need to do is head over to Silicon Labs which is si labs comm and I'll leave a link in the description and download the USB to serial adapter so that it will recognize and assign a comport to the DSP 32 chip simply scroll down till you find your version of Windows and save the one that you need and then run that application it should only be a few short steps and then when you plug your ESP 32 in it will recognize it next we're gonna go over to the Arduino DC website and we're gonna download the Arduino IDE that is the interface that's used to program an Arduino and it will work great with a little bit of extra configuration for our SP 32 as well once the arduino ide is downloaded and run you can open it up and we're gonna head to file and preferences and we're gonna go right to this section called additional board manager and click the little folder icon beside it and then as we look here there's a link for click for a list of unofficial boards click that and it will bring you to a web page which has the links for all the different boards if you scroll down and find expressive ESP 30 to expressive is the company that makes the chip and then copy that link you're going to now paste it into that field that says additional board manager once you say that we all have the board options for the SP 32 next we look to the tools menu choose board and scroll down and find the board that you're using in my case it's the do it ESP 32 dev kit and then the last thing is to choose the port in this case mine got assigned to column 4 if you don't see a port you might not have installed the driver properly or you might not have plugged in your ESP 30 to yet next thing I'm going to do is just simply load the example blink sketch and this is going to blink an LED on and off every one second and so you just go to examples load that sketch and then you start compiling it once I pressed the button to upload it to the DSP 32 it took almost 30 seconds for it to actually compile and upload it to the chip before it started working but once that was process was done you can see indeed that blue LED starts blinking on and off every one second that's how you set up Arduino ID to set up micro Python we still need to install that usb-to-serial driver but because I've already done that you don't need to here and then go to micro python.org and download the latest driver for your ESP 32 so you're gonna scroll down the list of downloads until you get to the firmware for ESP 32 boards I use the most recent generic driver and I just saved that bin file somewhere on my computer where it's easy to find the next easiest step I found is to download you pyecraft IDE for Windows I have a link for it in the description and that will allow you to use you pyecraft ide that's going to be much easier to use than the command line prompts for flashing the firmware and for programming it for your first steps I did try a bunch of different command line software and I just found it frustrating and you know there was gaps in in the information of how you supposed to do it you know if the copy and paste commands edit them and all of those things we're using this graphical user interface of you pyecraft ide is just so much easier once you've downloaded it and run it and you get this window and you can start by clicking the connect button which looks like a couple of links in a chain and you might get an error that says it can't find it but if you try again clicking that button it should prompt you with a little box and that little box is asking you to flash the firmware you just need to choose under board ESP 32 the burn address you're going to choose 1,000 and you're gonna choose to erase the flash and click the users button when you click the users button you'll get a prompt to point to the software that you downloaded from micro python.org you simply choose that software and then click OK the flash and burn process takes about 30 seconds and it just runs through erasing the what's currently on the ESP 32 microcontroller and then burning on a new set of firmware that will work with micro Python one of the big differences with micro Python compared to ours we know there are Python files that get installed to the memory that you can use and program like any other Python files so if you programmed in Python before it's a very easy language to use once you're done you again click the connect icon and choose the device in the top left corner and you can choose the boot PI file and you can start writing code immediately now I'm pretty new to this making some mistakes as I go that I need to correct but basically you're gonna import the machine library which controls the actual microcontroller pins and functions and then in this case I'm gonna import the time library as well so that I can create some delays and then I'm simply gonna declare the pin variable as machine pin 2 and declare it as an output unlike Arduino there isn't a setup and a loop function so you have to create your own loop function if you want something to repeat itself and in order to do that you create a while true which is always going to be true and so while it is true it's going to just keep looping through the code that you put in the wild true function it's a simple code that turns the pin on waits a second turns the pin off waits a second and keeps repeating over and over again once you click the play button which downloads and runs the software it almost instantly takes effect and starts blinking on and off this was a major thing that I noticed right away so much faster than the Arduino IDE which took about 30 seconds to compile and download that's it now micro Python is running on the ESP 32 so as you can see both Arduino and micro Python platforms require a little extra configuration for the ESP 32 but once you have them properly configured it's pretty easy to upload code and get the blink sketch working just like you would on any other Arduino or microcontroller project now obviously this is a pretty simple example but I just want to show you how you would actually set them up and have them ready to go for whatever project you can think of I hope that gives you some inspiration to try one of these in your next electronics project and let me know in the comments what you decide to try and how it turned out I've got a lot of electronics projects in mind and so I'm anxious to get started with these ESP 32 microcontrollers and see how they perform if you found this video useful please give it a like subscribe to the channel if you'd like to see more projects and until next time in all your DIY projects don't be afraid to be bolder
Info
Channel: BaldGuyDIY
Views: 14,862
Rating: undefined out of 5
Keywords: how to setup esp32, how to use esp32 with Arduino ide, how to use micro python on esp32, esp32 projects 2019, esp32 projects arduino, esp32 projects for beginners, how to use micropython on esp32, internet of things projects, embedded python on esp32, esp32 tutorial, esp32 windows setup, esp32 micropython setup
Id: P5qgf5yjF_A
Channel Id: undefined
Length: 7min 49sec (469 seconds)
Published: Sat Dec 21 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.