Blink works, Serial and Neopixel goes splat?
Posted: Mon May 29, 2017 4:13 pm
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)
It works 100% fine if I upload a simple blink to it:
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)
and the reboot that comes in every fifteen seconds:
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.
Left is v0.1, Middle is v0.2, right is v0.2 mostly soldered (only one neopixel in place for the moment)
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)
It works 100% fine if I upload a simple blink to it:
Code: Select all
void 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.
Left is v0.1, Middle is v0.2, right is v0.2 mostly soldered (only one neopixel in place for the moment)