// Demo on how to identify and read multiple DS18B20 connected to the same bus. // Parasitic power is not used in this example. // This program is based on the sample code from Maxim/Dallas application // note 162 (http://www.maxim-ic.com/app-notes/index.mvp/id/162). Program output should look like this: *** Test with multiple DS18B20 *** Memory allocated for 20 devices. Scanning for devices... ROM CODE =62:00:00:01:CB:25:CA:28 1 ROM CODE =B6:00:00:01:CB:1B:9E:28 2 ROM CODE =66:00:00:01:CB:28:59:28 3 3 devices found. Scanning completed. Temp: 022.6875 Device: 000001CB25CA 001 Temp: 022.6875 Device: 000001CB1B9E 002 Temp: 027.6250 Device: 000001CB2859 003 Temp: 022.6250 Device: 000001CB25CA 001 Temp: 022.6875 Device: 000001CB1B9E 002 Temp: 025.3125 Device: 000001CB2859 003 Temp: 022.8125 Device: 000001CB25CA 001 Temp: 024.1875 Device: 000001CB1B9E 002 Temp: 023.7500 Device: 000001CB2859 003
History
.
2016-01-28, by RRacer [Thu, 28 Jan 2016 09:21:44 +0000] rev 7
.
.
2016-01-28, by RRacer [Thu, 28 Jan 2016 09:16:06 +0000] rev 6
.
Added comments
2016-01-28, by RRacer [Thu, 28 Jan 2016 09:12:19 +0000] rev 5
Added comments
Modified/added info text.; No program changes.
2016-01-28, by RRacer [Thu, 28 Jan 2016 09:05:50 +0000] rev 4
Modified/added info text.; No program changes.
Added check for negative temperatures (missing from the Dallas app notes).
2012-01-23, by RRacer [Mon, 23 Jan 2012 10:13:57 +0000] rev 3
Added check for negative temperatures (missing from the Dallas app notes).
Example: using multiple DS18B20
2012-01-10, by RRacer [Tue, 10 Jan 2012 12:32:05 +0000] rev 2
Example: using multiple DS18B20
Added check for negative temperatures, as it was missing in the Dallas app note.
2012-01-23, by RRacer [Mon, 23 Jan 2012 10:18:02 +0000] rev 1
Added check for negative temperatures, as it was missing in the Dallas app note.