DS1726 in PBP


Closed Thread
Results 1 to 7 of 7

Thread: DS1726 in PBP

  1. #1
    Join Date
    Dec 2006
    Posts
    6

    Question DS1726 in PBP

    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

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Hainkm View Post
    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/DkSea...S&Cat=33359008

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    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>
    DT

  4. #4
    Join Date
    Dec 2006
    Posts
    6


    Did you find this post helpful? Yes | No

    Red face Ds18b20

    Thanks! I'll look into getting a few of those and hopefully will have some better luck!!

    Thank you!!
    Kris

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    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,
    DT

  6. #6
    Join Date
    Dec 2006
    Posts
    6


    Did you find this post helpful? Yes | No

    Talking Getting closer...

    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

  7. #7
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Hainkm View Post
    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.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. PBP Book
    By Bruce in forum Off Topic
    Replies: 83
    Last Post: - 4th October 2021, 12:55
  2. Extensions to PBP variables
    By John_Mac in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd October 2009, 05:21
  3. Compiler differences between PBP 2.33 & 2.46
    By nikopolis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd May 2006, 19:01
  4. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30
  5. PBP / XP Crash
    By pondindustrial in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th November 2005, 03:16

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts