Smoochie Esp32-S3 N16R8 + 2.4" TFT Touch (ILI9341) - Crash or Random menu navigation
Hello all,
I need some help to get my build working correctly.
I have already tried several approaches without success.
I followed as closely as possible the Smoochie board definitions and the ARTFOR schematics, including button resistors and capacitors wired exactly as shown.
See the image below comparing the original Artfor connections vs my ESP32-S3 build:
Issue: Random Menu Navigation
- The menus scroll or change randomly, even when the buttons are physically disconnected.
- I tried configuring the buttons as both
"LOW"and"HIGH"in the code. - Sometimes I can stabilize the system by isolating one button and keeping it "High", but I cannot get all five buttons to work simultaneously without triggering random navigation.
- My board is ESP32-S3-N16R8 (UICPal), which is not exactly the same as the typical ESP32-S3-WROOM-1 used in most builds.
- The only hardware change I haven’t tested is swapping my TFT (ILI9341) for an ST7789, but I don’t believe the display driver is the root cause.
-- I just had changed the #define ST7789_DRIVER 1 for #define ILI9341_DRIVER 1 on pins_arduino.h - If I activate the RGB LED using GPIO48, I also experience a lot of issues in the software.
Questions
- Why are the menus entering random navigation? Could this be due to hardware floating pins or firmware configuration?
- Should I remap the button GPIOs to other pins on the S3?
- Or do I need to adjust something in the code (e.g., pull-ups, debounce, board definitions) to better support the ESP32-S3-N16R8 variant?
Planned Integration: RC522 Module
In the future I’d also like to integrate an RC522 RFID module with the ESP32-S3, similar to how it is used on the M5stick.
Questions
- What is the recommended wiring for the RC522 on the Smoochie board setup?
- Are there existing code modifications or examples to enable RC522 functions in Bruce Firmware on the S3?
Any help or insights on either of these points would be greatly appreciated.
Thanks in advance!
this is the behavior of the menu to switch itself if the pull-up resistors of the buttons are not connected
Hi, but in that case, if I physically disconnect the buttons from the GPIOs, shouldn’t the random navigation stop?
find pinmodes in interface and change btn modes to INPUT_PULLUP instead of INPUT this way floating voltage on dedicated pins will be pull up through internal resistors
ofcourse u should compile source code idk if u can or not i had same problem even with external resistors
ofcourse u should compile source code idk if u can or not i had same problem even with external resistors
Thanks for the explanation. I’m flashing the repo clone with vscode and platformio. I already tested the combinations as follows:
- ARTFOR schematics
- -INPUT with low and high in the buttons act
- -INPUT_PULLUP with low and high in the buttons act
- -INPUT_PULLDOWN with low and high in the buttons act
- schematic - Ignoring the resistors and conected only the buttons to GND
- -(same tests as before)…
So at this point I think that I tested all the possible code changes :/ without any success. Root causes that I think: Possibility: incompatible GPIOs on my board to this sort of input Or maybe display driver make some sort of sorcery, as this is the only real change to the ARTFOR scheme.
Maybe I’m making some noob error but I cannot identify it :(
Many thanks
no problem! you should just mod pinmode commands with Input_pullup in second argument for example pinmode (UP_BTN, INPUT_PULLUP); no need to put button pins as output and HIGH them double check your wiring , be sure your buttons are not bad, some of them dont connect their pins when u push them, avoid pin numbers : 35, 36 , 37 cuz they dedicated to flash and psram memory keep wires as short as you can are u using smoochiee source code or you do it yourself? i made a diy with ili9341 tft and its working so there is no reason u blame your tft driver
please put the .bin to probe in my S3 + ILI boards
no problem! you should just mod pinmode commands with Input_pullup in second argument for example pinmode (UP_BTN, INPUT_PULLUP); no need to put button pins as output and HIGH them double check your wiring , be sure your buttons are not bad, some of them dont connect their pins when u push them, avoid pin numbers : 35, 36 , 37 cuz they dedicated to flash and psram memory keep wires as short as you can are u using smoochiee source code or you do it yourself? i made a diy with ili9341 tft and its working so there is no reason u blame your tft driver
Hi there,
I'm still facing the random menu navigation issue, even without any button physically connected.
In Interface.cpp I added:
pinMode(UP_BTN, INPUT_PULLUP);
pinMode(SEL_BTN, INPUT_PULLUP);
pinMode(DW_BTN, INPUT_PULLUP);
pinMode(R_BTN, INPUT_PULLUP);
pinMode(L_BTN, INPUT_PULLUP);
In pins.h (Smoochie board):
#define BTN_ALIAS "\"OK\""
#define HAS_5_BUTTONS
#define SEL_BTN 0
#define UP_BTN 41
#define DW_BTN 40
#define R_BTN 38
#define L_BTN 39
#define BTN_ACT LOW
Even with INPUT_PULLUP enabled and no wires connected to the button pins, the firmware keeps navigating menus randomly.
Any hints on what else I should try?
in the diagram what GPIO its Esc key ?
Hi, after some tests on my UICPAL ESP32-S3 board, I’ve managed to get the buttons, RGB LED and PN532 stable with the following adjustments:
✅ Button configuration
I had instability when using the original GPIO definitions from the Smoochiee build. The setup that works for me is:
#define BTN_ALIAS ""OK"" #define HAS_5_BUTTONS #define SEL_BTN 42 // gpio 0 was the one getting conflict #define UP_BTN 41 #define DW_BTN 40 #define R_BTN 38 #define L_BTN 39 #define BTN_ACT LOW
Using INPUT_PULLUP in interface.cpp solved the ghost presses. For final wiring, I added 10k pull-ups to 3.3 V on each button line — not strictly required, but it improves stability.
✅ RGB LED vs. I2C conflict
On my board the RGB LED is physically wired to GPIO48, while the repo originally defined GPIO45 as LED and GPIO48 as GROVE_SCL. Swapping them solved the conflict:
#define RGB_LED 48 #define GROVE_SCL 45
No I2C communication issues observed with SCL on GPIO45.
✅ PN532 test
The PN532 module was also tested successfully on the GPIOs defined in the repo, with the same adjustment (GROVE_SCL moved to GPIO45). Communication worked without problems.
💡 Notes
TFT connections follow the pins_arduino.h as in the repo, no issues there.
CC1101 / NRF24 not tested yet, but CS pins are correctly pulled HIGH at boot.
With these changes the board boots without crashes/bootloops and input handling is stable.
This should help others using UICPAL ESP32-S3 boards replicate the setup.
hi there i would have a queestion: did it work? Connecting your esp 32 s3 with the tft display? because if it did, could i get the pins_arduino.h file, if you like? i ve got the same issue
Hello, I’ve seen the other issue too (the original one GViegas posted), but with the new “updates” they gave, I’ve been having trouble with FastLED and the same driver ili9341 + ESP32-S3 issue. The fork you posted on the other post has expired. Would you be willing to reopen that link?
Thanks!
- Kevin
Why is there no back button in the firmware? For example, when I open webui, I can't exit the main menu because there is simply no back button.