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
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
2 votes
1 answer
3k views

What are the best GPIO pins to use for my project?

I'm working on a home automation project to control my Sommer Base+ garage door opener through Home Assistant. The project consists of a WeMos D1 Mini with two reed switches (to detect door open/...
user avatar
  • 141
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
1 vote
7 answers
4k views

How to parse 20180810T143000Z to time_t

What is the shortest/most elegant way (i.e. use existing lib functions) to parse a string in the form of 20180810T143000Z to a time_t? Note that the literal always represents a UTC timestamp. I ...
user avatar
1 vote
1 answer
3k views

Arduino Uno and ESP8266 serial monitor issue

I plugged in the Arduino Uno and the ESP8266 following this schema: When I enter "AT" in the serial monitor, I get an "OK". I can also connect to my wifi using typical ESP8266 commands. What doesn't ...
user avatar
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
0 votes
1 answer
452 views

Arduino Uno with ESP8266-01 with AT [closed]

Here is the schematic I followed: Here also the link: https://www.circuito.io/app?components=10167,11021,12083,13678,13959 #include "DHT.h" #include "NewPing.h" #include <SoftwareSerial.h> #...
user avatar
  • 5
2 votes
1 answer
6k views

How to pass non-static class member to callback?

I am using the arduinoWebSockets library in my own Arduino library. I'm having trouble with trying to assign a class member as the websocket library onEvent callback function. MyClass.cpp: #include &...
user avatar
  • 123
0 votes
1 answer
650 views

SoftwareSerial data being corrupted - looking for suggestions

I'm having problems running a serial communication between a NodeMCU ESP8266 and an Arduino Uno. I'm using the "standard" SUART setup, i.e. pins D1&D2 on the ESP are hooked up with GPIOs 2&3 ...
user avatar
  • 3
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
4 votes
3 answers
60k views

Arduino Nano v3.0 with ESP8266

I am attempting to connect and use an ESP8266 board with my Arduino nano v3.0 and I am not have much luck. I have read a bunch of tutorials and articles, the most recent is http://elektro-blogger....
user avatar
  • 141
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
0 votes
4 answers
18k views

Linking Arduino Nano with ESP8266 Wifi module

I recently started playing around with Arduinos to connect a few sensors up. I used an Arduino Nano to measure temperature, humidity, air pressure and light level. To store the data in a database, I ...
user avatar
  • 109
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
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
3 votes
1 answer
7k views

WiFiEsp not working on Software Serial, working fine on Hardware Serial

