You also have to choose your ESP’s COM portģ) Open the BasicOTA.ino example: File > Examples > Arduino OTA > BasicOTA.ino or copy the following sketch to your Arduino IDE /*********Īrduino IDE example: Examples > Arduino OTA > BasicOTA. Follow these next instructions:ġ) Connect your ESP8266 to your computer with a USB cable:Ģ) Go to Tools to select your ESP board model. This repo consists of a few parts which can be used with other projects.
To program or update your ESP8266 firmware, you will need an FTDI module. To save space, you can replace the connector supplied with the board with a 90 ° angled connector (if your project requires compactness). In the Tools menu choose Config Device and set the Com port and set the baud rate to the value you used during testing (57600 or 115200). ESP8266 is programmed exclusively with an FTDI module that will be plugged into the connector located on top of the board. Having the latest Arduino IDE software installed from /en/Main/Software. Special firmware to use ESP8266 as a local web server with RESTful API and as a client of DeviceHive cloud. Put the ESP8266 into firmware update mode by grounding GPIO0 and re-cycling the power. In order to upload firmware to your ESP8266 wirelessly, you have to upload the BasicOTA.ino sketch example first. First what you receive firmware version, mostly could be: 00160901, this version number actually are two parts, 0016 is the SDK version, and 0901 is the AT.
Step #1 – Uploading BasicOTA.ino with serial communication If you like the ESP and you want to do more projects you can read my eBook Home Automation using ESP8266.
Uploading a new sketch wirelessly from Arduino IDE is intended for the following typical scenarios: Using Update Server Updates with the update server. This type of functionality is extremely useful in case of no physical access to the ESP module.
OTA (Over the Air) update is the process of loading a new firmware to ESP8266 module using WiFi connection rather than a serial communication.