Long 1-wire bus


Closed Thread
Results 1 to 10 of 10

Thread: Long 1-wire bus

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: Long 1-wire bus

    Henrik:

    I use one pair for the +5V, two pairs as ground and one pair as ground and signal.

    I cannot be very strict on the precise topology the user will make.

    You are right about different setup on the cables. Maybe some other configuration work better. It would be best though that we have a specific one for all networks.

    Alain:
    I did read all these AN and datasheets. The main trick to have long cable is to replace the passive pull up with active one, but this needs to come up with a routine, maybe in assembly, to control all the necessary timing for the pull-upo/pull-down and the 1-wire communication. This cannot be done with the commands OWIN and OWOUT and I am not that good anymore in assembly as I used to be 30 years ago, when I started with PIC controllers.

    Ioannis
    Last edited by Ioannis; - 8th August 2023 at 19:53.

  2. #2
    Join Date
    Jul 2018
    Posts
    8


    Did you find this post helpful? Yes | No

    Default Re: Long 1-wire bus

    Hi Ioannis !

    The longest line for a ds18b20 in my heating is about 35 meters.
    The sensor line to my oven ( it is a small water-bearing oven which is in my living room ) is a Ymm 4x1.5mm˛ cable, because of the line resistance. Attempts with a network cable failed miserably for me.
    I chose the smallest pullup resistance according to the data sheet. It is a 1k resistor.
    My setup is working now for 4 years without any problems

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: Long 1-wire bus

    I was testing with telephone 4 wire cable initially and then with CAT-5 UTP cable.

    As I have 2 pairs (and a half..) for power and one wire out of 8 for data, I thought I am OK and never thought wire resistance would be a problem.

    Thanks for your input. Will see if thicker cable is better.

    Ioannis

  4. #4
    Join Date
    Jul 2018
    Posts
    8


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: Long 1-wire bus

    Do not underestimate the voltage drop over long lines.
    Also you should not use the parasitic mode. ( 2 lines ) . T
    his causes more problems than it is useful.

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: Long 1-wire bus

    Usually one thinks that thin cables will not be a problem since the current is really low, but you are right. It is more than the current. It is also the capacitance along with the voltage drop that all together will contribute in the system fail.

    Ioannis

Similar Threads

  1. Long ago thre was a variable named "long"
    By Mugelpower in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd November 2017, 19:42
  2. Replies: 0
    Last Post: - 21st October 2011, 01:33
  3. Long Lines for 1-wire iButton DS1992
    By Bosse in forum Serial
    Replies: 4
    Last Post: - 22nd April 2010, 13:09
  4. How can I use multiple DS1820 s on same 1-wire bus???
    By obaskirt in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th June 2005, 03:27
  5. I2C Bus (max wire lenght)
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 24th November 2004, 22:15

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