Am Donnerstag, 22. November 2012, 02:33:04 schrieb Prof. Dr. Peter A. Henning:
> [...]
> Denn Du kannst alle Bestandteile der Formel bereits als Offset und Factor
> in das OWAD einsetzen.
>
> Offset wäre 0.028, Factor 51.15
habe das mal probiert:
define KG.fl.OW.AD.01 OWAD 03F30F000000 60
attr KG.fl.OW.AD.01 alias 1-Wire HUB, Bus 1
attr KG.fl.OW.AD.01 group 1-Wire Bus
# Busstrom 12V = ((A - 0.028) / 19.55) * 1000
attr KG.fl.OW.AD.01 AFactor 51.15
attr KG.fl.OW.AD.01 AOffset 0.028
attr KG.fl.OW.AD.01 AHigh 100
attr KG.fl.OW.AD.01 AUnit Strom|mA
# Busspannung 12V = B * 2.67
attr KG.fl.OW.AD.01 BFactor 2.67
attr KG.fl.OW.AD.01 BUnit Spannung|V
attr KG.fl.OW.AD.01 BLow 11.50
attr KG.fl.OW.AD.01 BHigh 12.50
# Busstrom 5V = ((C - 0.028) / 19.55) * 1000
attr KG.fl.OW.AD.01 CFactor 51.15
attr KG.fl.OW.AD.01 COffset 0.028
attr KG.fl.OW.AD.01 CUnit Strom|mA
attr KG.fl.OW.AD.01 CHigh 100
# Busspannung 5V = D * 1.11
attr KG.fl.OW.AD.01 DFactor 1.11
attr KG.fl.OW.AD.01 DUnit Spannung|V
attr KG.fl.OW.AD.01 DLow 4.50
attr KG.fl.OW.AD.01 DHigh 5.50
bekomme da jetzt aber _andere_ werte als wenn ich sie wie vorhin mit den
formeln berechne:
raw:
A: 0.05 V , B: 4.49 V , C: 0.08 V , D: 4.54 V
jetzt "zu fuss" berechnen wie besprochen:
A = 1.13 mA = ((A - 0.028) / 19.55) * 1000
C = 2.66 mA = ((C - 0.028) / 19.55) * 1000
B = 11.99 V = B * 2.67
D = 5,04 V = D * 1.11
mit offset und factor:
A: 3.84 mA , B: 11.99 V , C: 5.58 mA , D: 5.04 V
demnach ergebt sich eine abweichung von
+2.71 mA für 12V und
+2.92 mA für 5V
gegenüber der manuellen berechnung und der berechnung von OWAD mit factor und
offset
was ist denn nun richtig?
gruss...