-->
Page 1 of 2

ESP8266 with an RA8875 TFT screen

PostPosted: Tue Nov 22, 2016 5:58 pm
by Dirk Jan
Hi,

I try to use an RA8875 based TFT display on my ESP8266. The communication it through SPI and the platform Arduino. It does not work stable! Not on a Wemos, not on a NodeMCU. It starts working but the ESP8266 seems to reset itself every 20 sec.

I red a lot about problems with SPI in combination with the RA8875 and ESP8266. However, I cant find any solutions. Does anybody know a different SPI lib or RA8875 lib that works?
Or would it be better to use an other Arduino? Or switch to I2C? Any experiences?

Regards, DJ

Re: ESP8266 with an RA8875 TFT screen

PostPosted: Wed Nov 23, 2016 4:57 am
by Ribeiro Santos
What libs are you using? Can you share the code?

Re: ESP8266 with an RA8875 TFT screen

PostPosted: Wed Nov 23, 2016 6:16 am
by Dirk Jan
@Ribeiro Santos: The libs I am using are these:

RA8875 libs:
The original from the supplier: http://www.buydisplay.com/default/serial-spi-arduino-5-inch-tft-lcd-touch-shield-ra8875-for-mega-due-uno
The Adafruit variant (or original): https://github.com/adafruit/Adafruit_RA8875

SPI libs:
The default 8266 SPI lib (https://github.com/esp8266/Arduino)

The RA8875 libs include examples, that code I try to run on my ESP8266 boards and that code will result in a crash/reset after 20 seconds. I have attached one of these example .ino files to this thread.

I red about the SPI lib not being OK on ESP8266, at least at the end of 2015, also found another lib https://github.com/MetalPhreak/ESP8266_SPI_Driver, but this lib uses other commands - the RA8826 driver cannot work with it and my knowledge of SPI is not good enough to solve that.

Re: ESP8266 with an RA8875 TFT screen

PostPosted: Wed Nov 23, 2016 5:12 pm
by Dirk Jan
I found the problem, pfff.
The examples I tried include long loops, too long for the ESP8266 Watchdog timer. So at a certain point it would reset the ESP. Now I included a yield() command in every loop, at it runs very smooth!

DJ :D