patrickpollet1966 / XGLCD-LVGL

Library for using RA8875 and LittleVGL with an ESP32
GNU General Public License v3.0
18 stars 5 forks source link

ESP32 / RA8875 connection problem #1

Open momosh13 opened 4 years ago

momosh13 commented 4 years ago

Hi Fist this is unbelievable, Thank you for this library. Please, i need help to make this work. 2 problems.

  1. I have to put "lv_xg.h" i same folder with lv_test_label_1 and then it compiles.
  2. I have RA8875 and couple different ESP32 boards, WEMOS LOLIN32 and Adafruit ESP32 Feather, i'm having hard time to connect RA8875 with any of this boards, lv_test_label_1 compiles fine, uploads fine, but noting is happening. I thing this the pins are

    define XG_PIN_DC 16

    define XG_PIN_LCD_RESET 17 //34

    define XG_PIN_SD_CS 4

    define XG_PIN_TP_CS 33

    define XG_PIN_TP_IRQ 27

    define XG_PIN_LCD_CS 5

    define XG_PIN_MOSI 23

    define XG_PIN_MISO 19

    define XG_PIN_SCK 18

but when i'm checking the pins with oscilloscope, noting comes out of my ESP32 boards, so i don't know what to do. Please help me. Thank you in advance.

patrickpollet1966 commented 4 years ago

Hello,

Did you install the library in your Arduino IDE ?

I ask this question because i did not have to copy lv_xg.h in the same folder as the .ino and it is perhaps a point indicating that something is goes wrong.

On the other point, the pins involved are XG_PIN_LCD_RESET, XG_PIN_LCD_CS, XG_PIN_MOSI, XG_PIN_MISO, XG_PIN_SCK (which are default pin for SPI in ESP32-ARDUINO). If you use this it should works.

momosh13 commented 4 years ago

Thank you for reply. So, After lot off test's i make it "work", The library works only on DOIT ESP32 DEVKIT VI board and this is the wiring pins

define XG_PIN_BL (2)

#define XG_PIN_LCD_RESET (4)
#define XG_PIN_TP_CS (15)
#define XG_PIN_LCD_CS 5
#define XG_PIN_MOSI 23
#define XG_PIN_MISO 19
#define XG_PIN_SCK 18

And now i have this problem, the colors are wrong, please see the attached pictures IMG_1964 IMG_1963

Please help me to fix this. Thank you

patrickpollet1966 commented 4 years ago

It's easy to fix.

Edit lv_conf.h and modify LV_COLOR_16_SWAP to 1 like this

define LV_COLOR_16_SWAP 1

Le mer. 19 févr. 2020 à 06:19, momosh13 notifications@github.com a écrit :

Thank you for reply. So, After lot off test's i make it "work", The library works only on DOIT ESP32 DEVKIT VI board and this is the wiring pins

define XG_PIN_BL (2)

define XG_PIN_LCD_RESET (4)

define XG_PIN_TP_CS (15)

define XG_PIN_LCD_CS 5

define XG_PIN_MOSI 23

define XG_PIN_MISO 19

define XG_PIN_SCK 18

And now i have this problem, the colors are wrong, please see the attached pictures [image: IMG_1964] https://user-images.githubusercontent.com/5689051/74804155-3ec5a880-5294-11ea-922e-fbc804647130.jpg [image: IMG_1963] https://user-images.githubusercontent.com/5689051/74804156-408f6c00-5294-11ea-989f-6b2675a0abde.jpg

Please help me to fix this. Thank you

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/patrickpollet1966/XGLCD-LVGL/issues/1?email_source=notifications&email_token=AC5IXGC2R7TTO5R6E3MG4K3RDS6OXA5CNFSM4KHA4ZIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMGMXNA#issuecomment-588041140, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5IXGHC7SU77ZGC6EH37CDRDS6OXANCNFSM4KHA4ZIA .

-- Patrick Pollet

Ce message et toutes les pièces jointes sont confidentiels et exclusifs pour le destinataire du message. N'importe quelle autre distribution, utilisation ou reproduction est non autorisée et interdite. Si vous receviez ce message par erreur, informez svp l'expéditeur immédiatement et supprimez le message de votre système.

This message and any attachments are confidential, for the exclusive use of the addressee and may be legally privileged. Any other distribution, use or reproduction is unauthorised and prohibited. If you received this message in error, please notify the sender immediately and delete the message from your system.

momosh13 commented 4 years ago

Thank you, it's fixed ! One more question, if i can? Is there a chance, to run this, on Teensy 4.0? If yes? Help me whit that too. Thank you IMG_1970

patrickpollet1966 commented 4 years ago

