7" TFT w/ RA8875

Hey guys,

I sprung for something a bit different and I think I'm now paying for it :confused:
The RA8875 is an attractive device ( SPI and I2C ) but looks like very lil support for these units.

I bought the BuyDisplay TFTM070-5 ( Link to Datasheet and some "example code" on manufacturers site ).

Out of the box it wasn't set for SPI so I had to use the settings from the Datasheet:
4 Wire SPI:
J9, J11, J13, J15 - Open
J10, J12, J14, J16 - Short
R1, R2, R3 - 10K
R35, R36, R37, R38 - 0R00
R39, R40, R41, R42 - NC

So far I had no luck even with the Adafruit RA8875 Library and examples.

Connections are as follows :

TFT Pin -> Arduino Due SPI Pin - Function
5 -> 6 - CS ( SCS)
6 -> 4 - MOSI (SDO)
7 -> 1 - MISO (SDI)
8 -> 3 - CLK (SCLK)

As you can see the chip select is pulled low, but not sure if that's done right or not.

Any constructive input is welcome.
PS:
There is a 128MBit flash on the unit as well.

#include <SPI.h>
#include "Adafruit_GFX.h"
#include "Adafruit_RA8875.h"

// Library only supports hardware SPI at this time
// Connect SCLK to DUE SPI Pin #3 (Hardware SPI clock)
// Connect MISO to DUE SPI Pin #1 (Hardware SPI MISO)
// Connect MOSI to DUE SPI Pin #4 (Hardware SPI MOSI)
#define RA8875_INT 52
#define RA8875_CS 53
#define RA8875_RESET 48

Adafruit_RA8875 tft = Adafruit_RA8875(RA8875_CS, RA8875_RESET);
uint16_t tx, ty;

void setup() 
{
  Serial.begin(9600);
  Serial.println("RA8875 start");

  /* Initialise the display using 'RA8875_480x272' or 'RA8875_800x480' */
  if (!tft.begin(RA8875_800x480)) {
    Serial.println("RA8875 Not Found!");
    while (1);

When I open the console and set it to 9600 i can see the output message that RA8875 has not been found.

I found this earlier today and will test to verify if this works.

Connected to ICSP (hardware SPI) and other pins:
#define PIN_RESET 4
#define PIN_CS 5
#define PIN_DC 6
#define PIN_LED 7

:frowning: Nope...
still nothing

I have the same screen with font chip and flash memory
also a due.
everything is working right now except the flash memory
do you also have the capacitive touch
because the demo is changed for the capacitive touch panel instead of the resistive

demo_compleet.rar (33.6 KB)

The Capacitive touch library you can find everywhere is not due compatible.

So here is a changed one

Yes i know i should fixed the uno part also with a variable but its already better then it was

Kind regards

Johan

FT5x06.rar (4.04 KB)

Thanks !!

How are you finding the display ?

How do i find the display,

or what do i think of the display,
I think its a great display with a lot of real nice features build in.
everything works now what i want (two layers , scrolling in a defined area, font chip en touchscreen) except the pictures from the flash chip (i received it Friday) so i cannot tell much more about it.

Thanks for the input...
I picked mine up for $40.

I have no font chip on it though and the memory wasn't soldered on board as well as it was setup for a parallel interface.
No biggie... that's why i bought a Hot Air SMD rework station :smiley:

Still no go.

DId the pin swapping for the I2C on my DUE ( pins 20 and 21 ) and still nothing.
Not even a flicker from the back light or any signs of life.

Serial Monitor still returns RA8875 not found

This is the SPI code

So i connected the display with SPI and the Touch with I2C

Sorry...

That's what I meant.
The display itself is connected through SPI and the touch interface is connected through I2C.

What I was saying is that I'm using an Arduino Due which has 2x SPI headers and 2x I2C headers
The touch controller was hooked up to pins 20,21 respectively however, I've used the ICSP header and have to try the other one.

ITS ALIVE !!! MUAHAHAHAAH !! ]:smiley:

I switched out the SPI header and it fired right up !
Kids already had a field day with it. My youngest is already asking when he can play plants vs zombies on it :disappointed_relieved:

Now its time to start working on that DAC controls and graphical Layout :confused:

The ISCP header is the header connected at the programming chip.
the other one you now used is connected at the sam8x

Ugh.. this is driving me nuts !!

I worked for a few minutes, turned it off and when i went to turn it back on nothing yet again :@

How did you power your due.
I noticed that my USB port could handle my Due and TFT but when i connected the buildin SDCard or added my ethernet Shield the screen didn't work anymore.
While checking the datasheet i noticed the 480ma for the tft

I have the exact setup, due 7" tft w/ RA8875, capacitive touch panel. I have set it up for 4wire SPI, powering it at 5v from external power source, connected it as in this example. I use the adafruit RA8875 library and tries the buildtest sketch,but I can't get it to work, I only get a serial print telling RA8875 not found and the screen won't even flicker. I hit a dead end right now, I don't know what to do, do you have any tips or suggestions?

Thanks!

Hi, I just accidentally entered this thread. Not sure if it has been covered already, but you might find some interesting info at the discussion in 7″ LCD with capacitive multitouch up’n running | Weatherstation + or at http://atomsoft.wordpress.com/.

/Helge

Thanks for your suggestions, I have now found the problem, MISO and MOSI was switched... Stupid but frustrating problem.

Hi guys,
i've got just one question, according to interfacing PDF: http://www.buydisplay.com/download/interfacing/ER-TFTM070-5_Interfacing.pdf
how many pins have you connected to VDD and how many to GND? The PDF said 6 (1,2,39,40,13,31) for GND and 4 (2,3,37,38) for VDD, right?