User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Installing the ESP8266 Arduino Addon for ledunia

There are a variety of development environments that can be equipped to program ledunia. You can go with a simple Notepad/gcc setup, or fine-tune an Eclipse environment, use a virtual machine provided by Espressif, or come up with something of your own.

Fortunately, the amazing ESP8266 community took the IDE selection a step further by creating an Arduino addon. If you’re just getting started programming ledunia, this is the environment we recommend beginning with, and the one we’ll document in this tutorial.

This ESP8266 addon for Arduino is based on the amazing work by Ivan Grokhotkov and the rest of the ESP8266 community. Check out the ESP8266 Arduino GitHub repository for more information.

Installing the Addon With the Arduino Boards Manager

With the release of Arduino 1.6.4, adding third party boards to the Arduino IDE is easily achieved through the new board manager. If you’re running an older version of Arduino (1.6.3 or earlier), we recommend upgrading now. As always, you can download the latest version of Arduino from arduino.cc.

To begin, we’ll need to update the board manager with a custom URL.

Open up Arduino, then go to the Preferences (File > Preferences). Then, towards the bottom of the window, copy this URL into the “Additional Board Manager URLs” text box: http://arduino.esp8266.com/stable/package_esp8266com_index.json

2017 07 25 19 27 38 Preferences

If you already have a URL in there, and want to keep it, you can separate multiple URLs by placing a comma between them.
(Arduino 1.6.5 added an expanded text box, separate links in here by line.)

Hit OK. Then navigate to the Board Manager by going to Tools > Boards > Boards Manager. There should be a couple new entries in addition to the standard Arduino boards. Look for esp8266. Click on that entry, then select Install.

2017 07 25 19 48 42 Boards Manager

The board definitions and tools for the ESP8266 include a whole new set of gcc, g++, and other reasonably large, compiled binaries, so it may take a few minutes to download and install (the archived file is ~110MB). Once the installation has completed, an Arduino-blue “INSTALLED” will appear next to the entry.

Selecting the ledunia Board

With the Board addon installed, all that’s left to do is select "Generic ESP8266 Module” from the Tools > Boards menu.

2017 07 25 19 45 49 sketch jul25a Arduino 1.8.1

Then select:

  • Board: "Generic ESP8266 Module"
  • Flash Size: Your Favourite Size
  • Reset Method: "nodemcu"
  • Port: (attach ledunia first) Your ledunia Port

Faster Uploads:

The serial upload speed defaults to 115200 bps, which is reliable, but can feel a bit slow. You can increase the upload speed by a factor of about 8 by selecting 921600 under the Tools > Upload Speed menu.

2017 07 25 20 31 10 sketch jul25a Arduino 1.8.1


Upload your first sketch:

To verify that everything works, try uploading the old standard: Blink. Instead of blinking pin 13, like you may be used to though, toggle pin 5, which is attached to the onboard LED.

upload Arduino 1.8.1

#define ESP8266_LED 5

void setup() 
  pinMode(ESP8266_LED, OUTPUT);

void loop() 
  digitalWrite(ESP8266_LED, HIGH);
  digitalWrite(ESP8266_LED, LOW);

 I/O Header:

Note: GPIO D4 is beeing used for the Neopixel LEDs

ledunia pinout

About Ledunia

Ledunia is a powerful WiFi enabled IoT development board with a full TCP/IP stack and microcontroller unit based on the mature of the ESP8266 technology.

Latest News

25 July 2017