

When you open the ESPlorer IDE you should see a window similar to the preceding Figure, follow these instructions to send commands to your ESP8266:

Every time that receives the string “HI!” at a baud rate of 9600, it will turn the GPIO 2 on or off. Summary: The ESP is configured to listen to serial communications. Open the ESPlorer (as shown in the Figure below).Ĭopy and paste the code below into ESPlorer IDE window.
#Esp8266 serial port install
Follow these instructions to download and install ESPlorer: I recommend using the ESPlorer IDE which is a program created by 4refr0nt to create and save Lua files into your ESP8266. Having your ESP8266 flashed with NodeMCU, follow the next schematics to establish a serial communication between your FTDI programmer and your ESP8266 to upload some code. Now if you open your Arduino serial monitor at a baud rate of 9600, you’ll see a message appearing in your window saying “HI!” every 1 second. Send Data From Arduino to ESP8266 via Serial baud rate 9600 Then in the loop() function it prints “HI!” continuously every 1 second (that message will be received by your ESP later).Ĭopy the sketch below to your Arduino IDE and upload it to your Arduino board. You begin a serial communication in the setup() function at a baud rate of 9600. The Arduino sketch for this tutorial is very simple. You can use the preceding links or go directly to /tools to find all the parts for your projects at the best price!

Let’s get started! Watch the video demonstration below If you like the ESP WiFi module and you want to build more projects you can download my eBook called “Home Automation using ESP8266” here.
#Esp8266 serial port how to
In this tutorial you’re going to learn how to send data from an Arduino to the ESP8266 via serial communication.īefore you continue reading this project, please complete the following tutorials:
