Make the Esp8266 Chip a Little Bit Easier to Program!

About: I like to create new things! I'm very interested in IOT and just Internet Stuff. I am not responsible for any injury or deaths caused by my projects.

For starters the esp8266 12-e can be hard to figure out that's why I made this instrucatable, to make it easier to figure out!

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Why Is the Esp8266 a Little Tricky?

Well the pins on the board are different then the GPIO pins. Look at the pictures that describe how the pins are different.

Step 2: Install the Esp Chip on Arduino Ide

Fallowing the images:

1) go into the preferences and go into additional boards manager add this url (" ") then save that

2) Install the ESP boards in the boards manager


Step 3: Use an Array for Your Pins

A super easy way to convert your board pins to the gpio pins is to use this array.

int pin[]{16, 5, 4, 0, 2, 14, 12, 13, 15};

So now to use the pins how they are used on the board just use "pin[whateverpinislistedontheboard]"

Step 4: Need It More Simple?

The codes above will blink the on board LED's (the ESP8266 12-E has two), the led on the wifi chip is connected to D0 and the led on the main board is connected to D4. Use the fallowing code o flash the led's back and

int pin[]{16, 5, 4, 0, 2, 14, 12, 13, 15};

void setup() {

pinMode(pin[0], OUTPUT); //this would actually be GPIO 16

pinMode(pin[4], OUTPUT); //this would actually be GPIO 0


void loop() {

digitalWrite(pin[0], HIGH);

digitalWrite(pin[4], LOW);


digitalWrite(pin[0], LOW);

digitalWrite(pin[4], HIGH);



Makerspace Contest

Participated in the
Makerspace Contest

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest