Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

CCS811 on FEATHER HUZZAH ESP3266
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

CCS811 on FEATHER HUZZAH ESP3266

by kimp on Tue Oct 26, 2021 1:17 pm

I have followed the guide for the CCS811 air quality sensor
https://learn.adafruit.com/adafruit-ccs811-air-quality-sensor/arduino-wiring-test

Using the example sketch CCS811 included with the library on an Arduino UNO board works just fine and the sensor data is logged properly to the serial console.

Wiring up a Feather Huzzah ESP8266, changing
Code: Select all | TOGGLE FULL SIZE
Serial.begin(9600);
to
Code: Select all | TOGGLE FULL SIZE
Serial.begin(115200);
and uploading the sketch to the board yields the following error:
Code: Select all | TOGGLE FULL SIZE
Failed to start sensor! Please check your wiring.

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Soft WDT reset

>>>stack>>>

ctx: cont
sp: 3ffffdf0 end: 3fffffc0 offset: 01a0
3fffff90:  3fffdad0 3ffee528 3ffee678 40201071 
3fffffa0:  feefeffe 00000000 3ffee6cc 4020225c 
3fffffb0:  feefeffe feefeffe 3ffe85e0 40100db1 
<<<stack<<<

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 3460, room 16
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4
tail 4
chksum 0xc9
csum 0xc9
v000430e0
~ld
CCS811 test


And from there the board keeps resetting and writing the same error.

I am quite certain that the wiring is correct.
The blink sketch works just fine on the same board.

Does anybody have an idea of what I might be doing wrong?

kimp
 
Posts: 2
Joined: Tue Oct 26, 2021 1:05 pm

Re: CCS811 on FEATHER HUZZAH ESP3266

by adafruit_support_carter on Thu Oct 28, 2021 11:43 am

Are you using the latest ESP8266 Board Support Package?

adafruit_support_carter
 
Posts: 21865
Joined: Tue Nov 29, 2016 2:45 pm

Re: CCS811 on FEATHER HUZZAH ESP3266

by kimp on Thu Oct 28, 2021 4:38 pm

I tried a Node MCU 0.9 board instead with the Sparkfun CCS811 library example sketch, which worked fine.
Then i tried flashing the Adafruit CCS811 library example sketch and the same error occured.

I then used esptool.py to erase the flash and use Arduino IDE to flash the Sparkfun CCS811 example sketch again, and then it worked fine again.
Did the same with the Feather Huzzah 8266 and it too started reading the sensor just fine.

So I will probably just stick with Sparkfun CCS811 library.

kimp
 
Posts: 2
Joined: Tue Oct 26, 2021 1:05 pm

Please be positive and constructive with your questions and comments.