Using Arduino IDE to Program NodeMCU

In this tutorial, we are going to learn how to program a NodeMCU using the Arduino IDE.

Feb 26, 2019

84775 views

9 respects

Components and supplies

1

ESP8266 NodeMCU

Apps and platforms

1

Arduino IDE

Project description

Comments

Only logged in users can leave comments

Image
Image

Anonymous user

2 years ago

i have new node mcu. but i dont run. i loaded blink esp program and i get this (below) error. what i do. Arduino:1.8.19 (Windows 7), Kart:"NodeMCU 0.9 (ESP-12 Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200" Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' Current thread 0x00002220 (most recent call first): exit status 3 C:\\Program Files (x86)\\Arduino\\arduino-builder, 3'i döndürdü NodeMCU 0.9 (ESP-12 Module) kartı için derleme hatası. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

Image
Image

Anonymous user

2 years ago

what i will do

Image
Image

Anonymous user

2 years ago

Well-written and explained, thank you. It would be nice if the Lua example script you showed above can be prettified (with line breaks and indents). I also just realized from the Arduino IDE preferences that a list of the board manager URLs can be found here https://github.com/arduino/Arduino/wiki/Unofficial-list-of-3rd-party-boards-support-urls

Image
Image

Anonymous user

2 years ago

Arduino:1.8.19 (Windows 7), Kart:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200" Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' Current thread 0x00001b68 (most recent call first): exit status 3 C:\\Program Files (x86)\\Arduino\\arduino-builder, 3'i döndürdü NodeMCU 1.0 (ESP-12E Module) kartı için derleme hatası. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

Image
Image

Anonymous user

2 years ago

still error

Image
Image

Anonymous user

2 years ago

Arduino:1.8.19 (Windows 7), Kart:"NodeMCU 0.9 (ESP-12 Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200" Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' Current thread 0x000011e0 (most recent call first): exit status 3 C:\\Program Files (x86)\\Arduino\\arduino-builder, 3'i döndürdü NodeMCU 0.9 (ESP-12 Module) kartı için derleme hatası. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

Image
Image

Anonymous user

2 years ago

I've been trying to get a hello world running (blink example) with my NodeMCU board. Library installed in the ide. I've selected "NodeMCU 1.0 (ESP-12E Module)" on com1. But when I hit 'verify' I just get "Error: Request compile failed with message: 2 UNKNOWN: no FQBN provided" I'm clearly doing something basic, wrong. But I can't for the life of me see what it is. Any troubleshooting tips? Most of what I've found just say to either "install the right library" or give source debugging tips.

Image
Image

Anonymous user

2 years ago

Do you have the board installed in the IDE and selected? https://support.arduino.cc/hc/en-us/articles/360020843439-Error-2-UNKNOWN-no-FQBN-provided

Image
Image

Anonymous user

2 years ago

Any success with your problem?

Image
Image

Anonymous user

3 years ago

i dont get a port number on my laptop

Image
Image

Anonymous user

3 years ago

Arduino:1.8.19 (Windows 7), Kart:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200" Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' Current thread 0x00001b68 (most recent call first): exit status 3 C:\\Program Files (x86)\\Arduino\\arduino-builder, 3'i döndürdü NodeMCU 1.0 (ESP-12E Module) kartı için derleme hatası. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

Image
Image

Anonymous user

2 years ago

still error

Image
Image

Anonymous user

2 years ago

Arduino:1.8.19 (Windows 7), Kart:"NodeMCU 0.9 (ESP-12 Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200" Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' Current thread 0x000011e0 (most recent call first): exit status 3 C:\\Program Files (x86)\\Arduino\\arduino-builder, 3'i döndürdü NodeMCU 0.9 (ESP-12 Module) kartı için derleme hatası. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

Image
Image

Anonymous user

3 years ago

i have new node mcu. but i dont run. i loaded blink esp program and i get this (below) error. what i do. Arduino:1.8.19 (Windows 7), Kart:"NodeMCU 0.9 (ESP-12 Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200" Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' Current thread 0x00002220 (most recent call first): exit status 3 C:\\Program Files (x86)\\Arduino\\arduino-builder, 3'i döndürdü NodeMCU 0.9 (ESP-12 Module) kartı için derleme hatası. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

Image
Image

Anonymous user

2 years ago

what i will do

Image
Image

Anonymous user

4 years ago

Well-written and explained, thank you. It would be nice if the Lua example script you showed above can be prettified (with line breaks and indents). I also just realized from the Arduino IDE preferences that a list of the board manager URLs can be found here https://github.com/arduino/Arduino/wiki/Unofficial-list-of-3rd-party-boards-support-urls

Image
Image

Anonymous user

4 years ago

I've been trying to get a hello world running (blink example) with my NodeMCU board. Library installed in the ide. I've selected "NodeMCU 1.0 (ESP-12E Module)" on com1. But when I hit 'verify' I just get "Error: Request compile failed with message: 2 UNKNOWN: no FQBN provided" I'm clearly doing something basic, wrong. But I can't for the life of me see what it is. Any troubleshooting tips? Most of what I've found just say to either "install the right library" or give source debugging tips.

Image
Image

Anonymous user

2 years ago

Any success with your problem?

Image
Image

Anonymous user

2 years ago

Do you have the board installed in the IDE and selected? https://support.arduino.cc/hc/en-us/articles/360020843439-Error-2-UNKNOWN-no-FQBN-provided