-->
Page 1 of 1

multi one wire

PostPosted: Sat May 07, 2016 12:09 pm
by AHMET YILMAZ UCAN
Hi All

Can I use multi 1 wire device ? I want to use two ds18b20 my project

thaks and regards

Re: multi one wire

PostPosted: Sat May 07, 2016 1:14 pm
by forlotto
Yes you can pin2 is one wire...

There is an example of this temp sensor in the programming examples section...

And if I recall correct the one wire bus supports several devices I am not sure as to what the hard limit is on the one wire bus for the esp8266 but I would assume it depends on the power and hardware I know a 1wire bus is able to search out and find 75 devices per second.

But I am near 99.9% sure 2 temp sensors should not be an issue at all.

Enjoy

Re: multi one wire

PostPosted: Sun May 08, 2016 4:16 am
by AHMET YILMAZ UCAN
thanks for answer
I tried 2 sensors , no any problem works well

like code;

let cura=0
temp 0 cura
let curb=0
temp 1 curb
wprint cura
wprint curb

all ok