CCS811 on FEATHER HUZZAH ESP3266

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
kimp
 
Posts: 2
Joined: Tue Oct 26, 2021 1:05 pm

CCS811 on FEATHER HUZZAH ESP3266

Post by kimp »

I have followed the guide for the CCS811 air quality sensor
https://learn.adafruit.com/adafruit-ccs ... iring-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

Serial.begin(9600);
to

Code: Select all

Serial.begin(115200);
and uploading the sketch to the board yields the following error:

Code: Select all

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?

User avatar
adafruit_support_carter
 
Posts: 29151
Joined: Tue Nov 29, 2016 2:45 pm

Re: CCS811 on FEATHER HUZZAH ESP3266

Post by adafruit_support_carter »

Are you using the latest ESP8266 Board Support Package?

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

Re: CCS811 on FEATHER HUZZAH ESP3266

Post by kimp »

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”