element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Design for a Cause - Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Design for a Cause - Design Challenge
  • More
  • Cancel
Design for a Cause - Design Challenge
Blog 5" TFT Display and Module RA8875
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: roborob1266
  • Date Created: 24 Jul 2018 1:58 PM Date Created
  • Views 4755 views
  • Likes 7 likes
  • Comments 12 comments
  • ra8875
  • tft screen
  • wiring
  • design for a cause - design challenge
  • uno
  • arduino coding
  • mkr2uno
  • mkr1000
Related
Recommended

5" TFT Display and Module RA8875

roborob1266
roborob1266
24 Jul 2018

I received the Adafruit 5.0" 40-pin TFT Display 800x480 with Touchscreen PRODUCT ID: 1596 and the RA8875 Driver Board for 40-pin TFT Touch Displays 800 x 480 Max PRODUCT ID: 1590.

I had a hard time getting the display to work with the MKR1000 device so I checked the Adafruit website but no luck on the wiring diagrams or instructions.

I tried the Arduino website and no one had any information on how to wire it up. I tried Google and YouTube for any wiring videos.

I connected my Uno to the RA8875 module and put the jumper wires to the ports listed in the Arduino ino file for the ts_calibration and the TFT display lit up and I was able to get the touch readings!

So with doing that, I tried the MKR2UNO module and wired it as I did with my Uno and it didn't work.

Not be defeated, I looked at the MKR2UNO schematics and compared Pin to Pin with how I had it connected to the Uno and tried some different pins, modified the ino code for the ts_calibration under the Adafruit RA8875 library that I added to Arduino and it worked!

Here are the RA8875 pins and the MKR1000 pins that need to be used for the calibration.

RA8875/ MKR1000

VIN/ PIN 14 = +5

GND/ PIN 11 = GND

SCK/ PIN 09 = SCK

MISO/ PIN 10 = MISO

MOSI/ PIN 08 = MOSI

CS/ PIN 06 = Defined as CS in code

RST/ PIN 02 = Defined as RST

INT/ PIN 03 = Defined as INT

 

I modified the code to look like these pins:

 

#include <SPI.h>

#include "Adafruit_GFX.h"

#include "Adafruit_RA8875.h"

 

 

#define RA8875_INT     3

#define RA8875_CS      6

#define RA8875_RESET   2

 

and finally, I changed the code to reflect the 800x400 rather than the 480x272 display:

 

void setup()

{

  Serial.begin(9600);

  Serial.println("Hello, RA8875!");

 

 

  /* Initialise the display using 'RA8875_480x272' or 'RA8875_800x480' */

    if (!tft.begin(RA8875_800x480))

  {

    Serial.println("RA8875 not found ... check your wires!");

    while (1);

  }

image

  • Sign in to reply

Top Comments

  • roborob1266
    roborob1266 over 7 years ago in reply to genebren +2
    Thank you Gene! The hardship was well worth it since it is working now! Never give up, never surrender!
  • Andrew J
    Andrew J over 5 years ago in reply to roborob1266 +2
    I'm not taking account, per-se, of touch down, move release. When I ask for status (line 05), the response will be -1 if no touch detected, or another value that equates to TOUCH_PRESSED, TOUCH_MOVED,…
  • genebren
    genebren over 7 years ago +1
    Nice update on your design challenge project. Good work on getting everything connected and running. That was some first class detective work there. Gene
Parents
  • genebren
    genebren over 7 years ago

    Nice update on your design challenge project.  Good work on getting everything connected and running.  That was some first class detective work there.

    Gene

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • roborob1266
    roborob1266 over 7 years ago in reply to genebren

    Thank you Gene! The hardship was well worth it since it is working now! Never give up, never surrender!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • roborob1266
    roborob1266 over 7 years ago in reply to genebren

    Thank you Gene! The hardship was well worth it since it is working now! Never give up, never surrender!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube