All posts by Manoj R. Thakur

About Manoj R. Thakur

In 2014 I started contributing to Open Source electronics, and life has just gotten better from there. Founder of Maven Technologies.

ESP to ESP Communication

In this tutorial we will make two ESP8266 as wireless serial (chat application) using UDP communication protocol. You can have communication between multiple ESPs at the same time. We are using UDP broadcast. UDP is unreliable, but works for many application. UDP gives advantage of sending one message to all ESP8266 devices on same network at the same time using broadcast.

In this post I will explain two types of ESP to ESP communication methods. Continue reading ESP to ESP Communication


ESP8266 have 10 GPIO pins and 1 Analog Input. Pin numbers in Arduino correspond directly to the ESP8266 GPIO pin numbers. pinMode, digitalRead, and digitalWrite functions work as usual, so to read GPIO2, call digitalRead(2).

Digital IO (GPIO)

Digital pins 0—15 can be INPUT, OUTPUT, or INPUT_PULLUP. Pin 16 can be INPUT, OUTPUT or INPUT_PULLDOWN_16. At startup, pins are configured as INPUT. Continue reading ESP8266 GPIO PINS

ESP8266 mDNS

This tutorial explains how to Multicast DNS using ESP8266? In networking world it is difficult to remember ip address of each website and computer, to solve this problem Domain Name System (DNS) is used to make human understandable names. In ESP8266 when using ESP as web server, It is difficult to remember ip address of ESP8266 and also it is difficult to identify ip address of ESP in DHCP mode. i.e. WiFi router assigns IP address to ESP8266. Most ESP8266 application doesn’t have display interface and they are not easy to access to know its IP address. To overcome this problem mDNS is used. Continue reading ESP8266 mDNS

esp8266 get ip address

This tutorial explains how to get ip address assigned to ESP8266? In DHCP configuration IP is assigned by WiFi Router. In most WiFi Router you can get IP address from WiFi router from its connected device status window. But WiFi router shows ip address only when there is data sent on network. If ESP is connected but did not sent any packet on network then WiFi router may not show ip address of your ESP. If it is connected then you will have to identify your ESP name. i.e. set using

Continue reading esp8266 get ip address

How to change ESP8266 MAC Address

This tutorial explains how to change mac address of ESP8266? ESP8266 Arduino core does not provide an API to change ESP8266’s WiFi MAC address. While there is a WiFi.macAddress() function, it actually retrieves the current WiFi MAC address, instead of setting it. However, Espressif SDK offers an API to change the WiFi STA MAC address.

All esp8266 comes with unique address which is factory programmed. A MAC address is given to a network adapter when it is manufactured. It is hardwired or hard-coded onto your network interface card (NIC) or chip and is unique to it. Something called the ARP (Address Resolution Protocol) translates an IP address into a MAC address. Continue reading How to change ESP8266 MAC Address