ESP8266-12F + VMA412 2.8" TFT TouchScreen = white screen
Posted: Sat Jul 29, 2017 1:23 pm
Hello,
I am fighting for two days to make ESP8266-12F work with Velleman VMA412 2.8" TFT TouchScreen+SD Arduino UNO/MEGA shield using SPI. No matter which TFT library I use, I get always a white screen. What I am basically not 100% clear is wiring on the shield side at the first place (the board pinout is given in the PDF file bellow).
Some info that might be useful:
1) According to the datasheet (https://www.velleman.eu/downloads/29/vma412_a4v02.pdf), the shield's TFT part is based on ILI9341 v0.7 driver
2) the shield is OK, as originally I had it attached to Arduino UNO Wifi and it worked ok (TFT, TouchScreen and SD card); (BTW, I am switching to ESP8266-12F solution as it seems ATmega328P and ESP8266 on Arduino UNO WiFi board communicate too slow for my needs -> it's about 250 kB file transfer that takes too long)
3) The libraries for Arduino UNO/MEGA that "comes with" the shield are MCUFRIEND_kbv and TouchScreen (btw, exactly the same shield board pinout I found in a board produced by MCUFRIEND, so no wonder...)
4) funny enough, when working with Arduino,
5) as for ESP8266-12F solution I could not compile with MCUFRIEND_kbv lib (as well as with st7783 lib), I tried others like Adafruit_ILI9341esp or currently TFT_eSPI setup for ILI9431, but result is unchanged: the white screen.
Regarding SPI wiring, I know that TFT, TouchScreen and SD card drivers must share SPI_MISO, SPI_MOSI and SPI_CLK, while each having its own CS line.
So, my best guess while wiring TFT was (ESP8266 side should be compliant with TFT_eSPI lib setup for ILI9431):
Next, I guess SD card CS should go from an ESP GPIO pin to shield's SD_SS pin, right?
And where is TouchScreen CS on the shield?
Thanks for your attention in advance.
I am fighting for two days to make ESP8266-12F work with Velleman VMA412 2.8" TFT TouchScreen+SD Arduino UNO/MEGA shield using SPI. No matter which TFT library I use, I get always a white screen. What I am basically not 100% clear is wiring on the shield side at the first place (the board pinout is given in the PDF file bellow).
Some info that might be useful:
1) According to the datasheet (https://www.velleman.eu/downloads/29/vma412_a4v02.pdf), the shield's TFT part is based on ILI9341 v0.7 driver
2) the shield is OK, as originally I had it attached to Arduino UNO Wifi and it worked ok (TFT, TouchScreen and SD card); (BTW, I am switching to ESP8266-12F solution as it seems ATmega328P and ESP8266 on Arduino UNO WiFi board communicate too slow for my needs -> it's about 250 kB file transfer that takes too long)
3) The libraries for Arduino UNO/MEGA that "comes with" the shield are MCUFRIEND_kbv and TouchScreen (btw, exactly the same shield board pinout I found in a board produced by MCUFRIEND, so no wonder...)
4) funny enough, when working with Arduino,
Code: Select all
returns tft.readID()
Code: Select all
and not 0x7783
Code: Select all
driver.0x9341
5) as for ESP8266-12F solution I could not compile with MCUFRIEND_kbv lib (as well as with st7783 lib), I tried others like Adafruit_ILI9341esp or currently TFT_eSPI setup for ILI9431, but result is unchanged: the white screen.
Regarding SPI wiring, I know that TFT, TouchScreen and SD card drivers must share SPI_MISO, SPI_MOSI and SPI_CLK, while each having its own CS line.
So, my best guess while wiring TFT was (ESP8266 side should be compliant with TFT_eSPI lib setup for ILI9431):
Code: Select all
TFT CS: ESP8266-12F GPIO15 (D8) to shield's LCD_CS
TFT RST: ESP8266-12FGPIO02 (D4) to shield's LCD_RST
TFT D/C: ESP8266-12F GPIO00 (D3) to shield's LCD_RS
SCLK: ESP8266-12F GPIO14 (D5) to shield's SD_SCK (!? the best I knew)
MISO: ESP8266-12FGPIO12 (D6) to shield's LCD_RD (!? the best I knew)
MOSI: ESP8266-12F GPIO13 (D7) to shield's LCD_WR (!? the best I knew)
Next, I guess SD card CS should go from an ESP GPIO pin to shield's SD_SS pin, right?
And where is TouchScreen CS on the shield?
Thanks for your attention in advance.