Page 1 of 1

DS18B20 issue

Posted: 04 Sep 2018, 12:31
by diuna2000
Hi I have problem with nodemcu v3 and ds18b20 with 4.7 resistor on esp easy mega. Esp not seeing device address but when i load sketch from arduino ide everything working fine. Ds18b20 working on raspberry address is visible so sensor is ok. I changed resistor to 2.7 same issue, 1.7 same issue not picking address. Nodemcu tested with different sensors like dht or bme all working so node is ok. DS18b20 tested with two different nodemcu v3 same issue. Did someone had this issue before.

Re: DS18B20 issue

Posted: 04 Sep 2018, 12:52
by grovkillen
How much are you powering the ds18b20 sensor?

Re: DS18B20 issue

Posted: 04 Sep 2018, 12:54
by diuna2000
from phone charger 5v 2A

Re: DS18B20 issue

Posted: 04 Sep 2018, 12:55
by grovkillen
You need a level converter! You may have fried the gpio on the unit. They are expecting no more than 3.3V

Re: DS18B20 issue

Posted: 04 Sep 2018, 13:01
by diuna2000
Ds18B20 connected to 3.3v pin on nodemcu so it's ok

Re: DS18B20 issue

Posted: 04 Sep 2018, 13:05
by grovkillen
Ok, so you're feeding the ds18b20 3.3V? I feel that we're playing the guessing game here. I know that the ds18b20 is compatible with 3.3V but I always use 5V together with level converter.

Re: DS18B20 issue

Posted: 04 Sep 2018, 13:16
by diuna2000
ok i understand your point but its working when i upload a simple sketch from arduino ide. I using espeasy because its excellent for beginner and very simple .

Re: DS18B20 issue

Posted: 04 Sep 2018, 13:18
by grovkillen
I see then it might be internal, are you able to test a different sensor?

Re: DS18B20 issue

Posted: 04 Sep 2018, 13:20
by diuna2000
yes i bought 2 from aliexpress and same issue with second sensor checked on raspberry with 3.3v pin and both working

Re: DS18B20 issue

Posted: 04 Sep 2018, 13:23
by grovkillen
And you got them working when you flash a small sketch? I mean you're referring to the Arduino IDE. If that is the case it may be an bug. What version are you running?

Re: DS18B20 issue

Posted: 04 Sep 2018, 13:25
by diuna2000
mega-20180826

Re: DS18B20 issue

Posted: 04 Sep 2018, 13:43
by grovkillen
Please open a new issue on GitHub.

Re: DS18B20 issue

Posted: 04 Sep 2018, 13:50
by diuna2000
Ok I will thanks for yours time and advices

Re: DS18B20 issue

Posted: 04 Sep 2018, 20:31
by ThomasB
Esp not seeing device address but when i load sketch from arduino ide everything working fine.
As a reference point, I'm using mega-20180714 and DS18B20 is working fine.

The Device Address entry will initially be blank. It will be hidden, requires enabling. To enable the DS18B20 you must click-select the Device Address pulldown and choose the discovered address from the populated list. See photo:

DS18B20.jpg
DS18B20.jpg (119.71 KiB) Viewed 6286 times
If your address is missing then try the mega-20180714 release. If it works then the latest release has a bug.

- Thomas