Search found 6 matches

by g-sam
Sat Jul 15, 2017 8:47 pm
Forum: ESP8266 boards
Topic: ESP8266 RTC memory ?
Replies: 7
Views: 3347

Re: ESP8266 RTC memory ?

So I would have expected. But then what is wrong with the code above, and why does adding a time.sleep after the deepsleep fix the problem?
by g-sam
Mon Jul 10, 2017 3:55 pm
Forum: ESP8266 boards
Topic: ESP8266 RTC memory ?
Replies: 7
Views: 3347

Re: ESP8266 RTC memory ?

I have figured out that the problem with the code above has nothing to do with RTC memory, but rather with esp.deepsleep. The code continues to run after calling the latter, so the memory is getting set back to 'init'. I could fix it by adding time.sleep(1) after the call to deepsleep. This seems co...
by g-sam
Mon Jul 10, 2017 3:05 pm
Forum: ESP8266 boards
Topic: ESP8266 RTC memory ?
Replies: 7
Views: 3347

Re: ESP8266 RTC memory ?

I believe I have encountered the same problem as @gdr, but things are a little more complicated: sometimes, rtc.memory does succeed, but not always...Try the following: ================================== import machine import esp INIT_SECONDS = 23 rtc = machine.RTC() print('woken with task', rtc.mem...
by g-sam
Mon Jun 12, 2017 6:59 am
Forum: ESP8266 boards
Topic: Unexpected deep sleep behaviour (Wemos D1 mini pro)
Replies: 4
Views: 3258

Re: Unexpected deep sleep behaviour (Wemos D1 mini pro)

I have resolved the second issue I mentioned by connecting my sensor to TX1 of the Wemos instead of TX0. For some reason it would appear that on entering deep sleep on the Wemos something is sent over TX0 that is enough to activate the sensor, but that this does not occur over TX1. It maybe has some...
by g-sam
Thu Jun 08, 2017 6:36 am
Forum: ESP8266 boards
Topic: Unexpected deep sleep behaviour (Wemos D1 mini pro)
Replies: 4
Views: 3258

Re: Unexpected deep sleep behaviour (Wemos D1 mini pro)

RESET PIN -> GPIO 16 / D0 ---- yes, this was already connected. I can only think it has something to do with launching deepsleep inside an interrupt handler. Is that possible? The supply voltage requirement is not an issue in my case as my sensor requires 5v anyway, but that's good to know for futur...
by g-sam
Sun Jun 04, 2017 10:26 am
Forum: ESP8266 boards
Topic: Unexpected deep sleep behaviour (Wemos D1 mini pro)
Replies: 4
Views: 3258

Unexpected deep sleep behaviour (Wemos D1 mini pro)

Two things: First, the example configuration for deep sleep in the docs does not work for me. Example given: import machine rtc = machine.RTC() rtc.irq(trigger=rtc.ALARM0, wake=machine.DEEPSLEEP) rtc.alarm(rtc.ALARM0, 10000) I configure like that then call deepsleep like this: timer = machine.Timer(...