Comments on: ESP32 TFT with LVGL: Weather Station (Description, Temperature, Humidity) https://randomnerdtutorials.com/esp32-tft-lvgl-weather-station/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 04 Apr 2025 04:09:36 +0000 hourly 1 https://wordpress.org/?v=6.8.1 By: Luis https://randomnerdtutorials.com/esp32-tft-lvgl-weather-station/#comment-1022979 Fri, 04 Apr 2025 04:09:36 +0000 https://randomnerdtutorials.com/?p=162168#comment-1022979 The Interrupt PIN selected (GPIO 36) for T_IRQ is not a good choice. It will behave unreliably because only TOUCH pins are mapped to the ESP32 hardware MUX. You should select from available TOUCH0 to 9 inputs, respectively GPIO # 4,0,2,15,13,12,14,27,33,32

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-tft-lvgl-weather-station/#comment-1016111 Thu, 13 Mar 2025 10:23:57 +0000 https://randomnerdtutorials.com/?p=162168#comment-1016111 In reply to Ben.

That’s great.
Thank you so much.
Regards,
Sara

]]>
By: Ben https://randomnerdtutorials.com/esp32-tft-lvgl-weather-station/#comment-1015739 Wed, 12 Mar 2025 01:48:18 +0000 https://randomnerdtutorials.com/?p=162168#comment-1015739 As Paul McWhorter would say: BOOM!

This works perfectly on my ESP-32 WROOM.

Thank you so much, Sara. I’ve only been programming Arduino projects for about 2 months, and during that time I’ve learned to ignore all the noise out there and come straight to you when I have an issue. You don’t just provide the answers, you teach your readers how and why things work. As someone who is eager to learn, I am grateful to have found you! Keep doing what you’re doing, and I will keep practicing so that some day I can become you!

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-tft-lvgl-weather-station/#comment-1015215 Mon, 10 Mar 2025 05:54:13 +0000 https://randomnerdtutorials.com/?p=162168#comment-1015215 In reply to hide yoko.

You’re probably inserting the location in a wrong format.
Regards,
Sara

]]>
By: Mark Edwards https://randomnerdtutorials.com/esp32-tft-lvgl-weather-station/#comment-1013579 Wed, 05 Mar 2025 14:42:55 +0000 https://randomnerdtutorials.com/?p=162168#comment-1013579 In reply to Bruno.

Nice

]]>
By: Bruno https://randomnerdtutorials.com/esp32-tft-lvgl-weather-station/#comment-1013513 Wed, 05 Mar 2025 10:55:29 +0000 https://randomnerdtutorials.com/?p=162168#comment-1013513 It’s working :

#define GPIO21 21 //black screen
int prevState = LOW; //touch

In the loop :
….
// Screen ON or OFF when touch
if (touchscreen.tirqTouched() && touchscreen.touched()) {
int currState = digitalRead(GPIO21);
if(currState != prevState)
{
digitalWrite (GPIO21, LOW);
}
else { digitalWrite (GPIO21, HIGH);
prevState = currState;
}
}

]]>
By: Bruno https://randomnerdtutorials.com/esp32-tft-lvgl-weather-station/#comment-1013187 Tue, 04 Mar 2025 08:21:58 +0000 https://randomnerdtutorials.com/?p=162168#comment-1013187 Thank’s I will try…

]]>
By: Mark Edwards https://randomnerdtutorials.com/esp32-tft-lvgl-weather-station/#comment-1013023 Mon, 03 Mar 2025 20:17:03 +0000 https://randomnerdtutorials.com/?p=162168#comment-1013023 If you look at the code from one of the other tutorials you should be able to do this.

https://randomnerdtutorials.com/cheap-yellow-display-esp32-2432s028r/

This has code for using the touch screen and adding the required library (XPT2046_Touchscreen.h) as well as the initialization code.

Touch detection is below…
if (touchscreen.tirqTouched() && touchscreen.touched())

And you can toggle the screen off and on by toggling the backlight I believe – Backlight Pin is GPIO 21.

]]>
By: Bruno JACQUET https://randomnerdtutorials.com/esp32-tft-lvgl-weather-station/#comment-1012926 Mon, 03 Mar 2025 14:04:26 +0000 https://randomnerdtutorials.com/?p=162168#comment-1012926 Hello,
Thank you for this beautiful project that I made and adapted in French. I was wondering if there was a possibility to turn off the screen and turn it back on when we need with a simple touch?
Thank you
Best regards

]]>
By: hide yoko https://randomnerdtutorials.com/esp32-tft-lvgl-weather-station/#comment-1012924 Mon, 03 Mar 2025 13:57:50 +0000 https://randomnerdtutorials.com/?p=162168#comment-1012924 Hello Sara

open-meteo.com seems to hate me and I get the following comment on the serial monitor: “GET request failed, error: read Timeout”

What am I doing wrong? Please help me.

]]>