Timer Timer and time questions SOLVED

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
HomeJCL
Normal user
Posts: 61
Joined: 03 Feb 2018, 10:42

Timer Timer and time questions SOLVED

#1 Post by HomeJCL » 09 Feb 2018, 21:27

Hi

As I’m a noob ESP EASY was the holy grail for what I’m looking to get ready by the summer.
I have a bunch of boards and tested them, @time tested NodeMCU V3 and Wemos D1 Mini Pro.
I have encountered something funny and at the same time puzzling.

I did try the rule Start Watering, I did change the value of the Timer from 600 to 60 (from what is posted in examples of the commands and rules in the Wiki)
As far I’m concerned I still get for a timer = 60 sec a real elapsed time of around 105s (not really close to 60s)

Further it seems that the uptime has a very elastic way of recording the uptime in respect to real uptime.

Going on with the « examples » the plain blink 10s ON/OFF routine from the rules also does not work as expected.

Could you confirm some stuff or are all of my boards defective or is it the way I interpret it ?

Thanks
Last edited by HomeJCL on 07 Mar 2018, 17:56, edited 1 time in total.
Belgium and land of ESP ... counting :D

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

Re: Timer Timer and time questions

#2 Post by grovkillen » 09 Feb 2018, 21:44

I will try myself and get back to you.
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:

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

Re: Timer Timer and time questions

#3 Post by TD-er » 09 Feb 2018, 23:09

Please also check the CPU clock frequency on the info page.
And try to run without NTP set enabled and watch in the log to see if the uptime (in minutes) is also off.

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

Re: Timer Timer and time questions

#4 Post by grovkillen » 10 Feb 2018, 00:00

I have tested on a Wemos D1 Mini and I cannot reproduce the timing issue you describe.

Code: Select all

On Rules#Timer=1 Do
 longpulse,2,0,5
 TimerSet,1,60
Endon
This rule is triggered by sending a command "TimerSet,1,1". The onboard LED will then lit up for approx 5 seconds. This will be repeated every 60 seconds. I looped this for 5 minutes and the LED lit up spot on 60 seconds (the longpulse did not make the LED shine for exactly 5 seconds but this is a known shortcoming of longpulse).
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:

HomeJCL
Normal user
Posts: 61
Joined: 03 Feb 2018, 10:42

Re: Timer Timer and time questions

#5 Post by HomeJCL » 10 Feb 2018, 20:34

Error in posting hence edit/delete
Last edited by HomeJCL on 10 Feb 2018, 20:40, edited 2 times in total.
Belgium and land of ESP ... counting :D

HomeJCL
Normal user
Posts: 61
Joined: 03 Feb 2018, 10:42

Re: Timer Timer and time questions

#6 Post by HomeJCL » 10 Feb 2018, 20:39

Hi

CPU FREQ = 80 MHz
Flash IDE says 40 MHz

Since the post last night after rebooting without NTP
I have an uptime of 3h43

As far as I remember it seems before checking timer and rules everything was I think OK
It was after I hooked up 2 BME280 that it started to behave that way, I will try to reflash the boards to original FW or burn an empty file before reflashing ESP EASY and redo the testing

Hope to find some time to « reboot » tomorrow afternoon

Thanks
Belgium and land of ESP ... counting :D

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

Re: Timer Timer and time questions

#7 Post by TD-er » 10 Feb 2018, 22:01

Hmm, can you try using only one BME280? (also not set the other task enabled)
I never tested that one using >1 sensor.

HomeJCL
Normal user
Posts: 61
Joined: 03 Feb 2018, 10:42

Re: Timer Timer and time questions

#8 Post by HomeJCL » 11 Feb 2018, 22:06

Hi

Haven't tested all FW yet.
Anyway, it seems that as soon a BME280 is on the I2C bus, it becomes difficult if not impossible to get it to work in a stable way. (Rules and NTP)

Before rules even with NTP, it is like magic, not to the second but OK for what I'm thinking todo.

2x BME280 is a nogo, NTP does not work at all.

BME280 I tried are of the 6 pin type.
Belgium and land of ESP ... counting :D

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

Re: Timer Timer and time questions

#9 Post by TD-er » 11 Feb 2018, 23:24

What is the I2C address of the BME sensor?
I know there are module boards out there that use a different setup on selecting the I2C address.
Also double check the pins of SCL and SDA are on the correct lines.
And perhaps add 10k resistors to both lines and connect them to 3V3 as pull up.

HomeJCL
Normal user
Posts: 61
Joined: 03 Feb 2018, 10:42

Re: Timer Timer and time questions

#10 Post by HomeJCL » 12 Feb 2018, 10:47

Will try

Addresses are default 76 with SDO and VCC 77
Belgium and land of ESP ... counting :D

HomeJCL
Normal user
Posts: 61
Joined: 03 Feb 2018, 10:42

Re: Timer Timer and time questions

#11 Post by HomeJCL » 14 Feb 2018, 20:37

Alas,

Just tried with pull ups (although on the print there are SMD 103’s, 10k)

Anyway time is not OK and rules do not start at programmed time

I did look in the log and after reading the BME it posts a « timeout on read input data »
Belgium and land of ESP ... counting :D

HomeJCL
Normal user
Posts: 61
Joined: 03 Feb 2018, 10:42

Re: Timer Timer and time questions

#12 Post by HomeJCL » 19 Feb 2018, 19:15

Hi

Did some additional tests and got this.
On a pristine system (latest FW) w/o BMx280 everything is OK, On CLock and On Timer works as should.

Adding a BME280 and it still works OK. And if triggered repeatedly everything OK.
Sensor data are ok and retrieved, same for the rules timing works.

Then hit reboot or cycle power, and ... alas it no longer works as intended.

Timer has time of itself same for the on clock with longpulse, it does work when it happens to work with some delay, not that I need to the second but more annoying is the pulse length no longer as it was programmed +/- x1,7 set time.
Uptime is well no longer significant

Any pointers ? Thanks
Belgium and land of ESP ... counting :D

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

Re: Timer Timer and time questions

#13 Post by TD-er » 19 Feb 2018, 20:38

So it happens both with a warm reboot (reset) and a cold reboot (power cycle).

Could you also check with a v2.0 firmware, since the support for BME280 is different between both versions.

HomeJCL
Normal user
Posts: 61
Joined: 03 Feb 2018, 10:42

Re: Timer Timer and time questions. SOLVED

#14 Post by HomeJCL » 07 Mar 2018, 17:55

Solved

Did I say I was a NooB :oops:

ESP is not Petaflops computer.

Everything works as expected :D

Many thanks for all

Patience is worth more than we think :idea:
Belgium and land of ESP ... counting :D

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

Re: Timer Timer and time questions. SOLVED

#15 Post by TD-er » 07 Mar 2018, 20:18

HomeJCL wrote:
07 Mar 2018, 17:55
[...]
ESP is not Petaflops computer.
[...]
Well, with all the ESP's sold, we may be way past that number ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests