ds18s20 reads incorectly


Closed Thread
Results 1 to 40 of 43

Hybrid View

  1. #1

    Cool ds18s20 reads incorectly

    i have tried several programs on this and several other sites to read temperature
    read a lot of posts on the subject and have been able to get most to function
    however the temperature readings are all low aprox 30 deg f this is only happening when i use pbp

    tried mikro and works perferct what the difference??

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Cool

    Quote Originally Posted by jcleaver View Post
    i have tried several programs on this and several other sites to read temperature
    read a lot of posts on the subject and have been able to get most to function
    however the temperature readings are all low aprox 30 deg f this is only happening when i use pbp
    tried mikro and works perferct what the difference??
    What's the difference? Plenty...signed vs un-signed integers is a good possibility for one thing...
    We might be able to help you out a bunch better if you were to post one of those 'several' programs from one of those 'several' sites...
    Or a search here reveals:
    http://www.picbasic.co.uk/forum/showthread.php?t=5349
    http://www.picbasic.co.uk/forum/showthread.php?t=7091
    just for a couple of examples...
    http://www.picbasic.co.uk/forum/showthread.php?t=7079
    http://www.rentron.com/PicBasic/PBP1-wire.htm
    Last edited by skimask; - 22nd July 2008 at 19:31.

  3. #3


    Did you find this post helpful? Yes | No

    Default program

    thanks for the prompt responce
    http://www.rentron.com/PicBasic/one-wire3.htm
    using this program with changes made for a different type of display
    noticed it used the 18d20 but cant seem to find a program that uses the 18s20
    nor after looking over several posts can i come up with the correct way to read this

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Lightbulb

    Hi,

    Just look at programs for DS1820 ...

    or compare the " Operation measuring temp " chapters of DS18B20 and DS18S20

    You will find a correct program for DS1820 in The Parallax Stamp applications ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5


    Did you find this post helpful? Yes | No

    Default Update

    Finally Got It Working Better
    Thanks For The Inputs
    Notice I Said Better Still Reads 10 F Deg Low
    But Better Really Dont Understand Why Mikroe Works Perfectly With The Same
    Hardware Using Pbp 5.0 And Mcsp 3.0
    Must Be Some Difference In The Complier No? Maybe?

  6. #6
    Join Date
    May 2008
    Location
    Florida
    Posts
    64


    Did you find this post helpful? Yes | No

    Default

    I posted a program that reads DS18S20s. I have 4 of them on onewire and I read them with no problem and I use PBP.
    I do not expect temps below zero so I have not made allowances for that.

    http://www.picbasic.co.uk/forum/showthread.php?t=9116

  7. #7


    Did you find this post helpful? Yes | No

    Default

    Hi jcleaver,

    You might want to check Maxim forum at:

    http://discuss.dalsemi.com/index.php?

    They had rejects on DS1820 family showing wrong temperature and there is a fix for it.

    Nick

Similar Threads

  1. DS18B20 VS DS18S20 & multiple
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 7th February 2008, 22:43
  2. Using A Ds18s20 And Servo
    By CrazyCooter in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th September 2007, 09:41
  3. DS18S20 displays wrong temperatures
    By Shozo Kanamori in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th August 2007, 03:18
  4. DS18s20 - negative teperature
    By Ceug2005 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 2nd February 2005, 12:40
  5. 16F877, DS18S20 and Serial Comm Problem
    By YellowTang in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th April 2004, 10:36

Members who have read this thread : 0

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