EVE2-38G question about of the touch calibration

FTDI/Bridgetek EVE2 & EVE3 & EVE4 SPI TFT Series by Matrix Orbital

Moderator: Mods

Post Reply
TFTLCDCyg
LCD?
Posts: 7
Joined: Sun Mar 24, 2019 4:53 pm

EVE2-38G question about of the touch calibration

Post by TFTLCDCyg »

How I can to calibrate the touch screen of EVE2-38G on arduino environment?

Daniel Divino
Matrix Orbital
Matrix Orbital
Posts: 247
Joined: Thu Sep 24, 2015 9:38 am

Re: EVE2-38G question about of the touch calibration

Post by Daniel Divino »

Hi TFTLCDCyg,

Welcome to the forums!

The EVE2-38G uses a FocalTech GT911 touch controller and in order to enable and calibrate the EVE2-38G's capacitive touch panel, you will need to upload a touch configuration file to the EVE2's FT813 chip.This is detailed further in sections 6.6.2 and 6.6.3 of FTDI's Selecting an LCD Display application note published on their website here :

https://brtchip.com/wp-content/uploads/ ... isplay.pdf

The configuration file is considerably large, and will take up a large amount of code space in the Arduino's memory, so it is recommended that you purchase a shield, like our EVE2-SHIELD, with SD card support. You will be able to store the touch configuration file on the SD card, and upload it to the FT813 upon startup, freeing up a lot of Arduino code space.

We will be releasing the EVE2's successor, the EVE3, in the near future. The EVE3 will use FTDI/Bridgtek's new BT815 chip, which will come pre-loaded with the touch configuration file. The BT815 will eliminate the need for uploading the large configuration file, and will reduce the touch setup process down to one register change.

Hopefully this answers your question. If you would like a code example, please let me know.

Cheers,
Daniel
Daniel Divino
Technical Support
Matrix Orbital

ChrisBack
LCD?
Posts: 5
Joined: Wed Jun 19, 2019 2:22 am

Re: EVE2-38G question about of the touch calibration

Post by ChrisBack »

Dear sir,
I also struggle to bring my cofig into function. I try to use the arduino "EveSchool" project with an arduino uno, an EVE2-SHIELD and an EVE2-50G- capacitive touch screen. What i already tried to do is to change the lib from resistive to capacitive touch screen. The display shows all the different screens but the touch will not work at all. What i have tried to do is to sent the additional touch config while the ft8xx init is running. In the function void FT81x_Init(void) i added Send_CMD(TOUCH_DATA_U8) and also tried Send_CMD(TOUCH_DATA_U32). The code for the data is in a seperate header file.
Could you help me out with a code example or an optimized library so i can use the touch screen?

Thank you very much.
Cheers,
Chris

Daniel Divino
Matrix Orbital
Matrix Orbital
Posts: 247
Joined: Thu Sep 24, 2015 9:38 am

Re: EVE2-38G question about of the touch calibration

Post by Daniel Divino »

Hi Chris,

I have created a program that will specifically load the capacitive touch calibration file onto the EVE display. The example includes 2 different calibration functions. One function (Calibrate_Cap_Touch) will read the calibration values from the SD card and upload them to the display. You will need an SD card in order to use this function. Please make sure to copy over the Cap_Cal.bin file to the SD card. The Cap_Cal.bin file is located in the Files for SD card folder.

The other function (MO_Calibrate) will read the calibration values from a header file and upload the data to the display. Please note, the calibration file is rather large and therefore I recommend storing the calibration values on the SD card, as opposed to your Arduino's flash memory.

Once the display is calibrated, three dots will appear on screen, along with labels listing where you are touching on the screen.

Please give this demo a shot, and let me know if you have any other questions or concerns.

Cheers,
Daniel
Attachments
Test_Cap_Touch.zip
(24.91 KiB) Downloaded 398 times
Daniel Divino
Technical Support
Matrix Orbital

ChrisBack
LCD?
Posts: 5
Joined: Wed Jun 19, 2019 2:22 am

Re: EVE2-38G question about of the touch calibration

Post by ChrisBack »

Hey Daniel,
thank you very much for your help. The touch screen works fine now. I included your code into the EVE School project and the touch works after you calibrate the touch on the calibration screen.
Thumbs up (y) for the superb support.

Cheers,
Chris

msuresh168
LCD?
Posts: 9
Joined: Tue Jul 02, 2019 9:57 pm

Re: EVE2-38G question about of the touch calibration

Post by msuresh168 »

Hi Danile,
Now I am working with your capacitive touch screen display. I used your MO_Calibrate code. Because I don't have SD card option. I have modified few things in your MO_Calibrate code. But the touch functions are never working. Herewith I have attached my full project code also. Please let me know, is there any limitation for your display board?. Please help me.
Attachments
IMG_20190705_163320.jpg
IMG_20190705_163320.jpg (2.17 MiB) Viewed 7674 times
Project.rar
(908.46 KiB) Downloaded 318 times

Daniel Divino
Matrix Orbital
Matrix Orbital
Posts: 247
Joined: Thu Sep 24, 2015 9:38 am

Re: EVE2-38G question about of the touch calibration

Post by Daniel Divino »

Hi Suresh,

It looks like your photo didn't upload properly. Please try uploading the photo again.

Also, are you sure you are using a capacitive touch screen? In your other posts, it looks like you are using a resistive touch screen.

Cheers,
Daniel
Daniel Divino
Technical Support
Matrix Orbital

msuresh168
LCD?
Posts: 9
Joined: Tue Jul 02, 2019 9:57 pm

Re: EVE2-38G question about of the touch calibration

Post by msuresh168 »

Hi Daniel,
Thanks for your reply. I uploaded new photo. Please go through my attachments. Yes, Daniel. I bought two types of display. I bought resistive and capacitive also. Currently I worked with your resistive display. But I have to improve touch accuracy. I will handle that issue. If I cannot fix the issue, I will ask you. As of now I am working with capacitive touch screen display. Yesterday I got the above issue. Means that, the capacitive touch is never working. I have attached my code and snapshot also. If you need more explanation, please go with my previous reply in this same post. I explained that how i used my calibrator code.
Attachments
Project.rar
(908.46 KiB) Downloaded 317 times
IMG_20190705_163320.jpg
IMG_20190705_163320.jpg (2.17 MiB) Viewed 7617 times

Daniel Divino
Matrix Orbital
Matrix Orbital
Posts: 247
Joined: Thu Sep 24, 2015 9:38 am

Re: EVE2-38G question about of the touch calibration

Post by Daniel Divino »

Hi Suresh,

Thank you for clarifying.

Could you try replacing the following lines in MO_Calibrate:

Code: Select all

   //Ft_Gpu_Hal_WrMemFromFlash(phost,RAM_G,TOUCH_DATA_U8,sizeof(TOUCH_DATA_U8));
    Ft_Gpu_Hal_WrMemFromFlash(phost,RAM_CMD,TOUCH_DATA_U8,sizeof(TOUCH_DATA_U8));
with

Code: Select all

Gpu_Hal_WrCmdBuf(phost, CTOUCH_CONFIG_DATA_G911, TOUCH_DATA_LEN);
Then give it a shot.

Cheers,
Daniel
Daniel Divino
Technical Support
Matrix Orbital

msuresh168
LCD?
Posts: 9
Joined: Tue Jul 02, 2019 9:57 pm

Re: EVE2-38G question about of the touch calibration

Post by msuresh168 »

Hi Daniel,
Awesome. It's working well. Thank you so much for your support.

Post Reply