Dear Arduino Community!
This is my first Post on this forum. I don't know if I had chosen the right Topic.
My Problem:
I don't get all meassurements from my sensor (with the right library not one)
Hardware used:
-Arduino IDE 2.0.1
-Windows 10 22H2
-ESP8266mod (Wemos D1 Mini)
-SSC 811 HDC1080 Sensor
Librarys i used:
https://github.com/bfaliszek/CJMCU-8118_InfluxDB
The senor works in a SSC811 Liberary, but only for CO2 and Air Preassure. My senor also has an HDC1080, which meassures the humidity and the temperature. The only Video i found out there regarding my setup was this one:
Pinset of my board:
linkhttps://ibb.co/Wf4S15y
My wireing:
linkhttps://ibb.co/VQyGs4X
Connections:
VCC -> 3V3
GND -> GND
SCL -> D1
SDA -> D2
WAK -> D3
Code:
#include <Wire.h>
#include "Adafruit_CCS811.h"
#include "ClosedCube_HDC1080.h"
ClosedCube_HDC1080 hdc1080;
Adafruit_CCS811 ccs;
void setup() {
Serial.begin(9600);
Serial.println("CCS811 test");
if(!ccs.begin()){
Serial.println("Failed to start sensor! Please check your wiring.");
while(1);
}
// Wait for the sensor to be ready
while(!ccs.available());
hdc1080.begin(0x40);
}
void loop() {
if(ccs.available()){
if(!ccs.readData()){
Serial.print("CO2: ");
Serial.println(ccs.geteCO2());
Serial.print("ppm, TVOC: ");
Serial.println(ccs.getTVOC());
}
else{
Serial.println("ERROR!");
while(1);
}
}
Serial.print("T=");
Serial.print(hdc1080.readTemperature());
Serial.print("C, RH=");
Serial.print(hdc1080.readHumidity());
Serial.println("%");
delay(1000);
}
Serial Monitor:
3fffff90: 3fffdad0 3ffee538 3ffee68c 40201071
3fffffa0: feefeffe 00000000 3ffee6e0 402024c4
3fffffb0: feefeffe feefeffe 3ffe85e0 40100e85
<<<stack<<<
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
��CCS811 test
Failed to start sensor! Please check your wiring
I would be so happy if someone could help out here! I stayed awake until 4am to fix that haha ![]()
Thank you guys!
Max