ILI9488 v1.1 red board and Arduino Due — white screen

I have a problem because I am using the ILI9488 (4.0 inch display v1.1).

I am using the ILI9488 library from GitHub — GitHub - jaretburkett/ILI9488: Arduino Library for the ILI9488 TFT controller for 4 wire SPI. I have tried initializing with software SPI but all I get is a blank white screen and then the sketch hangs.

I am using the hardware SPI of the Due for the SD Card reader, and I need both the screen and the reader. I tried using these pins:

#define TFT_CS   A5    
#define TFT_CD   A3
#define TFT_RST  A4
#define TFT_LED  A0   
#define TFT_MOSI 51
#define TFT_MISO 50
#define TFT_SCK 52

but I get nothing but a blank white screen. These worked on a Mega 2560 Rev3. I switched to the Due to get more speed in the display.

For my application I need the TFT plus the SD plus I have other peripherals (digipots, rotary controllers, buttons and relays, near the limit of pins on the Due. But now it seems that I have to choose to dump some necessary features from my device.

Does anyone have any idea what to do? Here is a Pinout of a nearly identical board to mine. Mine has pin headers for the SD card and is version 1.1 and is a 4.0” screen.

Multiple accounts.

Multiple topics, same subject.

That should not be a problem, SPI does not have a limit on the number of devices. The actual limit is what the bus can drive. Without an annotated schematic I cannot be of much help.

The second post you list is different. The first post was with my old mega and I switched to a Due.

My apologies if you were offended that I have done something that is somehow incorrect.

It is late here but I will post up a diagram tomorrow. Right now it looks like spaghetti but I do know what goes where.

Three accounts?

  1. Xfpd, I am not one of the “three accounts” you claim is me. There is another person to which I replied.

  2. I explained everything above. I do not know why I appear with one account on my desktop and another on my phone. You seem to imply some sort of misconduct.

  3. All I did was ask for help once for the new Due I got yesterday. One person has nicely responded and I am thankful. Again I apologize for offending you for failing to do whatever you assert I should do.

Sorry for my mistakes... why I connected the two accounts

  1. User pedfasttech has the same avatar initials as user jt60541
  2. User jt60541 (with the PF avatar) uses the initials on your avatar (jt)
  3. Multiple avatar/same user happens here when users do not get answers within minutes because they need someone to write their final university project, assigned last semester, due tomorrow.

All circumstantial. Explaining my thoughts. Please, disregard (me).

OK All is cool. I will try to limit all future posts to JT60451 once I figure out how to get my phone to use the correct ID. As for university, my son graduated with his master's (Architecture) a year ago, that is as close as I have come to a university in recent times. :slight_smile:

So... JT and PF are same same?

We have the following pins assigned:

SD_CS          10
SD_MOSI     DUE SPI MOSI PIN
SD_MISO     DUE SPI MISO PIN
SD_SCK      DUE SPI SCK PIN 
TFT_CS      A5    
TFT_CD      A3
TFT_RST     A4
TFT_LED     A0   
TFT_MOSI    51
TFT_MISO    50
TFT_SCK     52
CLK_PIN     18 // Clock Pin Encoder 1
CLK_PIN2    19 // Clock Pin Encoder 2
CLK_PIN3    20 // Clock Pin Encoder 3
DT_PIN      33 // DT Pin Encoder 1
DT_PIN2     29 // DT Pin Encoder 2
DT_PIN3     25 // DT Pin Encoder 3
SW_PIN      31 // Switch Pin Encoder 1
SW_PIN2     29 // Switch Pin Encoder 2
SW_PIN3     27 // Switch Pin Encoder 3
IR_RECV_PIN 21 // IR Receive Pin
DIGIPOT_1   48,46,44
DIGIPOT_2   42,40,38
Touch       PINS ARE TBD

These are the pin assignments.

Am I gathering correctly that I need to assign the hardware SPI pins to BOTH the TFT and the SD card, and only assign the CS pins separately?

I have both of those accounts; the other one to which I replied (han solo) is not my account.

Sorry I am not going to spend the time to translate that to a schematic.

Sorry I am not going to spend the time to translate that to a schematic.

Sorry, I did not realize that you wanted a complete schematic. I could work this in KiCad, but instead what I did was work the issue. I moved the SCK, MISO and MOSI pins of the screen to the same pins on the SD, which are connected to the MOSI, MISO and SCK pins on the SPI pin header of the Due. This solved the screen issue.

I have an issue with the rotary controllers locking up the Due on pin interrupts, and that is a different issue to this one. The specific issue here is solved.

So thank you for pointing me in the right direction.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.