Nodemcu V3 with BS18b20, no temp values !

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ramone
New user
Posts: 4
Joined: 02 May 2020, 14:08

Nodemcu V3 with BS18b20, no temp values !

#1 Post by ramone » 02 May 2020, 14:39

I have a nodemcu V3 with BS18b20, had it running with arduino code no problem. I thought I would try ESPEasy, but I'm not getting any temp values, they say 0.00. I switched from GPIO2 to GPIO14, but still get same results. Everything is soldered no breadboards etc. Is there a simple step or config I've missed.
Any pointers would be greatly appreciated

INIT : Booting Build nr:120
WIFI : Connecting... 1
WIFI : Connected!
INIT : I2C
INIT : Boot OK
INIT : Normal boot
WD : Uptime 0 ConnectFailures 0 FreeMem 28752
WD : Uptime 1 ConnectFailures 0 FreeMem 28720
WD : Uptime 1 ConnectFailures 0 FreeMem 28688
WD : Uptime 2 ConnectFailures 0 FreeMem 28656
WD : Uptime 2 ConnectFailures 0 FreeMem 28624

<> Task Device Name Port IDX/Variable GPIO Values
Edit 1 Temperature - DS18b20 TestTemp 28-8a-93-1-17-13-1-9a GPIO-14 Temperature:0.00
Edit 2 Temperature - DS18b20 TestTemp1 28-ce-27-77-91-a-2-cd GPIO-14 Temperature:0.00

User avatar
Ath
Normal user
Posts: 3517
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Nodemcu V3 with BS18b20, no temp values !

#2 Post by Ath » 02 May 2020, 14:49

Did you add a pull-up resistor (4k7 or 10k work fine here) to the GPIO port?, that does seem to help. The internal pull-up is often too weak (80-100k)
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8752
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Nodemcu V3 with BS18b20, no temp values !

#3 Post by TD-er » 02 May 2020, 15:20

The topic starter claims it was running on the NodeMCU.
So the internal pull up may be sufficient, but it is not enabled by default in ESPEasy.
You can enable it in the Hardware tab in the GPIO boot states.

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

Re: Nodemcu V3 with BS18b20, no temp values !

#4 Post by ThomasB » 02 May 2020, 20:11

This issue has come up before. My memory is fuzzy on the details, but I recall that the Arduino code works Ok with the internal weak pullup. But the ESPEasy code is less tolerant to DS18B20 bit timing and installing the external 4.7K pull-up resistor seems to help out.

But per @TD-er's recommendation, enable the internal weak pull-up first. It might solve the problem. If not, install the external pull-up.

- Thomas

ramone
New user
Posts: 4
Joined: 02 May 2020, 14:08

Re: Nodemcu V3 with BS18b20, no temp values !

#5 Post by ramone » 03 May 2020, 04:30

Many thanks for the ideas.
Sorry, I should have mentioned I have a 4.7k resistor installed, device is powered from 3.3v on NODEMCU
- Tested resistor -ok 4.7k
- Tried enabling GPIO14 to start on high
- Re-flashed
- Removed second temp sensor
- Tried different temp sensor
- Tried another nodemcu board
- Tested connections
- Tried sensor without resistor - could not find device address.
Behavior is consistent ie. no temp value in the devices web screen.

Open to any suggestions or ideas

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

Re: Nodemcu V3 with BS18b20, no temp values !

#6 Post by ThomasB » 03 May 2020, 06:33

Your boot message shows you're running R120. That's a very old release. I suggest you try the latest Mega release instead.
https://github.com/letscontrolit/ESPEasy/releases

- Thomas

ramone
New user
Posts: 4
Joined: 02 May 2020, 14:08

Re: Nodemcu V3 with BS18b20, no temp values !

#7 Post by ramone » 03 May 2020, 06:50

Certainly can try it, I thought R120 was the latest stable release
Last edited by ramone on 03 May 2020, 11:20, edited 1 time in total.

ramone
New user
Posts: 4
Joined: 02 May 2020, 14:08

Re: Nodemcu V3 with BS18b20, no temp values !

#8 Post by ramone » 03 May 2020, 10:20

Loaded latest version of MEGA and it worked first go, now have 5 sensors all working well.
I thought R120 was the latest release as it was in the tutorials etc. Looking deeper I now see it is pretty old as eluded.
Many thanks to everyone who replied.

Now to get it to talk to thingsboard and mqtt.

Post Reply

Who is online

Users browsing this forum: No registered users and 62 guests