Arduino: ESP12e WiFi not working using Arduino IDE, but working well in lua

Created on 11 Jul 2016  Â·  27Comments  Â·  Source: esp8266/Arduino

----------------------------- Remove above -----------------------------

Basic Infos

Hardware

Hardware: ESP-12E
Core Version: 2.3.0

Description

ESP12e WiFi not working using Arduino IDE, but working well in lua.
If I use the Nodemcu Firmware Programmer to put nodemcu inside my esp12e, I am able to configure WiFi in STA or in SOFTAP mode. I am able to connect to an AP, and when SOFTAP mode is started, I can see the new AP name using my smartphone.
But if I do the same in cpp, using Arduino IDE, in STA mode, the RSSI is always -31.
And in SOFTAP mode, the new AP name is not visible on my smartphone.
Someone has posted a similar issue at esp8266.com forum: http://www.esp8266.com/viewtopic.php?f=28&t=5890
The conclusion was that the programmer had chosen the wrong esp board while programming.
I don't think that I choose the wrong board. Isn't it?

Settings in IDE

Module: Generic ESP8266 Module
Flash Size: 4MB (3M)
CPU Frequency: 80Mhz
Flash Mode: dio
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: ck

Sketch

Basic example from ArduinoIDE->ESP8266Wifi->NTPClient

waiting for feedback

All 27 comments

Hi,
I've got the same issue .(ESP01/ESP12/ESP12E)

Same issue on ESP03...

@entropia1ac,
@MPX4132,

As you are using core 2.3.0, maybe you face the issue https://github.com/esp8266/Arduino/issues/2186#issuecomment-228581052.

If you are new to esp8266/Arduino, then I would install core 2.2.0 instead of 2.3.0 and check if you are able to make ruining the following example sketches:

  1. https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide#blink-test
  2. https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide#connecting-via-wifi

Krzysztof

Yeah, I'm in fact using 2.3.0. I tried @SupotSaeEa's workaround and it seemed to fix the issue, was about to post the comment, @krzychb beat me to the punch.

Workaround using version 2.3.0 and ESP03:

WiFi.setOutputPower(0);
WiFi.begin(ssid, password);

The workaround doesn't work for me. I am using an ESP-201 and cannot connect to any AP using WPA2-Personal and a simple SSID and password. I chose Generic ESP8266 as the board type. NodeMCU works fine.

I'm guessing the workaround fixes the bug, or set of bugs, with the newer firmware on the older models. The ESP-201 seems to be fairly new. I'm guessing that's why it's not working out for you. If I were you, I'd try to find a workaround for the ESP-12, since the one you've got seems to be closer to that model.

I subsequently tried a WeMos D1 Mini (rev 1), and a Doit.am ESP12E DEVKIT V2 (NodeMCU clone). I don't know where to begin to "find a workaround", other than to report the issue here.

Yeah, same, I just got lucky finding a solution for mine. Just googled "site:github esp03 won't connect" or something like that, I forgot.

@croisez is this issue still valid with latest git? does it happen with #3215 ?

Select NodeMCU 1.0(ESP-12E Module) as Board with the default settings,works like a charm

Hello,

i have the same problem. On me the NodeMCU (ESP-12E) don´t work. I cant get any Wifi connection

Did you flash it first using node mcu flasher,
Order a custom build containing the wifi module and flash it on the esp 12e.
Try this and then start on lua

On 25-Nov-2017 2:47 PM, "arnold-b" notifications@github.com wrote:

Hello,

i have the same problem. On me the NodeMCU (ESP-12E) don´t work. I cant
get any Wifi connection

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/esp8266/Arduino/issues/2265#issuecomment-346928932,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AfIIR43u6sw_6DnbAlNqZxvj8OT2cezwks5s59sZgaJpZM4JJuxN
.

The default firmware doesn't have the wifi module

On 25-Nov-2017 3:19 PM, "arnold-b" notifications@github.com wrote:

Thanks, i will try.

Till now i just installed the current lua firmware not the customized one

