General area when it fits no where else

Moderator: Mmiscool

User avatar
By PhilTilson
#53967 Is there a (practical) limit to the number of DS18B20s that can be connected to pin 2 and read with the TEMP() function?

Phil
User avatar
By Mmiscool
#53987 I don't know of any hard limit except what the one wire buss will support.

Only used 3 or 4 when I was testing.
User avatar
By Orcanbull
#53994
PhilTilson wrote:Is there a (practical) limit to the number of DS18B20s that can be connected to pin 2 and read with the TEMP() function?

Phil


If i understand the concept of the DS18B20s there shouldn't be a limit from the sensor itself,
however it uses basically a Onewire protocol , I didn't took a look in the libary for the DS18B20s if there isnt a max specified there it should be good.

I recall a project conducted at my school with the Sensor they linked up about 30 of them, it worked, however the length of the wire is the problem , A lower pull-up resitor will help provide you a bit more length but generally i would keep it depending on the type of wire u use under the 5 - 8 meter range.
User avatar
By PhilTilson
#54076 That's excellent news.

Can you tell me how the individual ICs are assigned to the index numbers? Are they randomly assigned (in which case it's going to be very difficult to know which is which!) or in alphabetical order of serial number? Or what?

It would be very helpful to have a function that returns the serial number of any particular DS18B20. eg

Code: Select allsn$ = srl_temp(n)

Any chance?

Phil