Skip to content

Instantly share code, notes, and snippets.

@tomtor
Last active August 19, 2020 08:53
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tomtor/99e2a33bfa404ff99454aa94fc0df804 to your computer and use it in GitHub Desktop.
Save tomtor/99e2a33bfa404ff99454aa94fc0df804 to your computer and use it in GitHub Desktop.
ESP32: ULP LED Hart beat and read DHT22 sensor
@gdampf
Copy link

gdampf commented Mar 30, 2018

Hi,
I'd like to know, if you ever found a workaround for the problem of this complex ULP-Programs, stop working after a while (https://www.esp32.com/viewtopic.php?t=3183)???
I found the same problem and it looks like, the wakeup mechanism is sometimes not working (like the timer is not starting at I_HALT()).
It's a pitty, but this way, the ULP is not reliable.

BR
Guido

@mahesh2000
Copy link

@gdampf, did you resolve the ulp reliability issue? thanks, m

@gdampf
Copy link

gdampf commented Feb 13, 2020

@mahesh2000, following the description in the link from my last post, I got it working without WiFi by disabling the I_END(), but this may not be satisfying in all cases. I decided, to do it without ULP, but deep sleep between the measures, so I managed to have my Sensor sending in 10 min. intervals powered by a small rechargeable battery for about 2 months, which is fine. But, of course, I get only 6 samples per hour this way. For temperature and humidity, this nevertheless is exact enough in most cases.

@mahesh2000
Copy link

mahesh2000 commented Feb 13, 2020

hi @gdampf, do you mean that you kept the ULP running in sleep/wake cycles forever without restarting it? that would work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment