RA8875 not found !

Status
Not open for further replies.

andromeda

Well-known member
Hi,
I have just received the adafruit module RA8875 and I am testing it with a tft sharp LQ043T1DG03 using the texmode sketch of the Adafruit_RA8875 library in version 1.04, I have powered the RA8875 module in 3.3v, the connected contacts are the following:
CS = 10
MOSI = 11
MISO = 12
SCK = 13
RST = 9

sketch:
Code:
#include <SPI.h>
#include "Adafruit_GFX.h"
#include "Adafruit_RA8875.h"

// Library only supports hardware SPI at this time
// Connect SCLK to UNO Digital #13 (Hardware SPI clock)
// Connect MISO to UNO Digital #12 (Hardware SPI MISO)
// Connect MOSI to UNO Digital #11 (Hardware SPI MOSI)
//#define RA8875_INT 3
#define RA8875_CS 10
#define RA8875_RESET 9

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_480x272)) {
    Serial.println("RA8875 Not Found!");
    while (1);
  }

  tft.displayOn(true);
  tft.GPIOX(true);      // Enable TFT - display enable tied to GPIOX
  tft.PWM1config(true, RA8875_PWM_CLK_DIV1024); // PWM output for backlight
  tft.PWM1out(255);
  tft.fillScreen(RA8875_BLACK);

  /* Switch to text mode */  
  tft.textMode();

....

i have always RA8875 not found ! in serial console.
May be my tft is not compatible with the module RA8875 from adafruit ?

i have searched on the code from file Adafruit_RA8875.cpp, the error is in line

Code:
uint8_t x = readReg(0);
    Serial.print("x = 0x"); Serial.println(x,HEX);
    if (x != 0x75) {
        return false;
    }
x return always 0, if i comment the code from reaReg or i put return true, nothing happens, the screen is black.
what is 0x75 code ?
i have tested too the library from sumotoy RA8875 Version:0.70b11p7, but when i compile, it say that teensy is not supported or my hardware is not supported yet

Any idea ?
 
i think the problem is from my TFT screen both screen LQ043T1DG03 and LQ043T1DG01 not work, it create shorcut to RA8875
i realized that RA8875 was heating, i hope my RA8875 is not out of order now. So I will have to buy a screen of adafruit 5 " with touchscreen.
 
It's possible to test RA8875 without tft screen, because without screen, register return always 0x00. it is to known if RA8875 is defective.
thanks for your help.
 
x return always 0, if i comment the code from reaReg or i put return true, nothing happens, the screen is black.
what is 0x75 code ?

This very likely means the hardware is not connected properly, or perhaps damaged.

Your description of the connections looks good. Maybe there's a simple wiring mistake or misunderstanding? We can't see your wiring to help with that sort of issue, unless you share photos.
 
when i attempt to upload image i have a box with upload file failed, the size is 3.6Mo.

Well, open the image in your favorite image editing software (personally, I use The GIMP) and shrink it to a smaller size, perhaps 720 or 1024 pixels. If you save a JPEG, usually quality 85% gives a clear picture and a fairly small file size.
 
I forgot to say that the version are:
for arduino is 1.8.8
for Adafruit_RA8875 is 1.0.4
for Adafruit_GFX is 1.3.6
teensy is version 3.6
 
i have receive 5" TFT from adafruit, but nothing sketch work, except when i change RESET to 255 on code and i disconnect RST pin from RA8875 (not cabled), it works in half,
i can see color, when i choose 48Mhz from menu for teensy 3.6, buildtest works once in 10 but touch screen not work.
I still have to power off RA8875, disconnect USB for teensy 3.6, power on RA8875 (external 3.3v), power on teensy with usb cable.
it seem i have a timing problem when i run for example textMode.ino, i need to put delay(500) for each command, and the text not show, i see ascii character and no Hello World.

any idea ?

thanks for your help.
 
Teensy 3.6 5v 3A and usb cable for serial download

Hi,

I need a 5v 3A for power teensy 3.6 because the voltage is not powerful enough on USB with RA8875.

the problem is that I already have a 5v 3A micro USB adapter and a USB cable to download the sketch but I have to change each cable, one for USB download and the other to power the teensy 3.6 with the adapter 5v 3A, is there a solution to this problem?

thanks in advance.
 
I have used RA8875 without needing anywhere near that much power. It worked fine using only the power over a USB cable, which was plugged into an ordinary powered USB2 hub.

The RA8875 I tested was the board & display from Adafruit.

Maybe you could tell us more details about the hardware you're actually using? Or show some photos?
 
Please do not create duplicate threads about the same problem. I have merged both of these into 1 thread.
 
I retested RA8875 with Teensy 3.6 just now, using Arduino 1.8.8 and Teensyduino 1.46-beta7. It works properly, using only the ordinary USB power.

I ran the examples with no modifications, other than changing "RA8875_480x272" to "RA8875_800x480" (because I tested with the larger display).

