Skip to content

Conversation

@RobTillaart
Copy link
Contributor

Hi,

Created 2 examples for the Dallas Library:

  1. UserDataWriteBatch.ino - assigns the same ID to all DS18B20 on the onewire bus.
    This can be used to prepare DS18B20 for the next demo sketch.

  2. UserDataDemo.ino - implements getTempByID(int ID) function.
    This function uses a lookup table that maps individual addresses to ID's. This lookup table is initialized during setup. One should take care that every DS18B20 has an unique ID. This example needs 4 prepared DS18B20's

With this technique one can easily replace broken DS18B20's with one with the same ID preventing renumbering all sensors used in the code.

@milesburton milesburton merged commit 9cc81f0 into milesburton:master Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants