ILI9341 resistive touch breakout, all works except touch

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
cntrl_freek
 
Posts: 2
Joined: Thu Apr 09, 2015 7:50 am

ILI9341 resistive touch breakout, all works except touch

Post by cntrl_freek »

Hello,

I am no stranger to electronics as I am an industrial control systems specialist. I am however, a stranger to Arduino and or Adafruit. I just bought a brand new ILI9341 resistive touch breakout and M.J arduino UNO R3 as well as an adafruit motor shield and an additional "official" arduino UNO R3. The "official" board is for the motor shield application im developing. All is fine there, im driving several types of motors and or solenoids from this thanks to the help and tutorials here! Thanks to all of the contributors. The ILI9341, however, is the problem child! I followed this tutorial to the T: https://learn.adafruit.com/adafruit-2-d ... spi-wiring. All is fine after this, sketch compiles, uploads, runs through the procedures, etc. Next I followed this tutorial: https://learn.adafruit.com/adafruit-2-d ... ouchscreen. using SPI. Again everything seems to be right, compiles uploads, etc. I have the color boxes displayed on the screen but can not draw anything. I have also attempted the on_off_button_breakout example with the same results. When I upload the touch_screen_demo example and use the serial monitor I can see the values of x y and z returning according to the coordinates I touch. I have checked my wiring and terminations 50 times over. any ideas? please someone help, im at a dead stop in my development.

regards and thank you in advance

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: ILI9341 resistive touch breakout, all works except touch

Post by adafruit_support_rick »

What kind of values are you seeing for Z? Can you post some sample output?

User avatar
cntrl_freek
 
Posts: 2
Joined: Thu Apr 09, 2015 7:50 am

Re: ILI9341 resistive touch breakout, all works except touch

Post by cntrl_freek »

Thanks for the reply, but I found the issue. In the tutorial Y- as D8 and X+ as D9. In the example sketch Y- is defined as pin 5 and X+ as pin 4. Hopefully this helps some of my fellow newbies!

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: ILI9341 resistive touch breakout, all works except touch

Post by adafruit_support_mike »

Glad to hear you got it working, and thank you for posting the fix. I'm sure you've saved someone a few hours of frustration. ;-)

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

Return to “Arduino”