Shop OBEX P1 Docs P2 Docs Learn Events
1-wire and DS18B20 — Parallax Forums

1-wire and DS18B20

GuidoGuido Posts: 195
edited 2008-02-09 00:54 in BASIC Stamp
How many DS18B20 Temperature sensors can be put on the 1-wire circuit....And how in the heck do you identify them...I did read on the specs that each has its own address. Would that same be addresse in the owin and owout?
Thanks
Guido

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-01-30 02:10
    Lots (don't know exactly) but it depends on power and distance also. Each has it's own 64 bit identifier and I would suppose that is what owin/owout is looking for.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Tracy AllenTracy Allen Posts: 6,667
    edited 2007-01-30 06:52
    Yes, that is the address in the one-wire commands.

    One device only, you don't need the address. Use the skipROM command.

    If you have one device, you can use the readROM command to discover its address to use in the following situation.

    Two or more devices on the same buss, you can use the matchROM command plus the address of the device you want to activate.

    If you have multiple devices on the same buss, and don't already know their addresses, there is the searchROM command that you use in a process of discovery to find the addresses of all attached devices. This is a more complicated process.

    The number of devices on the buss is limited primarily by the capacitance. There is no practical limit set by the number of addresses.





    If there is only one device on the buss, you can use one command to retrieve the address. Once you know

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • RDRD Posts: 8
    edited 2008-02-08 04:27
    If you have multiple devices on the same buss, and don't already know their addresses, there is the searchROM command that you use in a process of discovery to find the addresses of all attached devices. This is a more complicated process.
    ================





    Does anyone know of a pbasic program, floating around,·to do this search?

    That is, search through a 1-wire bus, with multiple devices, and identify each device info?

    Maxim App Note 187 describes how this is done.· But it's a little beyond me,
    unless I abolutely have to...

    ·
  • terry_bearterry_bear Posts: 84
    edited 2008-02-08 16:05
    RD,

    Yes there is.. it is in one of The "Nuts and Volts" columns. It is actually a group of 3 (I think)linked programs, one of which is called OWsearch. One prog. looks at the One Wire buss and looks for devices; one stores the device IDs in EEPROM (if I remember correctly) and one reports the device IDs
  • RDRD Posts: 8
    edited 2008-02-08 19:36
    >>>It is actually a group of 3 (I think)linked programs...

    I've·looked at·this above·and I think it only checks the info of one device at a time.
    I could be looking at someting else.

    In any case, I've found another program that does what I want.

    When or if I can translate it into pbasic I will post it.· I only have one
    type of device, the DS18B20, so I'm not sure how I will test it.


    Thanks.
  • Paul Sr.Paul Sr. Posts: 435
    edited 2008-02-08 19:55
    There is some great information on Peter Anderson's site (www.phanderson.com) on this subject. If you select the TM 128, there is a lot of detail that will answer your questions.
  • terry_bearterry_bear Posts: 84
    edited 2008-02-09 00:54
    RD,

    Actually, OWsearch will identify at least eight, from personal experience. <grin> Most of them were DS1820s, but there was a DS1620 and one or two others, all on-line at once...

    Terry
Sign In or Register to comment.