Search found 248 matches

by boarchuz
Mon Oct 14, 2019 5:51 am
Forum: ESP32 Arduino
Topic: Why use Serial.println() to configure sleep mode?
Replies: 2
Views: 478

Re: Why use Serial.println() to configure sleep mode?

Its just passing the return value to println() for debugging. Same as esp_err_t result; result = esp_deep_sleep_enable_ext0_wakeup((gpio_num_t)RTC_IN, 0) Serial.println(result); You can see the return values here: https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/system/sleep_modes...
by boarchuz
Fri Oct 11, 2019 8:38 am
Forum: ESP32 Arduino
Topic: RTC8M_CLK for LED control
Replies: 3
Views: 695

Re: RTC8M_CLK for LED control

Hopefully someone who knows what they're talking about will chime in, but I'll throw in a few thoughts in the meantime: Are you using the API? I'm sure you'll have a lot more luck with that than starting from scratch fiddling with individual registers, at least as a starting point for your own custo...
by boarchuz
Tue Oct 01, 2019 5:40 am
Forum: ESP32 IDF
Topic: Another ULP timer question
Replies: 13
Views: 1885

Re: Another ULP timer question

During "wait x" is the ULP running at full power, such as full power is for the ULP? I'm guessing something around 5~10 µA? ULP will draw a lot more than that when it's running. I'm not aware of anything can get close to 1uA/MHz currently. It's probably somewhere in the 200uA-2mA range. You might c...
by boarchuz
Sat Sep 21, 2019 10:58 am
Forum: Showcase
Topic: ULP APA LED Driver
Replies: 0
Views: 5904

ULP APA LED Driver

Blow the dust off the ULP and put it to work for a change, bit-banging some APA-type RGB LEDs. I wrote a little C++ library to do just that, built with Arduino in mind (but it will work with esp-idf too). It can also be used as a controller for FastLED (and NeoPixelBus, kind of). https://github.com/...
by boarchuz
Tue Sep 17, 2019 12:52 am
Forum: General Discussion
Topic: Deep Sleep ULP wakeup after I_END()
Replies: 4
Views: 933

Re: Deep Sleep ULP wakeup after I_END()

The ULP program begins when ulp_run is called, and RTC_CNTL_RDY_FOR_WAKEUP can be 1 even when the SoC is active (maybe you're expecting it to only be set when in deep sleep?). So what's happening is that the ULP is running, checking that bit, and then generating the interrupt *before* the SoC has en...
by boarchuz
Mon Sep 16, 2019 2:20 pm
Forum: ESP32 IDF
Topic: Long battery life for ESP32
Replies: 2
Views: 666

Re: Long battery life for ESP32

What is the interval between SPI/flash activity? That will determine if/which sleep modes are viable. If you wanted to be very aggressive about it, you might even use the ULP to bitbang SPI and buffer the received data, while the SoC wakes intermittently to write the data to flash when the buffer is...
by boarchuz
Mon Sep 16, 2019 2:12 pm
Forum: ESP32 Arduino
Topic: wifi task interfering with loop() task on app core?
Replies: 3
Views: 817

Re: wifi task interfering with loop() task on app core?

Are you sure you're not doing anything that might be waiting for a WiFi event? I would be looking out especially for something like this in loop():

Code: Select all

while (WiFi.status() != WL_CONNECTED)
If you share your code here we might be able to spot the cause.
by boarchuz
Sat Sep 14, 2019 11:23 am
Forum: ESP32 IDF
Topic: (resolved) issue with HTTP client
Replies: 4
Views: 1285

Re: issue with HTTP client

You can see in tcp_connect the reasons where it might return -1 (failed). Your log will allow you to identify what the reason is in your case, but there's no way for us to know with just two lines of it available. If there's no previous relevant output from tcp_connect in your log then you can assum...
by boarchuz
Fri Sep 13, 2019 10:42 pm
Forum: ESP32 IDF
Topic: (resolved) issue with HTTP client
Replies: 4
Views: 1285

Re: issue with HTTP client

tcp_connect isn't happy: https://github.com/espressif/esp-idf/blob/05094a9474f5af5b1e66f6f44a75454312ddeac6/components/tcp_transport/transport_tcp.c#L52 via esp_http_client: https://github.com/espressif/esp-idf/blob/05094a9474f5af5b1e66f6f44a75454312ddeac6/components/esp_http_client/esp_http_client....

Go to advanced search