Search found 601 matches

by boarchuz
Wed Aug 28, 2019 8:02 pm
Forum: ESP IoT Solution
Topic: Increasing Battery Life While Using WiFi
Replies: 3
Views: 15567

Re: Increasing Battery Life While Using WiFi

You might be surprised. Try this: https://github.com/espressif/esp-idf/tree/master/examples/wifi/power_save With a combination of automatic light sleep, dynamic frequency scaling, and modem power saving, the ESP32 can maintain a WiFi connection while drawing as little as 3mA (with some spikes in the...
by boarchuz
Fri Aug 16, 2019 8:34 am
Forum: ESP32 Arduino
Topic: C++: Cannot find preferences library
Replies: 1
Views: 2849

Re: C++: Cannot find preferences library

It's because you're in the PHX namespace there. Try "::Preferences preferences;"
by boarchuz
Thu Aug 15, 2019 2:57 pm
Forum: Hardware
Topic: ESP-PROG pin headers
Replies: 4
Views: 8696

Re: ESP-PROG pin headers

ESHF-105-01-L-D-SM looked good on Mouser for 5x2, no 3x2 variety in that series though.

I gave up and ended up buying both from here ("Position 6" and "Position 10"): https://www.aliexpress.com/item/33020323141.html
Delivery took ~3 weeks.
by boarchuz
Mon Aug 12, 2019 9:59 pm
Forum: ESP32 Arduino
Topic: How to check the Hall sensor?
Replies: 4
Views: 7267

Re: How to check the Hall sensor?

Also from that link:
The ADC1 module must be enabled by calling adc1_config_width() before calling hall_sensor_read(). ADC1 should be configured for 12 bit readings, as the hall sensor readings are low values and do not cover the full range of the ADC.

Code: Select all

adc1_config_width(ADC_WIDTH_BIT_12);
by boarchuz
Fri Aug 09, 2019 4:55 pm
Forum: ESP32 Arduino
Topic: Is it possible to use the RTC to track how long the chip was sleeping
Replies: 4
Views: 8615

Re: Is it possible to use the RTC to track how long the chip was sleeping

With standard gettimeofday implementation: #include <sys/time.h> RTC_DATA_ATTR timeval sleepTime; void setup() { if(esp_sleep_get_wakeup_cause() == ESP_SLEEP_WAKEUP_TIMER) { timeval timeNow, timeDiff; gettimeofday(&timeNow, NULL); timersub(&timeNow,&sleepTime,&timeDiff); printf("Now: %"PRIu64"ms, Du...
by boarchuz
Tue Aug 06, 2019 4:16 pm
Forum: ESP32 Arduino
Topic: External wakeup pin detect issue
Replies: 12
Views: 14829

Re: External wakeup pin detect issue

I don't see where wake_up_pin() is called. Check you copied your full sketch here.

Add a couple printouts for wakeup_reason and GPIO_reason, then post the full output here.
by boarchuz
Mon Aug 05, 2019 3:13 pm
Forum: ESP32 Arduino
Topic: Error during runtime after wrapping code in classes (Arduino IDE)
Replies: 2
Views: 4889

Re: Error during runtime after wrapping code in classes (Arduino IDE)

You're passing around uninitialised pointers.
by boarchuz
Fri Aug 02, 2019 12:26 pm
Forum: ESP32 Arduino
Topic: DevKitC on Arduino IDE
Replies: 1
Views: 3932

Re: DevKitC on Arduino IDE

Flash and RAM are different things. You might tinker with your partition layout if you're hitting flash limits; you might check free heap to debug RAM issues. Make sure you're clear what your problem is. Looks like it uses a WROVER so select the generic one for that- something like "ESP32-WROVER" pr...
by boarchuz
Thu Aug 01, 2019 2:29 pm
Forum: ESP32 Arduino
Topic: OTA with ESP32 as AP
Replies: 10
Views: 30925

Re: OTA with ESP32 as AP

Do you mean that it's trying to upload to "http://x.x.x.x/serverIndex/update" (rather than "http://x.x.x.x/update")? You'll have to figure out how to stop it going to the relative uri instead. Try removing the trailing / from your url (ie. go to "http://x.x.x.x/serverIndex" rather than "http://x.x.x...