This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADC Touchscreen Driver in AM437x



Hi Team,

We have 4-wire touchscreen adc connected to AM437x-sk-evm custom board.

I'm using processor-sdk-02.00.02.11. I have loaded ti_am335x_tsc driver statically and it gets detected.

when i try to run ts_calibrate the pointer is not moving correctly.

But i'm getting wrong coordinate values, when i touch the display.

when i release the touch, x & y values never sets to zero.

      # ts_print_raw

         946686339.982239: 2873 3705 328

         946686339.984518: 2833 2944 295

         946686339.986831: 2794 2983 285

         946686339.989297: 2765 3022 282

         946686339.991491: 2745 3043 279

         946686339.993792: 2734 3068 283

         946686340.005357: 2718 3090 282

         946686340.007600: 2729 3091 292

         946686340.009916: 2740 3098 301

         946686340.012249: 2748 3100 302

         946686340.014529: 2773 3098 319

         946686340.016887: 2812 3106 332

         946686340.019167: 2962 3126 393 --------------------> released touch here

 

Thanks & Regards,

Arun

  • Hi Arun,

    The correct driver for AM4372x touchscreen (resistive) is ti_am335x_tsc , and the detection of the display, once you insmod the driver shows that adc1 is configured properly.

    As for the wrong coordinate values & pointer not moving correctly:
    1. Verify your display (lcd) timings
    2. As far as I know TISDK 02.00.02.11 uses the westo-calibrator app, located in usr/bin... could you explain why do you use ts-calibrate?

    Best Regards,
    Yordan
  • Hi Yordan,

    Thanks  for your response. I checked the display timings which also has proper values. 

    We are using a custom QT based file system which has ts_calibrate.

    I want to know does any other things affects the touchscreen co-ordinates?

    Thanks & Regards,

    Arun Nehru A.V.

  • Hi,

    Sorry for the delayed response.

    I want to know does any other things affects the touchscreen co-ordinates?


    Not as far as I know. Have you modified the ts.conf?

    Also have a look at this thread:
    e2e.ti.com/.../1373118

    It provides quite valuable inputs, that may be of use to you.

    Best Regards,
    Yordan
  • Hi Yordan,

    Thanks for your reply.

    I'm looking into the link shared by you. I didn't modify ts.conf


    # cat /etc/ts.conf

    module_raw input
    module pthres pmin=1
    module variance delta=30
    module dejitter delta=100
    module linear

    Thanks & Regards,

    Arun Nehru A.V.