ESP32S3 touch low-power wake-up issue #14351
Replies: 3 comments 6 replies
-
|
I'm using a modified ESP32_GENERIC_S3 config for 16 MiB Flash and 8MiB SPIRAM_OCT compiled against ESP-IDF 5.1. I thought I have used a |
Beta Was this translation helpful? Give feedback.
-
|
I have the same issue, using esp-idf 5.4.2 and M5 uiflow's micropython 1.25, on M5 PaperS3 board. |
Beta Was this translation helpful? Give feedback.
-
|
The touch functionality on the ESP32-S3 is different from that on the ESP32, Instead, you might want to use from machine import Pin, lightsleep
from time import sleep_ms
import esp32
# Use an RTC-capable pin on the S3 - GPIO1, GPII10
trigger = 10 # 1, 10
# hold=True parameter is critical!
wake_pin = Pin(trigger, Pin.IN, Pin.PULL_UP, hold=True)
esp32.wake_on_ext0(pin=wake_pin, level=esp32.WAKEUP_ALL_LOW)
while True:
print(f"Going to light sleep. Touch Pin{trigger} to GND to wake up")
sleep_ms(200) # Pause to flush prints
lightsleep()
print("Woke up")
sleep_ms(500)The REPL output is via USB serial, so the output can be erratic. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
import machine
from machine import TouchPad, Pin
import esp32
t = TouchPad(Pin(4))#Other pins have also been selected
t.config(500) # ESP32S3 is slightly larger and set at 25000
esp32.wake_on_touch(True)
machine.lightsleep() # put the MCU to sleep until a touchpad is touched
###################################################################################################
The function of turning on touch to enter low-power and touch wake-up is normal on the ESPWROOM32 board, but it is not normal on ESP32S3
How can I use the touch wake-up function of ESP32S3 normally?
Beta Was this translation helpful? Give feedback.
All reactions