In this illustration we will going to integrate the D1 ESP8266 ESP12-E Wi-Fi enabled microcontroller with Arduino IDE, The D1 contains the popular ESP8266 12-E a Wi-Fi enabled MCU board this board can be easily use and coded from Arduino
Wiring ESP8266 WiFi Transceiver on Arduino with Relay
In this illustration we will going to wire the ESP8266 Module on Arduino but before we can proceed we need to setup the ESP8266 module using AT-COMMAND please refer to this link. As you can see the illustration below our
LUA Programming Using ESPlorer IDE Tutorial Guide
To upload a code to ESP8266, you should connect your ESP8266 to your FTDI USB Programmer: as the image illustration below. Coding Your fist LUA Script a blinking an LED
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
-- your first lua script working on LED lighton=0 pin=4 gpio.mode(pin,gpio.OUTPUT) -- Assign GPIO to Output tmr.alarm(1,2000,1,function() if lighton==0 then lighton=1 gpio.write(pin,gpio.HIGH) -- Assign GPIO On else lighton=0 gpio.write(pin,gpio.LOW) -- Assign GPIO off end end) |
Burning your code into the chip ESP8266 +