Search found 39 matches

by lazarvgd
Mon Nov 26, 2018 9:22 am
Forum: ESP8266 boards
Topic: Connecting DS3231 RTC with ESP8266
Replies: 4
Views: 6284

Re: Connecting DS3231 RTC with ESP8266

thanks :)
by lazarvgd
Mon Nov 26, 2018 9:19 am
Forum: ESP8266 boards
Topic: Is it possible to use Flash button on esp board as input?
Replies: 4
Views: 3509

Is it possible to use Flash button on esp board as input?

Hi there,

Recently I found that I need some kind of toggle on esp8266 to turn on device, I have added pulldown resistor and it worked, but I am wondering is it possible to use onboard flash button as input? If yes, can somebody point me how to configure it?

Thanks :)
by lazarvgd
Thu Nov 22, 2018 8:13 pm
Forum: ESP8266 boards
Topic: Connecting DS3231 RTC with ESP8266
Replies: 4
Views: 6284

Connecting DS3231 RTC with ESP8266

Hi there, I have been thinking about buying RTC module(i2c) to attach to my esp8266 for precise time and date. There is a really cheap ds3231 rtc module and I am wondering is it possible to get time with micropython? If the answer is yes, can somebody give me some references how to do that? thanks :)
by lazarvgd
Tue Nov 06, 2018 1:12 pm
Forum: ESP8266 boards
Topic: Strange behavior of time on ESP8266
Replies: 24
Views: 12371

Re: Strange behavior of time on ESP8266

You get 5-15 reboots per day? That is way too much... Might be worth investigating if the ntptime synchronization is blocking that long or even freezing. I get at most 4 reboots per day and even that is quite rare. You were right, ntp is the problem. I have found that error occurs from time to time...
by lazarvgd
Tue Nov 06, 2018 4:54 am
Forum: ESP8266 boards
Topic: Strange behavior of time on ESP8266
Replies: 24
Views: 12371

Re: Strange behavior of time on ESP8266

just put the class into your main file. I have added the class, now the whole system is more robust, works almost as expected. I have had few rebooting of the board, I think between 5-15, but at least it is precise and turns on the heater. Now, I am waiting 0800h to check whether will heater be tur...
by lazarvgd
Mon Nov 05, 2018 10:49 am
Forum: ESP8266 boards
Topic: Strange behavior of time on ESP8266
Replies: 24
Views: 12371

Re: Strange behavior of time on ESP8266

@pythoncoder You are right, clean code must follow the best standard. I wrote this code while I was commuting, I did not thought about that. Another thing regarding the board, it is hard to debug, because I do not have debugger and have to log files. Since I am Android and iOS developer, I used to u...
by lazarvgd
Mon Nov 05, 2018 7:36 am
Forum: ESP8266 boards
Topic: Strange behavior of time on ESP8266
Replies: 24
Views: 12371

Re: Strange behavior of time on ESP8266

You can't argue with code that works ;) But the (correct) logic looks wrong: you have defined OFF = 1 and ON = 0. So when you issue led.off() the Pin instance produces a value of 0 which you define as ON. This had me foxed for a moment. You might like to look at the Signal class which is intended t...
by lazarvgd
Sun Nov 04, 2018 9:38 am
Forum: ESP8266 boards
Topic: Strange behavior of time on ESP8266
Replies: 24
Views: 12371

Re: Strange behavior of time on ESP8266

Last night everything was fine. Heater was started at 0000h and turned off at 0800h (GMT+1). Looks like my code is working as expected. :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: I have updated the code in order to check if pin needs to be turned off/on depending on time interval and pin stat...
by lazarvgd
Sat Nov 03, 2018 1:50 pm
Forum: ESP8266 boards
Topic: Strange behavior of time on ESP8266
Replies: 24
Views: 12371

Re: Strange behavior of time on ESP8266

Update: I just got the exception, which is tied to NTP library. Probably should add a few try catch blocks to handle it. (2018, 11, 3, 13, 30, 1, 5, 307) Traceback (most recent call last): File "main.py", line 41, in <module> File "ntptime.py", line 30, in settime File "ntptime.py", line 22, in time...
by lazarvgd
Sat Nov 03, 2018 12:29 pm
Forum: ESP8266 boards
Topic: Strange behavior of time on ESP8266
Replies: 24
Views: 12371

Re: Strange behavior of time on ESP8266

@kevinkk525, thanks for your time and effort, I really appreciate that. I have observed the logs, and found that time is not accurate and has to be updated every 15 minutes. :? Here is a screen shot, I have started the board at 1044h by UTC, and after 2 or 3 hrs I have took the screen shot to compar...