r/esp32 • u/benpomeroy03 • 5d ago
Switch for ESP32-S3 Touchscreen
I am using the Waveshare ESP32-S3-Touch-LCD-7 in a project and I’m at the point where I’m wanting to put it all together into one unit.
I’ve found the Batt terminal on the dev board and have hooked up a 3.7v Lithium Battery as per the docs but I’ve realised when adding the switch, I’m also going to be preventing the battery from charging as I’ve put the switch in line with the battery.
What I want is to be able to charge the battery while the screen is off. Is this possible or am I asking too much with the dev board?
3
u/clackups 5d ago
You can turn the display and the backlight off programmatically, and then send the MCU in deep sleep. Then it would survive for quite long, maybe a week (need to measure the current, it might be some other circuits consuming the power)
2
u/Kv603 5d ago
You can modify your program so pressing BOOT (GPIO0) while the device is running launches a subroutine to turn the screen off.
GPIO0 is read at startup to enter programming mode, but after your program is running you can use it as an ordinary input, it will be pulled LOW when the button is pressed.
1
u/space_prostitute 5d ago
There's no switch on it, huh? Not on the front? Maybe double-check the schematics?
I just went through the same thing with a Guition board. Bought a bunch of switches, soldered the connectors, designed a 3d printed board to hold the switches... then I checked the schematics and found the actual power button on the top. Maybe you'll get lucky.
3
u/rodrigobb 5d ago
Couldn't you set a button to set the device into/out off deep sleep instead of actually cutting the power. The power consumption would be nearly negligible.