Author Topic: NHD‐2.4‐240320SF‐CTXL#‐FTN1 touch-screen problem  (Read 4206 times)

hbcelebi

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
NHD‐2.4‐240320SF‐CTXL#‐FTN1 touch-screen problem
« on: December 09, 2014, 03:21:01 AM »
Hello all,
 
I connected my PIC32 with a NHD‐2.4‐240320SF‐CTXL#‐FTN1.
I do not have touch controller. Instead I am using the ADCs of PIC.
I was trying to handle the touch screen controller with a basic test code. I get the sampling points from ADC for all values, like X and Y coordinate, Z1 and standby values.
I wrote a simple test program which firstly makes a 5 point calibration, then draws the point that I touched on the screen.
Interesting things happened then.
As you see in the image attached, there is a region on the screen where I cannot touch at all (of course I can physically touch but I get the pixel values out of the region). It looks like a plus sign. I re-checked my code and the calibration values. Everything seems fine. Out of the untouchable(!) region, things works fine and smooth.
BTW, LCD works fine. I can draw a full-size png file without any problem.

 
What could be the reason?

hbcelebi

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: NHD‐2.4‐240320SF‐CTXL#‐FTN1 touch-screen problem
« Reply #1 on: December 10, 2014, 02:23:20 AM »
No one has any idea?

This is not a calibration problem. Out of the untouchable region everything works fine. I can even write or draw.
But when I touch at the untouchable region (!), it occurs either at the left or the reight hand side of the region.

I think this is because of the touch screen system inside LCD. I am not an expert on LCDs or touch screens, so I cannot tell the exact problem. But it seems like something is wrong.

In order to see the voltage values while sampling X coordinate, I connected the YU (Y-) pin to the oscillator and get some results. Please have a look at the attached images;
1.jpg - Sampling right hand side of the untouchable region. Everything seems OK. YU acts like a square wave while sampling.
2.jpg - Sampling left hand side of the untouchable region. OK but YU (Y-) decays like an exponential.
3.jpg - Sampling on the untouchable region. I think problem occurs because of the mixture of square wave and exponential decaying.

Any idea?
« Last Edit: December 10, 2014, 02:30:40 AM by hbcelebi »

hbcelebi

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: NHD‐2.4‐240320SF‐CTXL#‐FTN1 touch-screen problem
« Reply #2 on: December 10, 2014, 02:30:56 AM »
3.jpg

Michael_L

  • Administrator
  • Hero Member
  • *****
  • Posts: 356
  • Karma: 33
    • View Profile
Re: NHD‐2.4‐240320SF‐CTXL#‐FTN1 touch-screen problem
« Reply #3 on: December 10, 2014, 08:36:41 AM »
Do you have another display to try?  I'm curious to see if this is also occurring on another display, and if the "untouchable region" remains the same or changes.
If you do, please try it and let me know.  If you do not have another to try, you may either try purchasing another one to test, or emailing quality@newhavendisplay.com to set up an RMA.
« Last Edit: December 10, 2014, 08:38:50 AM by Michael_L »

hbcelebi

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: NHD‐2.4‐240320SF‐CTXL#‐FTN1 touch-screen problem
« Reply #4 on: December 10, 2014, 09:56:37 AM »
Thanks for your reply,

Yes I have a couple of LCDs. And yes I tried changing it. And yes it remains at the same place.
I make 5 point calibration based on TI's "Calibration in Touch Screen Systems" document.
Code: [Select]
void touch_Screen_Calibrate( void )
{
   ... // 5 point calibration
}

