-->
Page 1 of 1

Blink works, Serial and Neopixel goes splat?

PostPosted: Mon May 29, 2017 4:13 pm
by georgestephanis
Howdy!

So I'm trying to sort out what I'm doing wrong -- still an ESP beginner, but trying to sort stuff out. I'm running roughly the following circuit on an ESP-12S (it's what I had closes to hand when I soldered it up, I can just as easily do an E or an F)

Image

It works 100% fine if I upload a simple blink to it:

Code: Select allvoid setup() {
  pinMode(2, OUTPUT);
}

void loop() {
  digitalWrite(2, HIGH);
  delay(1000);
  digitalWrite(2, LOW);
  delay(1000);
}


Blink works. No problems.

When I upload something trying to use the one neopixel that I've got soldered on at the first position, as follows, it reboots approximately every fifteen seconds (going by the boot data I'm getting off the tx pin)

Code: Select all#include <Adafruit_NeoPixel.h>

Adafruit_NeoPixel w = Adafruit_NeoPixel( 1, 5 );

void setup() {
  w.begin();
  w.setPixelColor( 0, w.Color( 255, 165, 0 ) ); // Orange
  w.show();

  pinMode(2, OUTPUT);
}

void loop() {
  digitalWrite(2, HIGH);
  w.setPixelColor( 0, w.Color( 0, 255, 0 ) ); // Green
  w.show();
  delay(1000);

  digitalWrite(2, LOW);
  w.setPixelColor( 0, w.Color( 0, 0, 0 ) ); // Black
  w.show();
  delay(1000);
}


and the reboot that comes in every fifteen seconds:

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
v09f0c112
~ld


The really odd bit is that ordinarily I'll get the boot data at 74880 baud (and if I manually hit the button that shorts RESET to GND I still do), but with this fifteen second reboot cycle, it's coming in at 115200 baud -- I don't know if there's any significance to that, but it seemed interesting.

Anyway, here's the boards I'm working off of -- it's my first real Badge project and I'm super excited for what I can do by using an ESP for it! I'd considered working off of a D1 Mini or the like, but figured for a badge it would be nice to go more basic.

Image

Left is v0.1, Middle is v0.2, right is v0.2 mostly soldered (only one neopixel in place for the moment)

Re: Blink works, Serial and Neopixel goes splat?

PostPosted: Thu Jun 01, 2017 8:27 am
by georgestephanis
Now ... seems to work? And I have no idea what changed?

Well, I won't look a gift horse in the mouth. :shrug:

https://twitter.com/daljo628/status/869653149245747201

Re: Blink works, Serial and Neopixel goes splat?

PostPosted: Thu Jun 01, 2017 12:27 pm
by Barnabybear
Hi, not all ESP8266-12 have internal pullups on RESET (10K is good) and you could do with about 100uF on the voltage regulator. Looks good I did something similar with 35 WS2812's as a 7x5 matrix. You can run the WS2812's down to about 3.3V before the blue starts to dropout if that helps.