DS18B20 ID saving To and Reading From EEPROM


Results 1 to 15 of 15

Threaded View

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


    Did you find this post helpful? Yes | No

    Default Re: DS18B20 ID saving To and Reading From EEPROM

    Quote Originally Posted by Charlie View Post
    So suppose I want to make indoor/ outdoor thermometers for all my family and friends as gifts. I'll have 2 DS18B20's on a bus in the design. How do I resolve which is the indoor one and which is the outdoor one?
    I do not see other method than reading the sensors ID and addressing them by their ID ...

    but have to reprogram the chips if you change the sensor

    the clever methods here are...

    1) to use two ports instead of only one !!!

    2) to have a routine that reads ONE sensor ID you have placed alone on the bus and makes it indoor one , then reads the second sensor you place later and make it the outdoor one ...

    and so-on if a sensor change should occur one day.

    3) use a normal sensor for outside and a ghost supply one for inside : it's possible to recognize them by software ...

    Alain
    Last edited by Acetronics2; - 8th December 2013 at 14:37.
    ************************************************** ***********************
    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 " !!!
    *****************************************

Similar Threads

  1. Reading temperature using multi DS18B20
    By KVLV in forum Code Examples
    Replies: 16
    Last Post: - 3rd November 2017, 20:48
  2. Reading DS18S20 and DS18B20 In Same Program
    By Larryd in forum General
    Replies: 4
    Last Post: - 27th January 2013, 06:57
  3. ds18b20 not reading on 16f676
    By revelator in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd April 2009, 01:20
  4. DS18B20 error reading
    By Gaetano in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 29th August 2007, 17:21
  5. Reading 5 DS18B20 Problem
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th August 2005, 21:51

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