1-Wire Search Algorithm
Korben
Posts: 5
Dear Forum!
Please help the ds18B20 themperature sensor identifications project.
http://www.maxim-ic.com/appnotes.cfm/appnote_number/187
How to write automatical ident program to Basic Stamp?··· ( BasicStamp2 PX CHIP )
How to displayed to ident numbers ·to Debug terminal ?
Please Help!
··············· IC1·················· IC2··············· IC3..................................... IC12 !!!
·············· _________········ __________······__________····
············· |··············|····· ··|······· ········|······|··········· ····|
············· | DS18B20·|······ | DS18B20·|······ | DS18B20·|
············· |_________|····· |_________|····· |_________|
···················· ·|···················· · ·· |··············· ···· · |
BasicStamp······|··················· ·····|················ ·· ···|
· PIN 15 ______|______________|_____________|
Yours sincerely : Korben
2007.szept.21
Post Edited (Korben) : 9/21/2007 6:09:08 PM GMT
Please help the ds18B20 themperature sensor identifications project.
http://www.maxim-ic.com/appnotes.cfm/appnote_number/187
How to write automatical ident program to Basic Stamp?··· ( BasicStamp2 PX CHIP )
How to displayed to ident numbers ·to Debug terminal ?
Please Help!
··············· IC1·················· IC2··············· IC3..................................... IC12 !!!
·············· _________········ __________······__________····
············· |··············|····· ··|······· ········|······|··········· ····|
············· | DS18B20·|······ | DS18B20·|······ | DS18B20·|
············· |_________|····· |_________|····· |_________|
···················· ·|···················· · ·· |··············· ···· · |
BasicStamp······|··················· ·····|················ ·· ···|
· PIN 15 ______|______________|_____________|
Yours sincerely : Korben
2007.szept.21
Post Edited (Korben) : 9/21/2007 6:09:08 PM GMT
Comments
You can try the code I posted here.
I modified some of Jon Williams' code from the April 2001 issue of Nuts & Volts.
It should show you how the 1-wire search algorithm can be done. Mind you, the 1-wire
network can not tell you what order the devices are on the cable, unless you're using
the REALLY (this year) new devices from Maxim/DalSemi.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rusty-
--
Rusty Haddock = AE5AE = rusty@fe2o3.lonestar.org
**Out yonder in the Van Alstyne (TX) Metropolitan Area**
Microsoft is to software what McDonalds is to gourmet cooking
Hu Hu! Program is Work !!!! Thank you Fe2o3Fish !!!! Thank you very much!!!
14 devices present.
01 : 2800F3BD000000FA -> DS18B20
02 : 28F0E9BD00000049 -> DS18B20
03 : 28F8E6BD00000087 -> DS18B20
04 : 28420ABE0000003C -> DS18B20
05 : 28E6E9BD000000A0 -> DS18B20
06 : 2816EEBD00000083 -> DS18B20
07 : 283623BE00000073 -> DS18B20
08 : 28490ABE000000C4 -> DS18B20
09 : 282924BE0000005D -> DS18B20
10 : 28E9F8BD00000035 -> DS18B20
11 : 2885FCBD00000094 -> DS18B20
12 : 28351BBE00000090 -> DS18B20
13 : 282DFABD000000F5 -> DS18B20
14 : 285B24BE000000AB -> DS18B20