Page 1 of 1

Question about multiple DS18S20

Posted: Fri Dec 18, 2009 1:10 pm
by bunny-rabbit
Hello all,

I wonder, will this work if wanted to read the temperature for multiple ds18s20 sensors:

First i send the ConvertAll command:

Code: Select all

OW.Reset
OW.WriteByte(owSkipROM)
OW.WriteByte(owConvert)
Then wait till my OW port goes high, not using the OW.waitforhigh command because it will cause a delay in my program that i cannot use.

then when the port goes high read all the individual sensors:

Code: Select all

fid = "The sensor`s id"
DS18s20.ReadSP
"Sensor#" = result
I haven`t got the hardware to test this at the moment. so my question: will it work?

Greets.
Gert