Here is Teensy 3.6 and the Adafruit hardware running the "buildtest" example.

DSC_0286_web.jpg
(click for full size)

I also touched the screen and it does indeed draw as I move my finger around the display.

Here is the same hardware running the "textmode" example:

DSC_0288_web.jpg
(click for full size)

Here is a photo of the bottom side, so you can see how I connected all the wires between Teensy and the Adafruit RA8875 board.

DSC_0290_web.jpg
(click for full size)
 
I have the same material that you (RA8875 and 5" adafruit TFT) , but the screen is blank, i think my ra8875 is defective, i use CS = 10 and RESET = 9, the rest of pin (mosi, miso,sck) is default.
i have tested with library sumotoy and library adafruit_RA8875, is a same.
the only thing I have to do is to buy an other module RA8875 for testing it, the screen is ok, is new, i receive it yesterday.

only fillscreen works after this command nothing is displayed, for exampple.

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



// Library only supports hardware SPI at this time
// Connect SCLK to UNO Digital #13 (Hardware SPI clock)
// Connect MISO to UNO Digital #12 (Hardware SPI MISO)
// Connect MOSI to UNO Digital #11 (Hardware SPI MOSI)
#define RA8875_INT 3
#define RA8875_CS 10
#define RA8875_RESET 9

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);
  }

  Serial.println("Found RA8875");

  tft.displayOn(true);  
  tft.GPIOX(true);      // Enable TFT - display enable tied to GPIOX 
  tft.PWM1config(true, RA8875_PWM_CLK_DIV1024); // PWM output for backlight
  tft.PWM1out(255);

 /* tft.textMode();
  tft.textSetCursor(10, 10);
  char string[15] = "Hello, World! ";
  tft.textTransparent(RA8875_WHITE);
  tft.textWrite(string,15);*/
 
  // With hardware accelleration this is instant
  tft.fillScreen(RA8875_RED);                                ===> stoping work after this line, but the screen is red

  // Play with PWM
  for (uint8_t i=255; i!=0; i-=5 ) 
  {
    tft.PWM1out(i); 
    delay(10);
  }  
  for (uint8_t i=0; i!=255; i+=5 ) 
  {
    tft.PWM1out(i); 
    delay(10);
  }
  tft.PWM1out(255); 
  
  tft.fillScreen(RA8875_RED);
  delay(500);  
  tft.fillScreen(RA8875_YELLOW);
  delay(500);
  tft.fillScreen(RA8875_GREEN);
  delay(500);
  tft.fillScreen(RA8875_CYAN);
  delay(500);
  tft.fillScreen(RA8875_MAGENTA);
  delay(500);
  tft.fillScreen(RA8875_BLACK);
  Serial.println("ok1");
  // Try some GFX acceleration!
  tft.drawCircle(100, 100, 50, RA8875_BLACK);
  tft.fillCircle(100, 100, 49, RA8875_GREEN);
 
the sketch that i use is buildtest from adafruit.
 

Attachments

  • 20190119_174330.jpg
    20190119_174330.jpg
    96.5 KB · Views: 106
  • 20190119_174340.jpg
    20190119_174340.jpg
    93.5 KB · Views: 110
  • 20190119_174832.jpg
    20190119_174832.jpg
    77.7 KB · Views: 108
when i use external power for RA8875, the result of sketch buildtest, is, screen white, pwm test an screen green, after nothing, is for that, i think that the problem is a problem
of timing, else module RA8875 is defective, when a use power from usb, i have only screen white.
 
You MUST connect the Teensy GND pin to the GND of the RA8875.

I see you have a wire on AGND (not GND), but it is not connected to anything. This will not work.

Even if another power supply is used for the RA8875 power, you need to have a GND connection between Teensy and the RA8875. That would mean 2 wires connected to the RA8875 GND pin.
 
I can't follow the wires in your latest photo. It's too dark. I want to help figure out what's wrong here, but I can't do much if I can't clearly see the wires (which are also all the same color - less than ideal...)
 
I believe I do see one other difference. Compare your wires to the 3rd photo on msg #15. Notice the RA8875 "VIN" pin connects differently on yours than on the known-good photo.
 
on the picture you can see that the ground from RA8875 is connected to pin ground(GND) first pin and 3.3v from RA8875 is connected to 3.3v(250 mA max) from teensy.

20190119_194812.jpg

20190119_194820.jpg

20190119_194833.jpg

in the third picture of your photo i cant' see GND pin from RA8875 connected, there no cable wire from ground at right from pin 3Vo ?
 
the only thing i did is comment on the following lines in Adafruit_RA8875.cpp because the sketch fail since the register always returns 0xFF

Code:
   uint8_t x = readReg(0);
    Serial.print("x = 0x"); Serial.println(x,HEX);
  /*  if (x != 0x75) {
        return false;
    } */

i have a last version for all library.
 
Status
Not open for further replies.
Back
Top