So try picking it up.Īfter selecting the desired speed, send the module "AT" and he should answer that everything is "OK".
If the module does not send anything to the console, then maybe something is connected incorrectly.īy default, the speed should be 115200, but in some cases there may be 9600 and others. Note 74880 - not the basic rate of ESP8266, he simply just on it sends debugging Institute deformations of. Set the speed to 74880 and “NL & CR” and again turn off and turn on the power and he will answer something which debug information: Next, open the console in the Arduino IDE, apply power to the module, if everything was done correctly, we will see something like that: Go to the "Tools" and select the desired COM port (I have COM32) Arduino or USB UART converter, then set Upload Speed : “115200”: Scroll down the list of boards and see that we have a lot of different ESPs in the list, take the "Generic ESP8266 Module": The development environment downloads the files it needs (about 150 megabytes) and opposite the inscription " esp8266 by ESP8266 Community " appears "INSTALLED" that is installed: : A window appears for the board manager, scroll to the bottom, and if everything is done correctly, we will see something like this:Ĭlick on the inscription " esp8266 by ESP8266 Community " after of this, we got the "Installation" button, select the version you need, I take the latest, today it is 2.1.0. I took this link on the project page of the Arduino core for ESP8266 WiFi chip. Insert the link in the "Additional links for the Board Manager:" field and click "OK". We start the development environment and then go to File / Settings: they don’t fit, because they do not have the necessary functionality, and dancing with a tambourine does not interest us, do they?
To start, on off.sayte download the latest version of the Arduino IDE, at the moment it is 1.6.7.
Personally, this is not cold / hot for me, but if someone needs it, closer to the end of the article I will show how to flash the firmware back into the module, well, or some kind of bootloader like NodeMcu. I will say right away - once having programmed the module in the development environment of the arduino, we will remove the native firmware and we will lose the ability to work with the module using AT commands. Well, we already know how to connect the ESP8266 and put it into programming mode, now let's move on to something more useful. This video completely duplicates the material presented in the article below. And not only the arduino, but any person who has a desire to bungle something on the topic of IoT (Internet of Things), and without spending a lot of time reading documentation for the chip and learning the API for these modules. But, if you work with these Wi-Fi modules in the Arduino IDE development environment - the entry threshold drops to an acceptable level for the ordinary arduino. In general, this material is not limited to only one Arduino theme.
I will not touch on topics that are already covered.Īnd today, I will tell you how to program the ESP8266 using the Arduino IDE, as well as flash other firmware, for example NodeMcu. This material is a continuation of my previous article - ESP8266 and Arduino, connection, pinout, and I must say that they are interconnected.