PDA

View Full Version : DS1726 in PBP



Hainkm
- 11th February 2007, 18:18
Hi!

I'm working with a DS1726 (program same as a DS1626) trying to get this thing to read Fahrenheit temperatures.

Does anyone have any code examples? I can't seem to find out a lot about this chip.

I thought about changing over to the DS1820 via 1-wire, but I see it's obsolete now?

Here's what I'm looking for:

Temp sensor with 12-bit resolution (well, 11 plus sign bit), SPI or 1-wire, plus some sample code to help me get started.

THANK YOU!!!
Kris

skimask
- 11th February 2007, 19:57
Hi!

I'm working with a DS1726 (program same as a DS1626) trying to get this thing to read Fahrenheit temperatures.

Does anyone have any code examples? I can't seem to find out a lot about this chip.

I thought about changing over to the DS1820 via 1-wire, but I see it's obsolete now?

Here's what I'm looking for:

Temp sensor with 12-bit resolution (well, 11 plus sign bit), SPI or 1-wire, plus some sample code to help me get started.

THANK YOU!!!
Kris

Plenty of DS1820 types still out there.
Obsolete? Maybe only because the company has a 'new, improved' version. Nothing wrong with the old one...
http://www.digikey.com/scripts/DkSearch/dksus.dll?Criteria?Ref=5954&Site=US&Cat=33359008

Darrel Taylor
- 11th February 2007, 23:46
Hi Kris,

Only the original DS1820 is obsolete.

It was replaced with the DS18S20, which does the same thing, just in a better way.

And there's still the DS18B20. (12 bits)
Lot's of code in the forum for the DS18B20.
<br>

Hainkm
- 12th February 2007, 01:00
Thanks! I'll look into getting a few of those and hopefully will have some better luck!!

Thank you!!
Kris

Darrel Taylor
- 12th February 2007, 01:29
Great!

And, for the DS18B20, see this link

-- A Simple "High Precision" --
-- 1-Wire Temperature Application --
http://rentron.com/PicBasic/one-wire3.htm
Bruce also sells the DS18B20, so you won't need to look too far.

Regards,

Hainkm
- 17th February 2007, 16:16
Ok, I got myself a DS18B20 and used the code above, works like a champ!

Now...does anyone have an easy way to get a 1-decimal point reading when we're below 32F? (when it goes below 0c, it truncates the F reading to whole numbers only)

Thanks for all your help!!
Kris

Archangel
- 18th February 2007, 06:44
Ok, I got myself a DS18B20 and used the code above, works like a champ!

Now...does anyone have an easy way to get a 1-decimal point reading when we're below 32F? (when it goes below 0c, it truncates the F reading to whole numbers only)

Thanks for all your help!!
Kris
Look at Bruce's math expressions in the yikes sub directory, look at how he did it for degrees C using the DIG modifier, I think thats how it's done. Understand I'm still feeling stupid here so don't trust me, but I really think it is the DIG 3 or DIG 4 modifiers doing it, so check the manual 4.17.7 DIG page 33.