DS18B20 issue

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
diuna2000
New user
Posts: 7
Joined: 04 Sep 2018, 12:22

DS18B20 issue

#1 Post by diuna2000 » 04 Sep 2018, 12:31

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.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: DS18B20 issue

#2 Post by grovkillen » 04 Sep 2018, 12:52

How much are you powering the ds18b20 sensor?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

diuna2000
New user
Posts: 7
Joined: 04 Sep 2018, 12:22

Re: DS18B20 issue

#3 Post by diuna2000 » 04 Sep 2018, 12:54

from phone charger 5v 2A

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: DS18B20 issue

#4 Post by grovkillen » 04 Sep 2018, 12:55

You need a level converter! You may have fried the gpio on the unit. They are expecting no more than 3.3V
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

diuna2000
New user
Posts: 7
Joined: 04 Sep 2018, 12:22

Re: DS18B20 issue

#5 Post by diuna2000 » 04 Sep 2018, 13:01

Ds18B20 connected to 3.3v pin on nodemcu so it's ok

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: DS18B20 issue

#6 Post by grovkillen » 04 Sep 2018, 13:05

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.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

diuna2000
New user
Posts: 7
Joined: 04 Sep 2018, 12:22

Re: DS18B20 issue

#7 Post by diuna2000 » 04 Sep 2018, 13:16

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 .

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: DS18B20 issue

#8 Post by grovkillen » 04 Sep 2018, 13:18

I see then it might be internal, are you able to test a different sensor?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

diuna2000
New user
Posts: 7
Joined: 04 Sep 2018, 12:22

Re: DS18B20 issue

#9 Post by diuna2000 » 04 Sep 2018, 13:20

yes i bought 2 from aliexpress and same issue with second sensor checked on raspberry with 3.3v pin and both working

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: DS18B20 issue

#10 Post by grovkillen » 04 Sep 2018, 13:23

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?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

diuna2000
New user
Posts: 7
Joined: 04 Sep 2018, 12:22

Re: DS18B20 issue

#11 Post by diuna2000 » 04 Sep 2018, 13:25

mega-20180826

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: DS18B20 issue

#12 Post by grovkillen » 04 Sep 2018, 13:43

Please open a new issue on GitHub.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

diuna2000
New user
Posts: 7
Joined: 04 Sep 2018, 12:22

Re: DS18B20 issue

#13 Post by diuna2000 » 04 Sep 2018, 13:50

Ok I will thanks for yours time and advices

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: DS18B20 issue

#14 Post by ThomasB » 04 Sep 2018, 20:31

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 6201 times
If your address is missing then try the mega-20180714 release. If it works then the latest release has a bug.

- Thomas

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 33 guests