-->
Page 1 of 1

Having Problems using NODEMCU V2 - ESP8266 DEVELOPMENT KIT

PostPosted: Wed Jul 05, 2017 2:59 am
by pramodisha
Dear Friends,

I am a hobbyst from India and am trying to do home automation project using ESP8266. I am well versed with arduino and I am successful with arduino based bluetooth automation but the problem is it's very limited range. So I have decided to do this with WiFi and may be also internet based home automation for my home.

1st of all I purchased a sparksfun WiFi shield but could never make it work then I purchase ESP-01 and NODEMCU V2 - ESP8266 DEVELOPMENT KIT. I am having troubles with both, so I guess I am missing something very basic.

Now I will tell you my experience with NODEMCU V2 - ESP8266 DEVELOPMENT KIT. I have exactly followed the instructions given on this webpage: http://www.instructables.com/id/The-Fir ... DEVKIT-V2/

I complete upto Step 3 successfully but when I try to upload the sketch blynk, the arduino IDE shows the following error message:-
Arduino: 1.8.2 (Windows XP), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)"

In file included from C:\Documents and Settings\user\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266\abi.cpp:23:0:

c:\documents and settings\user\local settings\application data\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\cxxabi.h:50:32: fatal error: bits/cxxabi_tweaks.h: No such file or directory

#include <bits/cxxabi_tweaks.h>

^

compilation terminated.

exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Now I am clueless on how to proceed.


When I tried to use ESP-01, I could not even connect!!!! :-(((

I would really like to make this work. Please help me friends.

Thank you very much for reading my post and I thank you in advance for helping me.

Pramod Agrawal.

Re: Having Problems using NODEMCU V2 - ESP8266 DEVELOPMENT K

PostPosted: Thu Jul 06, 2017 12:54 pm
by QuickFix
Basic steps to start using any ESP8266 module inside the Arduino IDE:
  1. Install the core-libraries correctly by following the manual (important): https://github.com/esp8266/Arduino
  2. Preferably: get a developent board like a NodeMCU, a WeMos, a Witty board, etc.
    Not ideal, but also possible as alternative:
    • Any usable ESP-module, like the ESP-01
    • A USB - COM-port adapter (with 3.3V TTL levels)
    • Some switches for RESET and FLASH and associating pull-up resistors
    • Some pieces of dupont wires
    • A bread board to put all the components on
  3. Connect ESP board to USB port and make sure your OS successfully installs its driver; also make note of the assigned COM-port
  4. Start Arduino IDE
  5. Verify that the ESP8266 board libraries are installed correctly by checking the boards manager under: "Tools" -> "Boards:" and select the board you have ("NodeMCU")
  6. Copy and paste this code into the editor:
    Code: Select all#define led_pin 2
    #define led_interval 500

    void setup() {
      pinMode(led_pin, OUTPUT);
    }

    void loop() {
      digitalWrite(led_pin, HIGH);
      delay(led_interval);
      digitalWrite(led_pin, LOW);
      delay(led_interval);
    }
  7. Select "Sketch" -> "Verify/Compile", the log at the bottom *should* look similar to this:
    Code: Select allArchiving built core (caching) in: C:\Users\QUICKF~1\AppData\Local\Temp\arduino_cache_15909\core\core_esp8266com_Arduino_nodemcuv2_CpuFrequency_80,UploadSpeed_115200,FlashSize_4M3M_21655eb80f1d4fdd8e4dada24d8451b9.a
    Sketch uses 238905 bytes (22%) of program storage space. Maximum is 1044464 bytes.
    Global variables use 33028 bytes (40%) of dynamic memory, leaving 48892 bytes for local variables. Maximum is 81920 bytes.
  8. If you get above result, compiling works (meaning the ESP8266 library is installed correctly)
  9. Now you can upload your code to the board
    First select the COM-port of your board (as assigned in step 3 above): "Tools" -> "Port:"
    After that select "Sketch" -> "Upload", the log will show (this can take upto 30 seconds or so):
    Code: Select allArchiving built core (caching) in: C:\Users\QUICKF~1\AppData\Local\Temp\arduino_cache_15909\core\core_esp8266com_Arduino_nodemcuv2_CpuFrequency_80,UploadSpeed_115200,FlashSize_4M3M_21655eb80f1d4fdd8e4dada24d8451b9.a
    Sketch uses 238905 bytes (22%) of program storage space. Maximum is 1044464 bytes.
    Global variables use 33028 bytes (40%) of dynamic memory, leaving 48892 bytes for local variables. Maximum is 81920 bytes.
    Uploading 243056 bytes from C:\Users\QUICKF~1\AppData\Local\Temp\arduino_build_333531/LEDBlinker.ino.bin to flash at 0x00000000
    ................................................................................ [ 33% ]
    ................................................................................ [ 67% ]
    ..............................................................................   [ 100% ]
  10. Right after the upload finishes, the blue LED on the ESP module will blink