Hello everyone,
I am programming an ESP32 with a touch screen and one of the things I want to do is sleep the device and wake it up every 5 minutes or when the screen is touched and touch is activated.
I use the instruction:
To try to get it to wake up with touch, but as soon as it falls asleep it wakes up again and tells me that it was due to activating the touch and that is not possible because the screen has not been touched.
Boot number: 2
Wakeup caused by touchpad
Touch detected on GPIO 4
I have tried with all the pins from T0 to T9 and Either they fire on their own or they don't detect touches.
Can someone help me find a solution? Thanks.
Greetings.
Hello, the hardware is:
2.8 inch ESP32 module ESP32-2432S028R
And it don`t use wiring diagram because it has the built-in TFT.
If I deactivate sleep, I have a check in the Touch function that is within the parameters of touchAttachInterrupt and it tells me that it is constantly activated without stopping.
This is the Touch pin configuration:
#define DOUT 39 /* Data out pin (T_DO) of touch screen */
#define DIN 32 /* Data in pin (T_DIN) of touch screen */
#define DCS 33 /* Chip select pin (T_CS) of touch screen */
#define DCLK 25 /* Clock pin (T_CLK) of touch screen */
I have now included a new instruction that I found by looking in the ESP-IDF Programming Guide ESPRESSIF, but still the same:
I guess this library is meant. Is it that hard to provide links to used libraries if they are not available in the Library Manager?
Please post that code!
T6 is GPIO14 but the IRQ line of the XPT2046 is connected to GPIO36 in your module. Unfortunately that isn't a touch input pin, so you cannot use that functionality.
I understand that I will have to use an external button to wake it up, so I won't have any problems?
Thank you very much for your help, I am new to this and I am quite lost.
I have been looking at how to put an external button to wake it up, but I am not sure how to do it either, because the only thing I see is that it has an extended IO, a temperature to humidity interface and a speak.
I understand that I should use the extended IO with an ESP8266 IO Expander for ESP32, for example.
Is it correct or can I do it another way. Can you help me with this?
Thanks.
I don't know this will be enough for you.
My problem is that I'm trying to place an external button to wake up the device, but I don't know how to do it.
I've tried using the temperature and humidity interface connector to add a deep sleep wake-up button to the ESP32. Following the diagram that I have attached, I have connected one part to the 3.3V output and the other to where it says IO27, but when I have tried the GPIO27 it is always active, even if I do not put the button.
Having only I/O through connectors I don't know how to attack the pins.
Thanks for your help.
Greetings.
Hello,
I wanted to ask you another question:
I am trying to control the brightness of my screen to turn it off progressively if it is not touched, but I cannot find the pin that I have to act on to achieve it.
Could you help me?
These are the instructions I'm using: