Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By joefly888
#17969 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
User avatar
By GeorgeIoak
#18021 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.
User avatar
By joefly888
#18028 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..