-->
Page 1 of 1

ESP8266 with Neopixel crashes

PostPosted: Sun Mar 08, 2020 8:18 am
by beejayf
Hello all,

tried my very first steps on the ESP8266 with the following configuration:
- NodeMCU Lua Lolin WiFi V3 Modul ESP8266 ESP-12E
- one WS2812 LED
- IDE: Arduino IDE

First I tried some generic WiFi demo code to sort out connection issues - it worked well - the ESP8266 connected to my wifi - so I moved to the Neopixel control - and that's when things went wrong.

Even this very simple demo code will make the ESP8266 crash:

Code: Select all#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
  #include <avr/power.h>
#endif

#define PIN 6

Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  strip.begin();
  strip.setPixelColor(1, strip.Color(255, 255, 255));
  strip.show();
}

void loop() {
  delay(1000);
}


It compiled and uploaded well - but the LED did not turn on (tested the code on an Arduino Nano - works!)), so I checked the IDE's serial monitor and it shows the following repeating error message:

Code: Select all ets Jan  8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
vbc204a9b
~ld


I checked for the latest firmware and flashed it - no difference. Checked the library, too - latest version is installed.

Any hints what could cause this and how I can eliminate the problem?

Thanks!

Re: ESP8266 with Neopixel crashes

PostPosted: Sun Mar 08, 2020 11:38 am
by Pablo2048
Problem is your `#define PIN 6` - do yourself a favor and carefully read (for example) this https://tttapa.github.io/ESP8266/Chap04 ... oller.html - GPIO6 is used for SPI-Flash connection, and cannot be used in your sketch.

Re: ESP8266 with Neopixel crashes

PostPosted: Sun Mar 08, 2020 1:40 pm
by beejayf
Wow! Thank you so much! I was only checking the general pinout but not abbreviations that did not ring a bell!