This book will use the NonOS SDK and as a development IDE, the Arduino IDE. In this part you will download the Arduino Software (IDE), configure it and install the ESP8266 SDK.
To download the Arduino IDE, go to https://www.arduino.cc/en/Main/Software and download the latest version:
Now, you can download the version you want depending on your operating system. There are versions for Windows with and without admin rights, macOS X, and Linux for 32 bits, 64 bits, or ARM processors so that you can install and work, even on a Raspberry Pi.
After you have downloaded the Arduino IDE, you need to install it on your local computer.
If you are on Linux, you need to use the
tar command to open the Arduino IDE archive, then you can go into Arduino-1.8.2 and start it with
In this screen, you can customize some fields as follows:
Sketchbook location: Here you can choose where your project files are stored.
Editor language: If you prefer another language to the default one, you can change this field here; but after this, you need to restart the IDE.
Editor font size: This is the font size used in the IDE.
Show verbose output during: compilationand
upload: I suggest you check both of them to have a detailed output during compilation, where you can see files and their paths and also the upload.
Display line numbers: This field is good to see the line number in the right part of your IDE number.
Enable Code Folding: This field gives you more space on the screen.
Additional Boards Manager URLs: Here is the field that allows us to get and install the ESP8266 Xtensagcc compiler, required tools to flash the obtained firmware into the ESP8266 flash memory along with other board types. In this field, you need to add http://arduino.esp8266.com/stable/package_esp8266com_index.json and the
Preferencesscreen will look as follows:
For this, you need to go to the following path and follow these steps:
- Go to
Board: "Arduino/Genuino Uno"|
Boards Manager... :
- Subsequently, the
Boards Managerwill be opened.
- Now, go back to
Board: "Arduino/Genuino Uno"and you should see a lot of ESP8266-based boards in the lower section:
NodeMCU 1.0 (ESP-12E Module)and go back to the
Toolsmenu, where you will see other configurations that you can perform for ESP8266:
CPU Frequency: "80 MHz": This can be changed from
- The memory size of your module and the size of SPIFFS (1 or 3 MiB)
- The upload speed for the UART interface between your computer and the ESP8266 module. Select from
Upload Speed: "115200
"so that the binary file will be flashed 8 times faster than the default value of
Before starting any program, let's look at the IDE buttons:
Let's start from left to right:
Verify: This allows you to compile and check your code for errors
Upload: This does what
Verifydoes plus uploads generated firmware into ESP8266's flash memory
New: This opens a new window so that you can create another program
Open: This opens an existing program from your local disk
Save: This saves your files on the disk
Serial Monitor: This opens a window where you will be able to see and debug what you add into your program