Im trying to display temperature reading from IR sensor to tft, but I dont know what exactly the problem is. The alarm is beeping, the sensor is also working (serial output), but TFT display just blinks BLUE and then just blank WHITE screen and nothing happens :-
The JPEG shows a shield with regulator U1. Does your shield look the same ?
I suggest that you use the shield with a different Arduino i.e. with different I2C pins.
Or use a thermometer with SPI interface. Or even a 1-wire interface.
I noticed that very very quickly a BLUE screen comes, then the text "Tobj" gets displayed for 1/4th of a second but the temperature value doesnt show. And then it goes back to white screen and nothing else happens. What could be the reason for this behaviour ?
All this , while the serial monitor shows the temperature reading properly and even the buzzer is buzzing.
Just that the TFT isnt working properly !!
Thanks for the accurate photo. This shows the "current Mcufriend" pcb design. (which is crap)
The photo in your original JPEG shows an "older" pcb (which is much better).
Anyway, as explained in #3 the I2C SDA pin shares A4 with LCD_RESET pin. As soon as the I2C wiggles the SDA pin, the LCD is reset.