-->
Page 1 of 1

using DS1820 not DS18B20 and getting weird results

PostPosted: Wed May 20, 2015 11:05 am
by joefly888
I was not able to get the DS18B20 which seems everybody is using and was able to get DS1820 instead. I loaded the program at https://github.com/ok1cdj/ESP8266-LUA/b ... ds1820.lua and am getting weird outputs, like -4.40 degrees.

I looked at the datasheet, I think the readings are 12bit resolution on the 18B20 and 9bit on the 1820, but could not really see any other real difference. But I am new to all this, so I was wondering if someone can help me decipher what is going on, is there a way to convert the program for 1820 if that is indeed the issue?

Thanks

Re: using DS1820 not DS18B20 and getting weird results

PostPosted: Wed May 20, 2015 11:34 pm
by GeorgeIoak
You found the root of your problem and you can find additional details in this app note
Code: Select allhttp://www.maximintegrated.com/en/app-notes/index.mvp/id/4377


Unfortunately I'm not a Lua coder so I can't help you with the coding but if you study it and the app note I think you can get it to work.

Re: using DS1820 not DS18B20 and getting weird results

PostPosted: Thu May 21, 2015 2:13 am
by joefly888
George, The coding was beyond me, so luckily I went back to marketplace and was able to dig out a DS18B20, plugged it in, and it worked as expected. Probably doable, with code change but simpler for me to follow the example. Too much to chew at one time..