GLCD and TouchScreen trouble


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default More Info...

    Here are some more details.

    If I place a piece of plastic, or rest it on some rubber bands, or both, I get this:


    Now, if I place the TS on a couple of ordinary pencils, it works fine:


    Also, if the TS is only about 1/4 of the way on the GLCD, it seems to be OK as well:


    Any Ideas whats causing this? I will be playing with it to see if I can get a minimum clearance, but I like to know whats going on.

    SteveB

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by SteveB View Post
    Here are some more details.

    Any Ideas whats causing this? I will be playing with it to see if I can get a minimum clearance, but I like to know whats going on.

    SteveB
    Capacitive touchscreen type thing? Or resistive?
    If it's capacitive, maybe it (or the LCD) isn't not grounded well enough and inducing a charge back into the LCD. Or maybe you have to TOTALLY isolate the two...who knows. Looks pretty goofy to me. Ya gotta wonder how all those PDA's handle it.

  3. #3
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default

    Using some various piece of thin plasic, I can get no closer than 1/4". If I reduce the gap by 1/32", it blanks out.

    Quote Originally Posted by skimask View Post
    Capacitive touchscreen type thing? Or resistive?
    It's 4-wire resistive.

  4. #4
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default

    I don't know if it will make a difference in any help, but here is the code relevent to scanning the TS:
    Code:
    XRaw VAR WORD
    YRaw VAR WORD
    
    Xp VAR PORTA.3
    Xm VAR PORTA.5
    Yp VAR PORTA.2
    Ym VAR PORTA.4
    
    ADCON1 = $0D 'Set only PORTA.0-1 Analog
    
    
    'Scan X
        HIGH Xp
        LOW Xm
        INPUT Yp
        INPUT Ym
        PAUSEUS 5
        ADCIN 0, XRaw
        LOW Xp
    'Scan Y
        HIGH Yp
        LOW Ym
        INPUT Xp
        INPUT Xm
        PAUSEUS 5
        ADCIN 1, YRaw
        LOW Yp
    and a schematic of the hookup:

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    I keep going back to that grounding thing, static or EMI...
    Neither of the datasheets has any helpful hints as to what might be going on.
    Maybe try hooking a 'grounding wire' up to the touchscreen to the LCD frame, first with a 1K resistor (maybe less), then maybe a direct connection.
    I'm thinking it's some sort of static buildup causing the controllers on the GLCD to go nuts.
    Maybe try it sitting on a regular character LCD and see what happens? Not that a touch panel on a character LCD is any good, but it might lead to something...

  6. #6
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Maybe try it sitting on a regular character LCD and see what happens? Not that a touch panel on a character LCD is any good, but it might lead to something...
    I just happened to have a 4X20 breadboarded up with this project, and the TS has no effect on it.

    I'll look into the resistor idea tomorrow (or whenever I can get back to it this week). Not a lot of options to connect it to though, the lcd bezel is painted and there is nothing exposed on the TS. The "FrameGround" pin on the lcd is connected to GND. (I've also tried it not connected)

    SteveB

  7. #7
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373


    Did you find this post helpful? Yes | No

    Default

    I bet that the touch screen is creating an EM field due to the high frequency switching going on. Just for a test, take some of the static protective translucent poly bag material, and sandwich it between the two. If this doesn't relieve the problem, it should reduce the distance. You do have a wierd ground loop problem going on there. What is the hookup of your GLCD?
    Ron

Similar Threads

  1. Touchscreen question
    By manwolf in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th June 2008, 03:49

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts