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.
Bookmarks