XPT2046 5 Inch Touch Panel Function & Calibration with code & wiring MikroC

preview_player
Показать описание
A closer look at the XPT2046 Touch Screen controller running on a 5" screen.
The Screen is running 8 bit mode.
The XPT is running with 16 bit SPI.
It works very well, better than the 7" Touch screen.
Рекомендации по теме
Комментарии
Автор

Hey John, You are really doing good work. Appreciated.
Do you have sample code for controller ssd1963 and ESp3232 ?. I am having issues with calibration with same 5 Inch LCD.
Thank You !

mehtabazamkhan
Автор

Hello! Very nice video.
I see you indicated you have used the SSD1963 controller for the LCD and the XPT2046 for the touch panel.
What PIC32 did you use?
And you mentioned you used a 5" TFT Screen 800x480 . May I ask which one? Any link to the product (or similar product) page? That would be very appreciated.

Thank you very much in advance

kansairobot
Автор

Very nice & smooth!!

May need a low-pass FIR software filter on the positions readings.

imignap
Автор

Hi, thanks for replying, well did the code shown in the video, but it is not working, not if I do something extra in the code to work well .... Thanks

josemanganiello
Автор

Hi John, great video. I could calibrate my ILI9341 2.4" LCD touch screen with the help of this video

ishansheth
Автор

Hi John,

At the moment I'm using the xpt2046 and I got it to work with my own code and it does the job 90% of the time. My issue is the range of values for each X / Y plane i.e. if you were to press the screen and hold that position the values can fluctuate by as much as 10 units, I was wondering if you had any issues with this?

shrdlf
Автор

I got the screen working correctly, however I cant get the touch working! Any help would be appreciated! I enabled SPI, and I2C bus. The screen is working GREAT otherwise.

agilliam
Автор

I have 5" touch screen XPT2046 that plugs in Raspberry Pi 2 B HDMI do you know the drivers to use?  Booting up without drivers there is a big black vertical bar down the almost center of screen and to of that right of bar video doesn't extend  all the way right of screen.  I would appreciate any help

JohnnyJTav
Автор

Hello John B.

I am trying to get the touch panel working on 4.3" TFT (with SSD1963 and XPT2046) with PIC18f45K22. But SPI for PIC18f45K22 is 8bit, so I don't know should I do something different than You did in Your video? Also, do You have a pull-up resistor (internal or external) on T_DO pin? And I don't understand this part:
if (RB4_bit == 0)
{
TP_Chip_Select = 0;
...
TP_Chip_Select = 1;
}

I thought that RB4_bit is T_irq? But in your code it is TP_Chip_Select...
My TFT works mostly fine, but I have problems with getting the touch panel to work, so any help would mean a lot to me.
Thank You in advance!

Best regards,
Marija

maxxie
Автор

I use 12 bit conversion in XPT2046. Do I need to right shift received 16bit data by SPI (Xpos and Ypos)? For example, I use 8bit mode in SPI. When I received 2 byte data - Xpos or Ypos, is only 12 most significant bits are qualified and I need to shift data to right: data = data >> 4. Is it true?

vadims
Автор

Hi! I Have the same touchscreen controler in a screen of 3, 5 inch wich I bought for my Raspberry PI. Do you know if is possible imprive the refresh rate? Because I need the image run fluently.

LoboSueltoOK
Автор

Hello,
Do you have sample code for cortroler ssd1963 and pic32 ?
Best regards,
Sébastien

Seb_pid