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
15
votes
4answers
20k 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 ...
13
votes
4answers
22k 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 ...
10
votes
1answer
13k 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 ...
9
votes
5answers
57k 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 ...
9
votes
1answer
3k 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> ...
8
votes
6answers
94k 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 ...
7
votes
5answers
45k 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); ...
7
votes
2answers
102 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 ...
7
votes
3answers
5k 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 ...
7
votes
3answers
6k 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, ...
7
votes
1answer
938 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 ...
7
votes
1answer
8k 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 ...
6
votes
3answers
29k 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<...
6
votes
1answer
577 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 ...
6
votes
4answers
9k 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?
6
votes
4answers
42k 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 ...
6
votes
3answers
8k 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 ...
6
votes
2answers
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/...
6
votes
2answers
9k 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 ...
6
votes
2answers
943 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 ...
5
votes
1answer
9k 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,...
5
votes
2answers
2k 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 ...
5
votes
1answer
4k 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 ...
5
votes
1answer
1k 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 ...
5
votes
2answers
7k 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). ...
5
votes
1answer
17k 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(...
5
votes
1answer
13k 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 ...
5
votes
2answers
26k views

Capturing images from OV7670 (w/o FIFO) using Arduino Uno?

I want to capture images from my OV7670 (w/o FIFO) and send it to my PC via Wi-Fi (ESP8266) (which I know how to use) using an Arduino Uno. I have read so many blogs and threads on the internet but ...
5
votes
5answers
27k 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 ...
5
votes
3answers
4k views

esp8266 garbage out only when using SoftwareSerial

I'm trying to operate the esp8266. When I connect RX+TX pins to pins 1+2 on the Arduino, everything works fine. but when I'm trying to use software serial all hell breaks loose and the recieved data ...
5
votes
1answer
5k 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 ...
5
votes
1answer
21k 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 ...
5
votes
1answer
14k 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 ...
4
votes
3answers
9k 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 ...
4
votes
2answers
13k 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> ...
4
votes
6answers
26k 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 ...
4
votes
1answer
14k 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 ...
4
votes
2answers
1k views

ESP01 connected to Arduino can't read from UART while connected from external power source

I have an Arduino Uno connected to a NodeMCU ESP01 module, communicating via serial pins. The NodeMCU is powered from the Arduino's 3.3V pin. My idea is that the ESP01 receives MQTT messages, sends ...
4
votes
2answers
6k views

ESP8266 12e Arduino IDE outputs garbage values on serial monitor

I recently started using the ESP8266 12E (Amazon link) and hooked the board up to the Arduino IDE. When trying to run any of the example sketches, all sketches compile and upload correctly. The blink ...
4
votes
2answers
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 ...
4
votes
1answer
11k views

Wi-Fi module 5 GHz [closed]

What is a Wi-Fi module for an Arduino that works on 5 GHz? The ESP8266 - doesn't support 5 GHz according to: Re: 802.11AC 5GHz Why can't ESP8266 operate in 5 GHz since 802.11N is supported my own ...
4
votes
2answers
1k views

ESP8266 not working properly

It's the first time I use an ESP8266 and I didn't manage to get a proper response in the Arduino serial monitor. I only see weird characters, when I move the 3.3V wire. You can see the connections in ...
4
votes
1answer
1k views

Flash String Helper object as variable

So I have a Bunch of commonly used char arrays to build commands in my library. So to preserve memory, I have them put into flash, via PROGMEM ext, typedef const char PROGMEM ProgChar; ProgChar AT[] =...
3
votes
2answers
6k views

Use ESP-01 with Arduino Uno/Nano, with the ESP8266WiFi library

There is this library - https://github.com/esp8266/Arduino That provides a more user-friendly API for WiFi capabilities with the ESP8266. However, all tutorials that I found so far for this library ...
3
votes
1answer
5k views

ESP8266 PHP Web Server

I need my ESP8266 web server to load my website files with .php extensions. So far I managed to load .htm .css and .js files from my SD card, but when I upload PHP files on my SD card, they won't run. ...
3
votes
2answers
3k views

What is the best way to get more RAM for a sound buffer?

The problem: How to extend the memory for a sound buffer (intensively used) if: SD card library supports only one file open at a time (and I have one open already) EEPROM chips are able to stand ...
3
votes
1answer
931 views

How can I create a battery level circuit

Im trying to create a circuit so that I can monitor the voltage drop on my battery and send an message when the voltage drop reaches the drop out. But I'm having some problems with my voltage ...
3
votes
3answers
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 ...
3
votes
2answers
6k views

Is there alternative to arduino IDE program ESP8266 and ESP32 with arduino toolchain? [closed]

I use ESP8266 and ESP32 with arduino toolchain rather than pure arduino hardware. Arduino IDE is standard and proven but what are the other IDE and advantage/disadvantage ?
3
votes
2answers
20k views

How to fix: Invalid conversion from 'const char*' to 'char*' [-fpermissive]

I'm trying to upload the code from here to work with an ESP8266. So I copy/pasted the code to the Arduino IDE and I get this error: C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:79:9: ...