Can we have multiple 1-wire devices on single pin?


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    1,153


    Did you find this post helpful? Yes | No

    Default Re: Can we have multiple 1-wire devices on single pin?

    Yes, so I came to different solution. I also have PWM output pin, which goes into fan PWM in. So I'll hook DS18B20 to it - When I need to use thermometer, I will stop HPWM output on that pin, read the thermometer and then resume HPWM operation. I guess, fan will have enough inertia to have no significant impact on it's rpm.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Can we have multiple 1-wire devices on single pin?

    You do realize 750ms is three quarters of a second? Fan speed will be very wobbly.
    George

  3. #3
    Join Date
    Feb 2013
    Posts
    1,153


    Did you find this post helpful? Yes | No

    Default Re: Can we have multiple 1-wire devices on single pin?

    Fan won't stop in absence of PWM signal. most fans, without PWM signal applied, will default to 30-50% RPM.

  4. #4
    Join Date
    Jun 2010
    Location
    Venezuela
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Re: Can we have multiple 1-wire devices on single pin?

    hello, you can read several ds18b20 sensors and execute the part of the control that you want to carry out, see the attached file the routine I use in a device for the control of air conditioning and lighting with serial communication.LEER_DS18B20.txt

  5. #5
    Join Date
    Feb 2013
    Posts
    1,153


    Did you find this post helpful? Yes | No

    Default Re: Can we have multiple 1-wire devices on single pin?

    And a side question, can we use 1-wire protocol to communicate between 2 PICs?

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default Re: Can we have multiple 1-wire devices on single pin?

    The idea is to have the PIC as a master device and the PIC to request a communication.

    So, with the available commands, it is not possible to make a PIC react as a slave 1-wire device.

    You have to write your own code for that.

    Ioannis

Similar Threads

  1. Random outcome on multiple devices
    By Aussie Barry in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 22nd October 2013, 22:36
  2. Multiple I2c Devices
    By alphaengr in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th January 2012, 04:37
  3. Multiple serial devices to one pic
    By rshaver in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th October 2011, 15:34
  4. Need Single wire serial LCD converter example
    By polymer52 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 16th December 2009, 02:30
  5. Multiple RETURNS within a single subroutine
    By BrianT in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st June 2009, 16:43

Members who have read this thread : 2

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