loading

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!

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 ("http://arduino.esp8266.com/stable/package_esp8266com_index.json ") then save that

2) Install the ESP boards in the boards manager

Easy!

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
fourth

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);

delay(500);

digitalWrite(pin[0], LOW);

digitalWrite(pin[4], HIGH);

delay(500);

}

About This Instructable

1,824views

34favorites

License:

Bio: 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 ... More »
More by Funguypro:See Through Buildings With a Drone Dog Water Alarm (V2) Custom PCB's With a Laser Cutter 
Add instructable to: