Interfacing and fixing touch problem in Arduino TFT 2.4" LCD shield [Re-upload]

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ธ.ค. 2018
  • Hello and welcome to this tutorial where I try to fix the touch function issue that I encountered while trying my LCD TFT shield, first the touch didn't seems to work at all, then we got some inverted axis direction problem and last some callibration issues but we got over them, Hope you like it.
    Please consider a Like and Subscribe
    Wiring and codes:
    surtrtech.com/2018/11/14/inte...
    TFT LCD 2.4" Touch screen shield tutorial for beginners:
    • TFT LCD 2.4" Touch scr...
    Bitmaps pictures from SD card on TFT LCD Shield:
    • Bitmaps pictures from ...
    Arduino Modules playlist:
    goo.gl/aYuv4Y
    Arduino Projects playlist:
    goo.gl/sL4Bge
    Facebook: / surtrtech
    Twitter: / surtrtech
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 35

  • @christianmarotta8891
    @christianmarotta8891 4 ปีที่แล้ว +3

    Dude you saved my life,good job man

  • @TellyS100
    @TellyS100 2 ปีที่แล้ว +1

    Very helpful! Thank you very much for taking the time to explain this. I was about to throw out all 4 displays I bought.

  • @fuxi1444
    @fuxi1444 3 ปีที่แล้ว

    Thank you very much, it worked for me.

  • @ask-wj2pf
    @ask-wj2pf 4 ปีที่แล้ว +1

    Thank you very very much it works for me too.

  • @thomasfolke7929
    @thomasfolke7929 ปีที่แล้ว

    Thank you from Germany you saved my day😉

  • @Svetoch-77
    @Svetoch-77 2 ปีที่แล้ว

    Ты лучший! Спасибо за Труд.

  • @Raphitech
    @Raphitech 3 ปีที่แล้ว

    thanks man you ar a lifesaver so you get a like and a subscribtion

  • @mohamedmistri8228
    @mohamedmistri8228 3 ปีที่แล้ว +1

    thank you very much

  • @mauricioalcantara720
    @mauricioalcantara720 5 ปีที่แล้ว

    Hello my friend, I got a big question, I know this TFT LCD was made specially for arduino, but, it would be posible to use it with a microchip PIC ??

    • @SurtrTech
      @SurtrTech  5 ปีที่แล้ว

      Yes, I saw some project with PIC18F4550... But I don't know much about it

  • @ask-wj2pf
    @ask-wj2pf 4 ปีที่แล้ว +1

    👍🏼👍🏻

  • @shafiatasnim3116
    @shafiatasnim3116 4 ปีที่แล้ว

    Can you please tell which editor you used?

  • @stefanofontebasso4437
    @stefanofontebasso4437 4 ปีที่แล้ว +1

    Hi, i have a problem, you touch is inverted by 180°, my touch is inverted by 90°, what can i do? i tested this tft paint and this is my problem

    • @SurtrTech
      @SurtrTech  4 ปีที่แล้ว

      Hello you don't have the same problem as mine, my problem was that the same variable is inverted but yours you have the "X" axis input is considered as "Y" axis input and the same way around.
      You can try this solution without modifying the library first:
      In the paint code you'll find some lines with
      #define YP A3
      #define XM A2
      You can try to switch A3 and A2, and test if it works.

  • @Jedrexxx
    @Jedrexxx 5 ปีที่แล้ว

    Hello, I have this same issue with this screen, i repaired an issue with X and Y axis but I can't solve the problem with an innacurate touch. I tried to change the values like on your video but it didn't help for me, stylus is still away from coloured line. Can you help me?

    • @SurtrTech
      @SurtrTech  5 ปีที่แล้ว

      Hello, if you solved the inverting issue, start modifiying the values, and try to add or substract bigger values until you get it right, then run the calibrating code it will give you the MIN and MAX values to be more precise.

    • @russelibrahim4045
      @russelibrahim4045 5 ปีที่แล้ว

      xpos = map(tp.y , TS_BOT,TS_TOP, 0, tft.width());
      ypos = map(tp.x, TS_RT,TS_LEFT, 0, tft.height());

    • @EspantoniusCZ
      @EspantoniusCZ 4 ปีที่แล้ว

      @@russelibrahim4045 Where should i put this in code?

    • @russelibrahim4045
      @russelibrahim4045 4 ปีที่แล้ว

      @@EspantoniusCZ look for the part of the code that it is currently been used and change it to this

  • @stefanofontebasso4437
    @stefanofontebasso4437 4 ปีที่แล้ว

    My touch is inverted, if i move from x0 to x1 in reality the direction is y0 to y1

    • @error-ts3xt
      @error-ts3xt 2 ปีที่แล้ว

      same issue....did u find the solution?

    • @tudorversoiu8138
      @tudorversoiu8138 2 ปีที่แล้ว +1

      @@error-ts3xt At the line which returns the point, swap the x and y

    • @error-ts3xt
      @error-ts3xt 2 ปีที่แล้ว

      @@tudorversoiu8138 yea i did that already thanks❤

  • @russelibrahim4045
    @russelibrahim4045 5 ปีที่แล้ว

    I fixed this with some reverse engineering.

    • @russelibrahim4045
      @russelibrahim4045 5 ปีที่แล้ว

      xpos = map(tp.y , TS_BOT,TS_TOP, 0, tft.width());
      ypos = map(tp.x, TS_RT,TS_LEFT, 0, tft.height());

    • @SurtrTech
      @SurtrTech  5 ปีที่แล้ว

      Cool ! Thanks for sharing

    • @maximilian5635
      @maximilian5635 5 ปีที่แล้ว

      @@russelibrahim4045 and where in the code ?

    • @russelibrahim4045
      @russelibrahim4045 5 ปีที่แล้ว

      @@maximilian5635 xpos = map(tp.y , TS_BOT,TS_TOP, 0, tft.width());
      ypos = map(tp.x, TS_RT,TS_LEFT, 0, tft.height());

    • @maximilian5635
      @maximilian5635 5 ปีที่แล้ว

      @@russelibrahim4045 So I have the problem that the program is mirror-inverted on the display Is the code of you for the solution at all?

  • @GabyZeballos
    @GabyZeballos ปีที่แล้ว

    no tienes ganas de hablar?