Forum Members section DIY Ferduino controller Touchscreen Problem ILI9481

Touchscreen Problem ILI9481  [SOLVED]

Ask here about your controller made with pieces purchased in other shops.

Post Number:#1 Post Sun Dec 23, 2018 11:36 am
Posts: 19
Topics: 5
Images: 2
Solve rating: 0
Joined: Sun Dec 09, 2018 11:27 am
Topics: 5
Age: 49
Location: Germany Norderstedt
Gender: Male
National Flag:
Germany
I have a problem! I want to calibrate my touch screen with UTouch
so I have the correct coordinates for the Ferduino controller.
But it is harder than I thought! I've tested countless libraries now. My board has 480x320 picel labeled
ILI9481 a 3.5 "display
should work with TFT_HX8357 but nothing happens
I can not do it!
The only calibration that works is from MCUFRIEND_kbv
called Touchscreen Calibration Native

Test result:

cx=172 cy=926 cz=180 LEFT, TOP, Pressure
cx=168 cy=921 cz=201 LEFT, MIDH, Pressure
cx=150 cy=117 cz=592 LEFT, BOT, Pressure
cx=521 cy=940 cz=268 MIDW, TOP, Pressure
cx=152 cy=921 cz=201 MIDW, BOT, Pressure
cx=877 cy=937 cz=420 RT, TOP, Pressure
cx=880 cy=530 cz=535 RT, MIDH, Pressure
cx=884 cy=109 cz=661 RT, BOT, Pressure
MCUFRIEND_kbv ID=0x9486  320 x 480

const int XP=8,XM=A2,YP=A3,YM=9; //320x480 ID=0x9486
const int TS_LEFT=139,TS_RT=903,TS_TOP=946,TS_BOT=370;
PORTRAIT CALIBRATION     320 x 480
x = map(p.x, LEFT=139, RT=903, 0, 320)
y = map(p.y, TOP=946, BOT=370, 0, 480)
Touch Pin Wiring XP=8 XM=A2 YP=A3 YM=9
LANDSCAPE CALIBRATION    480 x 320
x = map(p.y, LEFT=946, RT=370, 0, 480)
y = map(p.x, TOP=903, BOT=139, 0, 320)


The TFT display is plugged directly onto my Arduino Mega
on the pins
A0-A4 GND- 5V- 3.3V reset
PWM 2-PWM12

Properties: //what i've buy
This TFT-LCD screen module with LCD break, SD card and Flash design. So it's a powerful extension module for your project.
Dimension: 3.5 inches
Controller: ILI9481 or ILI9488 driver (default random) //only ILI9481 works but not in UTOUCH
Resolution: 480x320
Data bits: 8 - 16
Interface pin number: 37 pin
Distance: 1 mm

This pin arrangement does not work!
because are not the right one
// Initialize display
// ------------------
// Set the pins to the correct ones for your development board
// -----------------------------------------------------------
// Standard Arduino Uno/2009 Shield            : <display model>,19,18,17,16
// Standard Arduino Mega/Due shield            : <display model>,38,39,40,41
// CTE TFT LCD/SD Shield for Arduino Due       : <display model>,25,26,27,28
// Teensy 3.x TFT Test Board                   : <display model>,23,22, 3, 4
// ElecHouse TFT LCD/SD Shield for Arduino Due : <display model>,22,23,31,33
//
// Remember to change the model parameter to suit your display module!
UTFT    myGLCD(ILI9481,38,39,40,41); //3.5" TFTLCD for arduino 2560 from mcufriend.com

// Initialize touchscreen
// ----------------------
// Set the pins to the correct ones for your development board
// -----------------------------------------------------------
// Standard Arduino Uno/2009 Shield            : 15,10,14, 9, 8
// Standard Arduino Mega/Due shield            :  6, 5, 4, 3, 2
// CTE TFT LCD/SD Shield for Arduino Due       :  6, 5, 4, 3, 2
// Teensy 3.x TFT Test Board                   : 26,31,27,28,29
// ElecHouse TFT LCD/SD Shield for Arduino Due : 25,26,27,29,30
//
UTouch  myTouch( 6, 5, 4, 3, 2);


In The Touchscreen Calibration Native is only

#include <Adafruit_GFX.h>
#include <MCUFRIEND_kbv.h>
MCUFRIEND_kbv tft;


In many Sketches the Pins are correct but nothing happens
display stays white
#define LCD_RST A4
#define LCD_CS A3
#define LCD_RS A2
#define LCD_WR A1
#define LCD_RD A0

#define LCD_D0 8
#define LCD_D1 9
#define LCD_D2 2
#define LCD_D3 3
#define LCD_D4 4
#define LCD_D5 5
#define LCD_D6 6
#define LCD_D7 7


I hope somebody can help me to integrate my display.
I still have a 3.2 "display but I have not worked on it yet.
I would like to first get the 3.5 "display to run
Last edited by Fernando Garcia on Mon Sep 23, 2019 3:04 pm, edited 2 times in total.
Reason: Please use tags [code][/code] to post any code here.
206 gallon tank, 42 gallon technic sump, system triton core 7, 8 dosing Pumps, AM Aquarius, AM Reef LED, AM Ocean LED at TC420, AM Temp controller, Skimmer Bubble Magus Curve M7, 3 Tunze flow pumps at Tunze Multi Controller 7096, AM refill system pro

