Go Down

Topic: Talking with different DS1820 temperature sensors (Read 733 times) previous topic - next topic


I was trying the sample code to read the Dallas DS1820 and it seemed to be a bit confusing.
I was under the impression that the devices return their temperatures in a random order. Is it so ?
So I wrote a function that prepares a table of all the devices present (up to 3, all my samples) and then queries their temperatures one by one in the desired order.
Does this make sense to any of you ? Would you be intereseted in my code ? Or is it that I didn't understand the original example and all that wasn't needed ?
Thanks !


Each one-wire device has a unique ID - you just have to know which ID corresponds to which sensor, then it doesn't matter what order they identify themselves to the bus.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]


Go Up