Titano touchscreen problem

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
zberkovich
 
Posts: 3
Joined: Sat Aug 06, 2022 1:03 pm

Titano touchscreen problem

Post by zberkovich »

Hi everyone
I have the following code running on a PyPortal Titano with CircuitePython 7

touchscreen = adafruit_touchscreen.Touchscreen(board.TOUCH_XL,
board.TOUCH_XR,
board.TOUCH_YD,
board.TOUCH_YU,
calibration=((5200, 80000), (5800, 57000)),
size=(display.width, display.height),
z_threshold = 60000)

I encounter the following problems:
1. The board identifies imaginary touches of pressure ~58000 unless I set the z_treshold as above
2. calling touchscreen.touch_point I always get 0 as the x and a random number between 90-100 as y regardless of where I touch


Any help is most appreciated
Thanks
Zvika

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: Titano touchscreen problem

Post by adafruit_support_carter »

Is the Titano in a case or anything else that might be exerting pressure onto the touch screen?

User avatar
zberkovich
 
Posts: 3
Joined: Sat Aug 06, 2022 1:03 pm

Re: Titano touchscreen problem

Post by zberkovich »

It's not in a case.
Thanks

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: Titano touchscreen problem

Post by adafruit_support_carter »

Check the ribbon cable connection on the back of the display. Make sure the ribbon cable is well seated and the two black locking tabs are fully pushed in. This is just a visual check. Can see here for reference:
https://learn.adafruit.com/adafruit-pyp ... rdware-faq

User avatar
zberkovich
 
Posts: 3
Joined: Sat Aug 06, 2022 1:03 pm

Re: Titano touchscreen problem

Post by zberkovich »

I pulled the black locks out and pushed them back again
looks like this solved the problem. I guess there was some dust inside the connector
Thanks!

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: Titano touchscreen problem

Post by adafruit_support_carter »

Wow! Cool. So glad that's all it was. Glad it's all working now. Good job fixing it up and thanks for letting us know. Have fun!

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”