3.5 inch 480*320 TFT LCD Module Screen Display ILI9488 Controller To NUCLEO 401RE

The TFT is a UNO shield with touch panel


Bought from Aliexpress

The display works fine - no problems at all. The problem is with the Touch panel so I hope this is the right place.
I uploaded a sketch I use (works fine on a mega)and the screen pulsed and when I read the serial on the touch I was getting the coords of 520,-20 with every pulse. The touch worked but was sporadic.
I am using the Adafruit Touchscreen library.
I loaded their examples and with the touchscreendemo, the serial data just streams X 1015 ,Y 1023, Pressure varied from 15000 to 20000 without the screen being touched.
When the touchscreendemoshield loaded, the touch works? but only the right hand half of the screen.
It’s just a trial on a new board as the sketch works fine on the mega.
Thanks
Forget to add the touch pins being used..XP=9, XM=A3, YP=A2, YM=8 which work fine on the UNO.

I guess that you are using MCUFRIEND_kbv since other libraries do not support ILI9488.

Run the calibration sketch from the examples on the Uno.
The calibration should work on the Uno and also the Nucleo.

David.

I re-ran the calibration sketch, Touchscreen_calibr_native, on the UNO and then on the Nucleo board.

Calibration figures were within a whisker of what they were before and each other.

I reloaded my sketch onto the UNO and it worked fine, moving in and out of menu items no problems. I set up the Serial data for touch and just let it sit there for 30 minutes. There were no erroneous touch points appearing in the serial data. I then loaded the sketch onto the Nucleo board.

  1. within 5 seconds erroneous touch data appeared on the sexual screen as before. This time it was -54, 519 recurring.

  2. touch sporadic as before ie. menus etc appearing without being selected; screen rectangles used in functions but triggered by touch appearing, rapid selections through menus etc. when menu screen items touched.

I increased the MINPRESSURE setting from 100 to 1000 and MAXPRESSURE setting from 1000 to 1200 and so far so good. Touch is still easy to do - don’t need to press hard. No erroneous figures appearing in serial data.

However I still don’t know why I would be getting data without touching the screen and why that data is way off from the screen coords?

I tried other TouchScreen examples such as Draw and they work fine. The includes, definitions, settings for TouchScreen in my sketch are the same as those programs so I’ll just use the higher pressure figure when using the Nucleo board.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.