Questions tagged [esp8266]

ESP8266 is a highly integrated chip which offers a complete and self-contained Wi-Fi networking solution, allowing it to either host applications or offload all Wi-Fi networking functions from another application processor.

The ESP8266 has on-board processing and storage capabilities that allow it to be used with sensors and other application specific devices through its GPIOs with minimal development up-front and minimal loading during runtime. Its high degree of on-chip integration allows for minimal external circuitry. The entire solution, including the module, is designed to occupy minimal PCB area.

The processor itself is an chip; use that tag for questions about Xtensa assembly language, ISA details, and other low-level CPU things, not about peripherals or SDK problems.

The chip features:

  • SDIO 2.0, SPI, UART
  • 32-pin QFN package
  • Integrated RF switch, balun, 24dBm PA, DCXO, and PMU
  • Integrated RISC processor, on-chip memory and external memory interfaces
  • Integrated MAC/baseband processors
  • Quality of Service management
  • I2S interface for high fidelity audio applications
  • On-chip low-dropout linear regulators for all internal supplies
  • Proprietary spurious-free clock generation architecture
  • Integrated WEP, TKIP, AES, and WAPI engines
  • 802.11 b/g/n
  • WiFi Direct (P2P), soft-AP
  • Integrated TCP/IP protocol stack
  • Integrated TR switch, balun, LNA, power amplifier and matching network
  • Integrated PLLs, regulators, DCXO and power management units
  • +19.5dBm output power in 802.11b mode
  • Power down leakage current of <10uA
  • Integrated low power 32-bit CPU could be used as application processor
  • SDIO 1.1/2.0, SPI, UART
  • STBC, 1×1 MIMO, 2×1 MIMO
  • A-MPDU & A-MSDU aggregation & 0.4ms guard interval
  • Wake up and transmit packets in < 2ms
  • Standby power consumption of < 1.0mW (DTIM3)

There are some companies developing modules mostly named like ESP-01, ESP-02, ... ESP-12. Every module has different capabilities and PCB layout.

The modules based on this chip can be programmed with some development tools including Eclipse, CodeBlocks, Arduino(1.6.5) etc. Modules can host different firmwares including NodeMCU. With NodeMCU firmware the chip can parse and execute Lua scripts.

2486 questions
7
votes
2 answers

Check the battery status with NodeMCU?

I use an ESP8266 dev board from NodeMCU with Lua. I power my chip with two AA batteries, which gives me 3V. See this: https://www.hackster.io/noelportugal/ifttt-smart-button-e11841 How do I check the battery status using NodeMCU?
Michael
  • 32,527
  • 49
  • 210
  • 370
6
votes
2 answers

How to detect specific devices in a local network?

I am building an IoT solution where I will have multiple devices connected to my local network that I want to connect to a hub that controls my solution. Once I connect a new device I want to connect it with the hub and give it a name to identify…
David Berg
  • 1,958
  • 1
  • 21
  • 37
6
votes
4 answers

Not able to browse the mdns service created in esp8266

What I done till now is I created mdns service in my nodemcu ... // code used to create the mdns service if (mdns.begin("esp", WiFi.localIP())) Serial.println("MDNS responder started"); server.begin(); …
Sachin
  • 2,627
  • 1
  • 19
  • 35
6
votes
1 answer

ESP32/ESP8266 connect to localhost server using WiFi

I have made a simple Node.js local server to receive POST requests from ESP32 and put it in a database. The server is working fine as I tested it using postman. The server is listening to port 127.0.0.1:3000. My problem is that client.connect(host,…
Natalie
  • 123
  • 1
  • 2
  • 9
6
votes
1 answer

Race between socket accept and receive

I am using nodemcu with an esp-32 and recently came across an annoying problem. I refer to this sample from the NodeMCU Github page: -- a simple HTTP server srv = net.createServer(net.TCP) srv:listen(80, function(conn) conn:on("receive",…
Ctx
  • 18,090
  • 24
  • 36
  • 51
6
votes
2 answers

Error on sending AT+CWJAP_DEF commands to ESP8266

I am trying to send AT commands to ESP8266 to get connected with internet with the Wifi. When I am sending AT and AT+RST command on serial monitor then I am getting OK and ready response which seems perfect. Then I am sending AT+CWLAP to get list of…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
6
votes
4 answers

How can I reset ESP8266 MicroPython after main.py crashes?

I have a NodeMCU ESP8266 board running MicroPython. I'm running a web server on my ESP8266. This is my first IoT project based on one of these boards. The below is a snippet of the code. This is being executed within main.py. Every now and then,…
user1600747
  • 63
  • 1
  • 5
6
votes
1 answer

NodeMCU auto-join open wifi

I have searched for solution for this issue for quite a long time with no luck. I would like NodeMCU to look for an open wifi network and connect to it. As long as the connection is available use that connection - and when the connection drops start…
6
votes
2 answers

server.args() ESP8266 Arduino

I am using the ESP8266 with Arduino IDE and have set up a server at port 200 . The IP is also defined as the same as 192.168.1.100. ESP8266WebServer server(200); IPAddress ip(192, 168, 1, 100); //Node static IP IPAddress gateway(192, 168, 1,…
rahulmr
  • 681
  • 1
  • 7
  • 19
6
votes
2 answers

ESP8266WebServer setting a value inside a class

I'm having a bit of trouble with the ESP8266WebServer. My WebServer{} class is wrapped around the ESP8266WebServer object and looks like this: Header file: #include #ifndef WebServer_h #define WebServer_h #include "Arduino.h" class…
mitim
  • 3,169
  • 5
  • 21
  • 25
6
votes
3 answers

Cannot program ESP8266

Blue led is blinking after powering up the module, the red one stays on, I can even connect to it via wifi. But I cannot program it. I tried Arduino IDE, different firmware flashers (Like NodeMCU, XTCOM). I'm using Arduino Mega. Here's my initial…
Alex Pilkevych
  • 185
  • 1
  • 1
  • 8
6
votes
7 answers

ESP8266 Constantly Restarting

I have been struggling for some time now trying to get my ESP8266 ESP-12 to work. I was able to get it loaded with the NodeMCU software. Now, the board constantly restarts itself. Whether I have a script loaded on it or not, the module seems to…
RMK-Jacob
  • 209
  • 1
  • 4
  • 15
6
votes
2 answers

What is zalloc in embedded programming?

I am looking into programming the ESP8266 serial-wifi chip. In its SDK examples it makes extensive use of a function called os_zalloc where I would expect malloc. Occasionally though, os_malloc is used as well. So they do not appear to be identical…
ARF
  • 7,420
  • 8
  • 45
  • 72
5
votes
1 answer

how to clear oled display in micropython

I'm doing this on esp8266 with micro python and there is a way to clear OLED display in Arduino but I don't know how to clear display in micropython i used ssd1306 library to control my OLED and this is my error I've written a code that prints on…
5
votes
1 answer

HTTPS requests on A9G via AT commands fail after 7 requests; HTTP works fine

I'm using AT commands to communicate with an Ai-Thinker A9G chip from an ESP8266, as part of a GPS tracker unit. It works fine to start with, then HTTPS requests start failing after sending 7 or 8 successfully. However, it's still fine making HTTP…
Mark Ormesher
  • 2,289
  • 3
  • 27
  • 35