2026-8-02 09:55 Version 0.2 - ADS-Faktor auf zwei gesetzt

This commit is contained in:
Dieter Lang 2026-08-02 09:55:30 +02:00
parent 8cd2b1f737
commit ec4eed475b
4 changed files with 13 additions and 8 deletions

View file

@ -4,15 +4,15 @@
"ads1115_address_1": 72,
"ads1115_address_2": 73,
"name_adc1_ch0": "23cm",
"factor_adc1_ch0": 5.0,
"factor_adc1_ch0": 2.0,
"name_adc1_ch1": "13 cm",
"factor_adc1_ch1": 5.0,
"factor_adc1_ch1": 2.0,
"name_adc1_ch2": "9 cm",
"factor_adc1_ch2": 1.0,
"factor_adc1_ch2": 2.0,
"name_adc1_ch3": "6 cm",
"factor_adc1_ch3": 1.0,
"factor_adc1_ch3": 2.0,
"name_adc2_ch0": "3 cm",
"factor_adc2_ch0": 1.0,
"factor_adc2_ch0": 2.0,
"relais_pins": [
{"id": 1, "name": "Relais 1 (230V Hauptschalter)", "gpio": "GPIO12"},
{"id": 2, "name": "USB-Relais 1 (Reserve)", "gpio": "USB_CH1"},

View file

@ -207,6 +207,11 @@ func readVoltageCallback(channel int) float64 {
}
voltValue := float64(sample.V) / 1000000000.0
//Unterdrückt Rauschen und negative Restspannungen bis einschließlich -0.01 V sowie kleine positive Offsets
if voltValue >= -0.011 && voltValue <= 0.011 {
return 0.0
}
return voltValue * factor
}

View file

@ -1,6 +1,6 @@
{
"version": "0.1",
"date": "06.06.2026 um 20:57",
"version": "0.2",
"date": "02.08.2026 um 09:34",
"description": "Messung von zwei Spannung und Steuerung von Relais",
"features": [
"ADS1115-Abfrage über go-i2c",

View file

@ -89,7 +89,7 @@
</div>
<div class="footer-nav">
Live-Aktualisierung aktiv (ohne Flackern)<br>
Live-Aktualisierung aktiv <br>
<span style="font-size: 0.8em; color: #475569; margin-top: 5px; display: block;">
Version v{{.Version}} ({{.BuildDate}})
</span>