Von: parth-garg [mailto:[email protected]]
Gesendet: Samstag, 25. November 2017 10:38
An: esp8266/Arduino
Cc: arnold-b; Comment
Betreff: Re: [esp8266/Arduino] ESP12e WiFi not working using Arduino IDE,
but working well in lua (#2265)

Did you flash it first using node mcu flasher,
Order a custom build containing the wifi module and flash it on the esp
12e.
Try this and then start on lua

On 25-Nov-2017 2:47 PM, "arnold-b" notifications@github.com wrote:

Hello,

i have the same problem. On me the NodeMCU (ESP-12E) don´t work. I cant
get any Wifi connection

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/esp8266/Arduino/issues/2265#issuecomment-346928932,
or mute the thread
6DnbAlNqZxvj8OT2cezwks5s59sZgaJpZM4JJuxN>
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <
https://github.com/esp8266/Arduino/issues/2265#issuecomment-346929862> ,
or mute the thread auth/AfTd2XIfRKHj1oepMe6R_f5-pjPPoPUsks5s5-ALgaJpZM4JJuxN> . <
https://github.com/notifications/beacon/AfTd2bQVA-n9kDYew-_
xtlUu7vxdIaFJks5s5-ALgaJpZM4JJuxN.gif>

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/esp8266/Arduino/issues/2265#issuecomment-346930345,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AfIIR1ef_tW8myO7jv3rpHS5efDdXpkGks5s5-KzgaJpZM4JJuxN
.

I am closing this due to lack of feedback from Op in over a month, and due to age.
@arnold-b if you need assistance getting started, please refer to a community forum. If you think there is a problem in the code or tools hosted in this repo, please open a new issue and fill in the details requested.
A tip off the top of my head: erase the entire flash using esptool, and only then flash a new sketch.

Hello, i just want to let you know.

Suddenly it works. That’s really strange.

I build a second Module. This one worked immediate. Then I tried the other module and suddenly this one also worked.

Von: Develo [mailto:[email protected]]
Gesendet: Sonntag, 26. November 2017 17:03
An: esp8266/Arduino
Cc: arnold-b; Mention
Betreff: Re: [esp8266/Arduino] ESP12e WiFi not working using Arduino IDE, but working well in lua (#2265)

Closed #2265 https://github.com/esp8266/Arduino/issues/2265 .

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/esp8266/Arduino/issues/2265#event-1358213631 , or mute the thread https://github.com/notifications/unsubscribe-auth/AfTd2VujhT37akoDoCYouj7fQPtfoDABks5s6YutgaJpZM4JJuxN . https://github.com/notifications/beacon/AfTd2QsyI6AmemPdNVciMSVN3ZMdLd0Kks5s6YutgaJpZM4JJuxN.gif

Sorry I didn't reply was a little busy,
Listen closely

  1. Order a custom node mcu build as per your requirements.
  2. When you get it, use the floating point version of that (we use the
    floating point for added precision, the integer should work fine as well).
  3. Use node mcu flasher to flash it to your esp
  4. Before flashing bring esp to flash mode(press reset button, while
    holding reset press flash button, leave flash button and then the reset
    button)
  5. Select your custom build and flash it on to the esp on the required
    comport

On 27-Nov-2017 1:48 AM, "arnold-b" notifications@github.com wrote:

Hello, i just want to let you know.

Suddenly it works. That’s really strange.

I build a second Module. This one worked immediate. Then I tried the other
module and suddenly this one also worked.

Von: Develo [mailto:[email protected]]
Gesendet: Sonntag, 26. November 2017 17:03
An: esp8266/Arduino
Cc: arnold-b; Mention
Betreff: Re: [esp8266/Arduino] ESP12e WiFi not working using Arduino IDE,
but working well in lua (#2265)

Closed #2265 https://github.com/esp8266/Arduino/issues/2265 .

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <
https://github.com/esp8266/Arduino/issues/2265#event-1358213631> , or
mute the thread AfTd2VujhT37akoDoCYouj7fQPtfoDABks5s6YutgaJpZM4JJuxN> . <
https://github.com/notifications/beacon/AfTd2QsyI6AmemPdNVciMSVN3ZMdLd
0Kks5s6YutgaJpZM4JJuxN.gif>

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/esp8266/Arduino/issues/2265#issuecomment-347035303,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AfIIR0Vuzzy4mQ6XkWDS1oUIH9VqqBhAks5s6ceogaJpZM4JJuxN
.

Also even if you're using arduino after having flashed the firmware, it
should work with arduino, though you might need to flash it again for kya
before working on that.

On 27-Nov-2017 1:48 AM, "arnold-b" notifications@github.com wrote:

Hello, i just want to let you know.

Suddenly it works. That’s really strange.

I build a second Module. This one worked immediate. Then I tried the other
module and suddenly this one also worked.

Von: Develo [mailto:[email protected]]
Gesendet: Sonntag, 26. November 2017 17:03
An: esp8266/Arduino
Cc: arnold-b; Mention
Betreff: Re: [esp8266/Arduino] ESP12e WiFi not working using Arduino IDE,
but working well in lua (#2265)

Closed #2265 https://github.com/esp8266/Arduino/issues/2265 .

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <
https://github.com/esp8266/Arduino/issues/2265#event-1358213631> , or
mute the thread AfTd2VujhT37akoDoCYouj7fQPtfoDABks5s6YutgaJpZM4JJuxN> . <
https://github.com/notifications/beacon/AfTd2QsyI6AmemPdNVciMSVN3ZMdLd
0Kks5s6YutgaJpZM4JJuxN.gif>

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/esp8266/Arduino/issues/2265#issuecomment-347035303,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AfIIR0Vuzzy4mQ6XkWDS1oUIH9VqqBhAks5s6ceogaJpZM4JJuxN
.

Hello,

thank you.

You are right after i got it working with lua, it worked also in arduino.

Von: parth-garg [mailto:[email protected]]
Gesendet: Dienstag, 28. November 2017 12:08
An: esp8266/Arduino
Cc: arnold-b; Mention
Betreff: Re: [esp8266/Arduino] ESP12e WiFi not working using Arduino IDE, but working well in lua (#2265)

Also even if you're using arduino after having flashed the firmware, it
should work with arduino, though you might need to flash it again for kya
before working on that.

On 27-Nov-2017 1:48 AM, "arnold-b" notifications@github.com wrote:

Hello, i just want to let you know.

Suddenly it works. That’s really strange.

I build a second Module. This one worked immediate. Then I tried the other
module and suddenly this one also worked.

Von: Develo [mailto:[email protected]]
Gesendet: Sonntag, 26. November 2017 17:03
An: esp8266/Arduino
Cc: arnold-b; Mention
Betreff: Re: [esp8266/Arduino] ESP12e WiFi not working using Arduino IDE,
but working well in lua (#2265)

Closed #2265 https://github.com/esp8266/Arduino/issues/2265 .

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <
https://github.com/esp8266/Arduino/issues/2265#event-1358213631> , or
mute the thread <https://github.com/notifications/unsubscribe-auth/ https://github.com/notifications/unsubscribe-auth/%0b
AfTd2VujhT37akoDoCYouj7fQPtfoDABks5s6YutgaJpZM4JJuxN> . <
https://github.com/notifications/beacon/AfTd2QsyI6AmemPdNVciMSVN3ZMdLd
0Kks5s6YutgaJpZM4JJuxN.gif>

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/esp8266/Arduino/issues/2265#issuecomment-347035303,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AfIIR0Vuzzy4mQ6XkWDS1oUIH9VqqBhAks5s6ceogaJpZM4JJuxN
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/esp8266/Arduino/issues/2265#issuecomment-347489932 , or mute the thread https://github.com/notifications/unsubscribe-auth/AfTd2UnYT1zKZQ2ZYKKkqcW0FCqgxBdbks5s6-l7gaJpZM4JJuxN . https://github.com/notifications/beacon/AfTd2dAo32Ze4dRmNCj1MKvrws1zjfKqks5s6-l7gaJpZM4JJuxN.gif

not sure if it is related - I had the problem that I did not see any networks on a WifiScan nor could I open up my own AP...

problem was, that this particular ESP8266-12 was using crystal frequency of 26Mhz...

Fix: Arduino IDE -> Tools -> (Selected Board: Generic ESP8266 Module) -> Crystal Frequency -> 26MHz

Maybe it can help somebody

Select NodeMCU 1.0(ESP-12E Module) as Board with the default settings,works like a charm

thank you "parth-garg" it works

not sure if it is related - I had the problem that I did not see any networks on a WifiScan nor could I open up my own AP...

problem was, that this particular ESP8266-12 was using crystal frequency of 26Mhz...

Fix: Arduino IDE -> Tools -> (Selected Board: Generic ESP8266 Module) -> Crystal Frequency -> 26MHz

Maybe it can help somebody

@zeitwesen I would like to thank your post..... I've been looking a solution days and days..... but ESP12F didn't connect with nothing.... I was desperate but with "ONLY" change crystal frequency to 26 Mhz everything works fine..... So THANKS a lot !!!!!!
This forum is very useful thanks to everybody.

Bro what is is problem . tell me details .

On Tue, May 19, 2020 at 8:32 PM maximo80 notifications@github.com wrote:

not sure if it is related - I had the problem that I did not see any
networks on a WifiScan nor could I open up my own AP...

problem was, that this particular ESP8266-12 was using crystal frequency
of 26Mhz...

Fix: Arduino IDE -> Tools -> (Selected Board: Generic ESP8266 Module) ->
Crystal Frequency -> 26MHz

Maybe it can help somebody

@zeitwesen https://github.com/zeitwesen I would like to thank your
post..... I've been looking a solution days and days..... but ESP12F didn't
connect with nothing.... I was desperate but with "ONLY" change crystal
frequency to 26 Mhz everything works fine..... So THANKS a lot !!!!!!
This forum is very useful thanks to everybody.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/esp8266/Arduino/issues/2265#issuecomment-630858894,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APQTCDWDE4K55VXUDSIXDQTRSKJ7JANCNFSM4CJG5RGQ
.

ESP12-E / ESP12-F select Board NodeMCU 1.0 . Do you want to connect ESP12E with arduino or USE ESP12E Standalone ? if you connect ESP12E with arduino , first you should flash ESP12E . if you need any help , contract me tokitahmid4 a t gma i l d otcom
Edit by @devyte

Bro How can i help you ?

Please don't include your email address in a post/comment.

OK

thanks @tokitahmid4 I built a pcb with ESP12F but with ESP8266 arduino ide parameters didn't work, but only changing crystal frequency to 26 mhz in arduino ide, everything was oK.
I didn't check if i put the board as nodemcu works as well. I'll do.
thanks to everybody for your help

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Khorne13 picture Khorne13  Â·  3Comments

dariopb picture dariopb  Â·  3Comments

hulkco picture hulkco  Â·  3Comments

tttapa picture tttapa  Â·  3Comments

rudydevolder picture rudydevolder  Â·  3Comments