Arduino – How to communicate to ESP8266 (ESP-01) using SofwareSerial

This ESP-01, has been upgraded to AT firmware v1.1, using this firmware here.

We need to first connect the ESP-01 to the Arduino using this schematics below.

Designed with Microsoft Paint.
It wasn’t recommended to use SoftwareSerial in Arduino mega, because it actually has hardware serial. But I forgot to bring my Uno, so yeah.

Code : Pastebin.

If you open serial monitor, you now can send AT command from it.

If you want to send serial command from your program to ESP directly, use mySerial.write(Serial.read()); .

Share Button
Published
Categorized as Tutorial

By Rinaldo Jonathan

Admin of this site. Artis papan PCB. #zoneRinaldo #Controllerism Studio Demon, Stage Angel, Sleepy Developer, Smoke free. Kalkud SHS 2012, PCR G15.

Leave a Reply

Verified by ExactMetrics