Questions tagged [esp8266]

An IC that offers Wi-Fi networking compatible with b/g/n standards. It also has integrated TCP/IP protocol stack. Extremely popular along IoT community as a low cost and powerful board.

Filter by
Sorted by
Tagged with
21 votes
4 answers
27k views

Can ESP8266 replace Arduino?

I’m a hobbyist and have used Arduino so far for simple projects. Now I want to build a project involving addressable LEDs, I want to write several programs on the Arduino for the LEDs and on my phone ...
user avatar
  • 509
20 votes
5 answers
97k views

How to read and write EEPROM in ESP8266

I need to know how I can write integer values in EEPROM and retain the value on power on. char *Red = strstr(myTestUrl, "/R"); if (Red) { int RedValue = atoi(Red + 2); analogWrite(12, RedValue); ...
user avatar
15 votes
4 answers
29k views

ESP8266, Arduino IDE vs Lua?

I'm planning to buy an ESP8266. Do I really need to learn Lua to play with it? I have seen some people using it with the standard Arduino IDE. Do you need a custom firmware to use the Arduino IDE ...
user avatar
  • 375
15 votes
2 answers
34k views

Difference between these two NodeMCU boards?

I recently received a NodeMCU (identical to the one shown in the first picture below) and originally, I was unable to connect it to my computer which eventually turned out to be driver issues; however,...
user avatar
  • 309
13 votes
5 answers
82k views

How to change baudrate of ESP8266 (12e) permanently?

IMPORTANT: DO NOT USE AT+IPR=9600! (see update) I have an ESP8266 12E module that communicates at 115,200 bauds. Since I use it with an Arduino Nano with SoftwareSerial things get messy. So I found ...
user avatar
  • 341
12 votes
5 answers
29k views

NodeMCU - use flash button as input in loop()

I couldn't find a proper answer on the net so I came here as a last resort. So I want to use the FLASH button as an input in the loop() method. Is there a way the check if it's pressed or not?
user avatar
  • 125
12 votes
6 answers
108k views

Send AT commands to ESP8266 from Arduino Uno via a SoftwareSerial port

GOAL From Arduino UNO, send AT commands to ESP8266 via a SoftwareSerial port and receive results. CURRENT STATUS I either send AT commands and get nothing back (wiring scheme 1) or I send AT ...
user avatar
  • 223
12 votes
1 answer
8k views

Does the ESP8266 somehow remember wifi access data?

Today I did some tinkering with an ESP8266, trying out OTA and writing a webserver. To find an error, I reduced the sketch to just the following lines: #include <ESP8266WebServer.h> ...
user avatar
  • 233
10 votes
5 answers
81k views

How to I make the Tx and Rx pins on an ESP-8266-01 into GPIO pins?

When programming an ESP-01 with Arduino IDE, how can I make the Tx and Rx into a generic I/O pins reliably? I think there's a command to swap the Tx and Tx with other pins. I tried serial.swap() but ...
user avatar
  • 101
10 votes
1 answer
17k views

Both red and blue led of ESP8266 stays on

I've connected ESP8266 to Arduino UNO. After a getting a huge trouble I successfully managed to run some AT commands. I have also tested AP mode. Then I got some trouble with software serial ...
user avatar
  • 137
9 votes
5 answers
1k views

Same structure taking different memory space on Uno and NodeMCU ESP8266, leading to data corruption when transferring via nRF24L01+

I'm trying to transfer data between a Arduino Uno board to a NodeMCU ESP8266 board, using nRF24L01+ transceivers module and RF24 library on both side. The data I'm transferring are stored in a struct ...
user avatar
  • 220
9 votes
2 answers
2k views

On an esp8266 what is faster, 64-bit math or float math?

I need to do some math with vars from an attitude sensor (acclerometers and gyroscopes) on an esp8266. int32_t math with those vars does not have enough range and the float math operations are ...
user avatar
  • 267
9 votes
1 answer
18k views

In ESP-12E NodeMCU, what's the pin number of A0?

In ESP-12E NodeMCU, all digital pins can be called with a number. Here is the list: static const uint8_t D0 = 16; static const uint8_t D1 = 5; static const uint8_t D2 = 4; static const uint8_t ...
user avatar
8 votes
3 answers
12k views

ESP8266 Analog read interferes with wifi?

Short version: I have a program that connects my ESP8266 to WIFI so I can control a relay connected to it over the internet or a button. I also have a sensor for my door. This software works ...
user avatar
  • 183
8 votes
2 answers
16k views

What is difference between NodeMCU and esp8266?

Since I have no previous experience in electronics I'm getting quite confused while coming across these two terms ..I'd like to know whether they're the same or different.
user avatar
8 votes
3 answers
10k views

Arduino ESP8266 direct/fast control of the digital pins

How does one control a digital pin directly avoiding the slow digitalWrite or digitalRead?
user avatar
  • 340
8 votes
1 answer
16k views

Resistor pull-ups for ESP8266

I'm using 4.7kOhm resistor as pullups for GPIOs 2,0,2,16, CH_PD and RESET, and also 4.7kOhm pulldown for GPIO 15. The ESP8266 boots and works fine. Would it be okay for a long shot? Should I use ...
user avatar
  • 145
8 votes
3 answers
15k views

Additional boards manager option is missing from Arduino IDE

I am new to Arduino. For the project I am trying to do, I want to install the ESP8266 extension. But the additional boards manager URL option is missing from the Arduino IDE. What should I do to add ...
user avatar
  • 83
8 votes
3 answers
6k views

Can I use arduino's 3.3 V output directly to esp8266?

I just bought esp8266 and ftdi usb driver, I want to power the esp8266 with Arduino's 3.3 V output, is that possible? I saw some tutorial on youtube in that they are suggesting us to use 3.3v ...
user avatar
8 votes
2 answers
20k views

How to turn off or stop Access Point network in ESP8266?

I've created a code for ESP8266 12E with Arduino IDE, in which it'll operate as "Station Mode" or "Access Point Mode" on Wifi, depending on the situation. Everything works fine except when device was ...
user avatar
  • 273
8 votes
1 answer
985 views

Arduino and ESP8266 Web server

First things first, if there was an ESP8266 StackExchange, I would post this there. I am setting up a web server that will programmaticly be controlled from an external Python script, and I am ...
user avatar
  • 393
8 votes
3 answers
14k views

softwareserial between arduino uno and esp8266

I have an Arduino UNO and HUZZAH ESP8266 module. I need to send data between Arduino UNO and ESP module via Software Serial. Right now I have the ESP module write data and Arduino UNO display data, ...
user avatar
  • 183
7 votes
4 answers
40k views

Arduino outputs garbage values on serial monitor with ESP8266

I have connected my Arduino with an ESP8266. When I check the ESP8266, by manually entering commands at serial monitor, I get correct results. However, when I run this program #include<...
user avatar
7 votes
2 answers
934 views

How to read high voltage (40-65v) from a Solar Battery bank

I would like to monitor the battery voltage of a 48v solar battery system. The expected voltage range is 40-65v. I have tried creating a voltage divider with 2 resistors but with all values I have ...
user avatar
  • 73
7 votes
1 answer
4k views

Serving binary file with ESP8266WebServer

I am currently using a Nodemcu ESP8266-12E with the Arduino IDE in order to control my boiler. Everything is working fine, however I haven't figured out yet how to serve binary files, eg. images. (I ...
user avatar
  • 173
7 votes
2 answers
11k views

ESP8266 Programming using ESP-01 to USB converter

I am new to ESP8266. To ease out the task of programming esp8266, I bought this: ESP-01 ESP8266 Programmer CH340G Chip USB WiFi Wireless UART GPIO0 Adapter. Configured Arduino Interface to run AT ...
user avatar
7 votes
1 answer
15k views

ESP8266 & websockets

At the moment, I'm using various operating systems and devices like the Raspberry pi to control lights and other stuff over websockets. I use websockets since they added the support on Chrome. I write ...
user avatar
  • 401
6 votes
3 answers
8k views

How to allow cross-domain requests on ESP8266WebServer

I am using a Raspberry Pi running Chrome (handling the user interface) and connecting via ajax to an Arduino D1 compatible using the IP address as follows: $.ajax({ type: "GET", ...
user avatar
  • 222
6 votes
1 answer
1k views

Is it possible to print a custom object by passing it to Serial.print()?

I googled about it, but can't find the answer. As I would guess I would have to inherit from the Print class and somehow pass to its print methods the part of my object I would like to be printed. But ...
user avatar
  • 165
6 votes
5 answers
74k views

How to make a 5-volt relay work with NodeMCU?

I have hooked up 2 channel 5-volt relays with NodeMCU v1.0 as shown in the fritzing below. Relay are powered with a different power source than NodeMCU. As of now, I am powering the NodeMCU from my ...
user avatar
6 votes
1 answer
19k views

ESP8266 - does it really have terrible wifi range by default?

ESP8266 - does it really have terrible WiFi range by default?? First time to try this module out and we're disappointed with the range.. as per our testing we can only get max 5m WiFi range line of ...
user avatar
6 votes
1 answer
2k views

EPS8266 ESP-01: LED manipulation seems to interfere with serial communication

I'm playing around with this udp-example. Both this and the blink-example work perfectly. Now I would like to use the LED to indicate what the ESP is currently doing, as well as reading some data over ...
user avatar
6 votes
2 answers
12k views

Can I power an NodeMCU trough VIN providing 5v

I have a spb 8266 board, an ESP-12E NodeMCU. I broke my micro USB. There's this piece of information but my case is unclear: Can I use the micro usb's 5v to power the board through the VIN or do any ...
user avatar
6 votes
6 answers
32k views

How to connect Wi-Fi shield ESP-12E-ESP8266-UART-WIFI-Wireless-Shield with Arduino

I have bought this shield from ebay and now I don't know how to use it, ESP 12E ESP8266 UART WIFI Wireless Shield for Arduino UNO R3 Bouclier Sans filfr: There are no instructions in the box or ...
user avatar
6 votes
2 answers
11k views

How to connect an Arduino to WIFI using an ESP8266

Hi I am trying to make Arduino Uno on local network with the help of ESP8266 wifi module. I tried to search on internet, found mostly they are making ESP8266 as web server.http://circuits4you.com/...
user avatar
  • 354
6 votes
1 answer
14k views

Streaming audio from PC to Arduino over WiFi

Say I wanted to, purely hypothetically, set up a pirate radio station by connecting an Arduino to a WiFi network away from home, streaming music to the Arduino, decoding it, and broadcasting it with ...
user avatar
  • 63
6 votes
1 answer
10k views

How to optimise TX power for ESP8266?

I have multiple ESP8266 units programmed using Arduino SDK and I would like each one of them to adjust the transmission power to lower the power requirements. Arduino allows setting the TX power of ...
user avatar
  • 339
6 votes
1 answer
29k views

Get data from website with ESP8266 using AT commands

I'm trying to get data from a website by sending a HTTP GET request via AT commands for the ESP8266. Here is my current code: #include <SoftwareSerial.h> const byte rxPin = 2; const byte txPin ...
user avatar
  • 81
6 votes
2 answers
1k views

Is it possible to program an ESP8266 12F using an Arduino Nano?

I just got my ESP8266, but I am unable to program it. Since it can't be connected to via USB, I was wondering if I can program it using an Arduino or perhaps use it as a shield for an Arduino Nano. I ...
user avatar
5 votes
2 answers
35k views

How to determine Flash size?

I need to determine the flash size of my ESP8266 on my NodeMCU module in order to flash the AT firmware onto the board. Apparently different boards come with differently-sized flash memories. Can ...
user avatar
  • 177
5 votes
2 answers
3k views

Arduino DC motor causes disturbance. What can cause it?

I tried to fix this problem the whole weekend but, after no success I decided to post it here. I would really appreciate any help. The problem The Wi-Fi module activates the DC motor and lets it run ...
user avatar
5 votes
1 answer
706 views

What does []() argument in function mean?

I am working in ESP8266 AsyncWebserver library and have been using this [](parameter) as an argument to some functions as shown below but does not really know what it means. Being a neophyte I am ...
user avatar
  • 77
5 votes
2 answers
25k views

Multiple client server over wifi

Trying to setup a server on Arduino to support multiple clients, I am able to support one but I don't want to flush that client to make another connection. #include <ESP8266WiFi.h> const char* ...
user avatar
5 votes
3 answers
1k views

ESP8266 WiFi Not Connecting to Internet Without Static IP

I am seeing some very strange behavior with my ESP8266. When I connect it to the WiFi for the first couple of times I am not seeing any issues and the ESP8266 connects just fine. But after an ...
user avatar
5 votes
2 answers
23k views

Simple GET request with ESP8266HTTPClient

I am trying to do a simple GET request. But I always get status code -1. Here is my complete code. #include <Arduino.h> #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> ...
user avatar
  • 279
5 votes
5 answers
41k views

AT command is not responding on serial monitor

I am trying to send AT commands to ESP8266. I re-flashed ESP8266 http://imgur.com/a/J8Ueh I followed this tutorial http://remotexy.com/en/help/esp8266-firmware-update/ and I hope it re-flashed ...
user avatar
  • 354
5 votes
2 answers
3k views

Protocol options for data exchange between Arduino and ESP8266

I have a device built with an Arduino uno: Arduino software installed on an Arduino uno can be controlled via serial commands can be controlled via physical buttons and sensors on any button/sensor ...
user avatar
  • 699
5 votes
2 answers
8k views

Do I need 3 voltage dividers to control ESP8266

I am buying an ESP8266 and the plan is to control it serially from an Arduino. I am going to use a voltage divider(Using a voltage divider is temporary and I know the cons of using voltage dividers). ...
user avatar
  • 83
5 votes
1 answer
2k views

Non-blocking MQTT library

Are there any MQTT libraries that do not block while connecting? I'm currently using PubSubClient, and the connection part contains this code: https://github.com/knolleary/pubsubclient/blob/master/...
user avatar
5 votes
1 answer
20k views

ESP 8266 does not respond at all

I have a ESP8266_01, and I wired up. It does not work for me. I have connected the ESP to an Arduino Uno. I am using a 5V pin from uP with a 3.3V regulator, and I have a voltage divider between RX(...
user avatar
  • 53

1
2 3 4 5
39