Hi all,
I bought the Adafruit ILI9341 resistive touchscreen and I cannot get it worked. The screen perfectly displays what it has to display however the touchscreen does not detect anything (no reaction on the display or in the serial monitor).
I followed this tutorial for the SPI mode : https://learn.adafruit.com/adafruit-2-8 ... ouchscreen
I use the sketch called breakoutTouchPaint from the most recent version of the library Adafruit ILI9341.
I tried to press with my finger or a pencil but nothing happens. The only serial output that I get is "Touch Paint!" at the beginning. Nothing more.
Is there anyone to help me ?
Thank you
Adafruit Touchscreen Breakout does not detect nothing
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Amidala
- Posts: 10
- Joined: Wed Jun 15, 2022 3:11 pm
- dastels
- Posts: 15658
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Adafruit Touchscreen Breakout does not detect nothing
Exactly which product do you have?
Dave
Dave
- Amidala
- Posts: 10
- Joined: Wed Jun 15, 2022 3:11 pm
Re: Adafruit Touchscreen Breakout does not detect nothing
I have the ILI9341 (see picture).
- Attachments
-
- 20220618_125140.jpg (319.41 KiB) Viewed 484 times
- dastels
- Posts: 15658
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Adafruit Touchscreen Breakout does not detect nothing
ILI9341 is the TFT controller chip, used in several of the display boards. Howeverm, the silk screen has all the infor needed to ID the board.
How are you interfacing with the resistive touchscreen? See https://learn.adafruit.com/adafruit-2-8 ... ouchscreen and https://www.adafruit.com/product/1571.
Dave
How are you interfacing with the resistive touchscreen? See https://learn.adafruit.com/adafruit-2-8 ... ouchscreen and https://www.adafruit.com/product/1571.
Dave
- Amidala
- Posts: 10
- Joined: Wed Jun 15, 2022 3:11 pm
Re: Adafruit Touchscreen Breakout does not detect nothing
I'm using the first tutorial in SPI mode. I can send you a picture
- dastels
- Posts: 15658
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Adafruit Touchscreen Breakout does not detect nothing
You mean using the 4 X/Y pins as in https://learn.adafruit.com/adafruit-2-8 ... -906193-10?
Yes a photo almost always helps. Especially of your soldering.
Dave
Yes a photo almost always helps. Especially of your soldering.
Dave
- Amidala
- Posts: 10
- Joined: Wed Jun 15, 2022 3:11 pm
Re: Adafruit Touchscreen Breakout does not detect nothing
Here are the pictures
1/3
1/3
- Attachments
-
- 20220619_223807.jpg (725.03 KiB) Viewed 455 times
- Amidala
- Posts: 10
- Joined: Wed Jun 15, 2022 3:11 pm
Re: Adafruit Touchscreen Breakout does not detect nothing
2/3
- Attachments
-
- 20220619_223834.jpg (600.98 KiB) Viewed 455 times
- Amidala
- Posts: 10
- Joined: Wed Jun 15, 2022 3:11 pm
Re: Adafruit Touchscreen Breakout does not detect nothing
3/3
- Attachments
-
- 20220619_223841.jpg (619.2 KiB) Viewed 455 times
- dastels
- Posts: 15658
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Adafruit Touchscreen Breakout does not detect nothing
That looks good... verify the connections, and maybe test/replace the wires for the X/Y lines. Is the connection with the breadboard good? I guess what I'm asking is: is the connection from the UNO header pin to the pin on the display board good? There's 4 potential points of failure on each connection: UNO to wire, wire, wire to breadboard, breadboard to display board pin. The soldering on the display board is another potential point, but it looks quite good. If everything else checks out, it might be worth reflowing it.
Dave
Dave
- Amidala
- Posts: 10
- Joined: Wed Jun 15, 2022 3:11 pm
Re: Adafruit Touchscreen Breakout does not detect nothing
I think the cables are okay. The breadboard is a little bit old.
It could be that one UNO pin does not work. However, if no pressing is detected, does that mean that all 4 connections are broken? I guess that it would react to pressing in an unwanted way if only one connection was not okay? I mean, not detecting appropriately but detecting something.
It could be that one UNO pin does not work. However, if no pressing is detected, does that mean that all 4 connections are broken? I guess that it would react to pressing in an unwanted way if only one connection was not okay? I mean, not detecting appropriately but detecting something.
- dastels
- Posts: 15658
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Adafruit Touchscreen Breakout does not detect nothing
Yes, that sounds reasonable.
Dave
Dave
- dastels
- Posts: 15658
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Adafruit Touchscreen Breakout does not detect nothing
I'm asking around.
Dave
Dave
- adafruit_support_carter
- Posts: 29163
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Adafruit Touchscreen Breakout does not detect nothing
Looks like maybe XP and YM pins are swapped?
Code has XP=8 and YM=9:
But wiring is XP=9 and YM=8:
Code has XP=8 and YM=9:
Code: Select all
// These are the four touchscreen analog pins
#define YP A2 // must be an analog pin, use "An" notation!
#define XM A3 // must be an analog pin, use "An" notation!
#define YM 9 // can be any digital pin
#define XP 8 // can be any digital pin
- Amidala
- Posts: 10
- Joined: Wed Jun 15, 2022 3:11 pm
Re: Adafruit Touchscreen Breakout does not detect nothing
Thank you very much adafruit_support_carter!
This was it!
I guess there is a mistake in the tutorial then.
Have a nice day everybody, especially dastels and adafruit_support_carter for your help!
This was it!
I guess there is a mistake in the tutorial then.
Have a nice day everybody, especially dastels and adafruit_support_carter for your help!
Please be positive and constructive with your questions and comments.