Search found 106 matches

by lbernstone
Mon Oct 26, 2020 5:23 pm
Forum: ESP32 Arduino
Topic: ESPAsyncWebServer.h: No such file or directory
Replies: 2
Views: 155

Re: ESPAsyncWebServer.h: No such file or directory

The Arduino library folder is <home>/Arduino/libraries. This is where libraries downloaded using the library manager end up.
Do not put anything in .arduino15/packages/esp32/**. This is the built-in board specific libraries and will be removed/updated with the board.
by lbernstone
Sun Oct 18, 2020 3:58 pm
Forum: ESP32 Arduino
Topic: How to check Arduino version?
Replies: 5
Views: 341

Re: How to check Arduino version?

The link above explains how to install the development repo. There are a number of newer branches in there. The esp32s2 branch includes a newer version of the touch hal. Test that branch and see if it fixes the issue. If not, post an issue in the repo.
by lbernstone
Sat Oct 17, 2020 8:19 pm
Forum: ESP32 Arduino
Topic: How to check Arduino version?
Replies: 5
Views: 341

Re: How to check Arduino version?

https://github.com/espressif/arduino-es ... structions
Note, it is more likely that the paint on your board is incorrect rather than the pins being switched. AFAIK, the pin numbers are directly passed through to the touch API. Are the pins reversed if you try an analogRead on 32 & 33?
by lbernstone
Thu Oct 15, 2020 3:13 pm
Forum: ESP32 Arduino
Topic: error: 'CHIP_ESP32S2' was not declared in this scope
Replies: 3
Views: 149

Re: error: 'CHIP_ESP32S2' was not declared in this scope

Are you using the esp32s2 branch? arduino-esp32 v1.0.4 uses IDF 3, which pre-dates the esp32s2.
by lbernstone
Sat Oct 10, 2020 6:39 pm
Forum: ESP32 Arduino
Topic: ADC1 GPIO 32/32 and ADC2 GPIO 13/15 difference?
Replies: 1
Views: 148

Re: ADC1 GPIO 32/32 and ADC2 GPIO 13/15 difference?

ADC2 is not available while the radio is in use. When not in use, the two ADC channels give reasonably similar response, but should be calibrated separately if you want really accurate results. https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/adc.html#adc-calibra...
by lbernstone
Wed Oct 07, 2020 1:49 pm
Forum: ESP32 Arduino
Topic: Saving preferences doesn't work
Replies: 8
Views: 432

Re: Saving preferences doesn't work

Preferences is just a thin wrapper over NVS. NVS is non-volatile storage. As such, it is intended to persist, and not be regularly wiped. It stores some system calibration information, along with your data, so if you want to clear a namespace, you should clear just that namespace. If you want to wip...
by lbernstone
Tue Oct 06, 2020 5:16 pm
Forum: ESP32 Arduino
Topic: Saving preferences doesn't work
Replies: 8
Views: 432

Re: Saving preferences doesn't work

You aren't allocating any space in the char* to hold the result. Try initializing with an fixed length array instead of a pointer:

Code: Select all

char pin[8];
by lbernstone
Sun Oct 04, 2020 2:06 pm
Forum: ESP32 Arduino
Topic: Deep sleep rtc
Replies: 2
Views: 248

Re: Deep sleep rtc

The esp32 includes an RTC that can work during deep sleep. Why not use that? It will not be enabled by default if you use just a gpio wakeup, but it is easy to add a deep sleep wakeup timer in addition to your button. You probably need to ensure it wakes up once a day to sync the time anyhow. https:...
by lbernstone
Wed Sep 30, 2020 4:16 pm
Forum: ESP32 Arduino
Topic: wemos D1 mini original firmware
Replies: 3
Views: 287

Re: wemos D1 mini original firmware

Wemos D1 mini is an esp8266, not esp32. If you choose the correct board type, you should be able to upload with Arduino IDE.
by lbernstone
Sat Sep 26, 2020 1:43 pm
Forum: ESP32 Arduino
Topic: ESP32 WebServer doesn't respond / responds too late sometimes
Replies: 2
Views: 1665

Re: ESP32 WebServer doesn't respond / responds too late sometimes

Two possible fixes:
1) Add WiFi.setSleep(false)
2) Add a delay(100) at the end of your loop()

Go to advanced search