I've scavenged this entire site for working 1-wire code. Found many different variants for ds1820 and ds1822 code.
However, when I try any of them, I do not get a value that should represent my current temperature.
The values change, from either 0C, 85C or 127C. I tried holding my finger to it, blowing on it, an open flame, and the temperature does not change.
I did have the 4.7k pullup resistor, and I even tried multiple pins on my uC.
I tried 2 different ds1822 and both are constant (thought both dont have the same output).
One of them displays 127
The other display 85
Is it safe to assume that somehow I damaged them, or I received them damage or faulty ?
However, when I try any of them, I do not get a value that should represent my current temperature.
The values change, from either 0C, 85C or 127C. I tried holding my finger to it, blowing on it, an open flame, and the temperature does not change.
I did have the 4.7k pullup resistor, and I even tried multiple pins on my uC.
I tried 2 different ds1822 and both are constant (thought both dont have the same output).
One of them displays 127
The other display 85
Is it safe to assume that somehow I damaged them, or I received them damage or faulty ?