Now both DAC's function (There were wiring errors and softw errors. )
Code is nowtestDACSpecAda.ino (1.4 KB)
Still I have a problem: When I put both DAC's on the print, none is correct (errors as in first post: no linearity). Then I have cut the pull up R's from the 0x60 DAC first : no help; This one alone still functions but not when the 0x61 DAC is also inserted. Then I have als cut the pull-ups of the 0X61 DAC; problem remains +- the same: they function both well but only when the other one is not inserted.
So when both are installed (and cut!) I get;
address(hex)=60 lookup=0 lookupWa=200 an.value=46 voltage=0.22
address(hex)=60 lookup=1 lookupWa=400 an.value=73 voltage=0.58
address(hex)=60 lookup=2 lookupWa=800 an.value=211 voltage=1.01
address(hex)=60 lookup=3 lookupWa=1000 an.value=229 voltage=1.20
address(hex)=60 lookup=4 lookupWa=2000 an.value=484 voltage=2.46
address(hex)=60 lookup=5 lookupWa=3000 an.value=738 voltage=3.56
address(hex)=60 lookup=6 lookupWa=4000 an.value=877 voltage=4.28
address(hex)=60 lookup=7 lookupWa=4095 an.value=872 voltage=4.24
and for 0x61: no low voltages and no linearity!
address(hex)=61 lookup=0 lookupWa=200 an.value=881 voltage=4.29
address(hex)=61 lookup=1 lookupWa=400 an.value=843 voltage=4.23
address(hex)=61 lookup=2 lookupWa=800 an.value=866 voltage=4.17
address(hex)=61 lookup=3 lookupWa=1000 an.value=850 voltage=4.23
address(hex)=61 lookup=4 lookupWa=2000 an.value=828 voltage=4.20
address(hex)=61 lookup=5 lookupWa=3000 an.value=839 voltage=4.16
address(hex)=61 lookup=6 lookupWa=4000 an.value=987 voltage=4.82
address(hex)=61 lookup=7 lookupWa=4095 an.value=989 voltage=4.83
I have tried a pull up of 10K on the SDA and SCL (after cutting the original ones on both DAC's) and the voltages where always around 2.5V for both DAC's.