Forum Rule: Always post complete source code & details to reproduce any issue!
Page 1 of 3 1 2 3 LastLast
Results 1 to 25 of 53

Thread: RA8875 not found !

  1. #1

    RA8875 not found !

    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 ?

  2. #2
    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.

  3. #3
    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.

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,262
    Quote Originally Posted by andromeda View Post
    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.

  5. #5
    when i attempt to upload image i have a box with upload file failed, the size is 3.6Mo.

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,262
    Quote Originally Posted by andromeda View Post
    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.

  7. #7
    Attachment 15617
    Attachment 15618

    i have not attached tft screen, in fact it return always 0xFF and not 0x00.

    in the meantime I ordered 5" TFT with touch from adafruit which should work, if not, it is RA8875 that is defective.

    do I have to attach the screen to test the RA8875 module?

  8. #8
    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

  9. #9
    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.

  10. #10

    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.

  11. #11
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,262
    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?

  12. #12
    thanks,

    you have powered RA8875 from teensy on pin (Analog GND) and 3.3v (250mA max) or with an external power at 3.3v ?

    all my hardware and photo are here https://forum.pjrc.com/threads/54897-RA8875-not-found-!

    you use clock to 180 Mhz for teensy 3.6 ?

  13. #13
    Administrator Paul's Avatar
    Join Date
    Oct 2012
    Posts
    325
    Please do not create duplicate threads about the same problem. I have merged both of these into 1 thread.

  14. #14
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,262
    I can not see your photos (msg #7). Please repost them.

  15. #15
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,262
    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.

    Click image for larger version. 

Name:	DSC_0286_web.jpg 
Views:	13 
Size:	178.2 KB 
ID:	15649
    (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:

    Click image for larger version. 

Name:	DSC_0288_web.jpg 
Views:	10 
Size:	176.2 KB 
ID:	15650
    (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.

    Click image for larger version. 

Name:	DSC_0290_web.jpg 
Views:	14 
Size:	191.5 KB 
ID:	15651
    (click for full size)

  16. #16
    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);

  17. #17
    the sketch that i use is buildtest from adafruit.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	20190119_174330.jpg 
Views:	5 
Size:	96.5 KB 
ID:	15657   Click image for larger version. 

Name:	20190119_174340.jpg 
Views:	6 
Size:	93.5 KB 
ID:	15659  

    Click image for larger version. 

Name:	20190119_174832.jpg 
Views:	1 
Size:	77.7 KB 
ID:	15660  

  18. #18
    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.

  19. #19
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,262
    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.

  20. #20
    thanks for this information but is a same

    Click image for larger version. 

Name:	20190119_192125.jpg 
Views:	3 
Size:	87.4 KB 
ID:	15661

  21. #21
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,262
    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...)

  22. #22
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,262
    I can tell you, and I hope you can see for yourself in the photos I shared on msg #15, RA8875 definitely does work when the wires are connected properly.

  23. #23
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,262
    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.

  24. #24
    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.

    Click image for larger version. 

Name:	20190119_194812.jpg 
Views:	2 
Size:	119.0 KB 
ID:	15662

    Click image for larger version. 

Name:	20190119_194820.jpg 
Views:	4 
Size:	90.4 KB 
ID:	15663

    Click image for larger version. 

Name:	20190119_194833.jpg 
Views:	4 
Size:	109.4 KB 
ID:	15664

    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 ?

  25. #25
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •