Question about multiple DS18S20

Discuss the Integrated Development Environment (IDE)

Moderators: David Barker, Jerry Messina

Post Reply
bunny-rabbit
Posts: 42
Joined: Fri Jan 18, 2008 10:39 am
Location: Emmen/ Netherlands

Question about multiple DS18S20

Post by bunny-rabbit » 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:

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

Post Reply