Post Number:#2 Post Sun Dec 23, 2018 1:33 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Sorry, this model is not compatible with Ferduino and this model is not in my part list. So I can't help you.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#3 Post Mon Dec 24, 2018 11:48 pm
Posts: 19
Topics: 5
Images: 2
Solve rating: 0
Joined: Sun Dec 09, 2018 11:27 am
Topics: 5
Age: 49
Location: Germany Norderstedt
Gender: Male
National Flag:
Germany
this is my Touchscreen
206 gallon tank, 42 gallon technic sump, system triton core 7, 8 dosing Pumps, AM Aquarius, AM Reef LED, AM Ocean LED at TC420, AM Temp controller, Skimmer Bubble Magus Curve M7, 3 Tunze flow pumps at Tunze Multi Controller 7096, AM refill system pro

Post Number:#4 Post Wed Dec 26, 2018 3:28 pm
Posts: 19
Topics: 5
Images: 2
Solve rating: 0
Joined: Sun Dec 09, 2018 11:27 am
Topics: 5
Age: 49
Location: Germany Norderstedt
Gender: Male
National Flag:
Germany
Can you told me some touchscreen 3,5“ or i know must fit in code 7,0“ that is compatible with uTouch and UTFT that I can buy to run Ferduino Aquarium Controller
206 gallon tank, 42 gallon technic sump, system triton core 7, 8 dosing Pumps, AM Aquarius, AM Reef LED, AM Ocean LED at TC420, AM Temp controller, Skimmer Bubble Magus Curve M7, 3 Tunze flow pumps at Tunze Multi Controller 7096, AM refill system pro

Post Number:#5 Post Wed Dec 26, 2018 10:44 pm
Posts: 19
Topics: 5
Images: 2
Solve rating: 0
Joined: Sun Dec 09, 2018 11:27 am
Topics: 5
Age: 49
Location: Germany Norderstedt
Gender: Male
National Flag:
Germany
I've an Pin settings for my ILI9486 3,5" Ilitek Touchscreen in UTouch Calibration
to fit for Ferduino Code

// Initialize display
// ------------------
// Set the pins to the correct ones for your development board
// -----------------------------------------------------------
// Standard Arduino Uno/2009 Shield            : <display model>,19,18,17,16
// Standard Arduino Mega/Due shield            : <display model>,38,39,40,41
// CTE TFT LCD/SD Shield for Arduino Due       : <display model>,25,26,27,28
// Teensy 3.x TFT Test Board                   : <display model>,23,22, 3, 4
// ElecHouse TFT LCD/SD Shield for Arduino Due : <display model>,22,23,31,33
//
// Remember to change the model parameter to suit your display module!
UTFT    myGLCD(ILI9486,A2,A1,A3,A4); //3.5" TFTLCD for arduino 2560 from mcufriend.com

// Initialize touchscreen
// ----------------------
// Set the pins to the correct ones for your development board
// -----------------------------------------------------------
// Standard Arduino Uno/2009 Shield            : 15,10,14, 9, 8
// Standard Arduino Mega/Due shield            :  6, 5, 4, 3, 2
// CTE TFT LCD/SD Shield for Arduino Due       :  6, 5, 4, 3, 2
// Teensy 3.x TFT Test Board                   : 26,31,27,28,29
// ElecHouse TFT LCD/SD Shield for Arduino Due : 25,26,27,29,30
//
UTouch  myTouch(31,32,33,34,35);


Pin Settings put to Analog A0-A4
LCD_RS = A2
LCD_WR = A1
LCD_CS = A3
LCD_RST = A4
LCD_RD = A0

Pin Settings put to Digital D30-D37
LCD_D2 = D35
LCD_D3 = D34
LCD_D4 = D33
LCD_D5 = D32
LCD_D6 = D31
LCD_D7 = D30
LCD_D0 = D37
LCD_D1 = D36

5V = 5V
3,3V = 3,3V
GND = GND

When I upload Utouch Calibration display stay white nothing happens
what is my mistake what is the correct pin setting for my Display
I use many different Settings for pins but still white no calibration

Image
206 gallon tank, 42 gallon technic sump, system triton core 7, 8 dosing Pumps, AM Aquarius, AM Reef LED, AM Ocean LED at TC420, AM Temp controller, Skimmer Bubble Magus Curve M7, 3 Tunze flow pumps at Tunze Multi Controller 7096, AM refill system pro

Post Number:#6 Post Thu Dec 27, 2018 4:16 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

As I told this TFT is not in my part list and is not compatible with my code. There's no support for this hardware here.

Also you can buy a TFT 5" or 7" with resolution 800 x 480 and controller SSD1963 but you should edit the code by yourself.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.




Return to DIY Ferduino controller





Who is online

Users viewing this topic: No registered users and 0 guests

cron