[intro music] cisco: hi, i'm cisco with acrobotic. and today we're gonna be talking about how to get started with the esp8266 development board. we're gonna be using the arduino ide to write custom firmware that is gonna be downloaded onto the board and execute. the materials that we're gonna need for this tutorial are the development board itself. it's optional, but nice to have a solderless breadboard and just a micro b usb cable. we've taken the esp-12e module, mounted it on
our development board, in order to make things even easier. we include a few additional components like a usb to serial uart translator chip by silicon labs. and a few other, like a voltage regulator a few other components, so that you can just plug it into your computer use the arduino ide and just get started with developing software or firmware that would run on the esp8266 itself. there are a few different options that you can use for developing firmware that
would run on the esp8266. and we're gonna be using today the arduino ide, but i wanted to mention the two more popular ones are using at commands. this is where you hook up the esp8266 to a micro-controller typically. that micro-controller will send these at commands via serial aserial uart interface. and again you can read a little bit more in the links included in the description. but then the esp8266 device is just listening to at commands, and
you tell it using an at sequence "hey, connect to wi-fi" "this is my ssid, etc. etc.". we are not gonna be using that we are going to write custom firmware that will get uploaded to the esp8266 and the esp8266 is just going to run that custom firmware. the other one that is really really popular is the node mcu firmware. that's a little bit similar to the at commands. you can actually use it a few different ways, but for the most part you end up using the lua programing language to have this sort of live interaction with the esp8266 itself.
you can read more about it again in the links included in the description, but in order to get started with the arduino ide, we're gonna jump to the arduino.cc website. and we are gonna go to the download section. and this is in case you don't have the arduino ide already installed. for those of you who are not familiar, ide stands for integrated development environment. so we are gonna look for the latest version, which is at the day of this recording 1.6.7. i'm gonna be using a mac, so i'm gonna click on the link for mac osx.
and then, you know, i encourage you to contribute to the project, they are really, they are doing really great work. i'm just for now gonna click just download. and it should take a few, a couple of minutes to download depending on your internet connection. the second piece of software that we gonna need is actually the drivers for talking to the iec that is on our development board that does the usb to serial uart translation. and for that we're gonna go to the link from silabs, silicon labs
included in the description of this video, and for me again, i am running this on a mac. i am running osx so i'm gonna scroll down and i'm gonna download the vcp drivers for mac osx. depending on your operating system, you'll need to download the corresponding drivers. once you've downloaded the vcp drivers from the silicon labs website go ahead and double click on the file. then go to the mounted image and double click on the package file to go through the installation process. go ahead and click 'continue'.
if you want to read the software license agreement, once you agree with it, then click 'agree', if you agree. and then just click on the 'install'. it'll ask you to enter your password as you are going through the process. this is again just installing the drivers that you'll need in order to communicate with the development board. and it takes a few seconds to install. at the same time we can go through the process of installing the arduino development environment. so i'm gonna go back to my downloads
which is where i downloaded the file. i'm gonna go ahead and unzip it. and that process should take a little bit. once the application is unzipped, go ahead and drag it to your applications folder. i had a previous installation. i'm just gonna go ahead and replace that one. once the vcp drivers are installed, you are pretty much ready to go. you can go ahead and open the arduino ide. then we want to go through the file menu for windows users and through the preferences menu for mac users.
there's gonna be an 'additional boards manager url's' entry. go ahead and enter the url included in the description of this video. and if you already have urls in there then just go ahead and add a comma and a space, before adding the one for the esp8266 family of boards. you click ok. the reason we did that is in order to have the board recognized automatically by the ide without installing anything additional. then we can go through the 'tools' menu. go to boards and 'boards manager'
we wanna search for esp8266. click on the entry and click on 'install'. it'll download a few things and install a few others, so it'll take some time. once that's completed we want to close down the arduino app, or the arduino ide app and restart it. once all of this is done, you can go ahead and connect your development board, your esp8266 development board to the usb port of your computer. from the 'tools' menu, we are going to select board
and the node mcu 1.0 entry. and for the port we're going to select, for mac, it looks like the one i'm showing on screen is forward slash dev, forward slash cu dot slab for silicon labs usb to uart. on windows it would be com and a number. so you just go ahead and select the entry and then finally we can go through the file menu. examples, basics, and we're gonna open the program 'blink'. then we're gonna make a few modifications so that it works
with the esp8266 board. instead of the number 13 for the pin that we're going to be using, we're gonna be changing it to pin number 16. then we can go ahead and click the 'upload' button. and your board should start blinking, once the program is uploaded to the esp8266. so that's it. you are ready to get started writing your own firmware to the esp8266. thank you for watching.
Tidak ada komentar:
Posting Komentar