Question about multiple DS18S20
Posted: Fri Dec 18, 2009 1:10 pm
Hello all,
I wonder, will this work if wanted to read the temperature for multiple ds18s20 sensors:
First i send the ConvertAll command:
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:
I haven`t got the hardware to test this at the moment. so my question: will it work?
Greets.
Gert
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 when the port goes high read all the individual sensors:
Code: Select all
fid = "The sensor`s id"
DS18s20.ReadSP
"Sensor#" = result
Greets.
Gert