-1

This question already has an answer here:

I was using Arduino Uno with ESP8266-12E. Today I was reading an article to blink LED using Webpage. The code wasn't uploading so I connected all the pins connected to 3.3V to 5V. Then the code was uploaded successfully. After that I switched off my laptop and Arduino. After 2-3 hours when I got back to work, the module wasn't responding to AT commands even after reconnecting it to 3.3V. The wifi is working fine since it automatically connects to the WiFi I have configured earlier. I used same settings and connections prior to that messing up. Also on every code upload it shows mem_failed. So, how can I get my WiFi to work?

marked as duplicate by Juraj, VE7JRO, Greenonline, sempaiscuba, MatsK Nov 6 '18 at 20:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • The code wasn't uploading so I connected all the pins connected to 3.3V to 5V. What on earth made you do that? – Majenko Nov 5 '18 at 21:25
  • I don't know. I thought I should give it a try. And I don't know why it was uploaded then. – user50955 Nov 5 '18 at 21:26
  • @jsotola The pins were Vcc, RST, CH_PD. – user50955 Nov 5 '18 at 21:29
  • 1
    I'd suggest you go and buy a new ESP8266 - and this time keep it away from 5V. – Majenko Nov 5 '18 at 21:31
0

Buy a little development board and learn how to use the ESP8266. Either a NodeMCU or a WEMOS board. They have a USB to serial adapter on the board and a proper regulator.

The initial problem you encountered was most likely caused by insufficient power for the ESP8266. The power supply must be capable of supplying a minimum of 400mA. It needs to have close short wires to the Vcc and ground on the ESP module. It helps to also have a capacitor across Vcc and ground of the ESP module with short leads.

There are some horrible examples on the internet that show the ESP being powered from and Uno's 3.3v power connection. This will never be reliable if it does even work. There is not enough power.

The ESP8266 typically uses about 80mA. This is an average value. When transmitting the peak current is a lot hight. The worst case happens to be when the ESP starts after a reset. I then does an analog power calibration. (for the RF section) Expressif states this, plus the digital power requirements, will equal above 500mA.

The GPIO pins are not 5 volt compatible. A lot of internet examples show the ESP rx and tx lines connected to the rx and tx of a 5 volt Arduino board, without level converters. This is not acceptable. The RX line of the ESP8266 can be damaged.

Powering the ESP module with 5 volts can damage all or parts of the two chips on the module. (the CPU and the external Flash memory chip) Other sections may still work. That is likely what you are seeing.