DS18B20 connected to PIC16F628A


Results 1 to 9 of 9

Threaded View

  1. #2
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: DS18B20 connected to PIC16F628A

    Are you using a Pull-Up resistor on the onewire data line??

    Here is an example project I wrote that is now located in the WIKI section under projects... It is also based on Bruce's code examples over at Rentron.


    http://www.picbasic.co.uk/forum/cont...r-nine-of-them

    It was written for a 16F690, so you may need to modify the configuration to fit your PIC.

    There are two parts to my example...
    The first is to read the serial numbers of the sensors.
    The second to read one or more of the sensors connected to the SAME pin on your PIC.
    (pay attention to the comments in the example code and it will tell you how to change the code to fit your number of sensors)
    Last edited by Heckler; - 28th November 2011 at 04:35.
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

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