Tag Archives: ESP8266

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

ESP8266 get mac adress

This tutorial explains how to get mac address of ESP8266? 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.

For this reason, the MAC address is sometimes referred to as a networking hardware address, the burned-in address (BIA), or the physical address. Here’s an example of a MAC address for an Ethernet NIC: 00:0a:95:9d:68:16. Continue reading ESP8266 get mac adress

Software reset ESP8266

This tutorial shows hot to software reset ESP8266 in Arduino IDE. This sketch/example shows software reset using simple command ESP.restart() or ESP.reset().

Software reset for ESP8266 is required when you get trouble to connect WiFi router.

Lets see the use of software restart. This example program will show you software reset in a loop before it reaches to its max value. Continue reading Software reset ESP8266

Nodemcu pinout

Nodemcu pinout is having labels D0 to D8 and RX-TX but when programming it using Arduino IDE we observe that its labels are not matching with IO connections. Lets see actual connections of NodeMCU with ESP8266 i.e. ESP-12.

NodeMCU is an open source IoT platform. It includes firmware which runs on the ESP8266 Wi-Fi SoC from Espressif Systems, and hardware which is based on the ESP-12 module. The term “NodeMCU” by default refers to the firmware rather than the dev kits. Continue reading Nodemcu pinout

ESP8266 PWM Example

This ESP8266 PWM example explains how to use the Pulse Width Modulation (PWM)  with the ESP8266.

analogWrite(PIN,VALUE);
ESP8266 can generate PWM on all IO pins. The ESP8266 analogWrite is different than the Arduino Uno. ESP8266 uses 10-bit resolution for PWM generation PWM value varries from 0 to 1023. Arduino Uses 8-Bit Resolution i.e.PWM range is 0-254.

Continue reading ESP8266 PWM Example