3.5 TFT Display stopped working (MCUFRIEND.kbv)

I was working on my project. And suddenly the display stopped working.
it doesn't display anything. I tried the calibration screen code.

Serial Output after running calibration native:

TouchScreen.h GFX Calibration
Making all control and bus pins INPUT_PULLUP
Typical 30k Analog pullup with corresponding pin
would read low when digital is written LOW
e.g. reads ~25 for 300R X direction
e.g. reads ~30 for 500R Y direction

Testing : (A2, D8) = 21
Testing : (A3, D9) = 28
ID = 0x0101

The screen doesn't show anything. Then when I tap on the screen it show this on serial terminal.

*** COPY-PASTE from Serial Terminal:
const int XP=8,XM=A2,YP=A3,YM=9; //4096x320 ID=0x0101
const int TS_LEFT=0,TS_RT=0,TS_TOP=0,TS_BOT=0;

PORTRAIT CALIBRATION 4096 x 320
x = map(p.x, LEFT=0, RT=0, 0, 4096)
y = map(p.y, TOP=0, BOT=0, 0, 320)

LANDSCAPE CALIBRATION 320 x 4096
x = map(p.y, LEFT=0, RT=0, 0, 320)
y = map(p.x, TOP=0, BOT=0, 0, 4096)

*** UNUSUAL CALIBRATION RANGES 0 0

Testing : (A2, D8) = 21

Testing : (A3, D9) = 28
ID = 0x0101

The pin testing "looks" ok. The Blue 2.8 inch and Blue 3.5 inch boards often use XP=8,XM=A2,YP=A3,YM=9

However the ID is complete rubbish. As is everything else !!

Please plug Shield into the Uno. (as Nature intended)
Run all the library examples.

What ID is reported by the library examples ?

It is always wise to post a link to the actual Shield that you bought.

David.


const int XP=8,XM=A2,YP=A3,YM=9; //320x480 ID=0x9486
const int TS_LEFT=128,TS_RT=908,TS_TOP=950,TS_BOT=100;


This is the actual ID and co-ordinates.

I am using an Arduino Mega 2560.

  1. Link to the shield I bought-
    https://www.amazon.in/Robocraze-Colour-Screen-320x480-Arduino/dp/B07922JJYM/ref=asc_df_B07922JJYM/?tag=googleshopdes-21&linkCode=df0&hvadid=397081911002&hvpos=&hvnetw=g&hvrand=2231578855295501770&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9300528&hvtargid=pla-901478073557&psc=1&ext_vrnc=hi

Everything was working fine. Suddenly the TFT display stopped working.

I might have applied 20 volts input to Arduino PWM I/O. (One of pin2 to pin12).
Is it not working because of that?

const int XP=8,XM=A2,YP=A3,YM=9;   //320x480 ID=0x9486

const int TS_LEFT=128,TS_RT=908,TS_TOP=950,TS_BOT=100;

That shows a normal Blue Shield and normal Calibration result.

I might have applied 20 volts input to Arduino PWM I/O. (One of pin2 to pin12).
Is it not working because of that?

That shows that you have destroyed Arduino and Shield.

I suggest that you buy replacement Mega2560 and Shield.

David.

I applied 20 volts when the shield was not connected.
Also, is there a diagnosis method where i can be 100% sure if the arduino is damaged before getting a new one.

Or maybe using a DMM?

Because the programs work just fine like blink and Fade.

If you damaged the Mega2560 you should not connect any external Shield to it.
Run all the regular example sketches e.g. Serial, PWM, digitalWrite, ADC, I2C, ...

See what damage you have done to the Mega2560.

Plug the TFT Shield into an undamaged Arduino. Check that you have not already harmed the shield.

Personally, I would just buy a new Mega2560 to be safe.

David.

I gave analog and digital signal i.e. analogWrite and digitalWrite to all pwm I/O. Is 255 PWM output 3.3volts?