2024-11-1500

This commit is contained in:
hans-jurgen 2024-11-15 12:35:31 +01:00
parent 2fb37cb9b6
commit 5807bd4e5f
5 changed files with 13 additions and 8 deletions

View File

@ -54,7 +54,10 @@ float getTemperature_MCP9808(){
dtostrf(temperature,7,1,Temperature); dtostrf(temperature,7,1,Temperature);
Serial.print("Temperatur (MCP9808):\t"); Serial.print("Temperatur (MCP9808):\t");
Serial.print(Temperature); Serial.print(Temperature);
Serial.println(" °C"); Serial.print(" °C\t");
Serial.println(temperature,4);
tempsensor.shutdown_wake(1); // shutdown MSP9808 - power consumption ~0.1 mikro Ampere, stops temperature sampling tempsensor.shutdown_wake(1); // shutdown MSP9808 - power consumption ~0.1 mikro Ampere, stops temperature sampling
return temperature; return temperature;
} }

View File

@ -146,6 +146,7 @@ void MessungADS() {
Serial.println(" V"); Serial.println(" V");
voltage = readChannel(ADS1115_COMP_1_GND); voltage = readChannel(ADS1115_COMP_1_GND);
voltage = voltage *2;
dtostrf(voltage,8,2,ADSData.Solar); dtostrf(voltage,8,2,ADSData.Solar);
Serial.print("Solar:\t\t\t"); Serial.print("Solar:\t\t\t");
Serial.print(ADSData.Solar); Serial.print(ADSData.Solar);

View File

@ -32,7 +32,7 @@ void Init_BMP280(){
F_BMP280 = false; F_BMP280 = false;
SystemStatus = SystemStatus | BMP280noReady; SystemStatus = SystemStatus | BMP280noReady;
Serial.print("SensorID was: 0x"); Serial.println(bmp.sensorID(),16); Serial.print("SensorID was: 0x"); Serial.println(bmp.sensorID(),16);
delay(5000); //delay(5000);
} else{ } else{
/* Default settings from datasheet. */ /* Default settings from datasheet. */
bmp.setSampling(Adafruit_BMP280::MODE_NORMAL, /* Operating Mode. */ bmp.setSampling(Adafruit_BMP280::MODE_NORMAL, /* Operating Mode. */

View File

@ -34,7 +34,8 @@ void read_HTU21D() {
dtostrf(h,7,1,htuData.humity); dtostrf(h,7,1,htuData.humity);
Serial.print("Temperature (HTU21D):\t"); Serial.print("Temperature (HTU21D):\t");
Serial.print(htuData.temperature); Serial.print(htuData.temperature);
Serial.println(" °C"); Serial.print(" °C\t");
Serial.println(t,4);
Serial.print("Luftfeuchtigkeit:\t"); Serial.print("Luftfeuchtigkeit:\t");
Serial.print(htuData.humity); Serial.print(htuData.humity);
Serial.println(" %"); Serial.println(" %");

View File

@ -39,7 +39,7 @@ build_flags =
build_flags = ${env.build_flags} build_flags = ${env.build_flags}
-DDEBUG=0 -DDEBUG=0
-DNOADS=0 -DNOADS=0
-DNAME=\"WETTERSTATIONMARCEL\" -DNAME=\"WETTERSTATIONTEST\"
-DSTASSID=\"MagentaWLAN-RGDO\" -DSTASSID=\"MagentaWLAN-RGDO\"
-DSTAPSK=\"93329248424922704583\" -DSTAPSK=\"93329248424922704583\"
-DGATEWAY=\"192.168.127.1\" -DGATEWAY=\"192.168.127.1\"
@ -49,15 +49,15 @@ build_flags = ${env.build_flags}
-Dmqtt_port=1883 -Dmqtt_port=1883
-DTERROR=5 -DTERROR=5
-DTLOWBATT=60 -DTLOWBATT=60
-DTINTERVAL=10 -DTINTERVAL=2
-DSpannungsteiler=3.9 -DSpannungsteiler=3.9
-DUBKorectur=0.854417949 -DUBKorectur=0.854417949
-DMinimalSpannung=3.00 -DMinimalSpannung=3.00
-DKorrekturLuftdruck=23.58 -DKorrekturLuftdruck=23.58
-DKorrekturTemperaturBME=0.1 -DKorrekturTemperaturBME=0.0
-DKorrekturTemperaturBMP=0.4 -DKorrekturTemperaturBMP=0.0
-DKorrekturTemperaturMCP=0.0 -DKorrekturTemperaturMCP=0.0
-DKorrekturTemperaturHTU=0.1 -DKorrekturTemperaturHTU=-0.496
[env:marcel] ; Produktivsystem: [env:marcel] ; Produktivsystem:
build_flags = ${env.build_flags} build_flags = ${env.build_flags}