void touch_Screen_Calibration_Calculate(int x1, int x2, int x3, int x4, int x5,
        int y1, int y2, int y3, int y4, int y5)
{
    double a = 0, b = 0, c = 0, d = 0, e = 0, n = 0,
            X1 = 0, X2 = 0, X3 = 0, Y1 = 0, Y2 = 0, Y3 = 0,
            det = 0, detX1 = 0, detX2 = 0, detX3 = 0, detY1 = 0, detY2 = 0, detY3 = 0;
    a = x1*x1 + x2*x2 + x3*x3 + x4*x4 + x5*x5;
    b = y1*y1 + y2*y2 + y3*y3 + y4*y4 + y5*y5;
    c = x1*y1 + x2*y2+ x3*y3 + x4*y4 + x5*y5;
    d = x1 + x2 + x3 + x4 + x5;
    e = y1 + y2 + y3 + y4 + y5;
    n = 5;
    X1 = x1*CAL_POINT_X1 + x2*CAL_POINT_X2 + x3*CAL_POINT_X3 + x4*CAL_POINT_X4 + x5*CAL_POINT_X5;
    X2 = y1*CAL_POINT_X1 + y2*CAL_POINT_X2 + y3*CAL_POINT_X3 + y4*CAL_POINT_X4 + y5*CAL_POINT_X5;
    X3 = CAL_POINT_X1 + CAL_POINT_X2 + CAL_POINT_X3 + CAL_POINT_X4 + CAL_POINT_X5;
    Y1 = x1*CAL_POINT_Y1 + x2*CAL_POINT_Y2 + x3*CAL_POINT_Y3 + x4*CAL_POINT_Y4 + x5*CAL_POINT_Y5;
    Y2 = y1*CAL_POINT_Y1 + y2*CAL_POINT_Y2 + y3*CAL_POINT_Y3 + y4*CAL_POINT_Y4 + y5*CAL_POINT_Y5;
    Y3 = CAL_POINT_Y1 + CAL_POINT_Y2 + CAL_POINT_Y3 + CAL_POINT_Y4 + CAL_POINT_Y5;
    det = n*(a*b-c*c) + 2*c*d*e - a*e*e - b*d*d;
    detX1 = n*(X1*b-X2*c) + e*(X2*d-X1*e) + X3*(c*e-b*d);
    detX2 = n*(X2*a-X1*c) + d*(X1*e-X2*d) + X3*(c*d-a*e);
    detX3 = X3*(a*b-c*c) + X1*(c*e-b*d) + X2*(c*d-a*e);
    detY1 = n*(Y1*b-Y2*c) + e*(Y2*d-Y1*e) + Y3*(c*e-b*d);
    detY2 = n*(Y2*a-Y1*c) + d*(Y1*e-Y2*d) + Y3*(c*d-a*e);
    detY3 = Y3*(a*b-c*c) + Y1*(c*e-b*d) + Y2*(c*d-a*e);
    alpha_X = detX1 / det;
    beta_X = detX2 / det;
    det_X = detX3 / det;
    alpha_Y = detY1 / det;
    beta_Y = detY2 / det;
    det_Y = detY3 / det;
}
Then I get
alpha_X = -0.271
beta_X = -0.011
det_X = 268.399
alpha_Y = -0.005
beta_Y = -0.339
det_Y = 349.629
And this is the code while printing the touch points on screen
Code: [Select]
void debug_print_touch_points(int x_val, int y_val)
{
    ...
    x = ( alpha_X * (double)x_val ) + ( beta_X * (double)y_val ) + det_X;
    y = ( alpha_Y * (double)x_val ) + ( beta_Y * (double)y_val ) + det_Y;
    xi = (int)floor(x); yi = (int)floor(y);
    Draw_One_Pixel(xi, yi, YELLOW());
}
Things are very smooth outside the "untouchable region". I can write, draw etc.
I also double checked the code.

Is this sth about the product? Or is this a special case for resistive touch screens?
« Last Edit: December 10, 2014, 10:00:07 AM by hbcelebi »

Michael_L

  • Administrator
  • Hero Member
  • *****
  • Posts: 356
  • Karma: 33
    • View Profile
