How to calibrate your touch display

STEP 1:

Prepare your mega2560board, TFT shield, TFT display.

Use your data cable connect mega2560 to your computer.

STEP2:

Download Arduino IDE 

Download Library URTouch 

Download Library UTFT 

Unzip all the ZIP, install Arduino IDE in your computer

Open file folder: Arduino-nightly-libraries, put your unzip file: ’URTouch and ’UTFT’in libraries file folder.

STEP3:

Open arduino.exe in Arduino file folder

Click Tools-Board-Arduino Mega or Mega 2560

Click Tools-Port-COM4(Arduino Mega or Mega 2560)

And

Open file: libraries\URtouch\examples\Arduino\URTouch_Calibration\URTouch_Calibration.ino

STEP4:

find code line (#define TOUCH_ORIENTATION  PORTRAIT)

Check your display size

If your display <= 3.2inch, the code should be: #define TOUCH_ORIENTATION  PORTRAIT

If your display>3.2inch, the code must change to: #define TOUCH_ORIENTATION  LANDSCAPE

STEP5:

find code line (UTFT    myGLCD)

If your screen is 4.3inch, change code to ITDB43

If your screen is5.0inch, change code to ITDB50

If your screen is7.0inch, change code to CTE70

Save your code (Ctrl+S)

Click upload button

STEP6:

Return your Mega2560 display, you can see the calibration shows like below:

Click the touch screen,

Press the highlighted symbol +, follow the center information, hold and release

The result should be like this

You need these three lines for the next steps.

STEP7:

Open file: libraries\URtouch\examples\Arduino\URTouch\URTouchCD.h as .txt file

Change these three lines to your calibration results

Save file (Ctrl+S), 

Congratulations, you can start your projects now.

2021-07-07 12:00:00 / other / Comments 0
0

Comprehensive Guide to Buck, Boost, Step-Up, and Step-Down Voltage Regulators for Engineers
Dive into the world of voltage regulators with our expert guide. Discover the nuances between Buck, Boost, Step-Up, and Step-Down converters. Learn about their applications, key technical...
13.06.2024,
Kun Xiang
Comments 0
Eckstein - Warenpost
Neue Versandmethode ist schon da! Als Spezialdistributor für elektronische Komponente verfügt Eckstein seit jeher über ein eigenes Lager, um einen zeitnahen und effizienten Service zu
17.03.2022,
Comments 0
Arduino UNO Mini Limited Edition Open Box
We got some Arduino UNO Limited Edition board, there will be shipping to our storehouse in 1 week. Today we receive a sample, so I’d like to open box, and show you guys. Open
02.03.2022,
Comments 0
Install windows11 on raspberry pi 4
Today, I’ll show you how to run windows11 on raspberry First of all, you need download some tools Windows on raspberry imager(https://dl.orangedox.com/WoR-Release-2.2.2?dl=1) Next
20.07.2021,
Comments 0
Most Populaire Raspberry Pi Operating System, how to install raspberry pi OS
Today, I'll show you how to install raspberry pi OS, and show you the most populaire raspberry OS HOW TO INSTALL RASPBERRY OS First of all, we need a tool to install raspberry OS, I I recommend
19.07.2021,
Comments 0
Light up your first LED with Arduino IDE
STEP 1 Open up your Arduino IDE STEP 2 Connecting the Arduino to the computer USB STEP 3 Tools--board,choose your Arduino Tools--Port,choose COM STEP 4
09.07.2021,
Comments 0
What should you start with Arduino
First of all,we must know what is Arduino? Arduino is an open-source electronics platform based on easy-to-use hardware and software. The Arduino hardware and software was designed for artists,
09.07.2021,
Comments 0
How to calibrate your touch display
STEP 1: Prepare your mega2560board, TFT shield, TFT display. Use your data cable connect mega2560 to your computer. STEP2: Download Arduino IDE  Download Library URTouch 
07.07.2021,
Comments 0

Add product directly to the cart:

You can search by item no. or EAN/GTIN to quickly add the product to the cart.

Contact data