0

ESP8266 Arduino IDE (Windowns, Mac OS X, Linux)

esp8266-arduino
5 sao

sorry we are not native speakers, so the content may not be clear. We just want to share with you!

ESP8266 arduino ide, the esp8266 community created an add-on for the arduino ide whether you’re using Windows, Mac OS X or Linux.

We will help you Installing ESP8266 Board in Arduino IDE!

Read more: What is ESP8266 and it’s sleep mode

ESP8266 with LUA

Before starting ESP8266 arduino, i will introduce with you ESP8266 with lua language:

Lua is a powerful and simple scripting language used for many different applications. It has found great success in game development, and is now finding a new home in IoT development. NodeMCU created a firmware for the ESP8266 that is based upon a Lua interpreter. We’ll get you off and running with Lua on this popular IoT platform!

LUA LANGUGE TUTORIAL

ESP8266 SDK TutorialLearn how to use the ESP8266 SDK. This is what the pros use!
ESP8266 Lua/NodeMCU TutorialA look at the NodeMCU Lua interpreter for the ESP8266.  Learn how to get to Blinky!
LUA language and esp8266

Prerequisites: Arduino IDE Installed

Before starting this installation procedure, make sure you have the latest version of the Arduino IDE installed in your computer. If you don’t, uninstall it and install it again. Otherwise, it may not work.

Having the latest Arduino IDE software installed from arduino.cc/en/Main/Software, continue with this tutorial.

Install arduino ide
Install arduino ide

Install ESP8266 Add-on in Arduino IDE

refer: https://randomnerdtutorials.com/how-to-install-esp8266-board-arduino-ide/

  1. In your Arduino IDE, go to FilePreferences
file preferences
file preferences
  1. Enter http://arduino.esp8266.com/stable/package_esp8266com_index.json into the “Additional Boards Manager URLs” field as shown in the figure below. Then, click the “OK” button:
Esp8266 package
Esp8266 package

Note: if you already have the ESP32 boards URL, you can separate the URLs with a comma as follows:

https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json
  1. Open the Boards Manager. Go to Tools > Board > Boards Manager…
Select tools board manager
Select tools board manager
  1. Search for ESP8266 and press install button for the “ESP8266 by ESP8266 Community“:
Install success
Install success
  1. That’s it. It should be installed after a few seconds.
Search esp8266 in board manager
Search esp8266 in board manager

Uploading the Sketch for ESP8266 arduino

After install add-on, we will upload the sketch blink led. If you’re using an ESP-12E NodeMCU Kit, uploading the sketch is very simple, since it has built-in programmer. Plug your board to your computer.

select board ESP-12E
select board ESP-12E

After that you will select com port:

Select com port
Select com port

How to select COM PORT in Windows

If you don’t know how to find your COM port when you plug in the ESP8266 module, let follow this step:

Search device manager
Search device manager
Choose your COM after plug in your esp8266 board
Choose your COM after plug in your esp8266 board

Copy code to Arduino IDE

int pin = 2;

void setup() {
  // initialize GPIO 2 as an output.
  pinMode(pin, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(pin, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(pin, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
}

Upload code

Results after installed ESP8266 Arduino IDE

Esp8266 blink led
Esp8266 blink led

so, today i have introduce to you how to setup ESP8266 in Arduino IDE. Hope to help you!

Leave a Reply

Your email address will not be published.