Search found 236 matches

by boarchuz
Mon May 25, 2020 10:04 am
Forum: ESP32 IDF
Topic: ULP timer API doesn't work in deep sleep.
Replies: 4
Views: 163

Re: ULP timer API doesn't work in deep sleep.

It starts immediately, and then every 5s thereafter. Maybe there's a way to tweak the registers for delayed start? I don't know. For now you might need to work around it. eg. [*] Simple: Create a variable to act as a 'first run' flag that is set on first run. [*] Slightly cleaner?: have a 'mini' pro...
by boarchuz
Fri May 22, 2020 8:58 am
Forum: ESP32 IDF
Topic: Issue with http_rest_with_url function
Replies: 4
Views: 241

Re: Issue with http_rest_with_url function

Is it possible you're initialising a new http client (esp_http_client_init) for every request without a esp_http_client_cleanup? You can either create the esp_http_client_handle_t once and reuse the same one for every request, or create a new one every time and ensure its memory is freed afterwards ...
by boarchuz
Wed May 20, 2020 3:02 pm
Forum: ESP32 IDF
Topic: Issue with http_rest_with_url function
Replies: 4
Views: 241

Re: Issue with http_rest_with_url function

output_len is only being reset in the handler if the buffer is on the heap.
You could move the "output_len = 0;" lines in each of _FINISH and _DISCONNECTED so it's always reset.
by boarchuz
Wed May 20, 2020 2:42 pm
Forum: General Discussion
Topic: ULP counter
Replies: 6
Views: 357

Re: ULP counter

The default behaviour is to run repeatedly, waking every 20ms in your case. You'll need to stop the timer like this: https://github.com/espressif/esp-iot-solution/blob/40cec135eace36cf11ab72988e27546a2c0d025b/examples/ulp_examples/ulp_adc/main/ulp/adc.S#L234-L237 Or if you only intend for it to run ...
by boarchuz
Tue May 19, 2020 8:56 am
Forum: General Discussion
Topic: ULP counter
Replies: 6
Views: 357

Re: ULP counter

Is it possible the ULP is running again (incrementing to 2) before the SOC has time to wake up and read the value? What is your ULP wakeup period?
by boarchuz
Mon May 18, 2020 11:27 pm
Forum: Hardware
Topic: Why is MTDI of ESP32-PICO-KIT pulled high?
Replies: 2
Views: 130

Re: Why is MTDI of ESP32-PICO-KIT pulled high?

Note the "NC". I'm not sure why though. Is it possible for someone to connect their own external flash, that might be 1.8V? Or maybe it's to future-proof the board layout in case of a Pico with 1.8V internal flash? Maybe the Pico D4 internal flash voltage wasn't finalised when this board was being d...
by boarchuz
Fri May 15, 2020 6:46 pm
Forum: ESP32 IDF
Topic: ESP32 deep sleep mode, electric current value is too high
Replies: 4
Views: 314

Re: ESP32 deep sleep mode, electric current value is too high

That's normal. It's a dev board, not optimised for ultra low power operation.
by boarchuz
Thu May 14, 2020 11:51 pm
Forum: General Discussion
Topic: Can someone explain my oscillating touch readings?
Replies: 3
Views: 311

Re: Can someone explain my oscillating touch readings?

Turns out it was an incredibly noisy 12v DC adapter. Even plugging it in a few metres away made the touch sensor go wild. Values are very clear and smooth as soon as it is unplugged.

It's a dirt cheap one from eBay, I'll be replacing it one from a reputable brand and checking again.

Go to advanced search