uses BBC micro:bit to measure and display indoor air quality using Bosch BME680 and/or Sensirion SGP30

Dependencies:   microbit

uses Bosch BME680 and/or Sensirion SGP30 sensors to measure indor air quality

sensors should be connected to BBC micro:bit using i2c

commands are received and data is being sent using uBit / nordic radio protocol

display ---

last line always indicates: - first dot: bme680 detected - second dot: sgp30 detected - third dot: sgp 30 setting humidity/temperature - fourth dor: sgp30 measuring - fith dot: bme680 measuring

the detect dots should be in a stable state (not blinking) the measuring dots should be blinking (constant light means: measurement failed)

if only one bme680 is present: - first 3 lines indicate gas resistence (air quality / more dots == worse quality) - fourth line indicates humidity level

if only sgp30 is present: - first two lines indicate SGP30 VOC level - third and fourth line indicate sgp30 CO2 level

if both sensors are present: - first line indicates SGP30 VOC level - second line line indicates sgp30 CO2 level - third line indicates bme680 gas resistence (air quality) - fourth line indicates bme 680 humidity level

buttons - B display state, switches betweeen - full bright - low light - display off

AB reset sgp30 baseline in non volatile storage

data logging -- during measurements the minimum and mximum values for each measured value (temperature, air pressure, humidity,gas resistance, VOC, CO2) are being stored in non volatile storage those (and the last measurement results) are being shown when btn A has been pressed

History

cleanup default tip

2022-06-03, by jsa1969 [Fri, 03 Jun 2022 17:05:56 +0000] rev 60

cleanup


send less data to partner microbit

2022-06-03, by jsa1969 [Fri, 03 Jun 2022 16:53:29 +0000] rev 59

send less data to partner microbit


fix overflow issue in radio

2022-06-03, by jsa1969 [Fri, 03 Jun 2022 09:11:57 +0000] rev 58

fix overflow issue in radio


more output

2022-03-09, by jsa1969 [Wed, 09 Mar 2022 19:21:27 +0000] rev 57

more output


allow setting SGP30 baselins directly by sending a micro:bit radio command

2022-01-21, by jsa1969 [Fri, 21 Jan 2022 10:46:07 +0000] rev 56

allow setting SGP30 baselins directly by sending a micro:bit radio command


fix non volatile storage test

2022-01-20, by jsa1969 [Thu, 20 Jan 2022 17:59:18 +0000] rev 55

fix non volatile storage test


some more tests

2022-01-20, by jsa1969 [Thu, 20 Jan 2022 17:22:19 +0000] rev 54

some more tests


fix storage of SGP30 baseline

2022-01-20, by jsa1969 [Thu, 20 Jan 2022 15:06:13 +0000] rev 53

fix storage of SGP30 baseline


transmit more information

2022-01-20, by jsa1969 [Thu, 20 Jan 2022 12:58:13 +0000] rev 52

transmit more information


more delays when sending, had problems when distance was large

2022-01-17, by jsa1969 [Mon, 17 Jan 2022 11:54:51 +0000] rev 51

more delays when sending, had problems when distance was large