Skip to content

Noise sensor#324

Open
roberbike wants to merge 9 commits intokike-canaries:develfrom
roberbike:noise-sensor
Open

Noise sensor#324
roberbike wants to merge 9 commits intokike-canaries:develfrom
roberbike:noise-sensor

Conversation

@roberbike
Copy link
Member

Firmware for noise sensor slave by i2c.
Auto detect flash sice. Board need to has > 4 Mb of flah memory.
tested with :

S2 4Mb
S3 8Mb
T-display 4Mb
C3 4Mb
Log example:
==>[INFO] Time for initial setup over. Booting..

-->[INFO] ESP32MAC : CC:BA:97:15:55:32
-->[INFO] Hostname : CanAirIO532
-->[INFO] Revision : r990
-->[INFO] Firmware : 0.7.0
-->[INFO] Flavor : ESP32S3
-->[INFO] Target : dev
-->[INFO] == Detecting Sensors ==
-->[INFO] Sensorslib version : 0.7.6
-->[INFO] config UART sensor : GENERIC
-->[SLIB] temperature unit : C
-->[SLIB] temperature offset : 0.00
-->[SLIB] altitude offset : 0.00
-->[SLIB] sea level pressure : 1013.25 hPa
-->[SLIB] only i2c sensors : false
-->[SLIB] sensor registered : SPS30 :D
-->[SLIB] sensor registered : NOISE :D
-->[SLIB] sensors count : 2 (SPS30,NOISE,)
-->[INFO] restored saved unit : PM2.5
-->[SLIB] sensors units count : 10 (PM1,PM2.5,PM4,PM10,Noise,NoiseAvg,NoisePeak,NoiseMin,NoiseAvgLegal,NoiseAvgLegalMax,)
-->[WDOG] watchdog check each : 120 seconds.
-->[WIFI] device network IP : 192.168.68.109
-->[WIFI] publish interval : 10 sec.
-->[FOTA] remote OTA update : not need update
-->[IFDB] influxdb.canair.io : connected!
-->[INFO] InfluxDb cloud : enabled
-->[INFO] WiFi current config : enabled
-->[INFO] CanAirIO station name : EZTESP32S355532
-->[BTLE] Bluetooth GATT : ready for config client!
-->[INFO] Wifi connected to : MiDeco
-->[INFO] sensors units count : 10
-->[INFO] show unit selected : PM2.5
-->[HEAP] sizeof sensors : 01176b
-->[HEAP] sizeof GUI : 00108b
-->[HEAP] free memory : 144076b

==>[INFO] Setup end. CLI enable. Press ENTER ===
CanAirIO:$ -->[SLIB] SPS30 read : done!
-->[SLIB] sensors values : PM1:4.0 PM2.5:4.0 PM4:5.0 PM10:5.0 Noise:33.0 NoiseAvg:32.0 NoisePeak:36.0 NoiseMin:32.0 NoiseAvgLegal:32.0 NoiseAvgLegalMax:32.0
-->[SLIB] sensors count : 2 (SPS30,NOISE,)
-->[SLIB] sensors units count : 10 (PM1,PM2.5,PM4,PM10,Noise,NoiseAvg,NoisePeak,NoiseMin,NoiseAvgLegal,NoiseAvgLegalMax,)
-->[WIFI] AP RSSI signal : -80 dBm
-->[HEAP] LOOP bytes used : 00000b/133Kb
-->[SLIB] SPS30 read : done!
-->[SLIB] sensors values : PM1:4.0 PM2.5:4.0 PM4:5.0 PM10:5.0 Noise:32.0 NoiseAvg:32.0 NoisePeak:36.0 NoiseMin:31.0 NoiseAvgLegal:32.0 NoiseAvgLegalMax:32.0
-->[SLIB] sensors count : 2 (SPS30,NOISE,)
-->[SLIB] sensors units count : 10 (PM1,PM2.5,PM4,PM10,Noise,NoiseAvg,NoisePeak,NoiseMin,NoiseAvgLegal,NoiseAvgLegalMax,)
-->[WIFI] AP RSSI signal : -79 dBm
-->[HEAP] LOOP bytes used : 00000b/133Kb
-->[BATT] avarage: 0.0000 slope : 0.000000
-->[BATT] is discharging : True
-->[SLIB] SPS30 read : done!
-->[SLIB] sensors values : PM1:4.0 PM2.5:4.0 PM4:5.0 PM10:5.0 Noise:34.0 NoiseAvg:32.0 NoisePeak:36.0 NoiseMin:31.0 NoiseAvgLegal:32.0 NoiseAvgLegalMax:32.0
-->[SLIB] sensors count : 2 (SPS30,NOISE,)
-->[SLIB] sensors units count : 10 (PM1,PM2.5,PM4,PM10,Noise,NoiseAvg,NoisePeak,NoiseMin,NoiseAvgLegal,NoiseAvgLegalMax,)
-->[WIFI] AP RSSI signal : -80 dBm
-->[HEAP] LOOP bytes used : 00000b/133Kb
-->[SLIB] SPS30 read : done!
-->[SLIB] sensors values : PM1:4.0 PM2.5:4.0 PM4:5.0 PM10:5.0 Noise:33.0 NoiseAvg:32.0 NoisePeak:42.0 NoiseMin:31.0 NoiseAvgLegal:32.0 NoiseAvgLegalMax:32.0
-->[SLIB] sensors count : 2 (SPS30,NOISE,)
-->[SLIB] sensors units count : 10 (PM1,PM2.5,PM4,PM10,Noise,NoiseAvg,NoisePeak,NoiseMin,NoiseAvgLegal,NoiseAvgLegalMax,)
-->[WIFI] AP RSSI signal : -80 dBm
-->[HEAP] LOOP bytes used : 00000b/133Kb
-->[BATT] avarage: 0.0000 slope : 0.000000
-->[BATT] is discharging : True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant