Using DS18S20 vs DS1820 with 4x7 LED Displays


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Sorry for confusion.

    I have already fixed my problem with DS18B20. I have no problem. I get nice negative value reading, too. Everything is perfect.

    But,

    For DS1820, how do we read negative values? When the temp gets below zero, how do we read it? I could not find a PBP sample code for negative part. I have about 50pcs DS1820 left in hand and have a chance of getting rid of them if I can read negative values.


    The table is for DS1820.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

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


    Did you find this post helpful? Yes | No

    Default

    Give this a try...
    Code:
    Sign  VAR  BIT
    TempC VAR  WORD
    
    ; read DS1820 here
    
    Sign = TempC.15
    TempC = ABS(TempC)
    TempC =(TempC>>1)*10 + (TempC.0 * 5)
    IF Sign then LCDOUT "-"
    LCDOUT dec (TempC/10),".",dec TempC//10
    <br>
    DT

  3. #3
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    It is finally working now for the negative values.

    I did not have this TempC = ABS(TempC) before TempC =(TempC>>1)*10 + (TempC.0 * 5)

    But, now I get correct values.

    Thanks a lot Darrel.
    Regards.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

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


    Did you find this post helpful? Yes | No

    Default

    You're Hoşgeldiniz
    <br>
    DT

  5. #5
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default Lost in Translation!

    Very nice of you "trying" to say that Darrel.

    I see what you wanted to say, thank you.
    But the meaning is a typical "lost in translation".
    "Don't mention it" in Turkish = "You are welcome" in English
    "You are welcome" in English = "Well Arrived" or "Welcome to a 'place'..."


    Here are some funny ones:
    Italian:
    "Ladies, leave your clothes here and spend the afternoon having a good time."

    Japanese:
    "Special cocktails for the ladies with nuts"

    Swedish:
    "Fur coats made for ladies from their own skin"
    "Our wines leave you nothing to hope for"

    French:
    Colgate introduced a toothpaste in France called Cue, the name of a notorious porno mag.

    French:
    "Please avoid coca watering, cream cleaning, wet towels wrapping, and ironing drying."


    And a funny one in German:
    "It is strictly forbidden on our black forest camping site that people of different sex, for instance, men and women, live together in one tent unless they are married with each other for that purpose."


    Have more here:
    http://www.ojohaven.com/fun/translation.funnies.html


    ---------------------------------
    Last edited by sayzer; - 16th October 2006 at 04:16.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

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


    Did you find this post helpful? Yes | No

    Talking

    Ha Ha,

    Well, at least I didn't end up calling you a bad name or something.

    Darn those on-line translators.

    The thoughts still there though...

    You're welcome.

    P.S. Funny Link.
    DT

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 06:14
  2. Free Project - 245 LED Display
    By T.Jackson in forum Code Examples
    Replies: 221
    Last Post: - 16th August 2009, 04:59
  3. new and need help
    By smeghead in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd November 2008, 20:19
  4. DS18S20 displays wrong temperatures
    By Shozo Kanamori in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th August 2007, 03:18
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

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