Skip to content

Commit 44298d3

Browse files
authored
Add SCD30 CO2 sensor (#861)
1 parent e1a6b3a commit 44298d3

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

meshtastic/admin.proto

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,11 @@ message SensorConfig {
656656
* SEN5X PM Sensor configuration
657657
*/
658658
SEN5X_config sen5x_config = 2;
659+
660+
/*
661+
* SCD30 CO2 Sensor configuration
662+
*/
663+
SCD30_config scd30_config = 3;
659664
}
660665

661666
message SCD4X_config {
@@ -706,3 +711,35 @@ message SEN5X_config {
706711
*/
707712
optional bool set_one_shot_mode = 2;
708713
}
714+
715+
message SCD30_config {
716+
/*
717+
* Set Automatic self-calibration enabled
718+
*/
719+
optional bool set_asc = 1;
720+
721+
/*
722+
* Recalibration target CO2 concentration in ppm (FRC or ASC)
723+
*/
724+
optional uint32 set_target_co2_conc = 2;
725+
726+
/*
727+
* Reference temperature in degC
728+
*/
729+
optional float set_temperature = 3;
730+
731+
/*
732+
* Altitude of sensor in meters above sea level. 0 - 3000m (overrides ambient pressure)
733+
*/
734+
optional uint32 set_altitude = 4;
735+
736+
/*
737+
* Power mode for sensor (true for low power, false for normal)
738+
*/
739+
optional uint32 set_measurement_interval = 5;
740+
741+
/*
742+
* Perform a factory reset of the sensor
743+
*/
744+
optional bool soft_reset = 6;
745+
}

meshtastic/telemetry.proto

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,7 @@ enum TelemetrySensorType {
836836
* SEN5X PM SENSORS
837837
*/
838838
SEN5X = 43;
839+
839840
/*
840841
* TSL2561 light sensor
841842
*/
@@ -845,7 +846,7 @@ enum TelemetrySensorType {
845846
* BH1750 light sensor
846847
*/
847848
BH1750 = 45;
848-
849+
849850
/*
850851
* HDC1080 Temperature and Humidity Sensor
851852
*/
@@ -860,6 +861,11 @@ enum TelemetrySensorType {
860861
* Sensirion STC31 CO2 sensor
861862
*/
862863
STC31 = 48;
864+
865+
/*
866+
* SCD30 CO2, humidity, temperature sensor
867+
*/
868+
SCD30 = 49;
863869
}
864870

865871
/*

0 commit comments

Comments
 (0)