Search found 20 matches

by boarchuz
Sat Dec 15, 2018 10:22 pm
Forum: ESP32 Arduino
Topic: Entering deep sleep and wake up with one button
Replies: 1
Views: 53

Re: Entering deep sleep and wake up with one button

You should only be flagging it in the interrupt routine (eg. _goToSleep=true;). That's all.

Then handle it in the loop: if(_goToSleep)...

I'd suggest an external pulldown too.
by boarchuz
Sat Dec 15, 2018 9:23 pm
Forum: ESP32 Arduino
Topic: Help with Rotary Encoder and ESP32 Thing
Replies: 1
Views: 59

Re: Help with Rotary Encoder and ESP32 Thing

I was playing with the pulse counter module a little while ago for something different. Upload this and see if it's useful for you: #include "driver/pcnt.h" #define ENCODER_PIN_A GPIO_NUM_13 #define ENCODER_PIN_B GPIO_NUM_14 #define PULSE_COUNT_UNIT PCNT_UNIT_0 int16_t theCounter = 0; static void in...
by boarchuz
Tue Dec 11, 2018 1:37 am
Forum: ESP32 Arduino
Topic: Additional current draw in Deep Sleep+ULP if WiFi.begin() called
Replies: 5
Views: 182

Re: Additional current draw in Deep Sleep+ULP if WiFi.begin() called

ESP_igrr wrote:
Mon Dec 10, 2018 2:54 pm
This is a regression in recent versions of ESP-IDF. We are working on a fix. For now you can add a call 'adc_power_off();' (from driver/adc.h) right before entering deep sleep.
Tested and confirmed! Thankyou!
by boarchuz
Mon Dec 10, 2018 9:12 am
Forum: ESP32 Arduino
Topic: Additional current draw in Deep Sleep+ULP if WiFi.begin() called
Replies: 5
Views: 182

Additional current draw in Deep Sleep+ULP if WiFi.begin() called

I have a ULP program that reads a rotary encoder and wakes the cores when input is detected, then WiFi is connected to do work, then back into Deep Sleep. While testing low power consumption, I observed this (where 'WiFi.begin?' = Whether or not WiFi.begin() was called before entering Deep Sleep; 'U...
by boarchuz
Sat Dec 08, 2018 8:17 am
Forum: ESP32 Arduino
Topic: http POST fails via ESP32. Httpresponse -11 generated by HTTPClient.h
Replies: 2
Views: 127

Re: http POST fails via ESP32. Httpresponse -11 generated by HTTPClient.h

Well what happens if you send the exact same request composed with your browser or Fiddler or similar? That's the first thing I would try, then you'll know if the issue is with your ESP32 code or the server.
by boarchuz
Fri Dec 07, 2018 7:57 pm
Forum: ESP32 Arduino
Topic: I2C on Sparkfun ESP32; Pull-Up resistors not working. Ideas?
Replies: 2
Views: 129

Re: I2C on Sparkfun ESP32; Pull-Up resistors not working. Ideas?

Can you confirm that you ran the i2c scanner on the ESP32? And it found the accelerometer? It's unlikely to be a hardware issue if that is working fine. In that case, I would be double-checking the address. I suspect it's expecting 0x1D but your accelerometer is at 0x1C (or vice versa). Run the scan...
by boarchuz
Thu Dec 06, 2018 12:35 pm
Forum: ESP32 Arduino
Topic: WROVER with Arduino IDE
Replies: 3
Views: 278

Re: WROVER with Arduino IDE

Select the correct board and it will be fine. The WROVER boards have a flag in boards.txt, "-DBOARD_HAS_PSRAM".
by boarchuz
Sat Sep 08, 2018 1:21 pm
Forum: ESP32 Arduino
Topic: WifiManager for ESP32
Replies: 4
Views: 464

Re: WifiManager for ESP32

I'm sure it's supposed to work with ESP32. I use tzapu's but I've made a lot of changes. Why haven't you included the error output here?
by boarchuz
Mon Sep 03, 2018 12:24 pm
Forum: ESP32 Arduino
Topic: Increase ULP program size
Replies: 1
Views: 248

Increase ULP program size

ulp_process_macros_and_load() fails with this error:

Code: Select all

E (22) ulp: program too big: 161 words, max is 128 words
Is it possible to simply increase program size or will I have to try to rewrite it a lot more efficiently? Any general tips for an amateur to reduce the size?

Go to advanced search