1wirev - what defines the order?
Aquaaddict
Posts: 20
Hi,
Experimenting with some DS18B20 1Wire temp sensors, I can get them reading ok, but wonder what defines the order in which they are found?
They always seem to be discovered in the same order, so I presume there is some pattern or rule·there?
Am I correct in thinking that I have to hard code their laser ID numbers into my code to make sure I am always reading the right one? The only other way I can think of is to display a list of devices, and thru some menu system record a users choice of what device should be used for what measurement, and then store the laser IDs against their selected usage in·the ROM?
I have also tried the Par version (parasitic verision that takes it power from the data line), it gets dicovered along with the other regular (no Par) ones, and I can get its ID, but I can never get a meaningful temp reading from it, any ideas? I have tridd different values for the pull up, and 3.3v and 5v, always the same problem.
Thanks,
Ants
Experimenting with some DS18B20 1Wire temp sensors, I can get them reading ok, but wonder what defines the order in which they are found?
They always seem to be discovered in the same order, so I presume there is some pattern or rule·there?
Am I correct in thinking that I have to hard code their laser ID numbers into my code to make sure I am always reading the right one? The only other way I can think of is to display a list of devices, and thru some menu system record a users choice of what device should be used for what measurement, and then store the laser IDs against their selected usage in·the ROM?
I have also tried the Par version (parasitic verision that takes it power from the data line), it gets dicovered along with the other regular (no Par) ones, and I can get its ID, but I can never get a meaningful temp reading from it, any ideas? I have tridd different values for the pull up, and 3.3v and 5v, always the same problem.
Thanks,
Ants
Comments
Thanks,
Ants
obex.parallax.com/objects/491/