# Connect ESP8266 ESP-01 with Arduino

**URL:** <https://forum.arduino.cc/t/connect-esp8266-esp-01-with-arduino/520660>\
**Category:** Programming\
**Created:** [April 16, 2018, 2:44pm UTC](https://forum.arduino.cc/t/connect-esp8266-esp-01-with-arduino/520660 "2018-04-16T14:44:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamelalhomsi](https://avatars.discourse-cdn.com/v4/letter/k/90db22/32.png) [@kamelalhomsi](https://forum.arduino.cc/u/kamelalhomsi)\
**Post date:** [April 16, 2018, 2:44pm UTC](https://forum.arduino.cc/t/connect-esp8266-esp-01-with-arduino/520660/1 "2018-04-16T14:44:11Z")

</div>

Hello  
I want to inquire about connecting Arduino with esp8266 using serial communication RX TX (Master - Slave)  
I want to know how write the code esp?  
Is the same code that I type in Arduino Slave?  
The physical connection will be between Rx, Tx h, or via SCL, SDA?  
Can you help me?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [April 16, 2018, 3:10pm UTC](https://forum.arduino.cc/t/connect-esp8266-esp-01-with-arduino/520660/2 "2018-04-16T15:10:23Z")

</div>

> I want to know how write the code esp?

Is that a question or a statement?

As written, you seem to want us to guess what the answer to that question is. That doesn't make sense.

> Is the same code that I type in Arduino Slave?

Obviously not. The master and the slave are going to have quite different code.

> The physical connection will be between Rx, Tx h, or via SCL, SDA?

You communicate between the Arduino and the ESP using SoftwareSerial on any two available (Arduino) pins.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 5, 2021, 11:08pm UTC](https://forum.arduino.cc/t/connect-esp8266-esp-01-with-arduino/520660/3 "2021-05-05T23:08:10Z")

</div>

Closed on May 5, 2021, 11:08pm UTC


