Wemos D1 mini and DS18B20 - too slow sending data?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Homer-S
Normal user
Posts: 19
Joined: 04 Feb 2018, 22:12

Wemos D1 mini and DS18B20 - too slow sending data?

#1 Post by Homer-S » 25 Nov 2018, 17:31

Hello,

I am running a Wemos D1 mini wit EasyESP and I love your work!

This one is used to controle my roller shutters.

Attached are
1 BMP280
1 DS18B20
all is powered with 2 18650 batteries both are charged with some solar panels.
The Wemos is running in deep sleep and is sending data all 10 minutes via mqtt.
The idea comes from this page:
www.stall.biz/project/robuster-sonnense ... nz-einfach

My setup has been running for month. But last week I checked the charts and found a wired looking graph

After that I started an analysis with mqtt logging.
108 x status of Wemos (connected, disconnected, connection lost)
but only 29 x values from BMP280
and even less 15 x value from DS18B20

I am running the DS18B20 with 3,3V. I am mentioning because I read something about a relation between wire length and entry voltage ... long should use 5V

Thanks for your help
Attachments
2018-11-1818_55_12-Issueswithmqtttemplogging-Setup,ConfigurationandUse_Beginners-openH.jpg
2018-11-1818_55_12-Issueswithmqtttemplogging-Setup,ConfigurationandUse_Beginners-openH.jpg (41.67 KiB) Viewed 6102 times

Viald
Normal user
Posts: 16
Joined: 11 Jul 2018, 15:42

Re: Wemos D1 mini and DS18B20 - too slow sending data?

#2 Post by Viald » 26 Nov 2018, 21:46

I searching and testing solution to measure sun radiation. The goal is to control shutters of my house.
I'm currently testing lux sensor which seems not to be the best solution.
I had a look to the web page you linked to your post. Unfortunately, I can't read german and google traduction is not always good.

What I understood, the system used 2 temperature probes and measure the difference of temperature between both probes. Ok but what is the goal ? Why not only using the one under the glass, should it be not enough ?
It seems that you don't use 2 temperature probes, but just one and the other is a barometric probe. Could you explain why such probes ?

About your issue, how long do your keep your weemos up before next sleeping. I already saw that when the wake up time is too short, the probes have not enough time to work properly.

Homer-S
Normal user
Posts: 19
Joined: 04 Feb 2018, 22:12

Re: Wemos D1 mini and DS18B20 - too slow sending data?

#3 Post by Homer-S » 27 Nov 2018, 20:40

Viald wrote: 26 Nov 2018, 21:46 I'm currently testing lux sensor which seems not to be the best solution.
#
It is a bad solution, I already tried it.
What I understood, the system used 2 temperature probes and measure the difference of temperature between both probes. Ok but what is the goal ? Why not only using the one under the glass, should it be not enough ?
Let's try to explain.
If you have no sun both temperature values should be the same.
If you expose the one in the glass to sun light it is like a greenhouse. So the difference of both temperatures is rising. With other words, it is substituting your lux sensor. but with an additional temperature effect. This difference is the value which drives the shutters.

Only one value does not give you the indicator of direct sunlight in your house. It could also be a rising temp with a lot of clouds on the sky.
And in addition the calculation is damping the difference value to avoid a nervous shutter behavior.
It seems that you don't use 2 temperature probes, but just one and the other is a barometric probe. Could you explain why such probes ?
No, I am using both temp values. But in my case I am using two different sensor.
About your issue, how long do your keep your weemos up before next sleeping. I already saw that when the wake up time is too short, the probes have not enough time to work properly.
Is this the value "Sleep Delay:"?
I guess I kept the initial 60 sec ...

Homer-S
Normal user
Posts: 19
Joined: 04 Feb 2018, 22:12

Re: Wemos D1 mini and DS18B20 - too slow sending data?

#4 Post by Homer-S » 28 Nov 2018, 07:32

After reading Wiki part for deep sleep and hopefully understanding it:
Is this the value "Sleep Delay:"?
I guess I kept the initial 60 sec ...
No, this is for sleeping time not for time to be awake.

As far as I understood deep slep functiomn Wemos stays awake till all data is sent.

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

Re: Wemos D1 mini and DS18B20 - too slow sending data?

#5 Post by grovkillen » 28 Nov 2018, 08:03

Easiest way to build battery driven units is to do them on breadboard with a power cable and then use the serial monitor to see what is going on.
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:

Viald
Normal user
Posts: 16
Joined: 11 Jul 2018, 15:42

Re: Wemos D1 mini and DS18B20 - too slow sending data?

#6 Post by Viald » 28 Nov 2018, 08:11

Thank you for all this clear explanations :)

I talk about the "Sleep awake time" which should be the time the device stays on before next sleeping (Sleep time).
Image 585.jpg
Image 585.jpg (53.34 KiB) Viewed 6039 times

Homer-S
Normal user
Posts: 19
Joined: 04 Feb 2018, 22:12

Re: Wemos D1 mini and DS18B20 - too slow sending data?

#7 Post by Homer-S » 28 Nov 2018, 16:23

Ahhh this setting was not present in my version.
I updated it right now.
Is 15 sec a good value?
What if this is left empty? I did not find something in the wiki ..

Viald
Normal user
Posts: 16
Joined: 11 Jul 2018, 15:42

Re: Wemos D1 mini and DS18B20 - too slow sending data?

#8 Post by Viald » 28 Nov 2018, 18:08

Yes nothing in the wiki.
If it's empty or 0 the deep sleep is disabled.
15s should be enough. I tried 10 and it was good too. 8 was not enough.
According sensors you are using, you should test by decreasing sleep awake time value to find the best which is the little one to avoid too much battery draining.
Last edited by Viald on 29 Nov 2018, 12:20, edited 1 time in total.

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

Re: Wemos D1 mini and DS18B20 - too slow sending data?

#9 Post by grovkillen » 28 Nov 2018, 20:04

I'm currently moving the wiki to "read the docs" and since we're now really close to releasing a good stable it's time for lifting the entire documentation to the same level.
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:

Viald
Normal user
Posts: 16
Joined: 11 Jul 2018, 15:42

Re: Wemos D1 mini and DS18B20 - too slow sending data?

#10 Post by Viald » 29 Nov 2018, 12:21

Good to know. Thank you.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 60 guests