Hi,
I have this wired up and downloaded all the libraries. They are...
Touch_Screen_Library_master
Adafruit_ILI9341_master
Adafruit_STMPE610_master
Adafruit_FT6206_Library_master
The ILI9341 Graphic test works fine but any of the touch screen demos don't. I get "Unable to find touch controller" or " Couldn't start touchscreen controller"
I can get the touch screen demo to work from the "Touch_Screen_Library", so my wiring is ok(?) but how do I get the other examples to work?
I'm sure I'm missing something simple, i've double checked my wiring and looked through the forums for similar issues but couldn't find any.
The screen is awesome thanks for a great looking product.
Nigel
2.8" Resistive Touchscreen breakout query
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- keepersgain
- Posts: 38
- Joined: Mon Apr 15, 2013 7:18 am
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: 2.8" Resistive Touchscreen breakout query
Are you running in 8-bit mode? The Adafruit_ILI9341 touch examples assume that you will be using the STMPE610 touch controller, which is SPI-based.
- keepersgain
- Posts: 38
- Joined: Mon Apr 15, 2013 7:18 am
Re: 2.8" Resistive Touchscreen breakout query
Hi,
I am in SPI Mode.
If the resistive screen works from the "Touch_Screen_Library" example does that mean the chip is OK and the wiring is OK?
Nigel
I am in SPI Mode.
If the resistive screen works from the "Touch_Screen_Library" example does that mean the chip is OK and the wiring is OK?
Nigel
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: 2.8" Resistive Touchscreen breakout query
Yes. Try running the breakouttouchpaint example from the Adafruit_ILI9341 librarykeepersgain wrote:If the resistive screen works from the "Touch_Screen_Library" example does that mean the chip is OK and the wiring is OK?
- keepersgain
- Posts: 38
- Joined: Mon Apr 15, 2013 7:18 am
Re: 2.8" Resistive Touchscreen breakout query
Hi,
That works. I had to change the pin configs in the code.
The code says.
#define YP A2 // must be an analog pin, use "An" notation!
#define XM A3 // must be an analog pin, use "An" notation!
#define YM 5 // can be a digital pin
#define XP 4 // can be a digital pin
The wiring description in the learning section says this.
Y+ to Arduino A2
X+ to Arduino D9 (Same as D/C)
Y- to Arduino D8
X- to Arduino A3
I got there in the end.
So should "onoffbutton" work. I get the "Unable to start touchscreen."
Is that expected or not?
Nigel
That works. I had to change the pin configs in the code.
The code says.
#define YP A2 // must be an analog pin, use "An" notation!
#define XM A3 // must be an analog pin, use "An" notation!
#define YM 5 // can be a digital pin
#define XP 4 // can be a digital pin
The wiring description in the learning section says this.
Y+ to Arduino A2
X+ to Arduino D9 (Same as D/C)
Y- to Arduino D8
X- to Arduino A3
I got there in the end.
So should "onoffbutton" work. I get the "Unable to start touchscreen."
Is that expected or not?
Nigel
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: 2.8" Resistive Touchscreen breakout query
onoffbutton expects to use the STMPE610 driver, which only works with the 2.8" TFT shield. You'll have to modify the example to work with TouchScreen library.
- keepersgain
- Posts: 38
- Joined: Mon Apr 15, 2013 7:18 am
Re: 2.8" Resistive Touchscreen breakout query
Hi,
Ok, may be a step too far for me.
Another question. If I serial print the pressure value "z" of the resistive screen I get erratic results. There appears to be a lot of zero's in amongst the readings like this.
0
123
0
0
0178
0
0
0
0179
0
10
This makes looking for a finger down to press a switch quite fiddly to write, as it appears that I am pressing it very quickly!
Is this the expected output of the pressure sensor?
Nigel
Ok, may be a step too far for me.
Another question. If I serial print the pressure value "z" of the resistive screen I get erratic results. There appears to be a lot of zero's in amongst the readings like this.
0
123
0
0
0178
0
0
0
0179
0
10
This makes looking for a finger down to press a switch quite fiddly to write, as it appears that I am pressing it very quickly!
Is this the expected output of the pressure sensor?
Nigel
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: 2.8" Resistive Touchscreen breakout query
Actually, there's already a onoffbutton_breakout sketch in the library - I just noticed it. So you should be all set.
Not normal. Check your wiring.keepersgain wrote:Another question. If I serial print the pressure value "z" of the resistive screen I get erratic results. There appears to be a lot of zero's in amongst the readings like this.
- keepersgain
- Posts: 38
- Joined: Mon Apr 15, 2013 7:18 am
Re: 2.8" Resistive Touchscreen breakout query
Hi,
Double checked all wiring. I have re-wired it like this.
#define YP A3 // must be an analog pin, use "An" notation!
#define XM A2 // must be an analog pin, use "An" notation!
#define YM 5 // can be a digital pin
#define XP 4 // can be a digital pin
Instead of using pin 9 as X+ as suggested in the "learn" wiring. I have adjusted the source code to reflect this and the "onoff_buttonBreakout" works but the z axis is so messed up, the button is pretty random.
If I run a sketch just to print out the z axis it is the same.
I've noticed the LCD display is loose. What looks like sticky strips down the side of the display don't seam sticky enough to keep it in place.
Not sure what to check next.
Nigel
Double checked all wiring. I have re-wired it like this.
#define YP A3 // must be an analog pin, use "An" notation!
#define XM A2 // must be an analog pin, use "An" notation!
#define YM 5 // can be a digital pin
#define XP 4 // can be a digital pin
Instead of using pin 9 as X+ as suggested in the "learn" wiring. I have adjusted the source code to reflect this and the "onoff_buttonBreakout" works but the z axis is so messed up, the button is pretty random.
If I run a sketch just to print out the z axis it is the same.
I've noticed the LCD display is loose. What looks like sticky strips down the side of the display don't seam sticky enough to keep it in place.
Not sure what to check next.
Nigel
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: 2.8" Resistive Touchscreen breakout query
Let's replace the display. Please email [email protected] with a link to this thread for a replacement
- keepersgain
- Posts: 38
- Joined: Mon Apr 15, 2013 7:18 am
Re: 2.8" Resistive Touchscreen breakout query
Hi,
That's very kind of you. The display was bought through a UK distributor, I still e-mail Support at Adafruit should I add in the receipt from the uk supplier?
Nigel
That's very kind of you. The display was bought through a UK distributor, I still e-mail Support at Adafruit should I add in the receipt from the uk supplier?
Nigel
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: 2.8" Resistive Touchscreen breakout query
Yes, they will coordinate
Please be positive and constructive with your questions and comments.