Arduino supports that, but I have not found anything about for that in PBP reference manual...
I want to hook up 4 pcs of DS18B20 to single pin. As I have read, each has unique identifier, so it should be possible, but how?
Arduino supports that, but I have not found anything about for that in PBP reference manual...
I want to hook up 4 pcs of DS18B20 to single pin. As I have read, each has unique identifier, so it should be possible, but how?
It is quite doable, you just need to write your own code. Do a search of the forum - I know there is a code example because I've used it 8-9 years ago. There are no native commands in any language I'm aware of. This is not PBP vs C or PIC vs Arduino.
Here is a program I wrote some years ago to do a search of 1 wire devices present on a single bus.
Dave Purola,
N8NTA
EN82fn
I've never understood the logic behind the find all the serial numbers function, unless you know what each device (using it's serial number) is measuring it seems pointless. For example in s asystem with three devices, one measuring ambient, one measuring input temp and another measuring output temp - how does it help to be able to determine the serial numbers of the devices when you don't know which ones which?
George
You just add one device at time. And search after you add one.
Exactly correct. What I do is scan each sensor 1 at a time and take the serial number and attach it to the sensor lead with a piece of paper under a piece of transparent film. That way I can replace any sensor in my system with another one and just change the serial number in the code.
Dave Purola,
N8NTA
EN82fn
True, but isn't it easier to know which serial as you install each device.
George
Bookmarks