Wemos D1 mini and DS18B20 - too slow sending data?
Moderators: grovkillen, Stuntteam, TD-er
Wemos D1 mini and DS18B20 - too slow sending data?
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
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 (41.67 KiB) Viewed 7437 times
Re: Wemos D1 mini and DS18B20 - too slow sending data?
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.
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.
Re: Wemos D1 mini and DS18B20 - too slow sending data?
#
It is a bad solution, I already tried it.
Let's try to explain.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 ?
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.
No, I am using both temp values. But in my case I am using two different sensor.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 ?
Is this the value "Sleep Delay:"?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.
I guess I kept the initial 60 sec ...
Re: Wemos D1 mini and DS18B20 - too slow sending data?
After reading Wiki part for deep sleep and hopefully understanding it:
As far as I understood deep slep functiomn Wemos stays awake till all data is sent.
No, this is for sleeping time not for time to be awake.Is this the value "Sleep Delay:"?
I guess I kept the initial 60 sec ...
As far as I understood deep slep functiomn Wemos stays awake till all data is sent.
- 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?
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Wemos D1 mini and DS18B20 - too slow sending data?
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).

I talk about the "Sleep awake time" which should be the time the device stays on before next sleeping (Sleep time).
Re: Wemos D1 mini and DS18B20 - too slow sending data?
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 ..
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 ..
Re: Wemos D1 mini and DS18B20 - too slow sending data?
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.
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.
- 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?
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Wemos D1 mini and DS18B20 - too slow sending data?
Good to know. Thank you.
Who is online
Users browsing this forum: No registered users and 16 guests