Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

#2

Hello Toby,

When the CO2 sensor is installed and enabled in the software, the CO2 readings will be show on the OLED display.

Code:
// --------------------------------------------------------------------------------------
// Define type of CO2 sensor
// --------------------------------------------------------------------------------------
#define CO2_SENSORTYPE 1 // 0= Not instaled, 1= Sensirion SDC30, 2= MH-Z19


// --------------------------------------------------------------------------------------
// Settings for the Sensirion SCD30 - CO2 Sensor
// --------------------------------------------------------------------------------------
// The sensirion SDC30 compensate the CO2 readings by using one of two methods: Atmospheric Pressure or a fixed Altitude value.
// Define bellow which one you want to use.
#define SDC30_ELEVATION_CALIBRATION_METHOD 1 // 0= Elevation defined above, 1= Atmospheric Pressure from BME280 sensor (overrides ELEVATION)

// If the SDC30 is intalled, system will use its high quality built-in Temperature / Humidity sensor. BME280 will be used only for Atmospheric Pressure.
// Optionally we can set a temperature offset up to 5.0 °C, stored in non-volatile memory of SCD30
const float SCD30_TemperatureOffset = 2.0; // Format: float

Rgs.
Werk_AG
Reply


Messages In This Thread
OLED - by tobyportugal - 08-10-2021, 08:20
RE: OLED - by werk_ag - 08-10-2021, 19:44
RE: OLED - by tobyportugal - 09-10-2021, 05:51



Users browsing this thread: 1 Guest(s)