There's no code for Teensy 4.0 in the source but it's not difficult to add it. You have to modify XGLCD.h and add defines and specific SPI code for the Teensy. (There's currently code for esp32, arduino, mkr, ...)

pacmenDE commented 4 years ago

hi, all. i have prblems to run the screen.(https://www.buydisplay.com/7-inch-lcd-module-capacitive-touch-screen-panel-i2c-spi-serial) ER-TFTM070-5 is 800x480 dots 7" color tft lcd module display with RA8875 I use a https://www.az-delivery.de/products/esp32-developmentboard DevKit board

I cabled like @momosh13 descriped. Bu the screen stays dark. Any ideas? regards Patrik Power is connected to external 5v power supply.

pacmenDE commented 4 years ago

Thank you for reply. So, After lot off test's i make it "work", The library works only on DOIT ESP32 DEVKIT VI board and this is the wiring pins

define XG_PIN_BL (2)

define XG_PIN_LCD_RESET (4)

define XG_PIN_TP_CS (15)

define XG_PIN_LCD_CS 5

define XG_PIN_MOSI 23

define XG_PIN_MISO 19

define XG_PIN_SCK 18

And now i have this problem, the colors are wrong, please see the attached pictures IMG_1964 IMG_1963

Please help me to fix this. Thank you Hi @momosh13 , can you tell me how have connected the display with power supply?

patrickpollet1966 commented 4 years ago

It's easy to fix. Edit lv_conf.h and modify LV_COLOR_16_SWAP to 1 like this

define LV_COLOR_16_SWAP 1

Le jeu. 9 juil. 2020 à 17:20, pacmenDE notifications@github.com a écrit :

Thank you for reply. So, After lot off test's i make it "work", The library works only on DOIT ESP32 DEVKIT VI board and this is the wiring pins

define XG_PIN_BL (2)

define XG_PIN_LCD_RESET (4)

define XG_PIN_TP_CS (15)

define XG_PIN_LCD_CS 5

define XG_PIN_MOSI 23

define XG_PIN_MISO 19

define XG_PIN_SCK 18

And now i have this problem, the colors are wrong, please see the attached pictures [image: IMG_1964] https://user-images.githubusercontent.com/5689051/74804155-3ec5a880-5294-11ea-922e-fbc804647130.jpg [image: IMG_1963] https://user-images.githubusercontent.com/5689051/74804156-408f6c00-5294-11ea-989f-6b2675a0abde.jpg

Please help me to fix this. Thank you Hi @momosh13 https://github.com/momosh13 , can you tell me how have connected the display with power supply?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/patrickpollet1966/XGLCD-LVGL/issues/1#issuecomment-656191105, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5IXGFNZFRL2IJTTYDALW3R2XN4TANCNFSM4KHA4ZIA .

-- Patrick Pollet

Ce message et toutes les pièces jointes sont confidentiels et exclusifs pour le destinataire du message. N'importe quelle autre distribution, utilisation ou reproduction est non autorisée et interdite. Si vous receviez ce message par erreur, informez svp l'expéditeur immédiatement et supprimez le message de votre système.

This message and any attachments are confidential, for the exclusive use of the addressee and may be legally privileged. Any other distribution, use or reproduction is unauthorised and prohibited. If you received this message in error, please notify the sender immediately and delete the message from your system.

pacmenDE commented 4 years ago

Hi Patrick, thank you for your reply. I think I have a power issue. Can you say something about powering of the display?

patrickpollet1966 commented 4 years ago

As i remember it needs almost 1 A to works.

Le 9 juil. 2020 à 19:01, pacmenDE notifications@github.com a écrit :

 Hi Patrick, thank you for your reply. I think I have a power issue. Can you say something about powering of the display?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

pacmenDE commented 3 years ago

Hi, you must connect all power pins to the board. Regards Patrik

Holen Sie sich Outlook für Androidhttps://aka.ms/ghei36


From: TridentTD notifications@github.com Sent: Wednesday, October 21, 2020 2:33:53 PM To: patrickpollet1966/XGLCD-LVGL XGLCD-LVGL@noreply.github.com Cc: Cavallaro, Patrik, GF p.cavallaro@carocom.de; Comment comment@noreply.github.com Subject: Re: [patrickpollet1966/XGLCD-LVGL] ESP32 / RA8875 connection problem (#1)

@patrickpollet1966https://github.com/patrickpollet1966 @momosh13https://github.com/momosh13

Hi, all. I have some problems to display Buydisplay's TFT 5inch RA8875 capacitive touch + ESP32. I wire and config as the following.

[image]https://user-images.githubusercontent.com/15370479/96719629-d5260d00-13d3-11eb-9dea-439543db4151.png

#define XG_PIN_DC           16
#define XG_PIN_SD_CS        26
#define XG_PIN_TP_CS        33
#define XG_PIN_TP_IRQ       27
#define XG_PIN_MOSI         23 //MOSI
#define XG_PIN_MISO         19 //MISO
#define XG_PIN_SCK          18 //SCK
#define XG_PIN_LCD_CS       5
#define XG_PIN_BL           4
#define XG_PIN_LCD_RESET    2

How to solve for displaying the TFT 5inch? Thank you very much.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/patrickpollet1966/XGLCD-LVGL/issues/1#issuecomment-713536036, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKWSAARP5L2J3ABCFVGDCO3SL3ILDANCNFSM4KHA4ZIA.

Diese E-Mail ist ausschließlich für den angeführten Adressaten bestimmt. Sie kann Informationen enthalten, welche vertraulich sind und durch die Verschwiegenheit geschützt werden. Diese E-Mail darf nur von den genannten Adressaten gelesen, ausgedruckt, aufbewahrt, kopiert und verbreitet werden. Sollten Sie diese Mitteilung irrtümlich erhalten haben, bitten wir Sie, uns umgehend zu benachrichtigen, sämtliche Ausdrucke zu vernichten und diese E-Mail zu löschen.

patrickpollet1966 commented 3 years ago

Hello,

I am afraid it's not possible to supply the screen with the 3V3 from the ESP32 board (the internal regulator will not provide enough current). Furthermore I am wondering if the screen does not need 5V in fact. Please check in the screen datasheet.

Le mer. 21 oct. 2020 à 14:33, TridentTD notifications@github.com a écrit :

@patrickpollet1966 https://github.com/patrickpollet1966 @momosh13 https://github.com/momosh13

Hi, all. I have some problems to display Buydisplay's TFT 5inch RA8875 capacitive touch + ESP32. I wire and config as the following.

[image: image] https://user-images.githubusercontent.com/15370479/96719629-d5260d00-13d3-11eb-9dea-439543db4151.png

#define XG_PIN_DC           16
#define XG_PIN_SD_CS        26
#define XG_PIN_TP_CS        33
#define XG_PIN_TP_IRQ       27
#define XG_PIN_MOSI         23 //MOSI
#define XG_PIN_MISO         19 //MISO
#define XG_PIN_SCK          18 //SCK
#define XG_PIN_LCD_CS       5
#define XG_PIN_BL           4
#define XG_PIN_LCD_RESET    2

How to solve for displaying the TFT 5inch? Thank you very much.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/patrickpollet1966/XGLCD-LVGL/issues/1#issuecomment-713536036, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5IXGF7XKAIUIZ7KOHM4ELSL3ILDANCNFSM4KHA4ZIA .

-- Patrick Pollet

Ce message et toutes les pièces jointes sont confidentiels et exclusifs pour le destinataire du message. N'importe quelle autre distribution, utilisation ou reproduction est non autorisée et interdite. Si vous receviez ce message par erreur, informez svp l'expéditeur immédiatement et supprimez le message de votre système.

This message and any attachments are confidential, for the exclusive use of the addressee and may be legally privileged. Any other distribution, use or reproduction is unauthorised and prohibited. If you received this message in error, please notify the sender immediately and delete the message from your system.

patrickpollet1966 commented 3 years ago

I just checked my own board (it's a 7" display but it's the same). J8 is open an i provide the supply (5V) from an external power supply as USB may be too weak for the 7", perhaps it may works for the 5".

Le mer. 21 oct. 2020 à 16:44, TridentTD notifications@github.com a écrit :

@pacmenDE https://github.com/pacmenDE Thank you , I will connect all power pins to the board.

@patrickpollet1966 https://github.com/patrickpollet1966 Thank you for the reply. I have looked at In the screen datasheet as your advice

[image: image] https://user-images.githubusercontent.com/15370479/96735269-95682100-13e5-11eb-907f-b7033869add0.png

My TFT 5inch 's J8 status now is short (3.3V). If I remove lead solder at the J8 to open for 5V like

[image: image] https://user-images.githubusercontent.com/15370479/96735657-fd1e6c00-13e5-11eb-9bcc-1a2f44741fc6.png

Can I use power supply like the following wire?

[image: image] https://user-images.githubusercontent.com/15370479/96735816-250dcf80-13e6-11eb-8f08-7da2193aacf1.png

(Sorry for my poor English)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/patrickpollet1966/XGLCD-LVGL/issues/1#issuecomment-713628946, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5IXGEEXO7EFUFF4B63MLDSL3XUJANCNFSM4KHA4ZIA .

-- Patrick Pollet

Ce message et toutes les pièces jointes sont confidentiels et exclusifs pour le destinataire du message. N'importe quelle autre distribution, utilisation ou reproduction est non autorisée et interdite. Si vous receviez ce message par erreur, informez svp l'expéditeur immédiatement et supprimez le message de votre système.

This message and any attachments are confidential, for the exclusive use of the addressee and may be legally privileged. Any other distribution, use or reproduction is unauthorised and prohibited. If you received this message in error, please notify the sender immediately and delete the message from your system.

DinhKhanhDev commented 2 years ago

Hello all. please help me. i am working a project about ESP32 and LCD TFT RA8875 I have a issue when I connect wifi for ESP32, the characters on the screen lose some characters. example : "HELLO WORLD" then just "HLL WOD " when not connected to wifi everything is normal