2.8" Resistive Touchscreen not responding to touch

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
zhpixel517
 
Posts: 7
Joined: Mon Sep 03, 2018 8:04 pm

2.8" Resistive Touchscreen not responding to touch

Post by zhpixel517 »

Hi there,
I'm having some issues with my Arduino Resistive Touchscreen.
I've wired everything up correctly, installed the Adafruit touchscreen library and moved it to the correct place, and the screen won't respond to my touches. And when I upload to the Arduino, I get this:
Arduino: 1.8.4 (Mac OS X), Board: "Arduino/Genuino Uno"

Code: Select all

/var/folders/nm/1h6chfm95j9b_cgmf5s8km840000gr/T//cc43FfKX.ltrans1.ltrans.o: In function `__static_initialization_and_destruction_0':
/Users/Zach/Documents/Arduino/breakouttouchpaint/breakouttouchpaint.ino:46: undefined reference to `TouchScreen::TouchScreen(unsigned char, unsigned char, unsigned char, unsigned char, unsigned int)'
/var/folders/nm/1h6chfm95j9b_cgmf5s8km840000gr/T//cc43FfKX.ltrans1.ltrans.o: In function `loop':
/Users/Zach/Documents/Arduino/breakouttouchpaint/breakouttouchpaint.ino:79: undefined reference to `TouchScreen::getPoint()'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.
Can someone please help me? Thanks a bunch in advance.

User avatar
asteroid
 
Posts: 300
Joined: Tue Oct 22, 2013 9:10 pm

Re: 2.8" Resistive Touchscreen not responding to touch

Post by asteroid »

>And when I upload to the Arduino

Please post the code that you uploaded to the Arduino.

User avatar
zhpixel517
 
Posts: 7
Joined: Mon Sep 03, 2018 8:04 pm

Re: 2.8" Resistive Touchscreen not responding to touch

Post by zhpixel517 »

I was using the Adafruit_ILI9341 library example, "breakkouttouchpaint".

User avatar
asteroid
 
Posts: 300
Joined: Tue Oct 22, 2013 9:10 pm

Re: 2.8" Resistive Touchscreen not responding to touch

Post by asteroid »

The error message says it can't find the getPoint method. Does your libraries folder contain a folder titled "TouchScreen" as shown in the image below?
TouchScreen.png
TouchScreen.png (11.94 KiB) Viewed 516 times
If so, you should see two files inside the folder as shown below:
Files.png
Files.png (16.21 KiB) Viewed 516 times
The code that you need is in those files.

User avatar
zhpixel517
 
Posts: 7
Joined: Mon Sep 03, 2018 8:04 pm

Re: 2.8" Resistive Touchscreen not responding to touch

Post by zhpixel517 »

Yeah, I have the folder titled, "TouchScreen" in the libraries folder, but my folder looks like this:

Screen Shot 2018-09-05 at 3.38.04 PM.png
Screen Shot 2018-09-05 at 3.38.04 PM.png (25.67 KiB) Viewed 508 times
Is that a problem?

But now, I'm not getting the error after I tried re-uploading a few times, but the program still won't respond to my touch. I have a feeling this might be a code issue, not a hardware issue, because I tried another example that outputs X, Y, and Z coordinates on the serial monitor, and I'm getting a response.

User avatar
asteroid
 
Posts: 300
Joined: Tue Oct 22, 2013 9:10 pm

Re: 2.8" Resistive Touchscreen not responding to touch

Post by asteroid »

>Is that a problem?

I think that's ok; I don't have the library.properties file, but that shouldn't make any difference as far as I am aware.

Remember that it is a resistive screen, not capacitive, so I use a wooden stylus (shishkabob stick) for best results.

User avatar
zhpixel517
 
Posts: 7
Joined: Mon Sep 03, 2018 8:04 pm

Re: 2.8" Resistive Touchscreen not responding to touch

Post by zhpixel517 »

I followed the tutorial off of Adafruit, and it shows someone using their finger. I tried with different things to try to get it to work, and I still don't get anything.

User avatar
asteroid
 
Posts: 300
Joined: Tue Oct 22, 2013 9:10 pm

Re: 2.8" Resistive Touchscreen not responding to touch

Post by asteroid »

Code: Select all

 For better pressure precision, we need to know the resistance between X+ and X- Use any multimeter to read it 
According to the source code file, it is possible to measure the resistance between X+ and X-, but unfortunately I can't tell you how to do it. In the meantime, I would try running other code to see if it always fails.

User avatar
zhpixel517
 
Posts: 7
Joined: Mon Sep 03, 2018 8:04 pm

Re: 2.8" Resistive Touchscreen not responding to touch

Post by zhpixel517 »

I get the same results, unfortunately. In my TouchScreen library examples, I ran the program that prints X, Y, Z finger location to the serial monitor, and I still get the same results. I go back and run "breakouttouchpaint" with still no response.

User avatar
asteroid
 
Posts: 300
Joined: Tue Oct 22, 2013 9:10 pm

Re: 2.8" Resistive Touchscreen not responding to touch

Post by asteroid »

> I still get the same results.

You didn't tell us what the results were; perhaps post a screen shot of serial monitor output and indicate which program you ran to get that. To rule out a wiring problem, an image of your setup might be helpful. Do you have any output to your screen, eg, can you print text on the screen? Is it strictly a touch problem?

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

Re: 2.8" Resistive Touchscreen not responding to touch

Post by adafruit_support_carter »

Just to verify, you are using one of these?
https://www.adafruit.com/product/1651
installed the Adafruit touchscreen library and moved it to the correct place
Did you install it using the Library Manager? If so, you shouldn't have to worry about moving or renaming anything.
https://learn.adafruit.com/adafruit-2-8 ... raries-3-2
I was using the Adafruit_ILI9341 library example, "breakkouttouchpaint".
That example is for a different product. Try the one called "touchpaint".
https://learn.adafruit.com/adafruit-2-8 ... paint-demo

User avatar
zhpixel517
 
Posts: 7
Joined: Mon Sep 03, 2018 8:04 pm

Re: 2.8" Resistive Touchscreen not responding to touch

Post by zhpixel517 »

No, I was using the Arduino TFT breakout, this one:
https://www.adafruit.com/product/1770
I followed the tutorial off the Adafruit website, here:
https://learn.adafruit.com/adafruit-2-d ... ouchscreen
I downloaded the library and put it in the /Documents/Arduino/Libraries folder, but also have it installed from the library manager. I still get no response from the touchscreen.

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

Re: 2.8" Resistive Touchscreen not responding to touch

Post by adafruit_support_carter »

Ah, OK. Thanks for clarifying. Please post a photo of your setup showing how you have everything connected.

User avatar
zhpixel517
 
Posts: 7
Joined: Mon Sep 03, 2018 8:04 pm

Re: 2.8" Resistive Touchscreen not responding to touch

Post by zhpixel517 »

Here:
three.jpg
three.jpg (48.19 KiB) Viewed 446 times
two.jpg
two.jpg (357.51 KiB) Viewed 446 times
one.jpg
one.jpg (326.35 KiB) Viewed 446 times

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

Re: 2.8" Resistive Touchscreen not responding to touch

Post by adafruit_support_carter »

I can't quite make out the solder job on the breakout. Can you try posting another one with those more in focus.
solder.png
solder.png (421.5 KiB) Viewed 443 times

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

Return to “Arduino Shields from Adafruit”