Hi,
I'm trying to solve problem with interfacing multiple DS18B20 sensors. If I'm correct you can address each of them either by address or index. And to my understanding if I connect multiple sensors to one bus, then turn off power and turn in on again (maybe even switch/replace some sensors) I won't be able to distinct which index relates to which sensor. I need to be able to adress sensors by "socket/terminal block" in my application. So in a case of change of bad sensor I don't need to figure out new sensor adress and program it to the board. I've spend some time searching for some reasonable solution and come to two possible solutions.
Fisrt one is to use DS2482S-800+. But there are few reasons I'm not fan of this solution. It comes to the number of pins (8 is barely enough - room for expansion in future would be nice). Next one is the price of the chip. It seems like a lot of money for just a converter to another communication. The last one is availability as with almost everything these days...
Second one is to use ATMEGA328P-AU or something like it and use it as slave chip. Then connect single sensor sockets to the single pin of the chip and select the sensors just by selecting pin on chip. Availability is the same problem, but I could probably order arduino nano from china an desolder atmega from it.
The reason why I'm writing this question is to mainly find out if I'm not going in to some sort of dead end and if there is better or cheaper solution that I didn't think of...
I'm trying to solve problem with interfacing multiple DS18B20 sensors. If I'm correct you can address each of them either by address or index. And to my understanding if I connect multiple sensors to one bus, then turn off power and turn in on again (maybe even switch/replace some sensors) I won't be able to distinct which index relates to which sensor. I need to be able to adress sensors by "socket/terminal block" in my application. So in a case of change of bad sensor I don't need to figure out new sensor adress and program it to the board. I've spend some time searching for some reasonable solution and come to two possible solutions.
Fisrt one is to use DS2482S-800+. But there are few reasons I'm not fan of this solution. It comes to the number of pins (8 is barely enough - room for expansion in future would be nice). Next one is the price of the chip. It seems like a lot of money for just a converter to another communication. The last one is availability as with almost everything these days...
Second one is to use ATMEGA328P-AU or something like it and use it as slave chip. Then connect single sensor sockets to the single pin of the chip and select the sensors just by selecting pin on chip. Availability is the same problem, but I could probably order arduino nano from china an desolder atmega from it.
The reason why I'm writing this question is to mainly find out if I'm not going in to some sort of dead end and if there is better or cheaper solution that I didn't think of...