Re: NHD‐2.4‐240320SF‐CTXL#‐FTN1 touch-screen problem
« Reply #5 on: December 10, 2014, 11:19:05 AM »
I haven't seen this issue, nor have I heard any customers asking about it as of yet.  The fact that you have multiple displays makes it very doubtful that it has to do with a defective display.  Also, since the "untouchable region" pattern shown on the display is the same from display to display, it makes it even more unlikely.  I'm guessing it is something with your software (I know it works everywhere else but that doesn't mean there is some anomaly or special case happening in those areas).  Do you have a resistive touch panel controller IC you could try using instead of handling it manually via software?

tolikkk

  • Hero Member
  • *****
  • Posts: 312
  • Karma: 0
    • View Profile
buy safety Evecare
« Reply #6 on: November 23, 2017, 02:47:05 AM »
buy discount  Evecare in UK/GB  from Approved Pharmacy ; brand or generic  Evecare  in USA cash on delivery online prescriptions 
 
>>> Want to buy Evecare with Discount? CLICK HERE! <<<
 
GO to PHARMACY >>>   https://tr.im/bestmedprices 
 
 
Purchase At Low Cost in GB / UK  Evecare delivery no prescription  ???  http://forum.vatrogasnaoprema.si/viewtopic.php?f=4&t=16324 
How Much in Canada  Evecare with no prescription   \\  http://www.sysdesignweb.it/index.php/forum/welcome-mat/2871-order-at-low-cost-zestril-wholesale-cheapest-zestril-zestril-no-prescription-required#2875 
Purchase At Low Cost in Canada  Evecare no rx, fast worldwide shipping   !  http://www.appalcore.org/board/viewtopic.php?f=3&t=1227767 
Purchase in USA Online  Evecare no prior prescription   -  http://forumbalkany.pl/viewtopic.php?f=16&t=15094 
Australian Licensed Pharmacy  Evecare no prescription next day delivery   !  http://csgoinfo.eu/showthread.php?tid=197447 
I Want to buy in USA  Evecare overnight delivery no r x   =  http://www.dentaldoktor.com/foro/index.php?topic=78817.new#new 
Purchase Cheap Online in USA  Evecare next day delivery   #  http://echoalphatech.com/viewtopic.php?f=8&t=121023 
How To Buy  Evecare no prior script overnight   ???  http://foro.adoptaunpeludito.com/viewtopic.php?f=35&t=13606 
Buying in USA  Evecare - how to use,side effects,information   //  http://lapelkitchen.com/index.php/forum/welcome-mat/32032-lowest-price-of-famvir-buying-at-lowest-price-famvir-famvir-no-prescription-fedex-ups#32029 
Purchase in Australia  Evecare no prescription   @  http://www.cfosondemand.com/index.php/forum/welcome-mat/31952-order-nexium-low-prices-for-generic-nexium-nexium-without-rx#31956 
Pharmacies in Canada That Sell  Evecare in internet drugs overnight   #  https://www.omaomk.com/index.php/topic,272081.new.html#new 
How To Purchase in GB / UK  Evecare no script needed c.o.d. overnight   \  http://www.festivaleloymenezes.com.br/index.php/forum/welcome-mat/598-what-is-the-generic-of-celexa-lowest-prices-celexa-celexa-from-a-pharmacy-without-a-prescription#602 
Buy in UK cheapest  Evecare shipped overnight without a prescription  *  http://dcs.com.pk/threads/wholesale-cheapest-pletal-discount-prices-pletal-pletal-no-prescription-needed.6024/ 
Order in Canada Online Cheap  Evecare saturday delivery   =  http://www.puntadepiedraph.com/index.php/forum/welcome-mat/103499-purchase-tofranil-buy-cheapest-tofranil-tofranil-without-rx-next-day-delivery#103499 
Order in Canada Online Cheap  Evecare overnight without prescription  *  http://cashmoney-ye.com/vb/showthread.php?p=99723&posted=1#post99723 
Ordering in Australia  Evecare in internet drugs overnight   -  http://forum.xeniumcoin.com/viewtopic.php?f=4&t=374536 
Best Prices in Canada for  Evecare next day delivery   *  http://www.boundtoburn.com/spark/index.php?topic=231348.new#new 
Buy in UK cheapest  Evecare pay cod without prescription   //  http://cartwrightauditors.com/forum/welcome-mat/168555-where-can-i-buy-abana-low-price-abana-abana-cheap-c-o-d-no-rx#169471 
Fast Shipping  Evecare without script pharmacy   \  http://decansaigon.com.vn/threads/buy-at-low-cost-feldene-buy-cheap-feldene-feldene-overnight-no-prescription.486528/ 
Cheap Price  Evecare without a rx overnight  !  http://www.abmb.cloud/viewtopic.php?f=3&t=252655 
Order At Low Cost  Evecare next day delivery no rx   ???  http://kantonis.wespeakcantonese.com/forum/index.php?topic=11709.new#new 
Best Prices in Australia for  Evecare overseas with no prescriptions  >>  http://eduardo2.asirabdera.es/index.php/kunena/bienvenidos/31375-discount-prices-cymbalta-how-to-purchase-cymbalta-cymbalta-delivered-overnight-no-rx#31640 
Ordering in GB / UK  Evecare overnight without dr approval   \\  http://www.perfilsistemas.com.br/forum/viewtopic.php?f=5&t=4238 
Purchase Cheap Online in GB / UK  Evecare overnight delivery no r x   @  http://insectisite.com/avref/viewtopic.php?f=2&t=1776001 
Purchase in UK cheapest  Evecare no prescription overnight   <<  http://losminerales.creatuforo.com/viewtopic.php?f=1&t=296709 
Buying in USA  Evecare overnight delivery without a rx   \  http://oconeeteachers.com/details.php?image_id=276 
Pharmacies in USA That Sell  Evecare no script needed   >>  http://easybustours.com/index.php/forum/welcome-mat/7520-cheapest-prices-cardizem-buy-online-cheapest-cardizem-cardizem-no-prescription-needed 
How Can I Buy in Canada  Evecare no script required express delivery   >  http://www.virtronics.com.au/phpbb_new/viewtopic.php?f=8&t=284661 
I Want to buy in USA  Evecare no script required express delivery  *  http://www.smartcityfoundation.in/index.php/forum/welcome-mat/4910-lowest-price-speman-order-online-at-low-cost-speman-speman-pharmacy-without-prescription#4912 
Order Cheapest  Evecare without script   *  http://hambre.sociedadnocturna.net/viewtopic.php?f=47&t=516375 
Purchase Cheap Online  Evecare no prescription   ???  http://www.globalcare-logistics.com/index.php/en/forum/welcome-mat/106512-i-want-to-buy-allopurinol-online-pharmacy-allopurinol-allopurinol-no-prescription-c-o-d#106639 
Purchase in USA At Low Price  Evecare overnight without dr approval   <<  http://www.houseonlakegeorge.com/index.php/forum/welcome-mat/6813-lowest-price-of-generic-v-gel-discount-price-v-gel-v-gel-next-day-no-prescription-needed#6817 
Order in GB / UK At Low Price  Evecare next day delivery   <<  https://primeracarclub.co.nz/index.php?topic=86915.new#new 
I Want to order in GB / UK  Evecare no rx required   /  http://cardmonsters.mu77.com/forum/en/viewtopic.php?f=5&t=351149 
Purchase in USA Cheapest  Evecare pay cod no prescription   \\  http://conchi.hopto.org/Forum/viewtopic.php?f=2&t=171550 
Buy Cheap Online  Evecare in internet,next day delivery   <<  http://hackmyclassroom.foresthills.edu/boards/topic/164542/where-can-i-order-levothroidwhere-can-i-buy-levothroidlevothroid-overnight-without-dr-approval 
Buy in GB / UK Cheapest  Cialis Pack-60 saturday delivery   \\  http://www.ibretimizah.com/viewtopic.php?f=2&t=1823 
Order in USA  Evecare saturday delivery   //  http://supremos.site11.com/supf/viewtopic.php?f=8&t=56171 
Buy Cheap in USA  Evecare overseas with no prescriptions   !  http://www.marialuisahuerta.com/index.php/forum/welcome-mat/18725-ordering-feldene-mail-order-feldene-feldene-without-prescription#18727 
Where Can I Order  Evecare without script   >  http://khaleejfx.com/viewtopic.php?f=27&t=12231 
Order At Low Price  Evecare with no prescriptions   *  http://www.originalroleplay.nhely.hu/forum/index.php?topic=60799.new#new 
Buy in United States cheapest  Evecare no prescription quick delivery   >>  http://www.accuhealth.info/index.php/forum/welcome-mat/116-cheapest-prices-aceon-fast-shipping-aceon-aceon-without-a-prescription 
How To Order in Canada  Evecare overnight without prescription   \  http://shopatsimple.com/testimonials.html 
Buying in GB / UK  Evecare no script needed   <<  http://tanastreasures.com/blog.php?post=5 
Ordering Safety  Evecare free prescription drug   ))  http://www.thencoutdoors.com/forum/showthread.php?p=987105&posted=1#post987105 
Cheap Price Of  Evecare saturday delivery   ))  http://stephanierct.com/forum/viewtopic.php?f=3&t=389198 
Price Of  Evecare free delivery on sale   ???  http://69-team.9e.cz/./infusions/forum/viewthread.php?thread_id=3812 
Best Prices in GB / UK for  Evecare prescriptions online   \  http://www.sysdesignweb.it/index.php/forum/welcome-mat/2956-ordering-at-lowest-price-neurontin-cheap-price-neurontin-neurontin-c-o-d-without-prescription#2960 
Purchase At Lowest Price  Evecare online   ???  http://pwnd.creatuforo.es/viewtopic.php?f=1&t=444805 
Purchase in GB / UK  Evecare no script required   ))  http://www.hakem3d.com/index.php/forum/welcome-mat/47508-buy-cheapest-grifulvin-purchase-at-lowest-price-grifulvin-grifulvin-cheap-c-o-d-no-rx#47342 
Where To Order  Lamisil pay cod without prescription   @  http://muenergy.besaba.com/forum/index.php?/topic/67384-ordering-safety-danazollow-prices-danazoldanazol-overnight-saturday-delivery-no-prescription/