What I want to achieve I want to connect to my wifi network using Arduino UNO and ESP8266 using WiFiEsp.h library over `SofwareSerial, since UNO doesn't have additional H/W serial. What I am able to ...
user avatar
2 votes
2 answers
7k views

Problem with sending a POST request using the WiFiEsp library [closed]

I'm using an ESP8266 version 1 with the WiFiEsp library to connect to WiFi, and that works just fine. I'm setting up the device using the same code as in the example WebClientRepeating. I need to ...
user avatar
2 votes
0 answers
2k views

Programming an Arduino over the air using an ESP8266

This question stems from this article (Originally in Spanish/English) which Hack a Day summarizes (Includes link to partial English translation). These articles show that it is possible to update an ...
user avatar
  • 121
1 vote
4 answers
27k views

ESP8266 + Arduino Uno: Can't send AT Commands

I'm trying to get the ESP8266 up and running without a FTDI chip, just my Arduino Uno. But it seems really difficult. What I did: attach the ESPs VCC directly to Arduino Uno 3.3V; RX->TX; TX->RX ...
user avatar
  • 111
1 vote
1 answer
9k views

ESP8266 as ISP program for ATMega16

I have used below program for ESP8266 as ISP to upload a program to an ATmega16. ISP program uploaded in ESP8266 #include <SPI.h> #include <ESP8266WiFi.h> #include <ESP8266mDNS.h> #...
user avatar
  • 131
0 votes
1 answer
9k views

ESP8266 TCP/IP communication

So I'm looking into having a TCP communication between 1 ESP8266 Chip (Station) and 2 ESP8266 (Clients) connected to that station. Every time I find a code including the TCP, they only include things ...
user avatar
1 vote
1 answer
221 views

NodeMCU not responding AT after blink app

I've just bought NodeMCU LoLin ESP8266, I tried to send AT commands (after spending days on ESP8266-01) and everything was okay. Than I've uploaded the Blink example to the board, after that moment it'...
user avatar
  • 13
1 vote
1 answer
194 views

How to publish on Pubnub with node mcu?

I have node mcu and i am trying to use the example code on github and pubnub blog to send a msg as an experiment but can't figure how to do it. I used 2 example as the reference - https://github.com/...
user avatar
1 vote
2 answers
1k views

Upgrade ESP-01 firmware on MacOS

I recently bought an ESP-01 as well as an FTDI programmer (3.3v-5v) and after typing AT+GMR I noticed it said: AT version:0.40.0.0(Aug 8 2015 14:45:58) SDK version:1.3.0 Ai-Thinker Technology Co.,...
user avatar
  • 111
1 vote
1 answer
224 views

SyslogAppender for log4esp

I'd like to "merge" two Arduino libraires, namely log4Esp on one side and Syslog on the other, hence creating a syslog appender for log4esp. My problem is that log4esp's Appender prototype expects a ...
user avatar
  • 128
1 vote
0 answers
367 views

error for uploading code to esp8266 module

I am getting error for uploading code to esp8266 module. I have installed cp2109 drivers also but at the time of uploading getting follwing error message: Sketch uses 344,292 bytes (32%) of program ...
user avatar
0 votes
1 answer
5k views

Only getting error from ESP8266 AT commands

I am trying to get the ESP8266 work with Arduino AT commands. I am using the due. How do I get the ESP8266 to respond with anything other than ERROR? Here is the current serial output: AT ERROR ...
user avatar
0 votes
2 answers
316 views

How to interface ESP8266-01 Wifi Module with Arduino Uno

I have an Arduino Uno and ESP8266-01 Wifi module with me currently. So I'm going to use ESP8266 to connect to the MQTT broker to allow me publish data to other devices. However, I have a problem with ...
user avatar
  • 7
-1 votes
1 answer
732 views

NodeMCU and expected ';' before wrong ' " '

I am creating a home weather station but the Arduino IDE shows "expected ';' before 'viewport'". It detects wrong quotation marks. My code: String message2 = "<!DOCTYPE html>"; ...
user avatar
  • 35
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
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
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
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
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
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
3 votes
3 answers
2k views

WiFi module ESP8266 + Arduino Uno

I'm trying to connect a WiFi module, ESP8266-01 to an Arduino Uno. But, as I've understood, this module will only work with 3.3 V. Since all of the data pins use 5 V, one of the solutions is to use a ...
user avatar
  • 131
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
4 votes
1 answer
16k views

Upload with esptool fails with "espcomm_send_command: can't receive slip payload data"

Uploading a sketch to an ESP8266 board fails with: error: failed reading byte warning: espcomm_send_command: can't receive slip payload data warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed ...
user avatar
  • 491
3 votes
1 answer
2k views

Arduino with ESP8266

I have completed the circuit and code to interface ESP8266 module with Arduino UNO. When i send AT,AT+RST from serial monitor the reply is correct . But when i send AT commands to search WIFI ...
user avatar
3 votes
1 answer
4k views

ESP8266 UDP multicast doesn't receive packets

I am currently working on an ESP8266 with the Arduino IDE. I try to implement an ESP8266 in STA mode as multicast receiver. I was writing my code with the help of this documentation. Especially the ...
user avatar
  • 85
3 votes
1 answer
6k views

ESP8266: system_adc_read_fast() always give 1024 as output

I need to use system_adc_read_fast (uint16 *adc_addr, uint16 adc_num, uint8 adc_clk_div) to get a sampling rate close to 100ksps. And I am able to achieve that using adc_clk_div = 32. However, when I ...
user avatar
2 votes
1 answer
14k views

Simple Multiple RX/TX SoftwareSerial?

In this project I will be using multiple ESP8266 WiFi modules (4) connected by software serial to an Arduino Leonardo Micro (1 UART). I plan to rotate between all 4 (starting with 2): Open port, write,...
user avatar
2 votes
2 answers
8k views

Peer to peer communication

Hello guys , I want to perform a mesh network between 3-4 modules using ESP8266 . Any one have idea how to do it?
user avatar
1 vote
1 answer
10k views

DHT11 data in Arduino UNO to Firebase through ESP8266

Hello Good Day to Everyone. I have a project where I need to send DHT11 sensor data to a Firebase database using both Arduino UNO and Esp8266 esp-01 wifi module. Both of them must work together to ...
user avatar
  • 139
0 votes
3 answers
25k views

How to connect ESP8266 12e directly to Arduino Uno (without shields)

I have an ESP8266 12E module and I'm trying to connect it to arduino, without any shields or whatsoever. I've looked everywhere but all I can find is about ESP-01 or with a NodeMCU. I'd like to do the ...
user avatar
  • 135
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
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
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
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
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