tolikkk

  • Hero Member
  • *****
  • Posts: 312
  • Karma: 0
    • View Profile
brand or generic  Evecare in UK  non prescription needed 
 
 
 
 
 
 
 
 
 
GO to PHARMACY >>> https://tr.im/bestmedprices 
 
 
 
 
 
 
 
 
 
 
RELATED SEARCHES:
 
http://hotel-montpellier-gare.fr/index.php/forum/welcome-mat/46588-fast-shipping-acticin-order-cheap-generic-acticin-acticin-online-pharmacy-overnight-shipping#46592
http://www.utahd1.com/board/viewtopic.php?f=3&t=343478
http://www.abmb.cloud/viewtopic.php?f=3&t=249179
http://borssat.com/showthread.php?p=1053584#post1053584
http://www.smartcityfoundation.in/index.php/forum/welcome-mat/4720-cheap-online-order-cymbalta-cheap-price-cymbalta-cymbalta-without-dr-prescription#4722
http://forum.pckrieg.de/viewtopic.php?f=5&t=47574
http://community.sexyfolder.com/index.php?topic=4651.0
http://xn----7sbbbfrgp5b8a0nb.xn--p1ai/forum/viewtopic.php?f=6&t=46097
http://avtoch.ru/index.php?topic=18796.new#new
http://letenero.ru/blog/letenero-na-devichnike-dlya-nevest/
http://www.test.fairy-tales.org/viewtopic.php?f=6&t=69613
http://bcsd.ultimatecyborg.com/viewtopic.php?f=19&t=106850
http://gencyemleri.com/forum/welcome-mat/35883-how-to-buy-levlen-buy-cheap-online-levlen-levlen-prescriptions-online#35632
http://nauc.info/forums/viewtopic.php?f=3&t=6582699
http://share.sexyfolder.com/index.php?topic=4506.0
http://www.perfilsistemas.com.br/forum/viewtopic.php?f=5&t=3261
http://school24mir.ru/index.php/forum/razdel-predlozhenij/3279-ordering-doxycycline-purchase-cheapest-doxycycline-doxycycline-without-script
http://www.hakem3d.com/index.php/forum/welcome-mat/46633-how-to-purchase-reminyl-safe-order-reminyl-reminyl-no-prescription-fast-delivery#46467
https://www.gamerzchile.com/index.php?topic=41860.new#new
http://battlexelforum.webcindario.com/forum/viewtopic.php?f=4&t=14225
http://www.respuestabiblica.com/index.php/forum/la-homosexualidad-a-la-luz-de-la-biblia/687-ordering-cytoxan-ordering-at-lowest-price-cytoxan-cytoxan-c-o-d-no-prescription#687
http://www.veerkrachtigevrouwen.nl/ervaringen.php
http://borssat.com/showthread.php?p=1054259#post1054259
http://pjhs.org/mybb/showthread.php?tid=233614
http://www.habahill.com/bbs/viewthread.php?tid=1324349&extra=
http://xn--02-6kcq2can5aa.xn--p1ai/index.php/kunena-2017-04-12/dobro-pozhalovat/354-safe-order-vermox-cheap-online-order-vermox-vermox-online-consulation-with-no-prescription
http://www.moodlemajorana.it/smf/index.php?topic=19818.new#new

 

Problem setting "function select c" register

Started by jonmon6691Board OLEDs

Replies: 3
Views: 2300
Last post May 04, 2016, 02:44:37 PM
by Saurabh_B
NHD-4.3-480800EF-CTXP#-T - HX8369 continious memory write problem

Started by Henning_SBoard TFTs

Replies: 3
Views: 3616
Last post September 17, 2014, 06:51:40 AM
by Henning_S
NHD-1.8-128160EF-CTXI# problem: becomes pale after using it for some time

Started by fvdhoefBoard TFTs

Replies: 1
Views: 2969
Last post July 31, 2014, 08:55:40 AM
by Michael_L
NHD-0420H1Z-FL-GBW-33V3 - 2 Lines Mode Problem

Started by gnyturanBoard Character LCDs

Replies: 6
Views: 3265
Last post October 29, 2015, 01:23:58 PM
by Saurabh_B
NHD-C0220BiZ-FSW-FBW-3V3M Problem -- Doesn't power on

Started by seilcompBoard Character LCDs

Replies: 6
Views: 3067
Last post December 10, 2015, 08:07:52 AM
by Paul_B